View source on GitHub |
Generates one-body positivity constraints on fermionic RDMs.
openfermion.measurements.one_body_fermion_constraints(
n_orbitals, n_fermions
)
The specific constraints implemented are known positivity constraints
on the one-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. |