There are four problem sets, one after every second lecture. Each has four to six problems that mix pen-and-paper work with Deltakit: derive a number, then make the code produce it.
| Set | Lectures | What it practises |
|---|---|---|
| Homework 1: Stabilizers and Stim | 1–2 | Pauli and stabilizer algebra by hand (syndromes, logical operators, distance, CSS codes), then the same objects in Stim. |
| Homework 2: Surface codes and noise | 3–4 | Surface-code layouts and syndrome-extraction circuits, then noise models, detectors and the detector error model of a memory circuit. |
| Homework 3: Decoding and performance | 5–6 | Decoding small syndromes by hand and with a decoder, then turning failure counts into logical error rates, confidence intervals, thresholds and |
| Homework 4: qLDPC codes and compilation | 7–8 | Constructing qLDPC and bivariate bicycle codes and checking their parameters, then compiling small logical programs with deltakit-compile. |
How the solutions work
Each problem is followed by its worked solution, folded shut. Click the Solution bar to open it, after you have tried the problem. A solution gives the reasoning, not only the result; where it uses code, the code is a Python block with its printed output below it.
Two checks keep the answers honest:
- Every Python block in a solution runs in the course’s full build (
make all, steppycheck), in order and in one process, with fixed seeds andPYTHONHASHSEED=0. The build fails unless the output shown on the page is exactly what that run printed. The hash seed matters because Deltakit orders some circuit instructions by hash, so a different seed gives a statistically equal but not identical count. - Every numerical answer is recomputed by the set’s checker script,
research/hwNN_check.pyfor set NN, so a value in a solution never rests on a single run of the page. From the course folder, run it under the course’s memory guard (here for set 1):
research/memguard.sh 4096 600 -- .venv/bin/python -P research/hw01_check.pyTo run a solution’s code yourself, use the Python (qecdk) kernel described in Running the notebooks: it sets the same hash seed, so your numbers match the page exactly. Nothing in the homework uses the network or a Deltakit cloud token.