Papers
Topics
Authors
Recent
Search
2000 character limit reached

Five-Qubit Quantum Code

Updated 21 January 2026
  • The five-qubit code is a quantum error correction scheme that encodes one logical qubit into five physical qubits and perfectly corrects any single-qubit error.
  • It employs stabilizer generators and transversal logical operators to achieve fault-tolerant syndrome extraction and efficient error correction.
  • Experimental implementations on superconducting, ion-trap, and solid-state systems validate its high fidelity and optimal resource utilization.

The five-qubit code, universally denoted as the [[5,1,3]] quantum error-correcting code, encodes one logical qubit into five physical qubits and enables perfect correction of an arbitrary single-qubit error. It is the smallest nondegenerate quantum code of distance three, saturating the quantum Hamming bound and admitting a unique syndrome for each single-qubit Pauli error. This code is “perfect” in the sense that no smaller code can correct all single-qubit errors, and its structure is deeply entangled with the mathematical foundations of stabilizer codes, local unitary symmetries, and error correction thresholds. The code's properties have been verified in multiple physical architectures, including superconducting qubits, trapped ions, and solid-state platforms, both in theoretical simulations and full experimental demonstrations.

1. Code Definition, Stabilizer Generators, and Logical Operators

The [[5,1,3]] code encodes one logical qubit into five physical qubits, achieving distance d=3d=3. Its stabilizer group S\mathcal{S} is generated by four independent weight-four Pauli operators. A canonical choice for the generators is: S1=X1Z2Z3X4I5 S2=I1X2Z3Z4X5 S3=X1I2X3Z4Z5 S4=Z1X2I3X4Z5\begin{aligned} S_1 &= X_1 Z_2 Z_3 X_4 I_5 \ S_2 &= I_1 X_2 Z_3 Z_4 X_5 \ S_3 &= X_1 I_2 X_3 Z_4 Z_5 \ S_4 &= Z_1 X_2 I_3 X_4 Z_5 \end{aligned} The code space C\mathcal{C} is the simultaneous +1+1 eigenspace of S\mathcal{S}. Logical Pauli operators can be chosen transversally: Xˉ=X1X2X3X4X5,Zˉ=Z1Z2Z3Z4Z5,Yˉ=Y1Y2Y3Y4Y5\bar{X} = X_1 X_2 X_3 X_4 X_5,\qquad \bar{Z} = Z_1 Z_2 Z_3 Z_4 Z_5,\qquad \bar{Y} = Y_1 Y_2 Y_3 Y_4 Y_5 These commute with all SiS_i, anticommute with each other on the code space, and allow for transversal implementation of logical gates (Barros et al., 2015, Gong et al., 2019, Tan, 2 Jul 2025).

2. Encoding, Decoding, and Circuit Optimization

Encoding an arbitrary state ψ=α0+β1|\psi\rangle = \alpha|0\rangle + \beta|1\rangle uses an ancilla initialization followed by a sequence of CNOT, Hadamard, and phase gates. Standard textbook encoders systematically map the stabilizer generators into single-qubit ZZ or XX checks, enabling circuit implementations with minimal gate count. An optimized encoder reduces resource requirements to 8 CNOTs and 4 Hadamards, with a nearest-neighbor-compliant design requiring only one SWAP insertion on planar hardware layouts (Mondal et al., 2024). Decoding is the time-reverse of encoding, with syndrome measurements performed via controlled-stabilizer operations. Each syndrome pattern corresponds uniquely to a single-qubit Pauli error, facilitating a one-to-one lookup and correction scheme (Barros et al., 2015, Gong et al., 2019, Touchette et al., 2010).

3. Fault Tolerance, Syndrome Extraction, and Error Thresholds

The code's distance d=3d=3 enables exact correction of any single-qubit error and detection of up to two-qubit errors. Fault-tolerant implementations require careful design of syndrome extraction, often employing ancillae and flag qubits to signal multi-qubit faults during measurement (Ryan-Anderson et al., 2022). All fifteen single-qubit Pauli errors yield distinct four-bit syndromes, and decoding proceeds by syndrome lookup followed by application of the corresponding correction. Performance analyses show that the code achieves logical error rates quadratic in the physical error rate per cycle, and concatenation drives logical infidelity below any target as long as the base single-qubit fidelity exceeds threshold values (F00.86F_0 \gtrsim 0.86 for depolarizing noise, $0.992$ for arbitrary errors) (Huang et al., 2017, Liu, 2022, Huang et al., 2015). The explicit process matrix and closed-form bounds for average gate infidelity and diamond distance display rapid suppression of logical errors under both stochastic and coherent error models.

4. Symmetry, Absolutely Maximally Entangled States, and Mathematical Structure

The [[5,1,3]] code is the unique pure MDS quantum code with n=5n=5, K=2K=2, d=3d=3. All five-qubit absolutely maximally entangled (AME) states are local-unitary equivalent to points in its code space, and LU-equivalence classes are separated by a group of order 24 acting on the code (Tan, 2 Jul 2025). Three explicit G-invariant polynomials classify orbits: degrees 6, 8, and 12 generate the invariant ring that separates all AME states up to LU. The code is 2-uniform (all 2-qubit reduced density matrices are maximally mixed), attains the Singleton bound, and supports transversal logical operations (Tan, 2 Jul 2025).

5. Experimental Realization and Hardware Implementations

Recent experiments have demonstrated the full operation of the code on superconducting qubit arrays and solid-state registers. Encoded states in the 5-qubit code space reach fidelities of up to 98.6%98.6\%, with logical Pauli operations implemented transversally at fidelities exceeding 97%97\% (Gong et al., 2019). End-to-end encoding, error insertion, syndrome measurement, and decoding circuits achieve overall process fidelity near 74.5%74.5\% over 92 gates in superconducting hardware, with primary fidelity degradation due to decoherence during gate sequences. Comparative density-matrix simulations using realistic noise models indicate lower logical error rates for the five-qubit code versus the Surface-17 code given similar physical error rates (Simakov et al., 2021). Additionally, pulse-control methodologies synthesize the stabilizer Hamiltonian from native two-body couplings, enabling gate times below 130ns130\,\mathrm{ns} for full code space preparation, and compatibility with 1D, 2D, and 3D qubit layouts (Tanamoto, 2013, De et al., 2015).

6. Concatenation, Generality, and Error Channel Independence

The code serves as the building block for concatenated QEC protocols, yielding arbitrarily high overall fidelity with sufficiently many levels. Its performance depends only on the initial single-qubit channel fidelity F0F_0, not on detailed channel structure, as the effective logical Choi matrices collapse rapidly onto depolarizing forms. Numerical results indicate the number of concatenation levels required to reach infidelity <105<10^{-5} is a function solely of F0F_0 (Huang et al., 2015, Huang et al., 2017). Exact process matrices for general unital errors and rigorous threshold bounds for coherent noise regimes further support code universality in suppressing both Pauli and non-diagonal error components (Liu, 2022).

7. Applications, Generalizations, and Security Protocols

The five-qubit code is applied in contexts such as quantum key distribution, where its unique syndrome signatures render eavesdropper detection robust against pattern ambiguity (Rumi, 10 Dec 2025). Pattern-based encoding and decoding amplify logical disturbances to observable multi-qubit syndromes, allowing tight security bounds. Other variants include the (5,5,2) codeword-stabilized (CWS) nonadditive code for single erasure correction (Zhang et al., 2011), and experimental conversions between the five-qubit code and higher-distance codes (e.g., Steane [[7,1,3]]) via optimized quantum state transfer protocols while maintaining fault tolerance (Hill et al., 2011). The code's systematic optimization strategy generalizes directly to arbitrary stabilizer codes, guiding minimal-gate encoder synthesis for scalable architectures (Mondal et al., 2024).


Through its combinatorial and algebraic optimality, perfect syndrome uniqueness, hardware-efficient implementation, and analytic generality, the five-qubit code provides the canonical foundation for practical quantum error correction and fault-tolerant quantum computing across a broad range of platforms and error models, with extensive theoretical and experimental validation (Barros et al., 2015, Simakov et al., 2021, Huang et al., 2017, Weinstein, 2010, De et al., 2015, Gong et al., 2019, Huang et al., 2015, Mondal et al., 2024, Tan, 2 Jul 2025, Hill et al., 2011, Zhang et al., 2011, Tanamoto, 2013, Rumi, 10 Dec 2025, Ryan-Anderson et al., 2022, Touchette et al., 2010, Liu, 2022).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (16)

Topic to Video (Beta)

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Five-Qubit Code.