ffsim.random.random_uccsd_op_restricted

ffsim.random.random_uccsd_op_restricted(norb, nocc, *, with_final_orbital_rotation=False, seed=None)[source]

Sample a random UCCSD operator.

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

  • nocc (int) – The number of spatial orbitals that are occupied by electrons.

  • with_final_orbital_rotation (bool) – Whether to include a final orbital rotation in the operator.

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

Return type:

UCCSDOpRestricted

Returns:

The sampled UCCSD operator.