openfermion.measurements.linearize_term

Function to return integer index of term indices.

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.