We're celebrating World Quantum Day 2022! Join us

openfermion.testing.random_diagonal_coulomb_hamiltonian

Generate a random instance of DiagonalCoulombHamiltonian.

n_qubits The number of qubits
real Whether to use only real numbers in the one-body term