ffsim.random.random_molecular_hamiltonian_spinless¶
- ffsim.random.random_molecular_hamiltonian_spinless(norb, seed=None, dtype=<class 'complex'>)[source]¶
Sample a random spinless molecular Hamiltonian.
- Parameters:
norb (
int) – The number of orbitals.seed – A seed to initialize the pseudorandom number generator. Should be a valid input to
np.random.default_rng.dtype – The data type to use for the one- and two-body tensors. The constant term will always be of type
float.
- Return type:
- Returns:
The sampled spinless molecular Hamiltonian.