fqe.get_sparse_hamiltonian

Initialize the sparse hamiltonaian

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