fold#
- fold(eri, *, validate=True)[ソース]#
Folds an electronic integrals tensor.
This utility method combines
fold_s4_to_s8()
,fold_s1_to_s8()
andfold_s1_to_s4()
and attempts to fold the provided tensor as much as possible given these folding methods. AnyValueError
raised by the methods above is caught. When this happens, this utility will try the next folding method.- パラメータ:
- 戻り値:
Either an instance of
S8Integrals
,S4Integrals
orS1Integrals
(in this order) depending on the first successful folding method.- 例外:
NotImplementedError – if
eri
is of an unsupported dimension.- 戻り値の型: