Each notebook is a worked example you can read here or download and run. Every output on these pages was produced by the course’s pinned Deltakit, headless and offline; see Running the notebooks to run them yourself.

#NotebookWhat you doLecture
00Notebook 0: A first memory experimentBuild a distance-3 surface code, compile it to a noisy circuit, sample it with Stim, decode it with PyMatching, and see what a bigger code buys.Lecture 0
02Notebook 2: Stim and detectorsWrite Stim circuits by hand, check the Clifford rules with tableaux, watch detectors fire in a repetition-code memory experiment, read the sampler’s array shapes, draw detector slices, and see what Deltakit’s leakage gates do.Lecture 2
03Notebook 3: Surface-code circuitsDraw the toric, planar and rotated codes, read one round of the syndrome-extraction circuit, count operations and detectors against distance, compare schedules, and measure what a hook-aligned CNOT order costs.Lecture 3
04Notebook 4: Noise and detector error modelsCompare SD6, SI1000 and toy noise at equal p, watch detection events round by round, measure how the detector error model grows with distance, check a decoding graph against sampled data, switch leakage on, and work around the phenomenological-noise trap.Lecture 4
05Notebook 5: DecodingCompute maximum-likelihood and minimum-weight decoding exactly on small surface codes, open PyMatching’s decoding graph, and race a hand-written Union–Find decoder against it on the same samples.Lecture 5
06Notebook 6: Thresholds and ΛPut error bars on failure counts, sweep SI1000 noise to find where the d = 3, 5, 7 curves cross, fit the error per round from several round counts, extract Λ and predict QuOps.Lecture 6
07Notebook 7: Bivariate bicycle codesBuild the [[72,12,6]] and gross codes, see why their circuit-level errors defeat matching, then write min-sum belief propagation with OSD-0 in numpy and decode both codes under code-capacity noise.Lecture 7
08Notebook 8: Logical assemblyCompile a repetition-code program and a surface-code patch with deltakit-compile, watch the IR move down the dialect stack pass by pass, repair the exported circuit’s missing observable, and compare it with Deltakit’s hand-built memory circuit.Lecture 8