Back to Module 5 notes

Roadmap: Problem 5.1 and Problem 5.2 are hand calculations with the update rules; Problem 5.3 and Problem 5.4 use the fact that a Clifford is fixed by its Pauli images; Problem 5.5 practises signs; Problem 5.6 is conceptual; Problem 5.7 is a coding exercise.

Conventions: qubits numbered from 1 in the math (Stim numbers them from 0), , tableau rows written .

Problem 1

Problem 5.1 (Conjugation with signs).
  1. Compute for (first on qubit 2, then on qubit 3), first with the conjugation tables and then with the bit rules, and check that the two agree.
  2. Compute how conjugates , , . Which axis of the Bloch sphere does rotate about?

Problem 2

Problem 5.2 (Tableau evolution for GHZ and beyond).

Start from .

  1. Apply , , . Write the tableau after each gate and identify the final state.
  2. Continue with and then . Write the final tableau and the three generators with signs.
  3. Verify one of the final generators directly on the state vector, or explain how you would.

Problem 3

Problem 5.3 (Gate identities from tableaus).

Use only Pauli images (no matrices) to show, up to global phase:

  1. .
  2. .
  3. Explain why “up to global phase” is all that the Pauli-image argument can give, and why that is enough for quantum circuits.

Problem 4

Problem 5.4 (Counting single-qubit Cliffords).
  1. Show that no Clifford maps and on two qubits.
  2. List all binary matrices with , where , and identify each with a permutation of .
  3. Using that each permutation can be combined with 4 sign patterns, conclude that the single-qubit Clifford group has 24 elements modulo global phase. Name a gate sequence realizing the cyclic permutation .

Problem 5

Problem 5.5 (Row products with signs).
  1. Using the function of Proposition 5.3, compute the sign of the product and write the result as a signed Pauli string.
  2. Do the same for .
  3. Explain why, in a stabilizer tableau, the total exponent is always even.

Problem 6

Problem 5.6 (What Gottesman-Knill buys and what it does not).
  1. How many bits does a stabilizer tableau of qubits need (with sign bits)? Compare with the number of complex amplitudes of a general state.
  2. Show that for , and explain in one or two sentences why the tableau method cannot absorb this gate.
  3. A friend says: “The surface code is highly entangled, and Stim simulates it with thousands of qubits, so entanglement cannot be what makes quantum computers powerful.” Assess the claim.

Problem 7

Problem 5.7 (Coding: a tableau simulator).

Implement a class Tableau(n) that stores an stabilizer tableau initialised to , with methods h(a), s(a), cnot(c, t) (0-indexed qubits) using the update rules of Module 5, and a method generators() returning strings like "+XX_". Then:

  1. Run the Bell circuit and the GHZ-plus- circuit of Problem 5.2 and print the generators.
  2. For 200 random 4-qubit circuits of 30 gates, compare your generators with stim.Tableau.from_circuit(circuit).z_output(k) for .