openfermion.utils.map_particle_hole_dm_to_one_pdm

Map the particle-hole-RDM to the 1-RDM

Main aliases

openfermion.map_particle_hole_dm_to_one_pdm, openfermion.utils.rdm_mapping_functions.map_particle_hole_dm_to_one_pdm

phdm numpy.ndarray

The 2-particle-hole-RDM as a 4-index tensor. Indices follow the internal convention of phdm[p, q, r, s] == apaqaras.

num_particles number of particles in the system.
num_basis_functions number of spin-orbitals (usually the number of qubits)

opdm numpy.ndarray

the 1-RDM transformed from a 1-RDM.