Code Distance
The distance of a quantum code is the single most important number summarising its protective power. It plays the same role as the minimum distance of a classical code, but the quantum version must respect the subtle structure of the Knill–Laflamme conditions.
Math you'll use here: stabilizer essentials
The -qubit Pauli group consists of tensor products of together with phases . A stabilizer group is an abelian subgroup (all its elements commute pairwise) with ; these two conditions guarantee a non-trivial joint eigenspace, the code space. We never list all of : a small set of independent generators produces every element as a product, encoding logical qubits in physical ones.
The normalizer is the set of Paulis that commute with every stabilizer — equivalently, with every generator . (For the Pauli group the normalizer equals the centralizer, so "commutes with all of " is the working definition.) Two Paulis either commute or anticommute, so this is just the symplectic condition you will use below.
Stabilizers themselves trivially lie in but act as the identity on code states. The interesting elements are the logical operators: Paulis in . They commute with the syndrome checks (so they leave the code space invariant and raise no flag) yet act non-trivially on the encoded information. The distance below is exactly the lightest such operator.
Definition
For a stabilizer code with stabilizer group on qubits, the distance is
the minimum weight of any Pauli operator that lies in the normalizer (the set of Paulis commuting with every stabilizer) but is not itself in . The weight counts the qubits on which acts non-trivially.
The intuition is direct. A Pauli error with low weight is detected if it anticommutes with some stabilizer — then it flips a syndrome bit and we notice. The dangerous errors are those that commute with all stabilizers (so produce no syndrome) yet are not stabilizers (so act non-trivially on logical states). The lightest such error is a logical operator, and its weight is the distance.
Why this is the right notion
Recall the Knill–Laflamme conditions . A code corrects all errors of weight precisely when no product of two such errors is an undetected logical operator. Since , the condition is met as long as
A distance- code corrects arbitrary errors and detects up to of them.
Reading
A code is summarised by the triple : physical qubits encode logical qubits with distance . The double brackets distinguish the quantum case from the classical . For example the perfect five-qubit code is : five qubits, one logical qubit, distance three, so it corrects any single-qubit error.
Try it
Compute the distance of the perfect code directly from its four stabilizer generators (cyclic shifts of ). Using the symplectic representation, enumerate the Paulis that commute with every generator but are not in the stabilizer group, and return the minimum weight. You should recover .
Sign in on the full site to ask questions and join the discussion.