Submitted:
02 December 2025
Posted:
04 December 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction: The Need for Unified Understanding

Contributions and Organization
- Establishing an explicit, constructive isomorphism between GF(4) and the Pauli group modulo phases, providing an algebraic foundation for quantum codes
- Demonstrating how binary symplectic representation transforms quantum commutation into matrix multiplication via the symplectic inner product
- Providing a step-by-step construction of the Steane [[7,1,3]] code from the classical Hamming code, illustrating the CSS construction in complete detail
- Deriving all code properties—stabilizers, logical operators, distance, syndromes—using only linear algebra over finite fields
- Showing how transversal Clifford gates emerge naturally from the symplectic structure
- Presenting explicit fault-tolerant measurement circuits directly derived from the algebraic framework
- Illustrating how this foundation extends systematically to subsystem and QLDPC codes
2. GF(4) Algebra: The Algebraic Language of Pauli Operators
2.1. Finite Field GF(4) Structure
| + | 0 | 1 | × | 0 | 1 | ||||
|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | ||
| 1 | 1 | 0 | 1 | 0 | 1 | ||||
| 0 | 1 | 0 | 1 | ||||||
| 1 | 0 | 0 | 1 |
2.2. GF(4)–Pauli Correspondence

Example: Logical Operator Representation
3. Binary Symplectic Representation: From Abstract Algebra to Practical Computation
3.1. Binary Encoding for Efficient Implementation
- if P has an X or Y on qubit j
- if P has a Z or Y on qubit j
| Pauli Operator | Symbol | Binary Encoding |
|---|---|---|
| Identity | I | |
| Bit flip | X | |
| Phase flip | Z | |
| Combined flip | Y |
3.2. Symplectic Inner Product: Quantum Commutation as Matrix Multiplication
3.3. Bridging GF(4) and Binary Representations
|
Algorithm 1: Conversion between GF(4) and binary symplectic representations
|
|
4. Classical Foundation: Hamming [7,4,3] Code
4.1. Matrix Structure and Column Construction

4.2. Code Parameters and Generator Matrix
- : code length (number of bits)
- : dimension (information bits), since
- : minimum distance (smallest weight of non-zero codewords)
4.3. Syndrome Decoding Mechanism

4.4. Syndrome Lookup Table
| Syndrome s | Binary Value | Error Position |
|---|---|---|
| 000 | 0 | No error |
| 100 | 1 | Position 1 |
| 010 | 2 | Position 2 |
| 110 | 3 | Position 3 |
| 001 | 4 | Position 4 |
| 101 | 5 | Position 5 |
| 011 | 6 | Position 6 |
| 111 | 7 | Position 7 |
4.5. Distance Analysis and Error Detection Capabilities
- Single-error detection: All columns are non-zero, so for any single error.
- Double-error detection: All columns are distinct, so for any two errors.
- Distance guarantee: No three columns sum to zero, so the smallest undetectable error has weight 3.
4.6. Perfect Code Property
- 1 syndrome for no error (000)
- 7 syndromes for the 7 possible single-bit errors
- No wasted syndrome space

4.7. Importance for Quantum Error Correction
| Classical Property | Quantum Significance |
|---|---|
| Unique syndromes | Enables unambiguous identification of single-qubit Pauli errors (X, Y, Z) |
| Distance | Directly transfers to quantum distance, enabling correction of arbitrary single-qubit errors |
| Orthogonality | Ensures automatic commutation between X and Z stabilizers in CSS construction |
| Perfect code efficiency | Optimal use of syndrome space translates to efficient quantum error correction |
| Systematic generator matrix | Facilitates construction of logical operators and fault-tolerant circuits |
| Symmetric structure | Allows identical treatment of X and Z errors, simplifying implementation |
4.8. From Classical to Quantum: CSS Construction
- Use the same code C for both X-type and Z-type stabilizers
- The orthogonality condition ensures X and Z stabilizers commute
-
Quantum parameters follow from the CSS formula:where:
- -
- : Physical qubits (same as classical bits)
- -
- : Logical qubits encoded
- -
- : Quantum distance (inherited from classical)
4.9. Summary: Why Hamming is the Ideal Foundation
- Optimal parameters: As the smallest non-trivial perfect code, it provides the minimal overhead for single-error correction.
- Algebraic simplicity: The column structure makes decoding trivial—syndrome directly equals error location.
- Self-orthogonality: ensures the CSS construction automatically yields commuting stabilizers.
- Symmetry: Identical treatment of all bit positions enables straightforward generalization to quantum errors.
- Practicality: With only 7 physical bits/qubits, it remains implementable while providing meaningful error protection.
- Pedagogical value: Its simplicity makes it an ideal teaching example while containing all essential features of more complex codes.
5. Constructive Derivation of the Steane [[7,1,3]] Code
5.1. CSS Construction: Bridging Classical and Quantum Codes
- X-stabilizers: Generators with supports given by rows of H, acting as X operators
- Z-stabilizers: Generators with identical supports, acting as Z operators
5.2. Explicit Stabilizer Generators
5.2.1. Z-Type Stabilizers
5.2.2. X-Type Stabilizers
5.3. Verification of Commutation Relations
6. Symplectic Stabilizer Matrix
7. Logical Operators and Centralizer Structure
7.1. Centralizer Dimension and Logical Qubits
| Space | Dimension | Interpretation |
|---|---|---|
| Full Pauli space (mod phases) | All operators on 7 qubits | |
| Stabilizer group S | 6 independent generators | |
| Centralizer | 8 | Operators commuting with S |
| Logical operators | 2 | Encodes 1 logical qubit |
7.2. Canonical Logical Operators
7.3. Explicit Verification of Logical Properties
-
Commutation with stabilizers: For any X-stabilizer :Similarly for Z-stabilizers and .
- Anti-commutation between logicals:
- Not in stabilizer group: Both have weight 7, while all stabilizers have weight 4 and specific patterns not matching all-ones.
8. Syndrome Extraction and Decoding
8.1. Syndrome Calculation: From Quantum Physics to Linear Algebra
8.2. Single-Qubit Error Syndrome Table
| Qubit | Error Type | Syndrome | |
|---|---|---|---|
| 1 | |||
| 2 | |||
| 3 | |||
| ⋮ (Qubits 4-7 follow similar pattern with unique syndromes) | |||
8.3. Worked Example: X Error on Qubit 3
- X-stabilizers: all measure ()
- Z-stabilizers: and measure , measures ()
9. Code Distance Calculation
9.1. Methodology for Distance Determination
9.2. Weight-1 and Weight-2 Errors
- Weight-1: All detectable. For any single-qubit Pauli E, either or because all columns of H are non-zero.
- Weight-2: Consider any weight-2 Pauli . The syndrome is the XOR of columns i and j of H (for X or Y errors). Since no two columns of H are identical, no two columns sum to zero, so all weight-2 errors are detected.
9.3. Weight-3 Undetectable Error
10. Transversal Clifford Gates
10.1. Hadamard Gate: Symmetry Between X and Z
- X-stabilizers = Z-stabilizers
- Z-stabilizers = X-stabilizers
- Logical
- Logical
10.2. Phase Gate: Implementation up to Global Phase
10.3. CNOT Gate: Transversal Entanglement
11. Fault-Tolerant Stabilizer Measurement
11.1. The Need for Flagged Circuits
11.2. Flagged Measurement Circuit Design

11.3. Error Propagation Analysis
- Ancilla preparation error: Propagates to at most one data qubit via CNOT back-action.
- Gate error: CNOT error propagates to either data or flag, not both.
- Measurement error: Detected by repetition or post-selection.
12. Noise Model and Pseudo-Threshold
12.1. Realistic Circuit-Level Noise
- Single-qubit depolarizing noise: after each gate
- Two-qubit depolarizing noise for CNOT gates:
- Measurement errors with probability
- State preparation errors with probability
12.2. Pseudo-Threshold Estimation
13. Extensions to Modern Quantum Codes
13.1. Subsystem Codes: Beyond Stabilizer Formalism
- Choose a classical code over GF(4) with generator matrix G
- The stabilizer group corresponds to a subspace of the dual code
- Gauge operators correspond to the remaining generators
- Logical operators commute with both stabilizers and gauge operators
13.2. Quantum LDPC Codes: Sparse Symplectic Matrices
- Represent stabilizers as sparse vectors in GF(4)n
- The Tanner graph connects qubits (variable nodes) to checks (stabilizer generators)
- Belief propagation decoding operates directly on GF(4) probabilities
- The symplectic product condition becomes local constraints on the graph
13.2.1. Hypergraph Product Codes

14. How to Use This Framework for Code Design
- Choose classical code(s): Select classical linear code(s) C with good parameters (rate, distance, efficient decoding)
- GF(4) representation: Encode C as a subspace of GF(4)n or use CSS construction with two classical codes
- Symplectic matrix construction: Convert to binary symplectic form
- Check commutativity: Verify , where
- Compute centralizer: Find kernel of the map
- Identify logical operators: Choose representatives from centralizer modulo stabilizers
- Calculate distance: Find minimum weight of non-trivial logical operators via enumeration or bounds
- Design syndrome extraction: Use flagged circuits based on stabilizer supports and weight
- Verify transversal gates: Check which Clifford gates preserve the code space by their symplectic action
- Simulate performance: Evaluate error correction threshold under realistic noise models
15. Conclusion: A Unified Pedagogical Foundation
- Non-CSS stabilizer codes using full GF(4) representations
- Topological codes as special cases of the symplectic framework
- Union-Find and other modern decoders in the binary representation
- Hardware-efficient implementations of the symplectic operations
Acknowledgments
Appendix A. Comprehensive Reference Guide for Quantum Error Correction
Appendix A.1. Fundamental Mathematical Structures
- Finite Field GF(2) ()
-
The binary field with two elements and operations:All binary linear algebra in this paper operates over GF(2).
- Finite Field GF(4)
-
Extension field with four elements where , defined by the irreducible polynomial :Complete arithmetic tables:

- Vector Space
- Set of all binary vectors of length n with component-wise addition modulo 2. Forms the foundation for classical linear codes.
- Binary Linear Algebra
-
Matrix operations performed modulo 2:
- Matrix addition:
- Matrix multiplication:
- Dot product:
Appendix A.2. Pauli Group Theory and Representation
- Single-Qubit Pauli Matrices
- The four fundamental operators:
- Pauli Group
- Single-qubit Pauli group including phases:
- Pauli Group
-
n-qubit Pauli group:Elements are tensor products of single-qubit Paulis with overall phase or .
- GF(4)–Pauli Isomorphism
-
Fundamental correspondence (modulo phases):

- Binary Symplectic Representation
-
Encoding Pauli (modulo phase):where for each qubit j:
- if P has X or Y on qubit j
- if P has Z or Y on qubit j
- Symplectic Form Matrix
- The matrix defining the symplectic inner product:where is the zero matrix and is the identity matrix.
- Symplectic Inner Product
- For , :
- Commutation Theorem
- Two Pauli operators P and Q commute if and only if .
- Operator Weight
- = number of qubits where P acts non-trivially (not as I).
- Operator Support
- = set of qubit indices where P acts non-trivially.
Appendix A.3. Classical Coding Theory Fundamentals
- Linear Code C
- A subspace of dimension k. Contains codewords.
- Code Parameters [
-
]
- n: block length (number of bits)
- k: dimension (number of information bits)
- d: minimum distance =
- Generator Matrix G
- matrix whose rows form a basis for C:
- Parity-Check Matrix H
-
matrix satisfying:Equivalently: .
- Syndrome (Classical)
-
For error :Used to detect and correct errors.
- Coset
- For linear code C and error e: .
- Syndrome Decoding
- Mapping syndromes to coset leaders (minimum weight errors).
- Hamming Weight
- = number of 1’s in binary vector v.
- Hamming Distance
- .
- Dual Code
- .
Appendix A.4. Stabilizer Quantum Error Correction
- Stabilizer Group S
- An abelian subgroup of not containing .
- Stabilizer Code
- The subspace:
- Stabilizer Generators
- Independent set that generate S.
- Code Parameters [[
-
]]
- n: number of physical qubits
- k: number of logical qubits =
- d: code distance = minimum weight of non-trivial logical operator
- Centralizer
- Set of Pauli operators commuting with all elements of S:
- Normalizer
- For stabilizer codes: .
- Logical Operators
- Elements of . Act non-trivially on encoded information.
- Codespace Dimension
- .
- Syndrome (Quantum)
- For error , measurement outcomes of stabilizer generators:
Appendix A.5. CSS Code Construction
- CSS Construction
-
Given two classical linear codes with :
- X-stabilizers: Generators from rows of (parity-check of )
- Z-stabilizers: Generators from rows of (parity-check of )
- Symplectic Stabilizer Matrix
- For CSS codes:
- Code Parameters
- For CSS code from and :
- Independent X and Z Correction
- CSS codes correct X and Z errors separately using classical decoders for and respectively.
Appendix A.6. The Steane [[7,1,3]] Code in Detail
- Classical Foundation
-
Hamming code:
- Parity-check matrix:
- Minimum distance: 3 (corrects any single-bit error)
- Perfect code: syndromes match 7 single errors + no error
- Stabilizer Generators
- From CSS construction using same H for both X and Z:
- Logical Operators
- Canonical choice:
- Syndrome Table
-
All 21 single-qubit errors produce distinct syndromes:

- Transversal Gates
Appendix A.7. Fault-Tolerant Quantum Computation
- Fault-Tolerant Gate
- Implementation where a single physical fault causes at most one error per encoded block, preserving error correction capability.
- Hook Error
- Dangerous error propagation in multi-qubit gates where one fault creates correlated errors on multiple data qubits.
- Flag Qubit
- Ancilla used to detect when a measurement circuit may have created correlated errors.
- Flagged Syndrome Extraction
- Measurement circuit that uses flag qubits to signal dangerous fault patterns.
- Ancilla States
-
Special states for measurement:
- , : Logical zero and plus states
- , : Physical ancilla states
- Fault-Tolerant Measurement Circuit
-
For X-type stabilizer :

- Pseudo-Threshold
- Physical error rate below which encoded computation has lower logical error rate than unencoded computation.
- Code Capacity Threshold
- Error rate threshold assuming perfect gates and measurements.
- Circuit-Level Threshold
- Error rate threshold including gate, measurement, and preparation errors.
Appendix A.8. Extension to Modern Code Families
- Subsystem Codes
-
Decompose Hilbert space as where:
- : Logical subsystem (protected information)
- : Gauge subsystem (not protected)
- Stabilizers act only on
- Gauge operators generate transformations within
- Quantum LDPC Codes
- Codes with sparse parity-check matrices (constant-weight stabilizers).
- Hypergraph Product
- Construction of QLDPC codes from two classical LDPC codes:
- Tanner Graph
-
Bipartite graph representation connecting:
- Variable nodes (qubits)
- Check nodes (stabilizer generators)
- Belief Propagation
- Iterative decoding algorithm operating on Tanner graph.
Appendix A.9. Complete Notation Reference
| Symbol | Meaning and Usage |
|---|---|
| I, X, Y, Z | Single-qubit Pauli matrices |
| Pauli operator P applied to all n qubits | |
| Binary symplectic vector (u = X-part, v = Z-part) | |
| Symplectic inner product: u·v’ + v·u’ mod 2 | |
| Weight of operator P (non-identity components) | |
| Support set of operator P | |
| ⊕ | Addition modulo 2 (XOR) |
| GF(4) elements: , | |
| Binary field {0,1} | |
| Four-element field GF(4) = | |
| n-qubit Pauli group (including phases) | |
| Classical code parameters: length, dimension, distance | |
| Quantum code parameters: physical qubits, logical qubits, distance | |
| G | Generator matrix (classical) |
| H | Parity-check matrix (classical) or Hadamard gate (quantum) |
| M | Symplectic stabilizer matrix |
| S | Stabilizer group |
| X-type and Z-type stabilizer generators | |
| Logical X and Z operators | |
| C(S) | Centralizer of stabilizer group S |
| n-fold tensor product of Hadamard gates | |
| S | Phase gate: diag(1, i) |
| CNOT | Controlled-NOT gate |
| Computational and Hadamard basis states |
Appendix A.10. Common Constructions and Formulas
| Construction | Formula/Procedure |
|---|---|
| Binary Symplectic Encoding | where for X/Y, for Z/Y |
| Syndrome Calculation | |
| CSS Code from C | , , |
| Centralizer Dimension | |
| Logical Qubit Count | |
| Code Distance | |
| Transversal Hadamard | |
| Transversal Phase | |
| Transversal CNOT | |
| Hamming Code H | Columns = binary numbers 1-7: |
| Steane Stabilizers | , , etc. |
Appendix A.11. Supplementary Examples and Exercises
Appendix A.11.11.1. Example: Verifying Steane Code Properties
- Verify that and commute using symplectic product.
- Show that has syndrome .
- Find the syndrome for error on the Steane code.
- Verify that maps to .
Appendix A.11.11.2. Example: General CSS Construction
Appendix A.11.11.3. Exercise: Error Correction Capability
- Detect any error affecting qubits
- Correct any error affecting qubit
- Detect but not correct errors affecting 2 qubits
Appendix A.12. Additional Resources and References
- Classical Coding Theory: MacWilliams and Sloane, "The Theory of Error-Correcting Codes"
- Quantum Information: Nielsen and Chuang, "Quantum Computation and Quantum Information"
- Stabilizer Formalism: Gottesman, "Stabilizer Codes and Quantum Error Correction"
- Fault Tolerance: Preskill, "Quantum Computing in the NISQ era and beyond"
-
Online Resources:
- arXiv:quant-ph for latest research
- QEC Zoo: errorcorrectionzoo.org
- PennyLane, Qiskit tutorials for implementation
Appendix A.13. Glossary of Acronyms
- QEC
- Quantum Error Correction
- CSS
- Calderbank-Shor-Steane (code construction)
- LDPC
- Low-Density Parity-Check
- GF
- Galois Field (finite field)
- MWPM
- Minimum Weight Perfect Matching (decoder)
- BP
- Belief Propagation (decoder)
- FT
- Fault-Tolerant
- CNOT
- Controlled-NOT gate
- NISQ
- Noisy Intermediate-Scale Quantum
- QLDPC
- Quantum Low-Density Parity-Check
References
- D. Gottesman, Stabilizer Codes and Quantum Error Correction, Caltech Ph.D. thesis, 1997.
- A. R. Calderbank and P. W. Shor, Good quantum error-correcting codes exist, Phys. Rev. A 54, 1098 (1996).
- A. M. Steane, Error correcting codes in quantum theory, Phys. Rev. Lett. 77, 793 (1996).
- A. Leverrier, J. A. Leverrier, J. Tillich, and G. Zémor, Quantum expander codes, Proc. IEEE FOCS, 810–819 (2015).
- P. Panteleev and G. Kalachev, Asymptotically good quantum and locally testable classical LDPC codes, Proc. ACM STOC, 375–388 (2022).
- C. Chamberland and M. E. Beverland, Flag fault-tolerant error correction with arbitrary distance codes, Quantum 4, 256 (2020).
- D. Poulin, Stabilizer formalism for operator quantum error correction, Phys. Rev. Lett. 95, 230504 (2005).
- A. A. Kovalev and L. P. Pryadko, Quantum Kronecker sum-product low-density parity-check codes with finite rate, Phys. Rev. A 88, 012311 (2013).
- J. Tillich and G. Zémor, Quantum LDPC codes with positive rate and minimum distance proportional to the square root of the blocklength, IEEE Trans. Inf. Theory 60, 1193–1202 (2014).
- A. G. Fowler, M. A. G. Fowler, M. Mariantoni, J. M. Martinis, and A. N. Cleland, Surface codes: Towards practical large-scale quantum computation, Phys. Rev. A 86, 032324 (2012).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).