Five-qubit perfect code
The five-qubit perfect code is a [[5,1,3]] stabilizer code correcting arbitrary single-qubit errors with the minimum data-qubit count for that exact task.
On this page
Explanation and significance
Its checks mix X and Z support, so it is a useful counterpoint to CSS codes. The word perfect refers to saturation of a coding bound, not zero failure in a noisy laboratory. Its compact block still needs a suitable encoding, syndrome extraction and recovery implementation. Four additional ancillas are not automatically required merely because there are four checks; ancilla reuse and fault tolerance determine the actual apparatus.
Mechanism and mathematical structure
One generator convention is XZZXI, IXZZX, XIXZZ and ZXIXZ, with q0 on the left. These commute and are independent. Logical representatives can be X^tensor5 and Z^tensor5. For a nondegenerate single-error-correcting code, the quantum Hamming count is 2^k(1+3n)≤2^n: the identity and three Pauli errors at each position need distinct syndrome sectors.
Fully worked reference example
With n=5,k=1, the count is 2(1+15)=32=2^5. The identity and fifteen single-qubit Paulis exactly fill the sixteen two-dimensional syndrome sectors. An X0 error anticommutes only with the fourth listed generator, giving binary syndrome 0001. A Z0 error anticommutes with the first and third, giving 1010. A Y0 error combines those signs to give 1011. Their distinct syndromes permit different recoveries without learning the encoded amplitudes.
Limits and misconceptions
The bound assumes the stated nondegenerate setting and must not be applied carelessly to every approximate or noise-adapted code. Perfect does not describe noisy check circuits. Five data qubits can have more challenging check interactions than a larger geometrically local construction.
Scientific relationships
Is a stabilizer code and an alternative to Steane or Shor codes for ideal single-error correction. Depends on Pauli commutation and syndrome recovery.
Completing the syndrome map
Use the ordered generators g1=XZZXI, g2=IXZZX, g3=XIXZZ, and g4=ZXIXZ. The four-bit syndrome lists anticommutation with g1 through g4. In q0-leftmost convention, the syndromes for X,Y,Z on q0 are 0001,1011,1010; on q1 they are 1000,1101,0101; on q2 they are 1100,1110,0010; on q3 they are 0110,1111,1001; and on q4 they are 0011,0111,0100. Each nonzero four-bit string occurs exactly once. Syndrome 0000 selects no correction in the minimum-weight recovery.
The syndrome of a product of Pauli errors is the binary sum of their syndromes. This follows because each anticommutation contributes a sign and the signs multiply. For example, X0X1 has syndrome 0001+1000=1001, which the single-error decoder assigns to Z3. Applying Z3 leaves the residual operator X0X1Z3. It commutes with every stabilizer but is not a stabilizer, so it acts as a nontrivial logical Pauli. A consistent syndrome therefore does not certify successful recovery when the error weight exceeds the designed correction capability.
Constructing code states without exposing logical amplitudes
Define the code projector P=(I+g1)(I+g2)(I+g3)(I+g4)/16. The generators commute, so P is Hermitian and idempotent. Expanding it gives the uniform sum over sixteen stabilizers. Only the identity has nonzero trace, hence tr(P)=32/16=2. This directly recovers the two-dimensional code space without invoking a qubit-counting slogan.
The state |0_L⟩=4P|00000⟩ is normalized because ⟨00000|P|00000⟩=1/16. It has logical Z eigenvalue +1 for Z_L=ZZZZZ. Applying X_L=XXXXX gives |1_L⟩, which has the opposite logical Z eigenvalue. The generators commute with both logical operators, while the logical operators anticommute because five local X-Z anticommutations contribute an overall minus sign. Any α|0_L⟩+β|1_L⟩ has the same ideal stabilizer outcomes, so those outcomes do not reveal α or β.
Exact ideal-recovery performance under depolarizing noise
Let each data qubit independently experience I with probability 1−p and each of X,Y,Z with probability p/3. Assume perfect syndrome measurement and the recovery just listed. Exhaustive enumeration of the 4^5 Pauli patterns gives the number successfully corrected at each weight w as 1,15,0,60,135,45 for w=0 through 5. The total number of patterns at that weight is binomial(5,w)3^w. Successful higher-weight patterns occur when the residual after recovery is a stabilizer.
Therefore the exact identity-logical-class probability is Σ_w a_w(p/3)^w(1−p)^(5−w), with those six coefficients a_w. This expression includes degeneracy at high weights; simply declaring every error of weight at least two a failure is a useful conservative approximation but is not exact. All ninety weight-two Pauli patterns do fail under this recovery, giving leading logical failure 10p². The probability p is a total single-qubit Pauli error probability, not an average gate infidelity.
The arithmetic also explains why decoding cannot identify every actual physical error. A weight-three stabilizer-equivalent pattern may be corrected successfully without being identified exactly, while a weight-two pattern can share its syndrome with a correctable weight-one error. The relevant recovery criterion is the logical class of the residual, rather than equality between the actual error and the guessed error.
Mixed checks and fault propagation
Measuring a weight-four mixed Pauli check requires coupling an ancilla to different local measurement axes, or applying basis changes around a standard parity-measurement sequence. An ancilla fault can propagate to more than one data qubit, creating a correlated error outside the code's single-error guarantee. Reusing one ancilla reduces auxiliary-qubit count but adds reset and scheduling constraints. Additional flags or verified ancillas can detect dangerous propagation, with overhead determined by the specific circuit.
The code's minimum data count thus says little by itself about the minimum number of noisy locations in a complete correction round. A geometrically constrained device may require transport or routing for the four-body checks. A circuit-level comparison must count these operations and the resulting fault mechanisms rather than replacing them with an abstract perfect stabilizer measurement.
A numerical value from the enumerated polynomial
At p=0.01, the exact recovered identity-class probability is 0.99^5+15(0.01/3)0.99^4+60(0.01/3)^3 0.99^2+135(0.01/3)^4 0.99+45(0.01/3)^5. This gives logical failure approximately 0.000977955. The leading estimate 10p² is 0.001, about 2.25% larger than the exact failure. This comparison tests the range of a low-error expansion without pretending that perfect correction is a laboratory implementation. Adding noisy extraction gates changes both the coefficient and the set of dangerous faults; the enumerated polynomial would then need to be replaced by a circuit-level calculation. Different nonuniform X, Y, and Z probabilities also require weighting each pattern separately.
Sources
Verification scope
Citation identity checked ·
Distinguish original submission, revision and journal publication. Preserve model scope; no current-best claims.
Verification scope
Stabilizer Codes and Quantum Error Correction
Daniel Gottesman · · Thesis · Preprint recorded · arXivCitation identity checked ·
Stabilizer algebra and fault-tolerance foundations; no current experimental ranking.