openfermion.linalg.eigenspectrum

Compute the eigenspectrum of an operator.

Used in the notebooks

Used in the tutorials

operator QubitOperator, InteractionOperator, FermionOperator, PolynomialTensor, or InteractionRDM.
n_qubits int

number of qubits/modes in operator. if None, will be counted.

spectrum dense numpy array of floats giving eigenspectrum.