We're celebrating World Quantum Day 2022! Join us

fqe.get_diagonal_hamiltonian

Initialize a diagonal hamiltonian

hdiag (numpy.ndarray) - diagonal elements

e_0 (complex) - scalar part of the Hamiltonian