| name | penalty-free-quantum-optimization |
| description | Penalty-free quantum optimization methodology — replacing quadratic penalty terms in QAOA/quantum annealing with conflict graph reformulation and independent set mixers. Maps constrained combinatorial problems to maximum independent set (MIS) on conflict graphs, using MIS-specific mixer Hamiltonians that preserve feasibility throughout the quantum evolution. Eliminates penalty parameter tuning entirely. Applicable to protein folding, scheduling, graph coloring, and any problem with hard structural constraints. |
Penalty-Free Quantum Optimization
Methodology from arXiv:2606.02104
Title: Penalty-free quantum optimization applied to lattice protein folding
arXiv: 2606.02104 (June 2026)
Authors: Leif Gellersen, Anders Irbäck, Lucas Knuthson, Stefan Prestel
Core Pattern
Problem
Standard QAOA and quantum annealing for constrained optimization require quadratic penalty terms to enforce validity constraints (e.g., "each amino acid occupies exactly one lattice site"). This introduces:
- Penalty parameter tuning — too weak → invalid solutions dominate; too strong → energy landscape flattens, quantum advantage degrades
- Qubit overhead — penalty terms increase circuit depth and Hamiltonian complexity
- Annealing schedule sensitivity — penalty strength must be balanced with problem Hamiltonian
Solution: Conflict Graph + Independent Set Mixer
Step 1: Build the conflict graph
Each possible assignment (variable-value pair) becomes a node. An edge connects two nodes if those assignments are mutually incompatible (conflict).
Step 2: Formulate as Maximum Independent Set (MIS)
A valid assignment corresponds to an independent set in the conflict graph — a set of nodes with no edges between them. The optimization objective becomes:
Maximize: Σ_{v ∈ S} w(v) (sum of weights for selected nodes)
Subject to: S is an independent set
Where weights w(v) encode the problem-specific objective (e.g., protein energy).
Step 3: Use the MIS mixer Hamiltonian
Instead of the standard transverse field mixer H_M = Σ X_i, use the MIS-preserving mixer:
H_M = Σ_{v ∈ V} (|0⟩⟨1|_v · Π_{u ∈ N(v)} |0⟩⟨0|_u + h.c.)
This mixer only transitions between valid independent sets — it flips a node's state only if none of its neighbors are currently selected. This guarantees feasibility is preserved throughout the quantum evolution.
Step 4: Pure objective Hamiltonian
The problem Hamiltonian contains only the objective function — no penalty terms:
H_P = -Σ_{v ∈ V} w(v) · |1⟩⟨1|_v
QAOA Circuit Structure
|ψ₀⟩ = |valid independent set⟩ (e.g., all zeros = empty set)
For p rounds:
exp(-i·γ_k · H_P) # Phase separator: encodes objective
exp(-i·β_k · H_M) # MIS mixer: preserves feasibility
Iterative Local Search for Large Instances
For problems too large for full graph encoding:
- Start with current best solution S
- Select a local subgraph (subset of conflict nodes near S's boundary)
- Run QAOA on the subgraph (with MIS mixer) to find improvements
- Update S, repeat until convergence
This approach successfully folded lattice proteins up to length 72 using subgraphs with at most 26 qubits.
Key Benefits
| Metric | Standard QAOA (with penalties) | Penalty-Free (MIS) |
|---|
| Penalty tuning | Required (sensitive) | Not needed |
| Feasibility | Not guaranteed | Guaranteed throughout |
| Hamiltonian terms | O(n²) penalty terms | Pure objective O(n) |
| Energy landscape | Distorted by penalties | Natural objective |
| Solution quality | Degrades with penalty imbalance | Consistent |
Applicable Problem Classes
This pattern applies to any constrained combinatorial optimization problem where:
- Variables have mutual exclusion constraints (at most one of a set can be true)
- Constraints can be represented as a conflict graph
- Valid solutions correspond to independent sets
Examples:
- Protein folding — lattice models, side-chain placement
- Graph coloring — assign colors with adjacent vertex conflicts
- Scheduling — resource allocation with time-slot conflicts
- Job shop scheduling — machine assignment with precedence constraints
- Circuit routing — wire placement with non-overlap constraints
- Set packing — select non-overlapping subsets
- Feature selection — select features with mutual exclusion
Implementation Guidelines
1. Conflict Graph Construction
import networkx as nx
def build_conflict_graph(variables, constraints):
"""Build conflict graph from variables and mutual exclusion constraints."""
G = nx.Graph()
for var, values in variables.items():
for val in values:
G.add_node(f"{var}={val}")
for var, values in variables.items():
for v1 in values:
for v2 in values:
if v1 != v2:
G.add_edge(f"{var}={v1}", f"{var}={v2}")
for c in constraints:
G.add_edge(c.node_a, c.node_b)
return G
2. MIS Mixer Implementation (Qiskit)
from qiskit import QuantumCircuit
from qiskit.circuit.library import MCXGate
def mis_mixer_circuit(graph, beta):
"""Build MIS-preserving mixer circuit."""
n = len(graph.nodes)
node_list = list(graph.nodes)
qc = QuantumCircuit(n)
for i, node in enumerate(node_list):
neighbors = [node_list.index(ngbr) for ngbr in graph.neighbors(node)]
if not neighbors:
qc.rx(2 * beta, i)
else:
ctrl_qubits = neighbors
qc.mcp(2*beta, ctrl_qubits, i)
return qc
3. Penalty-Free QAOA Loop
from scipy.optimize import minimize
def penalty_free_qaoa(graph, weights, p=3):
"""Run penalty-free QAOA with MIS mixer."""
n = len(graph.nodes)
def cost_function(params):
gammas = params[:p]
betas = params[p:]
state = simulate_qaoa(graph, gammas, betas, weights)
return -expected_energy(state, weights)
result = minimize(cost_function, x0=[0.1]*(2*p), method='COBYLA')
return result
4. Heuristic Subgraph Selection
def select_subgraph(conflict_graph, current_solution, max_qubits=30):
"""Select local subgraph near solution boundary for iterative improvement."""
boundary_nodes = set()
for node in current_solution:
boundary_nodes.update(conflict_graph.neighbors(node))
while len(boundary_nodes) < max_qubits:
candidates = set()
for node in boundary_nodes:
candidates.update(conflict_graph.neighbors(node))
candidates -= boundary_nodes
if not candidates:
break
boundary_nodes.add(candidates.pop())
return conflict_graph.subgraph(boundary_nodes)
Mathematical Foundation
Why This Works
The MIS mixer preserves the independent set subspace — the space of all valid configurations. Standard QAOA explores the full 2^n Hilbert space, spending amplitude on invalid states. The MIS mixer restricts exploration to the valid subspace, concentrating quantum resources on meaningful optimization.
Connection to Adiabatic Theorem
Under slow evolution, the adiabatic theorem guarantees convergence to the ground state within the invariant subspace. The MIS mixer ensures the gap is only computed within the valid subspace, avoiding the energy penalty distortion that occurs with penalty-based approaches.
Pitfalls & Best Practices
- Conflict graph size: The graph can grow large — use iterative local search for instances beyond ~30 qubits
- Mixer circuit depth: MIS mixer requires multi-controlled gates — depth scales with maximum node degree
- Initial state: Start from a valid independent set (empty set is always valid)
- p-depth: Increase QAOA depth
p gradually; start with p=1 for landscape exploration
- Subgraph overlap: When using iterative search, ensure sufficient overlap between subgraphs for convergence
Activation Keywords
- penalty-free optimization
- conflict graph
- independent set mixer
- QAOA without penalties
- constrained quantum optimization
- MIS QAOA
- quantum optimization pattern
References
- arXiv:2606.02104 — Penalty-free quantum optimization applied to lattice protein folding
- arXiv:2605.30252 — Quantum optimization beyond QUBO (HUBO formulations)
- arXiv:2606.00541 — NISQ-Aware Hybrid Quantum-Classical Framework for Combinatorial Optimization
- Farhi et al. (2014) — A Quantum Approximate Optimization Algorithm
- Hadfield et al. (2019) — From the Quantum Approximate Optimization Algorithm to a Quantum Alternating Operator Ansatz