openfermion.utils.map_one_pdm_to_one_hole_dm

Convert a 1-RDM to a 1-hole-RDM

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}\).

oqdm numpy.ndarray

the 1-hole-RDM transformed from a 1-RDM.