openfermion.utils.map_two_pdm_to_particle_hole_dm

Map the 2-RDM to the particle-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}\).

phdm numpy.ndarray

The particle-hole matrix.