QuantumWalk-Lab: quantum walks lab - Hadamard + continuous walks, ballistic vs diffusive. Sim only!!
148
Quantum Walk Lab (discrete + continuous) β by Darion Kellar
Educational quantum-walk lab in ONE pure-Python file: the classical random walk computed exactly (binomial probabilities, variance exactly t, fitted width exponent 0.5000), a discrete-time Hadamard walk evolved as an exact statevector over position Γ coin (sigma 54.1241 at 100 steps, 5.41x the classical width, fitted exponent 0.9989, rate matching sqrt(1 - 1/sqrt(2))), a biased-coin run that steers 74.68% of the mass left, continuous-time walks on a cycle (DFT spectrum; perfect transfer on C4 at pi/2, revivals at pi and 2pi) and on a line (from-scratch Jacobi eigensolver; sigma = sqrt(2) t), a complete-graph quantum-walk search whose peak time is fitted to grow like sqrt(n) (exponent 0.5000, cross-checked against the full Hamiltonian), and a from-scratch kNN regime classifier whose labels come from the lab's own measured exponents.
Pure Python standard library. Zero dependencies. Zero network. Honest scope: every probability is exact amplitude arithmetic on a laptop - nothing is sampled and no quantum hardware is touched. The search comparison uses labelled toy units (1 unit of walk time = 1 oracle query) printed on the table itself; the fitted exponent is the lesson, not an advantage claim. Every advantage / hardware / supremacy / crypto / production / benchmark use is a permanent HOLD gate (14 total).
docker pull credkellar/quantumwalk-lab:latest
docker run --rm credkellar/quantumwalk-lab:latest
The default command runs the full demo plus the built-in self-checks (CHECKS 50/50).
Run a specific command instead:
docker run --rm credkellar/quantumwalk-lab:latest python3 main.py checks # CHECKS 50/50
docker run --rm credkellar/quantumwalk-lab:latest python3 main.py classical # exact binomial walk + exponent
docker run --rm credkellar/quantumwalk-lab:latest python3 main.py discrete # Hadamard walk, symmetric + biased
docker run --rm credkellar/quantumwalk-lab:latest python3 main.py continuous # CTQW cycle + line reports
docker run --rm credkellar/quantumwalk-lab:latest python3 main.py search # search peaks + sqrt(n) fit
docker run --rm credkellar/quantumwalk-lab:latest python3 main.py classify # kNN regime classifier report
docker run --rm credkellar/quantumwalk-lab:latest python3 main.py holds # 14 HOLD gates
python:3.12-slimScience Β· Developer tools Β· Machine learning & AI
credkellar/quantumwalk-lab:latestdocker pull credkellar/quantumwalk-lab:latest