View source on GitHub |
Compute ground energy and state at a specified particle number.
openfermion.linalg.jw_get_ground_state_at_particle_number(
sparse_operator, particle_number
)
Assumes the Jordan-Wigner transform. The input operator should be Hermitian and particle-number-conserving.
Args | |
---|---|
sparse_operator
|
sparse
A Jordan-Wigner encoded sparse matrix. |
particle_number
|
int
The particle number at which to compute the ground energy and states |