random_quadratic_hamiltonian#

random_quadratic_hamiltonian(n_orbitals, num_conserving=False, seed=None)[ソース]#

Generate a random instance of QuadraticHamiltonian.

パラメータ:
  • n_orbitals (int) – The number of orbitals.

  • num_conserving (bool) – Whether the Hamiltonian should conserve particle number.

  • seed (Any) – The pseudorandom number generator or seed. Should be a valid input to numpy.random.default_rng().

戻り値:

The sampled QuadraticHamiltonian.

戻り値の型:

QuadraticHamiltonian