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