Integer linear programming (ILP) presents a persistent computational hurdle owing to its NP-complete complexity, despite its widespread application in areas such as scheduling, logistics, and design optimisation. Gabriel Escrig, Roberto Campos, and M. A. Martin-Delgado, all from the Departamento de Física Teórica at the Universidad Complutense de Madrid, detail a fully Metropolis-Hastings algorithm for ILP that undertakes a coherent random walk across the discrete feasible region utilising only reversible circuits, circumventing the need for -RAM or classical pre/post-processing. This research is significant because it demonstrates a resource-characterised, coherent approach to constraint programming, establishing a baseline and paving the way for accelerated combinatorial optimisation through a method where the cost per Metropolis step scales linearly with the total logical qubit count.
Researchers have developed a fully quantum algorithm capable of tackling integer linear programming (ILP), a notoriously difficult computational problem central to fields like scheduling, logistics, and design optimisation. Despite its NP-complete nature, meaning no efficient classical solution is known, ILP remains a critical tool for modelling and solving complex real-world challenges. This work introduces a novel Metropolis-Hastings algorithm implemented entirely on a quantum computer, sidestepping the need for classical pre- or post-processing and avoiding reliance on quantum random-access memory (QRAM). The algorithm functions by coherently exploring potential solutions, effectively performing a random walk across the discrete feasible region of the ILP problem. Each step within this quantum walk is a unitary update, preserving quantum information and allowing for reversible computation. A key innovation is the use of a constraint-satisfaction counter, ensuring that only valid solutions are considered during the search process. The method represents integer variables using qubits, allowing for a logarithmic scaling of qubit requirements, and the computational cost of each Metropolis step grows linearly with the total number of qubits employed. Numerical simulations, performed on a diverse set of randomly generated ILP instances, confirm this predicted linear scaling and demonstrate that the algorithm progressively converges towards low-cost, feasible solutions. Spatial complexity scales as O(n log₂ N), where n represents the number of variables and N denotes the discretization size. This logarithmic encoding efficiently represents the search space with auxiliary overheads scaling linearly with n. Logical depth, measured in Toffoli-equivalent gates per Metropolis step, also scales linearly with the total qubit count k. This linear scaling demonstrates that, despite the exponential growth of the classical search space, the quantum circuit resources remain polynomial and predictable. Simulations utilised a problem solved for 2 qubits of discretization per variable, establishing a search space of [-2, 1] × [-2, 1]. The optimisation function employed was f(x₁, x₂) = −2x₁ −x₂, and the resulting distribution visually reflects thermalization toward low-cost feasible solutions. Colour intensity in the visualizations encodes the probability of measuring the quantum state |x₁, x₂⟩, illustrating the algorithm’s exploration of the feasible region defined by the constraint x₁ + x₂ ≥0. The observed O(n log₂ N) spatial complexity indicates that memory requirements grow modestly with both the number of variables and the desired precision of the solution. Furthermore, the O(k) scaling of logical depth confirms that the computational cost of each step in the quantum walk remains manageable as the number of qubits increases. While practical overheads associated with reversible arithmetic and multi-controlled operations dominate the Toffoli-equivalent cost, the asymptotic efficiency remains intact. The number of annealing steps required for thermal equilibrium is instance-dependent, introducing a heuristic component typical of annealing-based approaches. Importantly, the efficiency analysis focuses strictly on logical circuit complexity, excluding physical-level overheads related to error correction and qubit connectivity, which would be necessary for practical implementation. The methodology constructs a unitary update for each walk step, preparing candidate moves and evaluating both the objective function and constraints reversibly. Crucially, a constraint-satisfaction counter is integrated to rigorously enforce feasibility during the exploration process, ensuring only valid solutions are considered. Metropolis acceptance amplitudes are then encoded using a low-overhead, linearized rule, facilitating efficient probabilistic acceptance of improved solutions. Integer variables are represented using qubits, with each variable defined over the interval [-N, N-1], allowing for a discrete representation of the solution space. Reversible circuits are implemented to perform all arithmetic operations, including cost evaluation and constraint checking, avoiding the need for classical computation. Explicit ripple-carry adder constructions support both linear objectives and mixed equality/inequality constraints, providing flexibility in modelling complex optimisation problems. This choice of adder construction was motivated by its established performance in reversible circuit design and its ability to handle a wide range of linear functions. To validate the algorithm’s performance, numerical circuit-level simulations were conducted on a broad ensemble of randomly generated ILP instances. These simulations assessed the predicted linear resource scaling of the method, specifically examining the relationship between the number of logical qubits and the computational cost. The simulations also monitored the progressive thermalization of the quantum state towards low-cost feasible solutions under a defined annealing schedule, demonstrating the algorithm’s ability to converge on optimal or near-optimal solutions. The all-to-all connectivity topology of the quantum circuit was deliberately chosen to facilitate global exploration of the optimisation landscape and mitigate the risk of becoming trapped in local minima. Scientists have devised a new approach to solving integer linear programming problems using the principles of quantum computing. For decades, these optimisation challenges, found in everything from logistics to chip design, have resisted efficient solutions on classical computers, largely because the number of possibilities to check grows exponentially with the size of the problem. What makes this work notable is not simply the demonstration of a quantum algorithm, but the careful characterisation of its resource requirements. Previous attempts at quantum optimisation often relied on assumptions about the underlying hardware or required substantial pre-processing of the problem. This method, by contrast, operates with a clear accounting of the qubits and operations needed, building a coherent random walk directly within the quantum circuit. This transparency is crucial for assessing its viability as quantum technology matures. While the theoretical scaling appears promising, a linear increase in resources with problem size, translating this into a practical advantage requires substantial improvements in qubit coherence and gate fidelity. Real-world problems are often far more comple.
👉 More information
🗞 Resource-Scalable Fully Quantum Metropolis-Hastings for Integer Linear Programming
🧠 ArXiv: https://arxiv.org/abs/2602.11285
