View source on GitHub |
Returns 1-norm, emitting the constant term in the qubit Hamiltonian.
openfermion.functionals.get_one_norm_int_woconst(
one_body_integrals: np.ndarray, two_body_integrals: np.ndarray
)
See get_one_norm_int.
Parameters
one_body_integrals(ndarray) : An array of the one-electron integrals having shape of (n_orb, n_orb), where n_orb is the number of spatial orbitals. two_body_integrals(ndarray) : An array of the two-electron integrals having shape of (n_orb, n_orb, n_orb, n_orb).
Returns
one_norm : 1-Norm of the qubit Hamiltonian