Back to Module 12 notes

Problem 12.1 and Problem 12.2 treat the hypergraph product in general and for repetition codes. Problem 12.3 computes a constant-rate example. Problem 12.4 covers bivariate bicycle codes, Problem 12.5 compares figures of merit, and Problem 12.6 is a decoding experiment. Use the conventions of the notes: and .

Problem 1

Problem 12.1 (Why the product commutes).
  1. Check that the blocks of and have compatible sizes, and that both have columns.
  2. Prove over using .
  3. What is the weight of an X-check row in terms of the row weights of and the column weights of ? Give the analogous answer for a qubit’s degree.

Problem 2

Problem 12.2 (Surface codes as products).
  1. Let be the cyclic repetition check. Compute , , and . Use the parameter theorem to get the parameters of , and show every check has weight 4.
  2. has rows but rank . Find the dependency.
  3. Now let be the open repetition check. Compute , and the check weights of , and identify the code for .
  4. Explain in one or two sentences why the hypergraph product can never have distance larger than about when is a good classical code.

Problem 3

Problem 12.3 (The Hamming product).

Let be the Hamming check of the Module 12 notes (Example 12.2), with column weights . It is the Module 4 matrix with columns permuted into systematic form; use the Module 12 version so your qubit numbering matches.

  1. Compute , and the shapes of and for .
  2. Find the possible check weights and qubit degrees. Do they stay bounded if we replace by a larger Hamming code?
  3. Compute the rate and with , and compare with storing the same 16 logical qubits at distance 3 in rotated surface patches.
  4. (Coding) Build the matrices in numpy and verify and .

Problem 4

Problem 12.4 (Bivariate bicycle codes).

Let and , where is the cyclic shift, and let be sums of powers of and .

  1. Show , and hence .
  2. Prove for and .
  3. Show , and argue that given that .
  4. (Coding) For , , , compute , and . Repeat for , (the gross code). Check that each row has weight 6.

Problem 5

Problem 12.5 (Beating the surface code, and the price).
  1. Compute for the toric code at , the rotated surface code at , the Hamming product, , the gross code and .
  2. State the Bravyi-Poulin-Terhal bound and explain what it says about the last three codes.
  3. A rotated surface patch at odd distance uses physical qubits, counting ancillas. How many physical qubits do 12 logical qubits at distance at least 12 need? Compare with the 288 of the gross code.

Problem 6

Problem 12.6 (Decoding a BB code).

Using the ldpc package, simulate independent X errors with probability on , decoding from .

  1. Implement the failure test: given the error and the correction , decide whether is a logical operator. You need a basis of the 12 Z-logicals.
  2. Compare BpDecoder and BpOsdDecoder (product-sum, 100 iterations, OSD-CS order 7) at .
  3. Explain why BP+OSD always produces an output with the right syndrome, and why that alone does not mean the decoding is correct.