ffsim.random.random_uccsd_op_unrestricted

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

Sample a random UCCSD operator.

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

  • nelec (tuple[int, int]) – The numbers of spin alpha and spin beta fermions.

  • 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:

UCCSDOpUnrestricted

Returns:

The sampled UCCSD operator.