View source on GitHub |
Compute an eigenvalue and eigenstate of a quadratic Hamiltonian.
openfermion.circuits.jw_get_gaussian_state(
quadratic_hamiltonian, occupied_orbitals=None
)
Eigenstates of a quadratic Hamiltonian are also known as fermionic Gaussian states.
Returns
energy (float):
The eigenvalue.
state (sparse):
The eigenstate in scipy.sparse csc format.