Back to Module 7 notes

Conventions follow the notes. Vertices are with . The edge joins to and joins to . The star is on . The plaquette is on . The logicals are , , , .

Overview: Problem 7.1 and Problem 7.4 are computations, Problem 7.2, Problem 7.3 and Problem 7.5 are proofs, and Problem 7.6 is a short numpy/pymatching exercise.

Problem 1

Problem 7.1 (Reading syndromes on the L = 3 torus).

Work on the torus. For each error, list the stars and plaquettes that report .

  1. .
  2. .
  3. .
  4. . What kind of operator is this?
  5. Show that and have the same syndrome, and that .

Problem 2

Problem 7.2 (Independent checks, rectangles, and genus).
  1. Consider the toric code on an torus (rows , columns ). Find , the number of independent checks, and . Argue that .
  2. Let be any cellulation of a connected closed orientable surface of genus , with vertices, edges and faces. Put qubits on edges, X-stars on vertices and Z-plaquettes on faces. Prove that . You may use .
  3. What is for the same construction on a cellulated sphere? Explain in one sentence why this is reasonable.

Problem 3

Problem 7.3 (Homology classes and their shortest representatives).
  1. Show that (the horizontal loop in row ) equals times a product of plaquettes, for every .
  2. Every Z-type logical is equivalent to for some . Explain how to read and off a cycle using the X-logicals.
  3. Show that the minimum weight of a Z-type operator in the class is , while classes and have minimum weight .
  4. A closed path winds once horizontally and three times vertically around the torus. Which logical operator is it, modulo stabilizers?

Problem 4

Problem 7.4 (How degenerate is the toric code?).

Fix and consider only Z-type errors (X errors are symmetric).

  1. How many Z-type operators have zero syndrome? How many of them are stabilizers?
  2. Fix a syndrome that is reachable (for example two flipped stars). How many chains have ? Into how many logical classes do they split, and how many chains are in each class?
  3. Evaluate for . Why does this make “the most likely single error” a poor proxy for “the most likely logical class” at large ?

Problem 5

Problem 7.5 (Anyons and braiding).
  1. Let be the boundary of a set of faces (a contractible closed loop). Show that .
  2. Prepare a code state, then apply on a single edge . This creates two -particles on the faces next to . Let be the boundary of a region containing but not . What is the effect of on this state?
  3. Use part 2 to explain, without matrices, why and must anticommute.

Problem 6

Problem 7.6 (Coding: build the toric code and decode it).

Write a function toric(L) returning (as numpy arrays over ) with the edge indexing and .

  1. Verify and for (write a small rank routine).
  2. For , brute-force the number of weight-3 Z-type logical operators.
  3. (Preview of Module 10.) Use pymatching.Matching(Hx) to decode independent Z errors with probability on each qubit (code-capacity noise). A trial fails if the residual anticommutes with or . Estimate the failure rate for and . What do you observe?