General form. Let be a finite-dimensional Hilbert space with a decomposition
and let be the projector onto . Information is stored in the logical subsystem ; is the gauge subsystem. A noise map is correctable on if there is a trace-preserving completely positive map such that for every state on and every state on
for some state that may depend on and on the noise. When is one-dimensional this is an ordinary quantum error-correcting code. This is operator quantum error correction in the sense of Kribs, Laflamme and Poulin and Nielsen and Poulin; it unifies codes, decoherence-free subspaces and noiseless subsystems.
Stabilizer subsystem codes (Poulin). On qubits, choose a subgroup of the Pauli group, the gauge group, which may be non-abelian and is taken to contain . Its centre modulo phases gives the stabilizer group : an abelian subgroup with such that is the set of elements of that commute with all of . Then
- the code is the joint eigenspace of , and it factorises as with acting on alone (see the structure theorem);
- if has independent generators and , modulo phases, is an -space of dimension , the code has gauge qubits and logical qubits, written (some authors write for the number of gauge qubits);
- bare logical operators are Pauli operators that commute with all of but are not in ; dressed logical operators are Pauli operators that commute with but are not in , that is, bare logical operators multiplied by gauge operators;
- the distance is the minimum weight of a dressed logical operator, .
When there are no gauge qubits and this is a stabilizer code. The gauge operators need not be measured with deterministic outcomes, but products of them that lie in do have deterministic outcomes on the code; this is how a subsystem code with low-weight gauge generators can infer high-weight stabilizers, as in the Bacon–Shor code of Bacon.