HomeResearchCoursesEventsBlogDiscussions
QuantumSparkQuantumSpark

Research-grade quantum learning, papers, textbooks, mentorship, and project work for motivated students.

Platform

  • Research
  • Outputs
  • Courses

Resources

  • Blog
  • Fellowship
  • Events
  • Research Standards

Trust

  • Terms
  • Privacy
  • Cookies
  • Security
  • Research Policies

Updates

Occasional notes on new resources, workshops, and student research opportunities.

© 2026 QuantumSpark.

Built for careful learning, reproducible work, and early research fluency.

Back to courses
Quantum Computing
ADVANCED
18 units

Quantum Error Correction: Codes, Decoders and Fault-Tolerant Memory

An independent eighteen-unit textbook on exact QEC conditions, quantum stabilizers, CSS and topological codes, noisy syndrome extraction, likelihood-based decoders, thresholds, LDPC, bosonic protection, leakage, logical gates, cellular-automaton recovery and research reproduction. Substantial original math, worked calculations, embedded original lectures and primary-source documentation are taught directly on QuantumSpark.

18 units80 hoursADVANCED
Open student courseExplore Quantum Noise & Control

Published syllabus

Course Units

Unit 1
306 min5 references

Information protection, error algebras and Knill–Laflamme

Quantum error correction protects a subspace of quantum information against a specified span of physical error operators, not against an unconstrained list of informal 'bit flips'. Start with an encoding isometry from a logical Hilbert space into n physical qubits and a projector onto the resulting codespace. The distinction between detecting an error, identifying its operator representative and recovering its logical action is central: a syndrome may be sufficient for a correctable coset without revealing an individual physical fault.

Physical formulation: Information protection, error algebras and Knill–Laflamme
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
Original specialist lecture: Correcting Quantum Errors: Watrous/Qiskit Lesson 13
4 objectives
Unit 2
256 min7 references

Quantum repetition, Shor nine-qubit code and syndrome circuits

The repetition construction corrects X errors only, while Hadamard conjugation exchanges X and Z. Shor's nine-qubit code combines nested repetition structures to protect arbitrary single-qubit Pauli errors. Rather than memorizing its codewords, reconstruct the stabilizer generators and logical operators, then verify the distance and each syndrome response. Explicit recovery channels reveal why measuring a syndrome need not measure a logical amplitude.

Physical formulation: Quantum repetition, Shor nine-qubit code and syndrome circuits
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
4 objectives
Unit 3
306 min6 references

Binary symplectic Pauli formalism and stabilizer normalizers

Modulo irrelevant phases, an n-qubit Pauli operator is represented by two binary vectors. The first records X support; the second records Z support; simultaneous bits describe Y up to a phase. Pauli commutation becomes a symplectic bilinear form over the binary field. This representation turns code construction into finite-dimensional linear algebra and makes machine-checkable commutativity constraints possible.

Physical formulation: Binary symplectic Pauli formalism and stabilizer normalizers
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
Original specialist lecture: The Stabilizer Formalism: Watrous/Qiskit Lesson 14
4 objectives
Unit 4
308 min6 references

CSS codes, classical parity check matrices and the Steane construction

CSS quantum codes are built from two classical binary codes with compatible parity checks. The central constraint is orthogonality of X and Z check spaces, which guarantees quantum stabilizer commutation. The two syndrome types detect the opposite Pauli component, so keeping the x/z roles straight is the first essential implementation check.

Physical formulation: CSS codes, classical parity check matrices and the Steane construction
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
Original specialist lecture: Quantum Error Correction: CSS, Toric and Surface Codes, Lesson 15
4 objectives
Unit 5
254 min5 references

Degenerate decoding, maximum-likelihood cosets and statistical mechanics

A decoder receives syndrome information and must choose a recovery that restores the correct logical equivalence class. The most likely individual Pauli error need not belong to the most likely coset, because a coset may contain many moderately probable representatives. This is quantum degeneracy: stabilizer-equivalent physical errors have the same encoded effect despite different microscopic histories.

Physical formulation: Degenerate decoding, maximum-likelihood cosets and statistical mechanics
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
4 objectives
Unit 6
258 min7 references

Toric codes, chain complexes and homological logical operators

The toric code places qubits on the edges of a periodic square cellulation. Star and plaquette checks define the stabilizer group: their overlap has even parity, ensuring commutation. Z chains end on violated X stars, while X dual chains end on violated Z plaquettes. A contractible closed loop is a stabilizer product; a loop winding around the torus represents a nontrivial logical operator.

Physical formulation: Toric codes, chain complexes and homological logical operators
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
4 objectives
Unit 7
253 min5 references

Planar surface codes, boundaries and lattice surgery

A planar surface-code patch uses boundaries to encode one or more logical degrees of freedom without periodic lattice connectivity. Rough and smooth boundary types correspond to different anyon condensation rules, so the orientation of X and Z strings and the definition of distance must be derived from a precise patch layout. A drawing with a square grid but no check schedule or boundary labels is not a complete code specification.

Physical formulation: Planar surface codes, boundaries and lattice surgery
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
4 objectives
Unit 8
255 min6 references

Repeated noisy syndrome extraction and circuit-level detectors

Under perfect measurements a stabilizer syndrome is a snapshot of Pauli errors. Under realistic repeated extraction, a single measurement fault flips one outcome and generates a pair of detection events in time, while a data error can create persistent changes in measured checks. The decoding input is therefore a space-time event history with carefully chosen initial and final temporal boundaries.

Physical formulation: Repeated noisy syndrome extraction and circuit-level detectors
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
4 objectives
Unit 9
255 min6 references

Minimum-weight matching, union-find and correlated fault likelihoods

Minimum-weight perfect matching associates detector events in a graph with paths of faults; edge weights are derived from an assumed physical likelihood model. For independent graphlike error mechanisms, shortest total matching weight approximates maximum-likelihood fault inference. Under degeneracy and correlated faults, it can disagree with optimal logical-coset decoding.

Physical formulation: Minimum-weight matching, union-find and correlated fault likelihoods
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
4 objectives
Unit 10
292 min5 references

Thresholds, finite-size scaling and rare-event statistics

A threshold is a property of a family of codes, a specified physical noise model, measurement schedule, and decoder, not an intrinsic number attached to the term 'surface code'. Below threshold a family may show decreasing logical error as code distance increases. Above threshold larger codes may fail more frequently. Real finite-distance curves have corrections and need not intersect at a single precise value.

Physical formulation: Thresholds, finite-size scaling and rare-event statistics
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
Decoder scaling, degeneracy and logical reliability
4 objectives
Unit 11
291 min5 references

Quantum LDPC, hypergraph products and finite-rate architectures

Quantum low-density parity-check codes use stabilizer generators of bounded weight and bounded per-qubit participation as code size grows. Achieving asymptotically favorable rate and distance is an algebraic achievement, but converting a sparse abstract check graph into a two-dimensional nearest-neighbor device can introduce long connections, swap depth or modular interconnects that degrade practical overhead.

Physical formulation: Quantum LDPC, hypergraph products and finite-rate architectures
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
Decoder scaling, degeneracy and logical reliability
4 objectives
Unit 12
293 min6 references

Color codes, subsystem gauge qubits and code deformation

Color codes place stabilizers on suitably colored cellulations, enabling useful transversal or gauge-fixed gate structures in specific dimensions. In a subsystem code, physical degrees of freedom factor into protected logical and disposable gauge subsystems. Noncommuting gauge generators can be measured while their center supplies commuting stabilizers; this is not equivalent to pretending every gauge generator is a stabilizer.

Physical formulation: Color codes, subsystem gauge qubits and code deformation
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
Decoder scaling, degeneracy and logical reliability
4 objectives
Unit 13
292 min5 references

Concatenated codes, recursive thresholds and distance products

Concatenation encodes each physical qubit of an outer code into a lower-level inner code. In idealized independent noise, one level transforms a physical fault rate into a smaller effective logical fault rate when the noise lies beneath a code-dependent threshold. Repeating levels can suppress logical failure, but overhead grows and the actual threshold depends on the exact fault-tolerant gadgets, including syndrome extraction and interactions between encoded blocks.

Physical formulation: Concatenated codes, recursive thresholds and distance products
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
Decoder scaling, degeneracy and logical reliability
4 objectives
Unit 14
293 min4 references

Bosonic cat, binomial and GKP oscillator codes

Bosonic QEC encodes logical states in one or more oscillators rather than a single physical two-level system per code block. Photon loss, dephasing and phase-space displacement are physically distinct errors; the appropriate code depends on the dominant jump operators and the available control and readout. Truncating an infinite Fock space is a numerical approximation requiring a tail-weight audit.

Physical formulation: Bosonic cat, binomial and GKP oscillator codes
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
Decoder scaling, degeneracy and logical reliability
4 objectives
Unit 15
289 min5 references

Bias-preserving stabilizers, XZZX codes and leakage models

A physical quantum device rarely produces exactly symmetric Pauli noise. Dephasing-dominant channels, coherent phase drift, measurement resets, erasure flags and population leakage change decoder design. An XZZX-type surface code rotates stabilizer structure to exploit biased Pauli channels under suitable gates and measurements. The achievable improvement is conditional on bias surviving the entire syndrome cycle.

Physical formulation: Bias-preserving stabilizers, XZZX codes and leakage models
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
Decoder scaling, degeneracy and logical reliability
4 objectives
Unit 16
346 min5 references

Fault-tolerant gates, transversal restrictions and magic states

Error correction alone stores information; useful computation must perform logical gates while controlling fault propagation. A transversal gate acts across corresponding positions of code blocks and can limit spread of a single physical fault. However, no finite-dimensional exact code admits a universal set of purely transversal logical gates under standard assumptions. Gate synthesis, code deformation and resource-state injection fill the gap.

Physical formulation: Fault-tolerant gates, transversal restrictions and magic states
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
Original specialist lecture: Fault-Tolerant Quantum Computation: Watrous/Qiskit Lesson 16
Decoder scaling, degeneracy and logical reliability
4 objectives
Unit 17
289 min3 references

Self-correcting quantum memory, cellular automata and energy barriers

A passive self-correcting memory stores logical information without active high-bandwidth syndrome processing for a lifetime that improves as system size grows at fixed nonzero temperature. This is stronger than topological ground-state degeneracy or an active surface-code logical-error threshold. In the ordinary two-dimensional toric code, anyon pairs can be created and separated at bounded energy cost, so ordinary local thermal dynamics does not yield an arbitrarily growing passive lifetime.

Physical formulation: Self-correcting quantum memory, cellular automata and energy barriers
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
Decoder scaling, degeneracy and logical reliability
4 objectives
Unit 18
289 min4 references

Research protocols, validated decoders and publishable QEC benchmarks

A research-quality QEC result must be a falsifiable comparison in one precisely specified model. The code family, physical error channel, syndrome schedule, decoder, logical observable, baseline, hardware limits and random-sampling scheme jointly define the claim. A decoder advertised as improving surface-code accuracy under phenomenological Z noise may fail under full circuit-level correlated leakage, so both results should be reported rather than collapsing them into an attractive threshold headline.

Physical formulation: Research protocols, validated decoders and publishable QEC benchmarks
Detailed derivation I: operators and assumptions
Detailed derivation II: consequences and rigorous bounds
Worked physical calculation and independent verification
Scientific limitations, controls and source verification
Decoder scaling, degeneracy and logical reliability
4 objectives