Classical code. Let be the parity-check matrix of the Hamming code whose -th column is the binary expansion of :
Its row space is the simplex code , contained in the Hamming code .
Stabilizer. One -type and one -type generator for each row of :
An -type and a -type generator overlap on an even number of qubits (two, or four for ), because any two rows of are orthogonal over and each row has even weight; so all six commute. They are independent, so . The stabilizer group has 21 elements of weight 4 and 42 of weight 6. (These facts and the distance were checked by direct computation.)
Code states.
Logical operators. and ; weight-3 representatives are and , since is a Hamming codeword not in .
Parameters. , non-degenerate. The syndrome of the -type checks on an error at qubit is the column of , the binary expansion of , and likewise for the -type checks on a error; a error lights both. All 21 single-qubit errors have distinct nonzero syndromes.
Properties. It is the CSS code of the pair with (CSS codes). Bitwise CNOT between two blocks implements the logical CNOT, and bitwise implements the logical because the and checks are identical. Since every word of has weight 0 or 4 and every word of its complement has weight 3 or 7, the bitwise phase gate multiplies by 1 and by : it implements the logical , and implements . So the whole logical Clifford group is transversal (Gottesman). It is the smallest member of the triangular two-dimensional color codes; see the transversal Clifford theorem.
History. Introduced by Steane (see also), alongside the general construction of Calderbank and Shor. A textbook treatment is in chapter 10 of Nielsen and Chuang.