Learn more about our quantum error correction milestone

openfermion.measurements.unlinearize_term

Function to return integer index of term indices.

index(int): The index of the term. n_orbitals(int): The number of orbitals in the simulation.

term(tuple): The term indices of a one- or two-body FermionOperator.