QuantumControl-Lab: quantum control lab - exact propagators, Rabi chevron, GRAPE pulses. Sim only!!!
111
Quantum Control & Pulse Engineering Lab — by Darion Kellar
Educational quantum control lab in ONE pure-Python file: exact piecewise-constant propagators of a driven qubit (H = (Delta/2) sigma_z + (Omega/2)(cos phi sigma_x + sin phi sigma_y), closed-form rotations, no Trotter error), a Rabi chevron whose frequencies are found by the lab's own peak search and matched against sqrt(Omega^2 + Delta^2) (1.4142 at Delta = 1), pulse-area calibration by golden-section search (t_pi = 3.141593, found not quoted), the classic errors priced exactly (+5% amplitude mis-set -> inversion error 0.006156; square pi-pulse on the Delta = 0.3 plant -> fidelity 0.9130), a GRAPE-lite shaped pulse (16 segments, amplitudes capped at 1.5, deterministic Adam optimisation over a detuning ensemble) reaching ensemble fidelity 0.999951, detuning and amplitude robustness sweeps, and a from-scratch kNN pulse classifier whose labels come from the lab's own verdict policy.
Pure Python standard library. Zero dependencies. Zero network. Honest scope: every parameter is a LABELLED teaching value in dimensionless units (Omega0 = 1) — no pulse touched hardware, no device was calibrated, and an ideal-model fidelity is a statement about a 2x2 matrix product, never a hardware promise. The robustness story is told whole: the shaped pulse wins the detuning sweep (mean 0.997423 vs 0.881762, worst point 0.992255 vs 0.686313) and pays for it on the amplitude sweep (0.863441 vs 0.975528 at x0.90) — both tables printed. Every hardware / calibration / fault-tolerance / advantage use is a permanent HOLD gate (14 total).
docker pull credkellar/quantumcontrol-lab:latest
docker run --rm credkellar/quantumcontrol-lab:latest
The default command runs the full demo plus the built-in self-checks (CHECKS 56/56).
Run a specific command instead:
docker run --rm credkellar/quantumcontrol-lab:latest python3 main.py checks # CHECKS 56/56
docker run --rm credkellar/quantumcontrol-lab:latest python3 main.py chevron # measured vs analytic Rabi frequencies
docker run --
docker pull credkellar/quantumcontrol-lab:latest