Back to Module 3 notes

Conventions: qubits from the left; syndrome bit is iff the error anticommutes with check . The five-qubit checks are , , , , in that order.

Problem 1

Problem 3.1 (Logical operators of small codes).
  1. For the phase-flip code , how many Pauli strings (mod phase) lie in ? Choose and and find the distance.
  2. The code has . Show that , that and are valid logical operators, and that .
  3. In the code, and have the same syndrome. Can a decoder correct both? What does this say about distance-2 codes?

Problem 2

Problem 3.2 (Decoding the five-qubit code).
  1. Using the syndrome table of the notes, decode the syndromes , and .
  2. Show directly (by counting clashes) that has syndrome .
  3. The error occurs. What does the lookup decoder do, and what is the result?
  4. Why can no lookup decoder for this code correct all two-qubit errors?

Problem 3

Problem 3.3 (The four-qubit code).

Consider .

  1. Show this is a code.
  2. Verify that , , , form two logical qubits: each anticommutes with and commutes with the other three.
  3. Compute the syndromes of all single-qubit errors. Explain why the code detects but cannot correct single-qubit errors.

Problem 4

Problem 3.4 (Syndrome-extraction circuits).
  1. Show that the ancilla circuit of the notes (, controlled- gates, , measure) leaves the joint state .
  2. Show that . Use it to explain why “ancilla , s, , measure” and “ancilla , CNOTs from data to ancilla, measure” both measure .
  3. Draw (in words) a circuit that measures . On the state with a error on qubit 3, what does the ancilla read?

Problem 5

Problem 3.5 (Degeneracy in Shor's code).
  1. Which single-qubit errors have the same syndrome as ? Show they all act identically on the code.
  2. How many weight-2 elements does Shor’s stabilizer group contain? Why does this make the code degenerate in the sense of Definition 3.5?
  3. Shor’s code has 27 single-qubit errors but only 21 distinct single-qubit syndromes, while the five-qubit code has 15 errors and 15 syndromes. Explain why Shor’s code can still correct every single-qubit error.

Problem 6

Problem 3.6 (Bounds).
  1. Show that the code meets both the quantum Hamming and the quantum Singleton bound with equality.
  2. What is the smallest for which a nondegenerate code is allowed by the Hamming bound? What does Singleton say?
  3. For a nondegenerate code with , show that . Evaluate the largest allowed at .

Problem 7

Problem 3.7 (A brute-force distance finder).

Write a function that takes a list of checks (Pauli strings), computes , and finds by searching Pauli strings in order of increasing weight for one that (a) commutes with every check and (b) is not in the stabilizer group. Use binary vectors : and commute iff , and (mod phase) iff appending ‘s vector to the check matrix does not increase its rank over . Run it on the bit-flip, , , five-qubit, Steane and Shor codes.