openfermion.utils.map_two_hole_dm_to_two_pdm

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

tqdm (numpy.ndarray): The 2-hole-RDM as a 4-index tensor. Indices follow the internal convention of tqdm[p, q, r, s] == :math:a_{p}a_{q}a_{r}^{\dagger}a_{s}^{\dagger}. opdm (numpy.ndarray): The 1-RDM as a 2-index tensor. Indices follow the internal convention of opdm[p, q] == :math:a_{p}^{\dagger}a_{q}.

tpdm (numpy.ndarray): The 2-RDM matrix.