openfermion.linalg.get_gap

Compute gap between lowest eigenvalue and first excited state.

Main aliases

openfermion.get_gap, openfermion.linalg.sparse_tools.get_gap

sparse_operator LinearOperator

Operator to find the ground state of.

initial_guess ndarray

Initial guess for eigenspace. A good guess dramatically reduces the cost required to converge.

Returns: A real float giving eigenvalue gap.