openfermion.measurements.linearize_term

Function to return integer index of term indices.

Main aliases

openfermion.linearize_term, openfermion.measurements.equality_constraint_projection.linearize_term

term tuple

The term indices of a one- or two-body FermionOperator.

n_orbitals int

The number of orbitals in the simulation.

index int

The index of the term.