The Steane code is a tool in quantum error correction introduced by Andrew Steane in 1996. It is a perfect CSS code (Calderbank-Shor-Steane), using the classical binary [7,4,3] Hamming code to correct for qubit flip errors (X errors) and the dual of the Hamming code, the [7,3,4] code, to correct for phase flip errors (Z errors). The Steane code is able to correct arbitrary single qubit errors.
where H is the parity-check matrix of the Hamming code and is given by
The Steane code is the first in the family of quantum Hamming codes, codes with parameters for integers . It is also a quantum color code.