![]() |
Map the 2-RDM to the particle-hole-RDM
openfermion.utils.map_two_pdm_to_particle_hole_dm(
tpdm, opdm
)
Args | |
---|---|
tpdm (numpy.ndarray): The 2-RDM as a 4-index tensor. Indices follow the
internal convention of tpdm[p, q, r, s] ==
:math: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] ==
:math:a_{p}^{\dagger}a_{q} .
|
Returns | |
---|---|
phdm (numpy.ndarray): The particle-hole matrix. |