Constraint-Preserving Mixers in QAOA
- Constraint-preserving mixers are mixing operators in QAOA that maintain evolution strictly within the feasible subspace defined by hard constraints.
- They encompass designs such as XY-mixers, Grover-style, and logical mixers, offering efficient exploration while reducing search space via exact compilation and shallow circuits.
- These mixers enable techniques like warm-starting and iterative biasing to enhance optimization performance on problems including graph coloring, TSP, and portfolio selection.
Constraint-preserving mixers are mixing operators in QAOA and related alternating-operator constructions that are designed so that quantum evolution remains inside a feasible subspace defined by hard constraints, rather than relying solely on penalty terms in the cost Hamiltonian. In the standard formulation, a level- circuit has the form
and the central design question is how to choose and so that hard constraints are preserved exactly while the feasible subspace remains sufficiently connected for optimization. Across the literature, this program appears as symmetry-preserving -mixers for fixed Hamming weight, Grover-style mixers based on projectors onto feasible superpositions, stabilizer-based logical mixers for arbitrary specified subspaces, graph-controlled permutation mixers for scheduling, and warm-started variants that bias the search without leaving the constrained sector (Wang et al., 2019, Bärtschi et al., 2020, Fuchs et al., 2023, Bucher et al., 2 Apr 2026).
1. Feasible-subspace dynamics in constrained QAOA
The original -mixer,
induces transitions between all computational-basis states and therefore does not preserve hard constraints such as one-hot or fixed-cardinality conditions. In graph coloring with one-hot encoding, for example, each vertex is represented by qubits with
so the feasible subspace is exponentially smaller than the full Hilbert space: for 0 vertices and 1 colors, the full dimension is 2, the feasible dimension is 3, and the ratio is
4
This makes amplitude leakage into infeasible states especially costly (Wang et al., 2019).
In the constraint-preserving formulation, the target is a mixer family that is feasibility preserving and explores the feasible subspace. One explicit definition requires that 5 for every feasible 6, and that for all feasible 7 there exist 8 and 9 such that 0. This is the precise sense in which a mixer is both constraint-preserving and ergodic on the feasible sector (Palackal et al., 2023).
Penalty methods remain a baseline, but they enlarge the search space and complicate the energy landscape. In the multi-constrained setting, one standard QUBO route adds every constraint as a quadratic penalty, converts inequalities with slack variables, and then applies the 1-mixer over the full 2-dimensional space. Later work explicitly contrasts this with workflows that encode one-hot constraints directly into the mixer and initial state, thereby reducing the effective search space to 3 for one-hot groups of sizes 4 (Bucher et al., 3 Jun 2025).
2. Conserved quantities and the central role of 5-mixers
The canonical constraint-preserving mixer for one-hot and fixed-cardinality constraints is the 6-mixer. For a block of 7 qubits, the full 8-mixer is
9
and the ring version is
0
with indices modulo 1. The conserved quantity is the Hamming-weight operator
2
and the key relation is
3
Thus, if the initial state lies in the weight-1 sector, evolution under the 4 mixer stays in that sector exactly (Bucher et al., 3 Jun 2025).
For one-hot graph coloring, this conservation law is often written in terms of the total 5 operator on a vertex register,
6
with feasible states satisfying 7. Because
8
the mixer acts as a continuous-time quantum walk on the color graph while never leaving the Hamming-weight-1 subspace. On that subspace, each 9 term acts essentially as a swap between 0 and 1 (Wang et al., 2019).
The natural unbiased initial state for such dynamics is the generalized W-state,
2
and for multiple one-hot blocks one uses 3. This state lies exactly in the feasible subspace and is an eigenstate of the 4-mixer, making it the analogue of 5 for 6-mixer QAOA (Wang et al., 2019).
The same mechanism extends beyond one-hot to general cardinality constraints. For binary selection with 7, the embedded constraint operator is proportional to total 8-magnetization, and each 9 commutes with it. This makes 0-mixers prototypical constraint-preserving mixers for cardinality-constrained optimization (Kordonowy et al., 23 May 2025).
3. Exact compilation, shallow circuits, and hardware-aware architectures
A major result of the 1-mixer literature is that constraint preservation need not imply prohibitive circuit depth. For the ring mixer on 2 qubits, Jordan–Wigner mapping yields a quadratic fermionic Hamiltonian diagonalizable by a fermionic Fourier transform. This gives an exact implementation of 3 by: applying the fermionic fast Fourier transform, performing single-qubit 4-rotations in momentum space, and applying the inverse transform. Under all-to-all connectivity, the FFFT can be implemented in depth 5; under nearest-neighbor connectivity, Givens rotation networks give depth 6. The implementation is exact and introduces no Trotter error (Wang et al., 2019).
For the complete-graph 7-mixer on a one-hot block, the same work gives an exact decomposition into 8 commuting partitions when 9. Each partition consists of disjoint pairwise 0 interactions induced by bit-flip patterns on the binary labels of the colors, so each layer is constant depth and the total depth is 1 on all-to-all hardware. This avoids the 2 or worse depth that a naïve Trotterization would incur for high precision (Wang et al., 2019).
Later architecture work combines these ideas with other constraint encodings. In a multi-constrained QAOA workflow, one-hot constraints are enforced by ring 3-mixers and 4-state initialization, while inequality constraints are implemented through QPE-based Indicator Functions. For a group of size 5, the initialization depth is
6
and the ring mixer cost per QAOA layer is summarized as
7
Because groups are independent, mixer depth scales with the largest one-hot block size rather than the total number of variables (Bucher et al., 3 Jun 2025).
A separate practical caveat arises under Trotterized Adiabatic Evolution. For fully connected 8-mixers on a single large constraint block, the number of non-commuting term pairs scales as 9, and Trotter errors can dominate. For multiple disjoint local constraints, by contrast, blockwise 0-mixers commute across blocks and the dominant Trotter error depends on the size of each block rather than total problem size. This identifies constraint locality as the main hardware-level criterion for when 1-mixers remain advantageous (Awasthi et al., 4 May 2026).
4. Beyond 2: Grover, logical, permutation, and algebraic mixer constructions
Grover-type mixers provide a different route. If one can efficiently prepare
3
then GM-QAOA uses the projector mixer
4
This mixer is automatically constraint-preserving because it acts only through the feasible superposition, and it can be implemented exactly as
5
The trade-off is that complexity shifts from Hamiltonian design to state preparation and a global multi-controlled phase-shift gate (Bärtschi et al., 2020).
Locally acting Grover mixers reduce that overhead when the initial state factorizes over disjoint subsystems. If
6
the mixer can be replaced by
7
On a 7-qubit exact-cover instance, the mixer CNOT count drops from 218 for global GM-QAOA to 28 for the local construction. On a 9-qubit TSP instance, the corresponding counts are 572 and 54, while convergence behavior remains comparable (Choi et al., 10 Jun 2026).
LX-mixers generalize the well-known 8 and 9 mixers and relax the Grover mixer by using the stabilizer formalism. For a pair of feasible basis states 0, the primitive mixer
1
can be written as a logical 2 times a stabilizer projector,
3
This gives a systematic recipe: partition the feasible subspace into stabilizer codespaces, apply logical rotational 4 gates within them, and choose a connected union graph over feasible states. Numerical examples show dramatic CX reductions relative to previous constructions (Fuchs et al., 2023).
A separate line of work gives a fully general algebraic formulation. Classical constraints are embedded as observables 5, and one seeks Hamiltonians or unitary primitives that commute with all 6. In the general case, finding such operators is NP-Complete, whereas the locality-bounded variant is in P for constant locality 7 because all 8-local candidates can be enumerated and checked in worst-case polynomial time (Leipold et al., 2024). Graph-controlled permutation mixers for scheduling instantiate the same principle in a different language: constraints are encoded by a conflict graph, and graph-controlled permutation unitaries are proven to be both feasibility preserving and capable of exploring the feasible subspace (Palackal et al., 2023).
5. Warm-starting, trainability, and iterative biasing
Warm-starting introduces bias toward promising regions of the feasible subspace, but it creates a structural problem if the initial state ceases to be the ground state of the mixer. For one-hot constraints, a biased W-state
9
is generally not an eigenstate of the standard 0-mixer unless all 1. A recent construction resolves this by defining
2
and proving that 3 is the unique ground state of 4 in the Hamming-weight-1 sector. The construction extends to arbitrary connected topologies 5, preserves Hamming weight, and admits a shallow decomposition in terms of standard 6 gates and single-qubit 7-rotations (Bucher et al., 2 Apr 2026).
This enables Iterative Warm-Starting (IWS), where the QAOA angles are optimized once for an initial uniform distribution and then a classical update rule repeatedly modifies the probabilities 8 of each one-hot block based on previous samples. The mixer Hamiltonian is updated accordingly, so the current biased W-state remains the mixer ground state at every iteration. On Max-9-Cut and TSP instances, IWS-QAOA increases the probability of sampling optimal solutions by orders of magnitude compared to standard XY-QAOA, and hardware experiments on ibm_boston with 144-qubit one-hot instances successfully identify optimal solutions after greedy post-processing repairs infeasible measurements caused by noise (Bucher et al., 2 Apr 2026).
A related trainability analysis studies the dynamical Lie algebras generated by different 00-mixer topologies. A ring 01-mixer with arbitrary 02 gates yields a DLA of size 03, whereas all-to-all 04-mixers or the addition of 05 gates produce exponentially large DLAs. This motivates a warm-start strategy in which optimization begins in a polynomial-sized DLA and then lifts into the exponentially expressive one. Numerical results on Portfolio Optimization, Sparsest 06-Subgraph, and Graph Partitioning show improved convergence and higher-quality optima for both shared-angle and multi-angle QAOA (Kordonowy et al., 23 May 2025).
Warm-starting can also be combined with constraint-preserving 07-evolution without redefining the mixer. For 5-city TSP instances, a MaxCut-based warm-start is projected into the one-hot subspace to create a biased product state compatible with an 08-mixer. The combined warm-started 09 method reaches a mean of 10 true optimal tours at 11, substantially outperforming both a pure 12-mixer with W-state initialization and a warm-start-only variant (Carmo et al., 28 Apr 2025).
6. Empirical regimes, trade-offs, and open problems
The strongest empirical case for constraint-preserving mixers comes from problems where the feasible subspace is naturally one-hot or block-cardinality constrained. On graph coloring, level-1 QAOA with an 13-mixer and optimized penalties gives approximation ratio 14 on 3-coloring a triangle, whereas an 15 ring mixer with W-state initial state reaches values near 16. For 2-coloring a triangle, the optimized 17-mixer reaches 18, while the 19-mixer reaches 20 at level 1. On the Prism graph, the simultaneous ring 21-mixer and W-state initial state give average approximation ratio 22 at 23, and by 24 the probability of sampling an optimal coloring exceeds 0.6 (Wang et al., 2019).
For multi-constrained industrial-style problems, the best results come from hybrid architectures. On Prosumer Problem instances, IF+XY achieves RAAR 25 across all instances at 26, retains the highest 27 among the tested methods, and has the smallest TTS28. Compared to QUBO on the smaller instances where QUBO is simulable, the average speedup factor is reported as
29
This suggests that search-space restriction can outweigh per-layer circuit complexity when evaluated through time-to-solution rather than raw depth (Bucher et al., 3 Jun 2025).
A common misconception is that 30-mixers are uniformly preferable to penalty methods. The Trotterized adiabatic study rejects that blanket statement. For a single global equality constraint spanning all variables, Trotter errors significantly impair 31-mixer performance, and standard 32-mixers can be more robust. For multiple disjoint local blocks, however, 33-mixers outperform 34-mixers by several orders of magnitude even under Trotterized evolution. This suggests that the relevant discriminator is not merely “constraint-preserving versus penalties,” but the locality structure of the constraint decomposition (Awasthi et al., 4 May 2026).
Practical applications also reveal an objective-design trade-off. In a direct-indexing-style portfolio selection experiment with Dicke-state initialization, an 35-mixer, and a Trotterized parameter schedule, the QAOA approach achieves a Sharpe Ratio of 36, compared to 37 for Simulated Annealing and 38 for HRP. At the same time, the reported turnover is 39, which indicates that constraint-preserving optimization can improve the discrete selection stage while still requiring explicit transaction-cost or turnover regularization if implementation frictions matter (Mancilla et al., 16 Feb 2026).
Open problems remain stable across the literature. Scaling beyond the small-instance regime is unresolved for several constructions; the effect of noise on elaborate mixers and on nontrivial state preparation remains incompletely characterized; overlapping constraint families such as TSP’s two-way one-hot structure still require specialized higher-order mixers or a mixer-plus-penalty split; and general-purpose synthesis of low-depth, high-connectivity mixers for arbitrary feasible subspaces remains computationally hard in the worst case (Wang et al., 2019, Leipold et al., 2024, Awasthi et al., 4 May 2026). A plausible implication is that future progress will continue to combine three ingredients rather than relying on any single primitive: conserved-quantity mixer design, problem-structured compilation, and warm-start or oracle mechanisms that reduce effective search without destroying alignment inside the feasible sector.