openfermion.linalg.get_gap

Compute gap between lowest eigenvalue and first excited state.

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.