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.

SetLecturesWhat it practises
Homework 1: Stabilizers and Stim1–2Pauli and stabilizer algebra by hand (syndromes, logical operators, distance, CSS codes), then the same objects in Stim.
Homework 2: Surface codes and noise3–4Surface-code layouts and syndrome-extraction circuits, then noise models, detectors and the detector error model of a memory circuit.
Homework 3: Decoding and performance5–6Decoding 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 compilation7–8Constructing 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, step pycheck), in order and in one process, with fixed seeds and PYTHONHASHSEED=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.py for 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.py

To 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.