|View source on GitHub|
Compute gap between lowest eigenvalue and first excited state.
openfermion.linalg.get_gap( sparse_operator, initial_guess=None )
|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.