ffsim.random.random_t2_amplitudes¶
- ffsim.random.random_t2_amplitudes(norb, nocc, *, seed=None, dtype=<class 'complex'>)[source]¶
Sample a random t2 amplitudes tensor.
A t2 amplitudes tensor satisfies
t2[i, j, a, b] == t2[j, i, b, a], so viewed as a matrix indexed by the occupied-virtual orbital pairs(i, a)and(j, b), it is a symmetric matrix. The tensor is sampled from the canonical Gaussian distribution over such matrices: the Gaussian orthogonal ensemble ifdtypeis a real type (seerandom_real_symmetric_matrix()), and its complex analog, which is invariant under the mapmat -> unitary @ mat @ unitary.T, ifdtypeis a complex type.- Parameters:
- Return type:
- Returns:
The sampled t2 amplitudes tensor.