Small interactive puzzles that turn quantum-computing ideas into something you can play with.
QUBO β’ Optimization
Quantum Sudoku
4Γ4
A Sudoku encoded as an energy-minimization problem. Generate a puzzle, then find the ground state of the same reduced QUBO objective used by the quantum solver.
Active variablesβ
Ground-state energyβ
Ready. Generate a puzzle or solve this one.
Browser demo: the QUBO ground state is minimized exactly so this static GitHub Pages site stays fast and dependency-free. The PennyLane/QAOA implementation uses the same objective.
Grover β’ Quantum Search
Grover's Treasure Hunt
4 qubits
A treasure is hidden in one of 16 basis states. Start from an equal superposition, amplify the marked state with Grover iterations, then measure the 4-qubit register.
Bar height shows simulator probability. These amplitudes are not directly observable on real hardware.
Grover iterations0 / 3 optimal
P(treasure)6.25%
Oracle calls0
Classical avg. queries8.5
A new oracle is ready. The treasure is equally likely to be in any of 16 states.
Genuine 4-qubit statevector simulation: each step phase-flips the oracle-marked basis state, then applies inversion about the mean. Measurement is sampled from the resulting |amplitude|Β² distribution.
Quantum Walk β’ Interference
Quantum Maze Runner
7Γ7
Put a classical random walker and a discrete-time quantum walker in the same maze. The classical agent follows one random trajectory; the quantum walk evolves coherent amplitudes over many positions, where paths can reinforce or cancel through interference.
Color a randomly generated map with only three colors so that neighboring regions never match. Or let a 12-qubit QAOA statevector search the graph-coloring QUBO for a zero-energy assignment.
Goal adjacent regions β same colorβ’Palette 3 colorsβ’Quantum QUBO β p=2 QAOA β 2048 shots
Click a region to cycle colors
Procedural map
Colored 0 / 6Conflicting borders 0
Graph edgesβ
Active qubits12
Exact ground energyβ
Best QAOA sampleβ
P(ground state)β
Optimized anglesβ
New map ready. Try coloring it yourself, or run QAOA.
Most frequent quantum measurements
Genuine browser-side QAOA simulation. The graph-coloring cost is emitted as an explicit QUBO with exactly-one penalties per region and same-color penalties per shared border. Two adjacent regions are symmetry-fixed internally, reducing 18 one-hot variables to 12 qubits; the displayed solution comes from the best state actually sampled from the optimized QAOA statevector. Exact enumeration is used only as a reference.