On the Optimal Linear Contraction Order of Tree Tensor Networks, and Beyond

Mihail Stoian, Richard Milbradt, Christian B. Mendl
9/25/2022
quant-phcs.DBcs.DS

Official code: stoianmihail/Netzwerk (8 stars, Python, MIT, last commit 2024-12-03).

Abstract

The contraction cost of a tensor network depends on the contraction order. However, the optimal contraction ordering problem is known to be NP-hard.

Show full abstract

We show that the linear contraction ordering problem for tree tensor networks admits a polynomial-time algorithm, by drawing connections to database join ordering. The result relies on the adjacent sequence interchange property of the contraction cost, which enables a global decision of the contraction order based on local comparisons. Based on that, we specify a modified version of the IKKBZ database join ordering algorithm to find the optimal tree tensor network linear contraction order. Finally, we extend our algorithm as a heuristic to general contraction orders and arbitrary tensor network topologies.

View on arXivView PDF

Code Implementations(1)

MIT

A collection of state-of-the-art contraction ordering algorithms. https://arxiv.org/abs/2209.12332

81Python, Jupyter NotebookSep 2, 20231 years agoMIT
contraction-ordercotengradynamic-programmingeinsumjoin-ordering+3 more

Similar Papers

Cite this paper

@article{stoian2022optimal,
  title  = {On the Optimal Linear Contraction Order of Tree Tensor Networks, and Beyond},
  author = {Mihail Stoian and Richard Milbradt and Christian B. Mendl},
  year   = {2022},
  eprint = {2209.12332},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.12332}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.12332.svg)](https://codeofpaper.com/paper/2209.12332)

Discussion