Step 7 of 8
Lesson 4: Teleporting the T state
Quantum Error Correction in Practice, part 2: Computing with logical qubits
Patch A holds |T⟩L (lesson 3), B and C become a logical Bell pair (lesson 2), then a logical CNOT A to B and the readouts of A in X and B in Z teleport the T state to C, up to a Pauli fix applied to the measured bits.
Patches and gate layers
X check Z check fired undetermined gate XL, ZL = +1
What this lesson shows
Patch A holds |T⟩L, prepared as in lesson 3. Patches B and C become a logical Bell pair through the logical CNOT of lesson 2. A logical CNOT from A to B then ties the T state to the pair. A is read in X and B in Z, and those two bits say which Pauli fix C needs. C is read in X as well, to check that it now holds the T state. The ideal logical circuit on the page draws the same protocol, with X to the power M2 and Z to the power M1 applied to C.
Things to try
- Click the two transversal CNOT blocks in the strip, B to C and then A to B, to see nine gates between matching qubits in each.
- Stop just after the CNOT from A to B: the state panel lists all three patches as entangled with the other patches.
- The Simulated results table reports C read in X and in Y after the Pauli fix, from a noisy simulation in Qiskit Aer, next to the ideal 14.6%.
The ideal logical circuit
Run it live
Step by step
- prepare A. H on q0 of A, as in lesson 3.
- prepare A. T on q0 of A: the T state.
- encode A. Encode A: |T⟩L.
- prepare B. H on q0 of B, as in lesson 2.
- encode B. Encode B: |+⟩L.
- encode C. Encode C: |0⟩L.
- transversal CNOT B→C. The logical CNOT from lesson 2, B → C: B and C become a Bell pair.
- transversal CNOT A→B. Logical CNOT A → B ties the T state on A to the Bell pair.
- H on A. H on all nine qubits of A swaps X and Z: the checks swap type, and all eight still hold. A is read in X.
- H on C. H on all nine qubits of C swaps X and Z: the checks swap type, and all eight still hold. C is read in X, to check that it now holds the T state.
- measure. Every qubit is measured in Z. Only the checks that are Z parities can still be read. The X bit of A and the Z bit of B say which Pauli fix C needs.
Results
How to read this table
Every shot ends with all data qubits measured, and the checks are worked out from those bits. Clean shots only gives the rate over the shots in which no check fired. Corrected by the code is the share of shots in which checks fired and a table of single errors named a qubit to flip back; After correction is the rate over all kept shots once that flip is made. Discarded by the checks is the share of shots whose fired checks are not in the table at all: those shots are dropped. No correction reads the raw bits of every shot. Bare qubits runs the same logical circuit with one unprotected qubit in place of each patch: no encoder and no checks. Each rate comes with one binomial standard error.
C read in Y has no checks of its own, but A and B are still corrected, and their bits set the Pauli fix, so the Y row has correction columns too.
Why the code loses here: the noise in this simulation acts only on gates, as the line under the table says. Teleportation runs three encoders and two transversal CNOTs, against a handful of gates for the bare qubits. In the Y row, After correction (25.9%) and No correction (25.2%) differ by less than one standard error: with an encoder that one fault can defeat, the table's corrections do not reliably help. The encoder is not fault tolerant: in the course's own stabilizer simulator, 44 of the 180 ways a single CNOT of the lesson 1 encoder can fail (each of its 12 CNOTs followed by one of the 15 two-qubit Pauli errors) end in a wrong logical readout after the table's correction.
Cite this lesson T. Pandey, "Lesson 4: Teleporting the T state", Quantum Error Correction in Practice (2026), https://pandey-tushar.com/qec-in-practice/lesson-4.html