Hyper-optimized tensor network contraction

Johnnie Gray, Stefanos Kourtis
2/5/2020
quant-phcond-mat.dis-nnphysics.comp-ph

Official code: jcmgray/cotengra (252 stars, Python, Apache-2.0, last commit 2026-11-10).

Abstract

Tensor networks represent the state-of-the-art in computational methods across many disciplines, including the classical simulation of quantum many-body systems and quantum circuits. Several applications of current interest give rise to tensor networks with irregular geometries.

Show full abstract

Finding the best possible contraction path for such networks is a central problem, with an exponential effect on computation time and memory footprint. In this work, we implement new randomized protocols that find very high quality contraction paths for arbitrary and large tensor networks. We test our methods on a variety of benchmarks, including the random quantum circuit instances recently implemented on Google quantum chips. We find that the paths obtained can be very close to optimal, and often many orders or magnitude better than the most established approaches. As different underlying geometries suit different methods, we also introduce a hyper-optimization approach, where both the method applied and its algorithmic parameters are tuned during the path finding. The increase in quality of contraction schemes found has significant practical implications for the simulation of quantum many-body systems and particularly for the benchmarking of new quantum chips. Concretely, we estimate a speed-up of over 10,000$\times$ compared to the original expectation for the classical simulation of the Sycamore `supremacy' circuits.

View on arXivView PDF

Code Implementations(1)

jcmgray/cotengraOfficial100%
Apache-2.0

Hyper optimized contraction trees for large tensor networks and einsums

25239PythonJan 22, 20193 weeks agoApache-2.0
contraction-ordereinsumopt-einsumquimbtensor+3 more

Similar Papers

Cite this paper

@article{gray2020hyperoptimized,
  title  = {Hyper-optimized tensor network contraction},
  author = {Johnnie Gray and Stefanos Kourtis},
  year   = {2020},
  eprint = {2002.01935},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.01935}
}

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/2002.01935.svg)](https://codeofpaper.com/paper/2002.01935)

Discussion