A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Surface Codes

Research Depth 160 in the knowledge graph I know this Set as goal
960prerequisites beneath it
See this on the map →
Quantum Error Correction BasicsStabilizer Codes
surface-code toric-code topological-error-correction threshold-theorem lattice

Core Idea

Surface codes are a family of topological stabilizer codes defined on a 2D lattice, where qubits live on edges and stabilizers are local plaquette and vertex operators. The toric code encodes 2 logical qubits on a torus; the planar surface code encodes 1 logical qubit with boundary conditions. Surface codes are the leading candidates for practical quantum error correction because they require only nearest-neighbor interactions on a 2D grid, have high error thresholds (~1% per gate), and allow efficient syndrome decoding. The price is a large overhead: an [[n,1,d]] surface code uses n = O(d2) physical qubits for distance d.

Explainer

Surface codes translate quantum error correction into a geometric problem on a lattice. Consider a 2D square grid where qubits live on the edges of the lattice. Each face (plaquette) defines a Z-type stabilizer: the product of Z operators on all four edges bounding that face. Each vertex defines an X-type stabilizer: the product of X operators on all edges meeting at that vertex. All these operators commute (every edge is shared by exactly two faces and two vertices, and X and Z anticommute, but each edge appears an even number of times in any product of stabilizers from different types, canceling the sign). The code space is the +1 eigenspace of all stabilizers.

The toric code places this lattice on a torus (periodic boundary conditions), encoding 2 logical qubits. The planar surface code uses a square lattice with two types of boundaries (rough and smooth), encoding 1 logical qubit. Logical operators are non-contractible loops: logical X is a chain of X operators connecting two rough boundaries, and logical Z is a chain of Z operators connecting two smooth boundaries. These chains commute with all stabilizers but are not products of stabilizers, so they act nontrivially on the encoded qubit.

The practical appeal of surface codes lies in their locality and threshold. Each stabilizer involves only 4 qubits arranged in a local pattern, requiring only nearest-neighbor couplings on a 2D chip — this matches the geometry of superconducting qubit arrays that Google, IBM, and others are building. The error threshold is approximately 1% per gate, meaning that if physical gates have error rates below 1%, increasing the lattice size exponentially suppresses logical errors. Below threshold, the logical error rate scales as approximately (p/p_th)d/2 where d is the code distance (the shorter lattice dimension). A distance-17 surface code with 0.1% physical error rate achieves a logical error rate below 10-12.

The main drawback is overhead: a distance-d surface code uses O(d2) physical qubits to encode a single logical qubit. Running Shor's algorithm to factor a 2048-bit number might require thousands of logical qubits, each needing thousands of physical qubits — millions of physical qubits total. Furthermore, universal gate sets on surface codes are not straightforward: Clifford gates (H, S, CNOT) can be implemented transversally or via lattice surgery, but the T gate (needed for universality) requires magic state distillation, which is an additional overhead. Despite these costs, surface codes remain the most promising architecture for fault-tolerant quantum computing because their practical requirements align with current hardware capabilities.

Practice Questions 3 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionSine, Cosine, and Tangent RatiosTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIndefinite IntegralsBasic Integration RulesRiemann SumsDefinite Integral DefinitionDouble Integrals: Definition and SetupIterated Integrals and Fubini's TheoremDouble Integrals over Rectangular RegionsDouble Integrals over General RegionsApplications of Double Integrals: Area, Mass, and MomentsTriple Integrals in Cartesian CoordinatesTriple Integrals in Cylindrical and Spherical CoordinatesChange of Variables and the Jacobian DeterminantApplications of Triple Integrals: Volume and MassVector Fields and Their RepresentationsLine Integrals of Vector FieldsWork and CirculationLine Integrals of Scalar and Vector FunctionsFundamental Theorem for Line IntegralsConservative Vector FieldsConservative Vector Fields and Potential FunctionsCurl and Divergence of Vector FieldsCurl and DivergenceDivergence TheoremElectric Flux and Divergence TheoremGauss's Law: Integral Form and MeaningSolving Problems with Gauss's LawConductors in Electrostatic EquilibriumCapacitance and CapacitorsDielectricsDielectric Constant and Relative PermittivityElectric Field Inside Dielectric MaterialsDielectric Materials and PolarizationDielectric Susceptibility and PermittivityEnergy Density in Electric FieldsElectric Current and Current DensityElectrical Resistance and ResistivityOhm's Law and Circuit ElementsElectromotive Force (EMF) and BatteriesKirchhoff's Circuit Laws: Voltage and CurrentDC Circuit Network Analysis MethodsTransient Response in RC CircuitsRC CircuitsLC and RLC CircuitsAC Circuits: FundamentalsImpedance and ReactanceAC Power and ResonanceElectromagnetic WavesPostulates of Special RelativityTime DilationLength ContractionLorentz TransformationRelativistic Velocity AdditionRelativistic Momentum and EnergyMass-Energy Equivalence and E=mc²Photons as Particles with Energy and MomentumPlanck-Einstein Relation: Energy and FrequencyPhotoelectric EffectThe Photon: Light as QuantaCompton ScatteringWave-Particle Dualityde Broglie WavelengthThe Schrödinger EquationState Vectors and WavefunctionsQuantum SuperpositionQuantum EntanglementBell Theorem and Bell InequalitiesPostulates of Quantum MechanicsObservables and Quantum OperatorsCommutators and Commutation RelationsQuantum Angular MomentumQuantum Mechanical Treatment of HydrogenSolving the Schrödinger Equation for Hydrogen AtomQuantum NumbersSpin-1/2 SystemsPauli MatricesQuantum GatesQuantum CircuitsQuantum Error Correction BasicsStabilizer CodesSurface Codes

Longest path: 161 steps · 960 total prerequisite topics

Prerequisites (2)

Leads To (0)

No topics depend on this one yet.