Closed jjcmoon closed 1 year ago
Hi @jjcmoon, yes compressed contraction for hyper tensor networks is not currently defined / supported. This should probably be caught and raise an error. Some options to proceed are:
hyperinds_resolve
with e.g. args ('tree', 'clustering')
to convert the hyperindices to COPY tensor(s)Or longer term, more usefully:
Neither of which is trivial..
In general, the compressed contraction functionality is still very experimental, and I'd note for example, that you likely need to use a contraction optimizer specifically for compressed contractions to get any savings over exact contraction. See https://cotengra.readthedocs.io/en/latest/examples/ex_compressed_contraction.html.
What happened?
The compressed contraction crashes in some cases when using multiple hyperedges. See a minimal example below. It only seems to occur when the hyperedges have an odd number of inputs. The exact contraction works fine.
Minimal Complete Verifiable Example
Relevant log output
Environment
quimb==1.6.0 cotengra==0.5.0