View source on GitHub |
Initialize the sparse hamiltonaian
fqe.get_sparse_hamiltonian(
operators: Union['FermionOperator', str],
conserve_spin: bool = True,
e_0: complex = (0.0 + 0.0j)
) -> "sparse_hamiltonian.SparseHamiltonian"
Args | |
---|---|
operators (Union[FermionOperator, str]) - the FermionOperator to be used to initialize the sparse Hamiltonian
conserve_spin (bool) - whether the Hamiltonian conserves Sz e_0 (complex) - scalar part of the Hamiltonian |