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.
| # | Notebook | What you do | Lecture |
|---|---|---|---|
| 00 | Notebook 0: A first memory experiment | Build 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 |
| 02 | Notebook 2: Stim and detectors | Write 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 |
| 03 | Notebook 3: Surface-code circuits | Draw 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 |
| 04 | Notebook 4: Noise and detector error models | Compare 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 |
| 05 | Notebook 5: Decoding | Compute 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 |
| 06 | Notebook 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 |
| 07 | Notebook 7: Bivariate bicycle codes | Build 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 |
| 08 | Notebook 8: Logical assembly | Compile 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 |