openfermion.utils.map_two_pdm_to_two_hole_dm

Map from the 2-RDM to the 2-hole-RDM

tpdm numpy.ndarray

The 2-RDM as a 4-index tensor. Indices follow the internal convention of tpdm[p, q, r, s] == \(a_{p}^{\dagger}a_{q}^{\dagger}a_{r}a_{s}\).

opdm numpy.ndarray

The 1-RDM as a 2-index tensor. Indices follow the internal convention of opdm[p, q] == \(a_{p}^{\dagger}a_{q}\).

tqdm numpy.ndarray

The 2-hole matrix.