fold_s1_to_s8#

fold_s1_to_s8(eri, *, validate=True)[source]#

Folds a 4-dimensional tensor to 8-fold symmetries (1-dimensional).

Parameters:
  • eri (Tensor | ARRAY_TYPE) – the 4-dimensional tensor to fold.

  • validate (bool) – when set to False, the requirements of eri are not validated.

Returns:

An 8-fold symmetric tensor.

Raises:
  • ValueError – if eri is not 4-dimensional.

  • ValueError – if eri does not satisfy the permutational symmetries dictated by the chemist’ convention for the ordering of two-body electronic integrals.

Return type:

S8Integrals