CoTenN: Constrained Optimization with Tensor Networks
Open Access
- 8 June 2026
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 10 (PLDI) , 629-655
Abstract
Simulation of physics problems is one of the most important use cases of quantum computing. For this class of problems, the goal is typically to find the minimum energy state, or the ground state, of a physical system’s Hamiltonian. These problems frequently have constraints, such as symmetry conditions, which must also be satisfied. To solve such problems, researchers in computational physics use quantum-inspired algorithms that execute on classical computers. In particular, tensor network-based eigensolvers such as DMRG have become popular. However, to use these eigensolvers, the constrained optimization problem must first be encoded as a tensor network that implements a low-rank decomposition of the system’s Hamiltonian and state vector. These tensor network encodings are highly flexible, allowing for variables with ≥ 2 quantum states and supporting efficient constraint encodings that directly constrain the state vector. A critical challenge to developing tensor network-based encodings is that, currently, the encoding process is manual; significant effort is required to identify an efficient encoding for a new physics problem. In this work, we introduce a quantum constrained optimization problem (QCOP), a general abstraction for describing minimization problems over quantum variables that are subject to hard constraints. We present Masq, the first constraint programming language for QCOPs implementable with tensor networks, and CoTenN, a compiler that automatically maps QCOPs specified with Masq programs to tensor networks. To demonstrate the utility of Masq and CoTenN, we formulate two physics problems in Masq and then use CoTenN to find their ground states. We find the CoTenN-generated tensor networks generally outperform SOTA problem formulations, providing between 2.05×–53.32× total speedups across runs for QCOPs and yielding up to 2.49 · 10 7 × lower truncation errors for otherwise unconstrained problems.Keywords
Funding Information
- Cheng Peng was supported by the U.S. Department of Energy (DOE), Office of Basic Energy Sciences, Division of Materials Sciences and Engineering. (DE-AC02-76SF00515)
This publication has 58 references indexed in Scilit:
- Resource Optimization for Quantum Dynamics with Tensor Networks: Quantum and Classical AlgorithmsThe Journal of Physical Chemistry A, 2024
- Tensor networks for solving the time-independent Boltzmann neutron transport equationJournal of Computational Physics, 2024
- Potential Energy Surface of the Chromium Dimer Re-re-revisited with Multiconfigurational Perturbation TheoryJournal of Chemical Theory and Computation, 2016
- A variational eigenvalue solver on a photonic quantum processorNature Communications, 2014
- Reducibility Among Combinatorial Problems2009
- Kinetically constrained spin modelsProbability Theory and Related Fields, 2007
- Anyons in an exactly solved model and beyondAnnals of Physics, 2006
- Optimum design of open pit minesBulletin of the Australian Mathematical Society, 1991
- Simulating physics with computersInternational Journal of Theoretical Physics, 1982
- Generalized Trotter's formula and systematic approximants of exponential operators and inner derivations with applications to many-body problemsCommunications in Mathematical Physics, 1976