QuantumMemory-Lab: quantum memory lab - T1/T2 Kraus channels, Hahn echo, 3-qubit code. Sim only!!!!!
193
Quantum Memory Lab โ by Darion Kellar
Educational quantum memory lab in ONE pure-Python file: single-qubit density matrices built from scratch (2x2 complex arithmetic, no numpy), amplitude damping (T1) and phase damping (T2) applied as exact Kraus channels, a Hahn spin echo that refocuses a labelled quasi-static detuning ensemble (FID coherence 0.000036 at 40 us vs echo 0.9996 at the same total time), a 3-qubit repetition code whose logical error rate p_L = 3p^2 - 2p^3 is enumerated pattern by pattern for both the bit-flip and phase-flip codes (break-even exactly at p = 1/2), a computed memory-lifetime extension (fidelity falls to 0.9 at 11.16 us bare vs 24.85 us coded, x2.23), and a from-scratch kNN memory-health classifier whose labels come from the lab's own health policy.
Pure Python standard library. Zero dependencies. Zero network. Honest scope: every device number is a LABELLED teaching value (T1 = 100 us, T2 = 80 us, detuning spread 0.15 rad/us, error timescale 50 us) โ no qubit was stored, no coherence record was set, and nothing here is hardware, a product, or a benchmark of any real device. The arithmetic is exact for the toy channels; the physics claims stop there. Every hardware / product / network / repeater / breakthrough use is a permanent HOLD gate (14 total).
docker pull credkellar/quantummemory-lab:latest
docker run --rm credkellar/quantummemory-lab:latest
The default command runs the full demo plus the built-in self-checks (CHECKS 71/71).
Run a specific command instead:
docker run --rm credkellar/quantummemory-lab:latest python3 main.py checks # CHECKS 71/71
docker run --rm credkellar/quantummemory-lab:latest python3 main.py store # fidelity vs time tables
docker run --rm credkellar/quantummemory-lab:latest python3 main.py echo # FID vs Hahn echo report
docker run --rm credkellar/quantummemory-lab:latest python3 main.py code # repetition code + lifetime
docker run --rm credkellar/quantummemory-lab:latest python3 main.py benchmark # bare vs echo vs coded table
docker run --rm credkellar/quantummemory-lab:latest python3 main.py classify # kNN health classifier report
docker run --rm credkellar/quantummemory-lab:latest python3 main.py holds # 14 HOLD gates
python:3.12-slimScience ยท Developer tools ยท Machine learning & AI
credkellar/quantummemory-lab:latestdocker pull credkellar/quantummemory-lab:latest