Penalty-free approach to accelerating constrained quantum optimization

Journal Article (2025)
Author(s)

David Bucher (Ludwig Maximilians University, Aqarios GmbH)

Jonas Stein (Ludwig Maximilians University)

Sebastian Feld (TU Delft - QCD/Feld Group, TU Delft - Quantum Circuit Architectures and Technology)

Claudia Linnhoff-Popien (Ludwig Maximilians University)

Research Group
Quantum Circuit Architectures and Technology
DOI related publication
https://doi.org/10.1103/fb5m-cl9m
More Info
expand_more
Publication Year
2025
Language
English
Research Group
Quantum Circuit Architectures and Technology
Issue number
6
Volume number
112
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

Traditional methods for handling (inequality) constraints in the quantum approximate optimization algorithm (QAOA) typically rely on penalty terms and slack variables, which increase problem complexity and expand the search space. More sophisticated mixer-based QAOA variants restrict the search within the feasible assignments but often suffer from prohibitive circuit complexity. This paper presents a penalty-free formalism for incorporating inequality constraints into the cost function of QAOA using an oracle-based subroutine that evaluates constraint satisfaction in an additional register, subsequently called indicator function QAOA (IF-QAOA). Applied to the knapsack problem, we demonstrate in numerical simulations the superior performance of IF-QAOA over conventional penalty-based approaches. Using advanced QAOA simulation techniques, we find that IF-QAOA achieves significantly higher solution quality and a faster time to solution in 82% of our benchmark cases, even though circuit depth is approximately three times larger. Analysis of the scaling behavior shows favorable scaling of IF-QAOA compared to penalty-based methods. Also, benchmarks against the recently developed quantum tree generator QAOA for knapsack problems (P. Christiansen et al., arXiv:2411.00518) demonstrated higher solution quality for circuits of similar depth. Additionally, this paper introduces a method for approximating the indicator function when the number of ancillary qubits is limited or the constraint function is noninteger. With a specialized simulation algorithm based on projective measurements, we empirically demonstrate that this formalism can encode general inequality constraints using a fixed number of ancillary qubits.