random_two_body_tensor_real#
- random_two_body_tensor_real(size, rank=None, seed=None)[source]#
Sample a random two-body tensor with real-valued orbitals.
- প্যারামিটার:
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()
.
- রিটার্নস:
The sampled two-body tensor.
- রিটার্ন টাইপ: