The code. Let be the binary matrix whose columns are the 15 non-zero vectors of . The punctured Reed–Muller code has -type stabilizers for in the row space of (four generators of weight 8), -type stabilizers for every even-weight with (ten generators), and logical operators , . Every basis string in has weight 0 or 8 and every basis string in has weight 7 or 15, so acts as the logical .
Input. Fifteen noisy T states of error rate .
Procedure.
- Prepare the encoded state with stabilizer operations.
- Apply to each of the 15 qubits by state injection, consuming one input state per qubit. With ideal inputs the block is now in ; an input with a error leaves a error on its qubit.
- Measure the four -type stabilizer generators. If any outcome is , discard the block and start again.
- Decode the block onto a single qubit with a Clifford circuit and apply , which maps to .
Output. One T state with error rate , produced with probability ; see the output-error record for the exact expressions and their derivation.
Why it works. Only errors occur. A pattern of errors passes the checks exactly when it is a codeword of the Hamming code, and it harms the output exactly when that codeword has odd weight. The lightest such patterns have weight 3, and there are 35 of them.
Equivalent form. Bravyi and Kitaev describe the protocol as measuring the stabilizers of the code directly on the fifteen input states and decoding. The encode-then-inject form above is the one used by Bravyi and Haah for general codes with a transversal and gives the same output error.
Cost. Fifteen inputs per attempt and, for small , close to fifteen per output. Repeating the protocol on its own outputs for rounds cubes the error each time and uses inputs per output; the resulting scaling is the distillation overhead exponent with .