I have some tensor contractions, e.g., A[abcd] B[abcd] = C
, where A[abcd]=A[badc]
and B[abcd]=B[badc]
.
I checked the manual of einsum
https://numpy.org/doc/stable/reference/generated/numpy.einsum.html, but did not find any option of symmetry.
Is there any option in einsum
or other package can handle this symmetry, preferably by python/julia, that could make the contraction faster?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…