Back to Module 4 notes

Roadmap: Problem 4.1 and Problem 4.2 practise the binary dictionary; Problem 4.3 applies it to a non-CSS code; Problem 4.4, Problem 4.5 and Problem 4.6 are about CSS codes; Problem 4.7 is a short coding exercise.

Conventions: qubits are numbered from 1, binary vectors are with the block first, , and .

Problem 1

Problem 4.1 (Bits, phases, and commutation).

Consider the four-qubit Paulis

  1. Write each as a binary vector .
  2. Compute the matrix . Which pairs anticommute?
  3. Compute the product including its phase, and check that its binary vector is the sum of those of and .
  4. Write in the form , i.e. find .

Problem 2

Problem 4.2 (The symplectic form).

Prove the following for on .

  1. It is alternating: for every .
  2. It is non-degenerate: if for all , then .
  3. If is a subspace of dimension , then has dimension .
  4. Conclude that an isotropic subspace () has dimension at most , so a stabilizer group on qubits has at most independent generators.

Problem 3

Problem 4.3 (The five-qubit code in binary).

Use the generators , , , .

  1. Verify and by explicit bit arithmetic.
  2. Using the rule “column of is , column of is ”, write down , , and .
  3. Explain, using only counting, why a code is the smallest possible non-degenerate code that corrects every single-qubit error, given that it has to have distinct nonzero syndromes for all single-qubit errors.
  4. Show that and commute with every and anticommute with each other. Why does that make them a valid choice of ?

Problem 4

Problem 4.4 (Logical operators of a small CSS code).

Let , the code with checks and .

  1. Compute and the sizes of and .
  2. Find two -type logicals and two -type logicals such that anticommutes with iff .
  3. Show the distance is 2 and give one weight-1 error the code detects but cannot correct.
  4. Generalize: for even , gives . Why must be even?

Problem 5

Problem 4.5 (Quantum Hamming codes).

For let be the matrix whose columns are all nonzero -bit strings, and set .

  1. Show that every row of has weight and any two distinct rows overlap in positions. Conclude .
  2. Show . For , write the parameters.
  3. Show . (Hint: lower bound from the classical Hamming code; upper bound from an explicit weight-3 logical.)

Problem 6

Problem 4.6 (Why CSS decoding splits).

Let be a Pauli error with binary vector acting on a CSS code with matrices () and ().

  1. Show that the syndrome is .
  2. Show that if is any solution of and any solution of , then applying the correction returns the state to the codespace, and the correction succeeds iff and .
  3. Give an example on the Steane code of an error with a in it where treating the two halves independently is still optimal, and say briefly why independence can be suboptimal under depolarizing noise.

Problem 7

Problem 4.7 (Coding: a CSS parameter calculator).

Write a Python function css_params(HX, HZ) that, for small codes, returns together with and , by

  • computing ranks over by Gaussian elimination,
  • enumerating and to find , and likewise .

First assert . Test it on: the Steane code, the code, the Shor code of Module 4, and the quantum Hamming code of Problem 4.5. Which of these codes has a classical code of distance smaller than the quantum ?