ffsim.random.random_diagonal_coulomb_hamiltonian

ffsim.random.random_diagonal_coulomb_hamiltonian(norb, *, real=False, seed=None)[source]

Sample a random diagonal Coulomb Hamiltonian.

Parameters:
  • norb (int) – The number of spatial orbitals.

  • real (bool) – Whether to sample a real-valued object rather than a complex-valued one.

  • seed – A seed to initialize the pseudorandom number generator. Should be a valid input to np.random.default_rng.

Return type:

DiagonalCoulombHamiltonian

Returns:

The sampled diagonal Coulomb Hamiltonian.