random_two_body_tensor_real#

random_two_body_tensor_real(size, rank=None, seed=None)[ソース]#

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.

戻り値の型:

ndarray