random_quadratic_hamiltonian#
- random_quadratic_hamiltonian(n_orbitals, num_conserving=False, seed=None)[source]#
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.
- রিটার্ন টাইপ: