Imposing Constraints on Driver Hamiltonians and Mixing Operators: From Theory to Practical Implementation
Hannes Leipold, Federico M. Spedalieri, Stuart Hadfield, Eleanor Rieffel
TL;DR
This work develops a comprehensive algebraic framework for enforcing classical constraints in quantum optimization by constructing constraint-commuting drivers and mixers. It proves general NP-hardness for finding such operators in the general case while showing polynomial-time solvability for locality-bounded constraints, and provides practical backtracking and generator-sequencing algorithms to build constrained QAOA/CQA ansatze. The authors apply the theory to 1-in-3 SAT, introducing three tailored ansatz constructions (X-mixer baseline, maximum disjoint subset, and neighborhood-symmetric mixers) and demonstrate a quadratic improvement in scaling over problem sizes $12$–$22$ in simulations, indicating substantial potential speedups for constrained optimization on quantum hardware. The work offers algorithmic prescriptions and a detailed pipeline from algebraic conditions to implementable unitaries, with implications for improved noise resilience, trainability, and resource efficiency in constrained quantum optimization. These methods pave the way for systematic exploration of quantum speedups in constraint-rich problems across QA, QAOA, and beyond.
Abstract
Driver Hamiltonians and Mixing Operators that satisfy constraints is an important part of ansatz construction for many quantum algorithms. In this manuscript, we give general algebraic expressions for finding Hamiltonian terms and analogously unitary primitives, that satisfy constraint embeddings and use these to give complexity characterizations of the related problems. Finding operators that enforce classical constraints is proven to be NP-Complete in the general case; we also give an algorithmic procedure with worse-case polynomial runtime to find any operators with a constant locality bound - a useful result since many constraints imposed admit local operators to enforce them in practice. We then give algorithmic procedures to turn these algebraic primitives into Hamiltonian drivers and unitary mixers that can be used for Constrained Quantum Annealing (CQA) and Quantum Alternating Operator Ansatz (QAOA) constructions by tackling practical problems related to finding an appropriate set of reduced generators and defining corresponding drivers and mixers accordingly. We apply these concepts to the construction of ansaetze for 1-in-3 SAT instances. We consider the ordinary x-mixer QAOA, a novel QAOA approach based on the maximally disjoint subset, and a QAOA approach based on the disjoint subset as well as higher order constraint satisfaction terms. We empirically benchmark these approaches on instances sized between $ 12 $ and $ 22 $, showing the best relative performance for the tailored ansaetze and that exponential curve fits on the results are consistent with a quadratic speedup by utilizing alternative ansaetze to the X-mixer. We provide general algorithmic prescriptions for finding driver or mixing terms that satisfy embedded constraints that can be utilized to probe quantum speedups for constraints problems with linear, quadratic, or even higher order polynomial constraints.
