QuantumAnnealer-Lab: quantum annealing sim - Ising, QUBO, MaxCut, TSP, TTS ledger. A classical sim!!
198
Quantum Annealing Optimization Lab β by Darion Kellar
Educational quantum annealing lab in ONE pure-Python file β a classical simulation that teaches annealing honestly. It builds the Ising model E = βΞ£(J s s) β Ξ£(h s) with an exact QUBO β Ising conversion, runs simulated annealing (Metropolis single-spin flips, geometric schedule) plus a cluster-flip move set inspired by tunnelling, and grades everything against brute force: a 12-spin glass (ground β18.0), MaxCut (optimal cut 20 of 26), a 7-city TSP (25.1429), and bin packing at its lower bound. The barrier model contrasts the thermal law exp(βH/T) with the tunnelling law exp(βWΒ·βH) and their crossover T* = βH/W; a freeze-out ledger prices time-to-solution from a measured success probability (short schedule p = 0.75 β TTS β 399 steps).
Pure Python standard library. Zero dependencies. Zero network. Honest scope: NO quantum hardware is run, submitted to, or simulated β the cluster flips are a classical heuristic inspired by tunnelling, no quantum advantage is claimed, and the D-Wave-class hardware table is LABELLED published-class reference values, never measured here. Every real-hardware / live-service / advantage claim is a permanent HOLD gate (14 total).
docker pull credkellar/quantumannealer-lab:latest
docker run --rm credkellar/quantumannealer-lab:latest
The default command runs the full demo plus the built-in self-checks (CHECKS 47/47).
Run a specific command instead:
docker run --rm credkellar/quantumannealer-lab:latest python3 main.py checks # CHECKS 47/47
docker run --rm credkellar/quantumannealer-lab:latest python3 main.py ising # QUBO -> Ising conversion
docker run --rm credkellar/quantumannealer-lab:latest python3 main.py anneal # SA vs cluster vs brute force
docker run --rm credkellar/quantumannealer-lab:latest python3 main.py maxcut # MaxCut, brute-force graded
docker run --rm credkellar/quantumannealer-lab:latest python3 main.py tsp # toy TSP, brute-force graded
docker run --rm credkellar/quantumannealer-lab:latest python3 main.py barrier # thermal vs tunnelling laws
docker run --rm credkellar/quantumannealer-lab:latest python3 main.py tts # freeze-out ledger + TTS
docker run --rm credkellar/quantumannealer-lab:latest python3 main.py holds # 14 HOLD gates
python:3.12-slimScience Β· Developer tools Β· Machine learning & AI
credkellar/quantumannealer-lab:latestdocker pull credkellar/quantumannealer-lab:latest