Playground
Quantum Arcade
26 games, labs, and demos. Nothing here is a canned animation: every bar, dial, and verdict is computed live by the same from scratch statevector and density matrix engine that powers the VQE suite. One card runs an analytic textbook formula instead of a simulation, it says so on the card.
One qubit, no mercy
The fundamentals, every widget drives a real statevector.
Gate Mixer
labapply a gate…
State Match
gameA hidden state is drawn. Steer yours (blue) onto the ghost (dim), fidelity ≥ 99% wins.
Born Casino
gameSet the odds with θ, then call the collapse. Long streaks get exponentially unlikely, that is the Born rule doing its job.
π-Pulse Trainer
gameDrive the qubit with a rotation pulse. A perfect π pulse lands the whole amplitude on |1⟩, this is exactly how real qubits get flipped.
Interference Lab
labSplit one qubit onto two paths (H), twist the phase between them, recombine (H). The output probability swings from certain to impossible, with nothing removed, only phase.
Before you slide: at φ = 180°, P(|0⟩) will be
Measurement Duel
labOne fixed state, two questions. Ask in Z: pure coin flip. Ask in X: dead certain. The state didn't change, your question did.
Bloch Detective
gameBefore and after. Which gate did it?
Entanglement & protocols
Two qubits, one wavefunction, the part with no classical story.
Entanglement Dial
labTurn one knob from “two separate qubits” to “one inseparable pair.” Watch qubit A's purity drop to ½, alone, it becomes a pure coin flip, because the information lives in the pair.
maximally entangled territory
Entangled Dice
demoTwo dice, one wavefunction. Each roll is individually 50/50 random, and they always agree. Randomness and perfect correlation, at the same time.
CHSH. Beat the Classical Bound
gameClassical physics caps |S| at 2. A Bell pair reaches 2√2 ≈ 2.83. Collect rounds and watch your sampled S climb past what any local hidden variable story allows.
Before you run: after 100+ rounds, S will land
Teleportation Walkthrough
demoA message qubit, an entangled pair, and two classical bits, the state moves without any qubit traveling. Step through the actual amplitudes.
Superdense Coding
demoShare a Bell pair in advance, and one qubit can carry two classical bits. Pick the bits; the decoder lands on the matching basis state with certainty.
Phase Kickback
demoCNOT is supposed to change the target. Put the target in |−⟩ and fire: the target shrugs, the control flips from |+⟩ to |−⟩. This backwards kick powers Deutsch, Grover, and phase estimation.
Algorithms, noise & spies
Where quantum computing earns its keep, and fights for its life.
Grover Searchlight
gameEight drawers, one prize. Classically you open ~4. Grover finds it in 2 iterations, and if you keep going past the sweet spot, the amplitude rotates away again. Try over searching.
Before you search: one press past the sweet spot, P(prize) will
Deutsch's One Question Oracle
gameA mystery coin function: constant (same answer always) or balanced (half and half). Classically you must ask twice. The Deutsch circuit asks once, and is never wrong.
Born Rule Randomness
labHardware quantum RNGs sell exactly this: prepare |+⟩, measure, repeat. Sample away, entropy should hug 1 bit/bit.
Decoherence Dial
labThis is the enemy every quantum computer fights. Turn up the noise on a crisp |+⟩ and watch its off diagonal coherence, the part that interferes, bleed away into a classical coin.
Repetition Rescue
gameEncode one bit into three qubits; majority vote fixes any single flip. Below ~50% noise the code beats the bare qubit, the same idea, scaled up, is how Willow class processors reach below threshold error correction.
BB84. Catch Eve
gameAlice sends key bits in random bases; Bob measures in his own. Toggle an eavesdropper: her measurements must disturb the states (no cloning, two cards up), and the error rate betrays her at ~25%.
Tunneling Odds
modelClassically, a ball below the wall's height never crosses. Quantum mechanically the odds are small, but never zero. Thinner or lower walls help exponentially.
The frontier
Where today's research lives, variational optimization and ballistic quantum walks.
QAOA MaxCut
gameCut a 4-node ring into two colors with as many crossing edges as possible (max = 4). QAOA doesn't search, it sculpts a superposition so the good cuts get more amplitude. Find the γ, β sweet spot.
edges: 0, 1, 1, 2, 2, 3, 3, 0 · random guess averages 2.0
Walk Race
labSame coin, same line. The classical walker wanders ~√t from home. The quantum walker interferes with itself and races out ~t, with two peaks and almost nothing in the middle. This ballistic spread is the engine behind quantum search speedups.
The algorithm wing
Three results from the algorithm ledger, run as real amplitudes: one query secrets, the GHZ certainty, and the spectrum Shor reads.
Bernstein-Vazirani
gameThe oracle hides a 5 bit string s and will only answer dot products s·x. Classically you need 5 questions, one per bit. The quantum circuit asks one question in superposition and the interference writes the whole secret into the output register.
every run reads the secret perfectly; that certainty is interference, not luck
The GHZ Game
gameThree players share an entangled triple and cannot communicate. The referee hands out bits r, s, t and the answers must XOR to r OR s OR t. The best any classical team can do is win 3 of 4 cases (75%). The quantum team wins every round.
QFT Period Finder
labShor's algorithm never sees the factors directly. It hides a period r in a register, applies the quantum Fourier transform, and reads the period off the interference peaks, spaced 2ⁿ/r apart. Slide r and watch the spectrum answer.
when r divides 64 the peaks are exact; other r values smear, which is why Shor finishes with continued fractions
Reality check
How far the browser engine scales on your machine, and how the ideal CHSH result compares with a real device's noise model.
Engine Scaling Benchmark
benchThe 2ⁿ wall, measured live: every extra qubit doubles the amplitudes. Grey is the readable teaching engine behind the games; blue is the typed array kernel, same physics, flat memory, in place gates, which is how the browser reaches 20+ qubits.
Simulation vs. device: CHSH
CHSH Bell test on a 2-qubit Bell state, 4 measurement settings. Classical bound 2, Tsirelson bound 2.83.
Simulation using the published error rates of a real 127-qubit device. Not a hardware run.
Not run yet. Set QISKIT_IBM_TOKEN and rerun this script to execute on an IBM Quantum device.
Amber tick = classical bound. Generated 2026-08-22 by scripts/hardware/ibm_noise_model.py (Qiskit Aer + IBM calibration snapshot).