random_two_body_tensor_real#
- random_two_body_tensor_real(size, rank=None, seed=None)[fuente]#
Sample a random two-body tensor with real-valued orbitals.
- Parámetros:
size (int) – The length of one dimension of the tensor. The shape of the returned tensor will be
(size, size, size, size)
.rank (int | None) – Rank of the sampled tensor. The default behavior is to use the maximum rank, which is
size * (size + 1) // 2
.seed (Any) – The pseudorandom number generator or seed. Should be a valid input to
numpy.random.default_rng()
.
- Devuelve:
The sampled two-body tensor.
- Tipo del valor devuelto: