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 struc...
Scanned 9/11/2026
Install to Claude Code
npx -y skills add hiyenwong/ai_collection --skill penalty-free-quantum-optimization --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Penalty Free Quantum Optimization?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hiyenwong-penalty-free-quantum-optimization)More formats (shields.io, HTML) on the badges page.
---
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](https://arxiv.org/abs/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:
1. **Penalty parameter tuning** — too weak → invalid solutions dominate; too strong → energy landscape flattens, quantum advantage degrades
2. **Qubit overhead** — penalty terms increase circuit depth and Hamiltonian complexity
3. **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).
```python
# Example: lattice protein folding
# Node (i, pos) = "amino acid i is at lattice position pos"
# Edge between (i, pos1) and (i, pos2) for pos1 ≠ pos2 (each amino acid has one position)
# Edge between (i, pos) and (j, pos) for i ≠ j (each position holds one amino acid)
# Edge between (i, pos) and (j, pos') if |pos - pos'| > 1 and i,j are consecutive (chain connectivity)
```
**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:
1. Start with current best solution S
2. Select a **local subgraph** (subset of conflict nodes near S's boundary)
3. Run QAOA on the subgraph (with MIS mixer) to find improvements
4. 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:
1. Variables have **mutual exclusion constraints** (at most one of a set can be true)
2. Constraints can be represented as a **conflict graph**
3. 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
```python
import networkx as nx
def build_conflict_graph(variables, constraints):
"""Build conflict graph from variables and mutual exclusion constraints."""
G = nx.Graph()
# Add nodes for each variable-value pair
for var, values in variables.items():
for val in values:
G.add_node(f"{var}={val}")
# Add edges for mutual exclusion
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}")
# Add problem-specific constraints
for c in constraints:
G.add_edge(c.node_a, c.node_b)
return G
```
### 2. MIS Mixer Implementation (Qiskit)
```python
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):
# Get neighbors of node i
neighbors = [node_list.index(ngbr) for ngbr in graph.neighbors(node)]
if not neighbors:
# No constraints — use simple X rotation
qc.rx(2 * beta, i)
else:
# Multi-controlled X: only flip if all neighbors are 0
# Requires ancilla for multi-control
ctrl_qubits = neighbors
qc.mcp(2*beta, ctrl_qubits, i) # Phase rotation conditioned on neighbors
return qc
```
### 3. Penalty-Free QAOA Loop
```python
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:]
# Simulate QAOA circuit (use qiskit or custom simulator)
# |ψ⟩ = U_M(β_p) U_P(γ_p) ... U_M(β_1) U_P(γ_1) |0⟩^n
# U_P(γ) = exp(-i·γ·H_P) — diagonal in computational basis
# U_M(β) = MIS mixer — preserves independent set structure
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
```python
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))
# Add some context nodes for better mixing
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
1. **Conflict graph size**: The graph can grow large — use iterative local search for instances beyond ~30 qubits
2. **Mixer circuit depth**: MIS mixer requires multi-controlled gates — depth scales with maximum node degree
3. **Initial state**: Start from a valid independent set (empty set is always valid)
4. **p-depth**: Increase QAOA depth `p` gradually; start with `p=1` for landscape exploration
5. **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
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!