Back to Module 11 notes

Problem 11.1 and Problem 11.2 work through the cluster decoders by hand. Problem 11.3 is about belief propagation and OSD. Problem 11.4 and Problem 11.5 are threshold arithmetic. Problem 11.6 is a simulation.

Problem 1

Problem 11.1 (Peeling an erasure).

A decoding graph has check nodes and a boundary node . The erased edges are , , , and . The defects are and .

  1. The erasure contains a cycle. Which one? Give two different spanning trees of the erasure.
  2. Run the peeling decoder on each spanning tree, listing each leaf removal. What corrections do you get?
  3. The two corrections differ. Why are both acceptable, assuming the cycle you found is a stabilizer?
  4. Prove that peeling runs in time linear in the number of erased edges.

Problem 2

Problem 11.2 (Union-Find by hand).

Use the distance-9 repetition code of the notes: checks , edges (from the left boundary to ), and (from to the right boundary).

  1. The error is . Find the defects. Run UF growth round by round (which edges are half or fully grown, which clusters fuse or stop), then peel. What is the correction?
  2. Repeat for the error .
  3. In part 1, the cluster around stops for a different reason than the others. What is it, and why is the rule needed?

Problem 3

Problem 11.3 (Why BP needs help).
  1. In the split-belief example of the notes (Z error on two edges of one toric plaquette, defects at diagonal corners), argue by symmetry that, at every iteration of BP, the four plaquette edges have the same marginal.
  2. Show that any bitwise hard decision that treats the four edges identically fails to satisfy the syndrome.
  3. Explain how OSD-0 resolves the tie, and why its output is a weight-2 path rather than something heavier.
  4. In a non-CSS (joint X and Z) Tanner graph, show that an X-type check and a Z-type check that share any qubit must share at least two, and conclude that the graph contains 4-cycles.

Problem 4

Problem 11.4 (Concatenation arithmetic).

Suppose one level of concatenation obeys with , and each level uses the Steane code (7 qubits per block).

  1. What is the threshold?
  2. For , how many levels are needed to reach , and how many physical qubits per logical qubit (ignoring ancillas)?
  3. Repeat for . Comment on how the cost depends on the distance to threshold.

Problem 5

Problem 11.5 (Lambda and projections).

Use the Willow numbers per cycle and , and assume for odd .

  1. Predict and .
  2. Find the smallest odd with and the qubit count . Repeat for .
  3. Repeat part 2 with and , keeping fixed.
  4. A memory experiment reports after rounds. What is the per-round error?

Problem 6

Problem 11.6 (A circuit-level threshold).

Using stim.Circuit.generated("surface_code:rotated_memory_z", ...) with the same for after_clifford_depolarization, before_round_data_depolarization, before_measure_flip_probability and after_reset_flip_probability, and rounds = d:

  1. Estimate the per-shot logical error for and , decoding with PyMatching (sample in chunks to bound memory).
  2. Locate the crossing of each pair of curves. Does it drift?
  3. At , estimate per-round errors for and the two values of . How many shots do you need for to see about 50 failures?