Steane code (source code)

= Steane code
{c}
{wiki}

The Steane code is a $[[7,1,3]]$ <CSS code>: seven physical <qubits> encode one <logical qubit>, and the <distance of a stabilizer code> is three. It can correct an arbitrary error on one physical qubit when the ideal syndrome measurements and recovery are implemented correctly.

One choice of binary check rows is $1111000$, $1100110$ and $1010101$. For each row, put <Pauli matrices> $X$ on its four marked positions to obtain an X-type generator, and use $Z$ on the same positions for a Z-type generator. Any two rows overlap in an even number of positions, so all six <stabilizer generators> commute. Their common positive eigenspace has dimension $2^{7-6}=2$.

A single-qubit Z error reverses the X-check outcomes indicated by its column, identifying its location; X errors are diagnosed by the Z checks. The recovery learns the <error syndrome> without reading the unknown logical amplitudes.