Variational Quantum Eigensolver with Constraints (VQEC): Solving Constrained Optimization Problems via VQE
Thinh Viet Le, Vassilis Kekatos
TL;DR
VQEC extends the variational quantum eigensolver to constrained optimization by coupling a quantum-variate objective with a classical perturbed primal–dual update over both primal parameters $\boldsymbol{\theta}$ and dual multipliers $\boldsymbol{\lambda}$. The approach leverages the parameter-shift rule to compute gradients and, when cost and constraint observables are diagonal and simultaneously measurable, incurs only modest quantum overhead relative to VQE. The paper provides theoretical bounds on the duality gap and the impact of approximating PMFs with a VQC, and demonstrates through numerical experiments on QCBO, stochastic PMFs, chance constraints, and large LPs that VQEC can yield high-quality, feasible solutions on NISQ-like hardware. This framework broadens the applicability of near-term quantum devices to practical constrained optimization tasks in ML, communications, and resource allocation, with future work aimed at non-diagonal observables and richer problem classes.
Abstract
Variational quantum approaches have shown great promise in finding near-optimal solutions to computationally challenging tasks. Nonetheless, enforcing constraints in a disciplined fashion has been largely unexplored. To address this gap, this work proposes a hybrid quantum-classical algorithmic paradigm termed VQEC that extends the celebrated VQE to handle optimization with constraints. As with the standard VQE, the vector of optimization variables is captured by the state of a variational quantum circuit (VQC). To deal with constraints, VQEC optimizes a Lagrangian function classically over both the VQC parameters as well as the dual variables associated with constraints. To comply with the quantum setup, variables are updated via a perturbed primal-dual method leveraging the parameter shift rule. Among a wide gamut of potential applications, we showcase how VQEC can approximately solve quadratically-constrained binary optimization (QCBO) problems, find stochastic binary policies satisfying quadratic constraints on the average and in probability, and solve large-scale linear programs (LP) over the probability simplex. Under an assumption on the error for the VQC to approximate an arbitrary probability mass function (PMF), we provide bounds on the optimality gap attained by a VQC. Numerical tests on a quantum simulator investigate the effect of various parameters and corroborate that VQEC can generate high-quality solutions.
