Resource-Scalable Fully Quantum Metropolis-Hastings for Integer Linear Programming
Gabriel Escrig, Roberto Campos, M. A. Martin-Delgado
TL;DR
This work addresses the NP-hard problem of integer linear programming by introducing a fully quantum Metropolis–Hastings algorithm that operates coherently over the discrete feasible region using reversible quantum circuits with no QRAM. The core idea is a Szegedy-type quantum walk with step operator $W = R\,P^{\dagger}\,F\,P$ that, under an annealing schedule, biases amplitudes toward low-cost feasible solutions and yields a final state close to the Boltzmann distribution $\pi_{\beta}(\mathbf{x}) \propto e^{-\beta f(\mathbf{x})}$. The authors provide explicit logical resource scaling: the total number of qubits scales as $\mathcal{O}(n \log_2 N)$ and the Toffoli-equivalent cost per Metropolis step scales as $\mathcal{O}(k)$, with simulations confirming linear scaling across thousands of random ILP instances. This framework establishes a principled, resource-characterized baseline for fully quantum constraint programming and opens pathways for integrating additional quantum speedups, such as amplitude amplification, as quantum hardware advances. Practically, the approach enables coherent exploration of an exponentially large discrete search space while maintaining polynomial resource growth and robust convergence toward high-quality feasible solutions.
Abstract
Integer linear programming (ILP) remains computationally challenging due to its NP-complete nature despite its central role in scheduling, logistics, and design optimization. We introduce a fully quantum Metropolis-Hastings algorithm for ILP that implements a coherent random walk over the discrete feasible region using only reversible quantum circuits, without quantum-RAM assumptions or classical pre/post-processing. Each walk step is a unitary update that prepares coherent candidate moves, evaluates the objective and constraints reversibly -- including a constraint-satisfaction counter to enforce feasibility -- and encodes Metropolis acceptance amplitudes via a low-overhead linearized rule. At the logical level, the construction uses $\mathcal{O}(n\log_2 N)$ qubits to represent $n$ integer variables over the interval $[-N,\,N-1]$, and the Toffoli-equivalent cost per Metropolis step grows linearly with the total logical qubit count. Using explicit ripple-carry adder constructions, we support linear objectives and mixed equality/inequality constraints. Numerical circuit-level simulations on a broad ensemble of randomly generated instances validate the predicted linear resource scaling and exhibit progressive thermalization toward low-cost feasible solutions under the annealing schedule. Overall, the method provides a coherent, resource-characterized baseline for fully quantum constraint programming and a foundation for incorporating additional quantum speedups in combinatorial optimization.
