Generates two-body positivity constraints on fermionic RDMs.
openfermion.measurements.two_body_fermion_constraints(
n_orbitals, n_fermions
)
The specific constraints implemented are known positivity constraints
on the two-fermion reduced density matrices. Constraints are generated
in the form of FermionOperators whose expectation value is known to be
zero for any N-Representable state. Generators are used for efficiency.
Args |
n_orbitals(int): number of spin-orbitals on which operators act.
n_fermions(int): number of fermions in the system.
|
Yields |
Constraint is a FermionOperator with zero expectation value.
|