fold#
- fold(eri, *, validate=True)[source]#
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.- রিটার্ন টাইপ: