AG-2024.05-1817·quant-ph·cross-listed: cs.DMcs.MS
Optimizing Tensor Contraction Paths: A Greedy Algorithm Approach With Improved Cost Functions
Authors
- Sheela Orgler
- Mark Blacher
Abstract
Finding efficient tensor contraction paths is essential for a wide range of problems, including model counting, quantum circuits, graph problems, and language models. There exist several approaches to find efficient paths, such as the greedy and random greedy algorithm by Optimized Einsum (opt_einsum), and the greedy algorithm and hypergraph partitioning approach employed in cotengra. However, these algorithms require a lot of computational time and resources to find efficient contraction paths. In this paper, we introduce a novel approach based on the greedy algorithm by opt_einsum that computes efficient contraction paths in less time. Moreover, with our approach, we are even able to compute paths for large problems where modern algorithms fail.
Submitted
8 May 20242 years ago
Version
v1
License
CC-BY-4.0
DOI
10.48550/arXiv.2405.09644
Chat with this PDF
Ask questions, probe assumptions, request a plain-English summary. Answers cite sections from the preprint itself.
Community
Questions and answers about this paper from other readers. No formal peer review — just a place to think out loud.