ValeevGroup / SeQuant

SeQuant: Symbolic Algebra of Tensors over Operators and Scalars
GNU General Public License v3.0
13 stars 4 forks source link

Single-term optimization improvement possibility #152

Open Krzmbrzl opened 8 months ago

Krzmbrzl commented 8 months ago

https://doi.org/10.1103/PhysRevE.90.033315 describes some pruning methods to the single-term factorization (aka: the operation minimization of a tensor network), that would probably allow to speed this part of SeQuant's processing up quite a bit.

This might become very relevant in case one ever wants to treat expressions with a very large amount of tensors in a single network or if one wants to step into the direction of some sort of global-ish optimizations of the given expressions (beyond a single tensor network).

bimalgaudel commented 6 months ago

Yes, this will be useful for when we have really large tensor networks. For tensor networks with 10 to 12 tensors, the current implementation is fast enough (very fast). Tree pruning might be implemented in the future.

bimalgaudel commented 3 months ago

The consensus is, exhaustive search can be used for tensor networks of size up to 18. See section 2 (Previous work) second sentence here:

Eli Meirom, Haggai Maron, Shie Mannor, Gal Chechik Proceedings of the 39th International Conference on Machine Learning, PMLR 162:15278-15292, 2022.