How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Noise, Fault Tolerance, Concatenation, and Thresholds
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Algebraic Closure, Embeddings, and Separability
- Algebraic Extensions, Extension Degree, and Finite Fields
- Approximate Universality and Solovay–Kitaev
- Binary Operations, Monoids, Groups and Subgroups
- Bounded Linear Operators and Quotient Spaces
- Chain Conditions, Semisimple Modules and the Wedderburn–Artin Theorem
- Channels, Kraus, Choi, and Stinespring Representations
- Circuit Syntax, Denotational Semantics, and Measurement
- Classical and Quantum Error-Correcting Codes
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Norms and Realification
- Complexification, Realification and Real Structures
- Composition Series, the Jordan–Hölder Theorem and Solvable Groups
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Controlled Gates, Phase, and Entanglement
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Cyclic Groups and Direct Products
- Determinants of Matrices over a Commutative Ring
- Diagonalisation and the Minimal Polynomial
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Eigenvalues, Eigenvectors and the Characteristic Polynomial
- Filters and Ultrafilters
- Finite Averaging and Character-Theory Prerequisites
- Finite Counting, Factorials and Binomial Coefficients
- Finite Dimensional Normed Spaces and Riesz Lemma
- Finite Probability Spaces and Random Variables
- Finite-Dimensional Complex Inner-Product Spaces and Matrix Interfaces
- Foundations of the Real Numbers for Analysis
- Free Modules, Exact Sequences, Projective and Injective Modules
- Fundamental Trigonometric Identities
- Gaussian Elimination, Elementary Matrices and Reduced Row Echelon Form
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Group Homomorphisms and the Isomorphism Theorems
- Hilbert Space Geometry and Riesz Representation
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Independence Borel Cantelli and Zero One Laws
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Integral Extensions and Going Up
- Knill–Laflamme Recovery and Subsystem Codes
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Algebra Methods in Combinatorics
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Measurements, POVMs, and Instruments
- Measures and Their Basic Properties
- Metric Spaces
- Modules, Submodules, Quotient Modules and the Isomorphism Theorems
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Normed and Banach Spaces
- Number Fields Rings of Integers and Discriminants
- Order, Zorn's Lemma, and the Axiom of Choice
- Pauli and Clifford Groups, Binary Symplectic Tableaux
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Properties of the Integral and the Working FTC
- Pure and Mixed States, Ensembles, and Schmidt Decomposition
- Qubits, Bloch Sphere, Pauli Algebra, and One-Qubit Gates
- Registers, Tensor Products, and Partial Trace
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Sigma Algebras and Borel Sets
- Simple Field Extensions and the Construction of the Complex Numbers
- Sine, Cosine, and the Definition of Pi
- Splitting Fields
- Stabilizer and CSS Codes, Syndromes, and Procedures
- Stabilizer Circuits and Gottesman–Knill Simulation
- Strongly Continuous Semigroups and Hille Yosida
- Suprema and Infima
- Sylow's Theorems, p-Groups and Nilpotent Groups
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- Tensor Products of Modules
- The Complex Exponential and Euler's Formula
- The Derivative and the Mean Value Theorems
- The Determinant of a Linear Operator, Cofactors and Cramer's Rule
- The Exponential Function
- The Field of Fractions and Localisation
- The Fundamental Theorem of Algebra
- The Fundamental Theorem of Finite Abelian Groups
- The Galois Correspondence
- The Riemann Integral: Definition and Integrability
- The Spectral Theorem, Positive Operators and Singular Value Decomposition
- The ZFC Axioms and the Basic Set Constructions
- Topology of ℝ
- Trace Distance, Fidelity, and Information Limits
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
Objective
Define finite ordered channel schedules and independent or local-stochastic fault models. Construct a fixed protected universal family and prove conditional concatenated-threshold bounds from its explicit encoded-instrument contracts and proved finite port-substitution certificate, using recursive decoded recovery. Separately prove the ideal-syndrome iid- planar-memory bound.
Scope and caveats
The finite construction uses the code with declared capacity two and effective spread budget one. Verified cats, four-round correction, magic-state injection, pure initialization, protected encoded-classical readout, physical Boolean controls, full-unitary scalar phases and recursive replacement are proved locally. No unknown unprotected input is assumed to admit fault-free recovery from its first possible logical fault; noisy guarantees begin on encoded input or a verified prescribed initialization.
The general threshold results require the additional finite port-substitution hypothesis: noisy arbitrary-input attraction, typed intermediate sectors, attached syndromes, local first-use refresh and residual-support accounting. The concrete family proves this certificate before simultaneous induction through the concatenation levels. Higher-level residual sectors are hierarchical; only their recursively decoded logical outputs are compared with the ideal computation. The general probability theorems retain their explicit proper-gadget and hierarchy hypotheses. Local-stochastic fault indicators may be correlated, while conditional replacement maps remain attached to their declared physical locations. The distance-three exRec result has its own source-derived pure-preparation, basis-measurement and explicit-port hypotheses; its overlap analysis is separate from the nonvacuous capacity-two proper-code construction. The planar result concerns perfect syndrome extraction and iid noise, rather than a faulty-gate circuit threshold.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Local-Stochastic Fault-Set Law
Definition
Let be a finite set of elementary fault-location labels and let be a finite probability space as in Finite probability spaces, outcome weights, events, and event probabilities. A fault-set random variable is a map . For a parameter , the fault-set law is -local-stochastic if, for every subset ,
Here is the ordinary -fold product, with . This condition allows correlations among fault indicators; it does not assert mutual independence.
Local-Stochastic Fault-Witness Bound
Statement
Let and let a finite rooted rectangle hierarchy have every root-to-leaf path of exactly edges. Each leaf is one elementary location; every internal node has at most children, and the elementary-location sets of distinct children are disjoint. Let be integers with . A leaf is bad exactly when its location is faulty, and an internal node is bad exactly when at least children are bad. Under an -local-stochastic fault-set law, with and , the probability that the root is bad is at most
No independence assumption is used.
Facts & Assumptions
Given: A finite location set, an -local-stochastic random fault set, an integer , and the full-depth rooted hierarchy and recursive badness predicate in the statement. Prove the probability bound.
Local-Stochastic Fault-Set Law: For every specified set of elementary locations, the probability that all of fault is at most .
Proof
For a leaf , its single location is a witness set whose fault forces to be bad. At depth zero there is one such witness, its size is , and [F1] bounds the bad probability by .
Suppose a depth- node is bad. It has a -subset of bad children. For each child , select one witness set that forces that child to be bad. The child location sets are disjoint, so has size and its occurrence forces the parent to be bad. There are at most such witness sets if bounds their number at depth . Only finite selection from finite sets is used.
The witness-count recurrence , gives . This follows by induction: it is equality at , and substituting the bound at level gives exponent .
Each fixed witness set has probability at most by [F1]. The union bound over all witnesses gives . Since , the base is below one, so the bound tends to zero.
Code Deviation and Fault Spread
Definition
Consider one block of tensor factors , its code subspace , and an arbitrary finite reference system . For an integer , let be the complex linear span of all operators on the block supported on at most physical coordinates, with support and weight as in Support and weight of an operator on a finite register.
A density operator on the block and is -deviated from a code-supported density operator if there is a CPTP map on the block with a finite Kraus family such that and . Here is code-supported when its joint support is contained in . The reference factor is retained in the identity above. Equality of reduced states outside a coordinate set is not the definition of deviation here.
For a finite family of live blocks indexed by , use the joint error space . Joint -deviation means the same Kraus formula with a single CPTP map on all live blocks, every Kraus operator in , and identity on the external reference alone. The ideal joint state is supported in . This includes the original one-block definition when . The joint error map need not factor across blocks: a faulty multi-block gate can correlate their errors. Other live data blocks are part of the data system, not part of the unchanged external reference. Statements about deviation per block in a multi-block computation use this joint convention.
There is also a weaker encoded instrument error-sector relation, which does not require a CPTP extension to the whole physical input space. Fix the joint encoding . An -supported encoded instrument is a finite family of completely positive branch maps from the joint logical register to the physical register, with Kraus operators
Thus its full instrument is trace preserving on the admitted encoded input domain. A branch retains its actual subnormalized probability; neither it nor its normalized conditional output is required to extend to a full-space CPTP error map. With an ideal logical unitary , replace in this formula by . For other ideal logical instruments, state the analogous Kraus identities and output registers explicitly. Every equality is tensored with identity on an arbitrary finite external reference. With auxiliary fault memory , allow coefficients on , that is Kraus sums , and impose the full instrument's trace-preservation identity on . Memory output may change; after its trace, the logical/reference channel is the one required by the declared decoded-recovery identity.
A correcting gadget states the stronger input-sector/output-sector operator identity it needs: on every admitted incoming error term , its branch Kraus maps are sums of with the prescribed output support budget. Coefficients may depend on the incoming error term and on retained branch/memory registers, but not act on the logical factor. Linearity covers coherent incoming errors and correlated blocks. This is the sector convention for noisy correcting instruments. The earlier full-space CPTP deviation relation remains a sufficient, stronger relation; it is not redefined to mean this weaker encoded relation.
For an integer , literal support-propagation spread applies to a specified unitary circuit segment: conjugating a fault operator supported on through the remaining fault-free unitary gates produces an operator supported on at most output coordinates per block. For several faults, expand the finite Kraus families and take the union of their propagated supports. This gives the sum of the individual support bounds. The bound must account for all input blocks of a multi-block gate.
For a correcting, preparing or measuring gadget, an effective spread budget is instead part of an explicit input-sector/output-sector contract. The gadget declares its admitted joint error sectors, allowed fault supports, ideal logical channel or instrument, and joint residual-error sector for each allowed fault count. The required identities compare its decoded output with that ideal logical channel or instrument on every admitted input, with an arbitrary finite external reference. Measurement identities are identities of the subnormalized branch maps, not equations obtained by ignoring their probabilities. Any auxiliary fault memory is retained in the description of the faulty maps and may change there; it is distinct from the untouched external reference, and nonfaulty locations leave that memory alone. An identity that retains fault memory must specify its output memory action rather than silently identify it with the reference identity.
The numerical computation and correction budgets needed for sparse induction are explicitly imposed in the separately stated proper-code gadget contract; the word spread alone supplies none of those identities. In particular, incoming-error propagation and the full noisy correction action must be checked. Zero-fault recovery on arbitrary inputs remains a separate requirement. No global equation moving arbitrary input faults through a recovery channel on its whole input space is asserted.
Remarks
The distinction between full-space CPTP deviation and encoded instruments, a concrete nonextension example on the code, and transfer of a fixed decoded recovery to the encoded instrument relation are proved in Encoded error instruments and full-space CPTP error maps. That comparison is not needed to define either relation.
Finite ordered channel-location schedules
Definition
Fix a nonzero finite-dimensional ordered tensor register and an integer . A finite channel-location schedule is an ordered list of slots . Slot has an ideal quantum channel and a declared support . A channel is supported on when it has a finite Kraus representation all of whose Kraus operators are supported there in the sense of Support and weight of an operator on a finite register. The order is chronological: slot acts first. Its circuit denotation is the linear map
with the empty schedule denoting the identity map on . The definition records the full-register channels at the slots; gate, preparation, measurement, reset, classical-control, and scheduled-idle operations are included only when their corresponding local channels and supports are supplied. Any ancillary or classical record registers they use are factors of . No unlisted idle slot is implicit. A pattern-dependent replacement at slot must be a quantum channel supported on the same ; the chosen replacement may depend on the full fault pattern, but no extra joint operation across distinct slots is part of this schedule.
Facts & Assumptions
Given: A finite-dimensional ordered tensor register, a finite ordered list of full-register quantum channels, and declared supports for their Kraus operators. Verify that the schedule denotation is well-defined and is a quantum channel.
Finite-dimensional quantum channel: A quantum channel is a complex-linear completely positive trace-preserving map on the full operator space.
Finite-dimensional channels compose and tensor: A finite composition of finite-dimensional quantum channels is a quantum channel.
Support and weight of an operator on a finite register: is supported in when its wire permutation has the form for some .
Verification
Each is a complex-linear endomorphism of by [F1] and is assigned its declared local support by [F3], so the displayed finite chronological composition is well-typed; for it is the identity.
For , repeated application of [F2] shows the composition is completely positive and trace-preserving. For , tensoring the identity with any finite reference identity leaves every positive operator positive, and , so the identity is a channel. Thus every schedule has a well-defined channel denotation.
Independent Local Quantum Fault Model
Definition
Let be a finite channel-location schedule as in Finite ordered channel-location schedules, with finite ordered location set . A location is a supplied gate, preparation, measurement, reset, or explicitly scheduled idle channel with declared support . The model does not create idle locations that the schedule did not declare.
Fix . A fault pattern is a subset . Its probability is
where integer powers use the empty-product convention , including at . Thus each location faults with probability , and the event classes generated by the fault/no-fault indicator at each location form an independent family in the sense of Independent families of event classes. Conditional on , each replaces only the ideal operation at by an arbitrary CPTP map supported on ; all other locations apply their ideal channels. A replacement map may depend on the full pattern, but it acts only at its own location. Faults at measurement and reset locations are represented by channels on their declared quantum and classical registers.
This definition is the independent, local fault model: location indicators are independent, and each fault map acts at its own scheduled location.
Facts & Assumptions
Given: A finite location set from a channel-location schedule and a parameter . Verify that the fault-pattern weights define a finite probability space and that the fault/no-fault event classes are independent.
Finite ordered channel-location schedules: A schedule is a finite ordered list of location slots with full-register channels and declared supports.
Independent families of event classes: Independence means that every finite choice of events from distinct event classes has intersection probability equal to the product of its probabilities.
Finite probability spaces, outcome weights, events, and event probabilities: A finite probability space consists of a finite outcome set with nonnegative weights summing to one.
Verification
For every , the displayed weight is nonnegative because . Its total mass is one by induction on : the empty location set has one pattern of weight ; for nonempty , choose and split the sum into patterns omitting and containing . Each part is respectively and times the same normalized sum on , so their sum is one. The powers use the stated empty-product convention, including when or . Thus the weights define a finite probability space by [F3].
Fix distinct locations and prescribed fault/no-fault values . Splitting a pattern into its restriction to these locations and its restriction to the complement, then summing over all complement patterns using step 1.1, gives . This is the product of the single-location atom probabilities. Summing over the finitely many atom choices belonging to any selected event in each indicator class proves the finite-subfamily independence condition [F2].
The Local Noise Model Composes With Circuit Semantics
Statement
For a finite channel-location schedule and any finite probability law on its fault patterns, suppose each conditional pattern replaces faulty locations by CPTP maps on their declared supports. Every conditional denotation is a CPTP channel, and the probability-weighted average of these denotations is a CPTP channel. No independence assumption on the fault-pattern law is required.
Facts & Assumptions
Given: A finite channel-location schedule, a finite probability law on its fault patterns, and one local CPTP replacement map for each faulty location in each pattern. Prove that the averaged noisy denotation is CPTP.
Finite probability spaces, outcome weights, events, and event probabilities: The outcome weights of a finite probability space are nonnegative and sum to one.
Finite-dimensional channels compose and tensor: The composition of finite-dimensional quantum channels is a quantum channel.
Finite ordered channel-location schedules: A schedule is a finite ordered list of full-register channels, and its denotation composes them in chronological order.
Proof
Fix a fault pattern . At each , insert its declared local CPTP replacement; at each , use the ideal CPTP location map. Each is a full-register channel by the schedule definition [F3]. Applying [F2] successively in chronological order shows the finite composition is CPTP.
Let be the probability of pattern . The mutually disjoint pattern events cover the finite sample space, so their weights are nonnegative and sum to one by [F1].
Define . It is completely positive: for every finite reference and positive , is a nonnegative weighted sum of positive operators. It is trace-preserving because by steps 1.1 and 1.2.
For each input operator, averaging the conditional schedule outputs is exactly application of . Thus the finite stochastic schedule has a well-defined CPTP denotation.
Remarks
The proof uses the finite channel-location schedule, finite probability law, and channel-composition result. It applies to both the independent and local-stochastic fault-set branches.
An explicit scalar phase completes Clifford+T to full unitary density
Statement
Let , and use the exact matrices of Exact one-qubit gates and rotations. The inverse-closed alphabet generates a subgroup dense in in operator norm, including scalar phases.
For any encoding isometry , , the logical matrices have the following depth-one gadgets: apply the corresponding scalar matrix on coordinate one and the identity on every other coordinate. Count exactly scheduled locations, one on each coordinate, including the idles. Each gadget has literal spread one. A joint input with supported errors per live block and at most faulty elementary locations per block has joint -deviation at its output, with any finite external reference retained. These phase and idle gadgets are closed under recursive replacement: the phase operation is applied to the first child only, and all other children are idle. This supplies a phase gadget and its error budget, not the noisy correction or non-Clifford gadget contracts of a full proper code.
Facts & Assumptions
Given: The exact alphabet, a fixed finite encoding isometry, the specified phase/idle schedules and arbitrary CPTP replacements supported on the faulty locations.
Clifford+T Is Dense Projectively on One Qubit: the classes of generate a dense subgroup of with the quotient topology.
Powers of an Irrational Rotation Are Dense on the Circle: for irrational , the integer powers of are dense in the unit circle.
The operator norm as the least bound and as the unit-sphere or unit-ball supremum defines the operator norm as the supremum on the unit ball.
Code Deviation and Fault Spread: joint -deviation uses one CPTP error map with Kraus operators in the span of tensor operators of support at most per block, and identity on the external reference.
Finite ordered channel-location schedules counts each supplied ideal channel or faulty local replacement at its declared support; unlisted idles are not implicit.
The operator norm is a norm on the space of bounded linear operators supplies operator-norm homogeneity and the triangle inequality.
Proof
The number is irrational. Otherwise write with positive coprime integers . Then makes even, so and makes even, contradicting coprimality. Thus [F2] applies to the scalar phases .
The gadget matrix is . Consequently it intertwines with or exactly, including the scalar phase. Its channel is the identity on the whole physical operator space, also with an external reference. The schedule has one supplied gate or idle on each of the distinct coordinates, so [F5] gives size and depth one. Its literal unitary propagation changes no operator support.
Fix and . Write for the quotient. The set is open, because its inverse image is , a union of open operator-norm balls. By [F1], some matrix word in and their adjoints has projective class in that open set, so for some . By step 1.1 and [F2], choose an integer with . Since is unitary, [F3] gives and homogeneity and the triangle inequality from [F6] yield . This proves density in the full matrix group .
A union of at most faulty locations in this layer touches at most coordinates per block. Expand the incoming Kraus operators from [F4] as finite sums of per-block supported terms. Each product of a fault Kraus operator and such a term has per-block support in the union of their supports, of cardinality at most . The ideal scalar gates commute with all of them. Their composite is CPTP and hence is a joint error channel of the type in [F4]; it need not factor across blocks. This proves joint -deviation and the spread-one fault budget with the external reference unchanged. In particular, gives the computation-stage budget two needed when the declared capacity is two.
Replace a phase location by the same phase on its first child and idle locations on its other children; replace an idle by idles. At each replacement exactly one descendant carries the phase, so the full matrix after any number of replacements remains . Every elementary operation used is again or an idle. Thus this part of the finite alphabet is closed under recursive replacement, with at most children per phase or idle gadget and the exact level-one size and depth already proved. No controlled phase is identified with an identity gate: the claim concerns the displayed scalar matrices themselves, while their unconditioned channels are identity.
Remarks
Clifford+T alone has only finitely many determinant values, so its projective density does not imply full density. The explicit scalar generator above supplies the missing phases. It does not establish a verified -state factory, noisy recovery, or a complete universal fault-tolerant gadget family.
Fault Locations, Paths, and Rectangles
Definition
For a finite channel-location schedule , its elementary fault locations are the elements of the finite set in Independent Local Quantum Fault Model and Finite ordered channel-location schedules. A fault path is a subset ; it records where faults occur, not the CPTP maps chosen at those locations.
Fix a recursively replaced gadget family. A level-zero rectangle is one elementary location. A level- rectangle is the complete set of elementary locations used by one level- operation gadget, including its declared preparation, correction, measurement, reset, classical-control, and idle locations. Its level- child rectangles partition its elementary location set; in the ordinary rectangle recursion these child sets are disjoint. Let be a uniform upper bound on the number of child rectangles in any such parent. The extended rectangle for a gate is the union of its rectangle and its adjacent correction rectangles; extended rectangles may overlap and are not covered by the disjoint-child convention.
Use a separate integer for a uniform upper bound on the number of elementary locations in a level-one extended rectangle. The constants and count different objects.
Distance-Three exRec Correctness and Truncated Witness Reduction
Statement
Consider a finite recursively closed distance-three stabilizer-code simulation encoding one logical qubit per block, with the following checked local gadget conditions. The finite logical alphabet consists of unitary gates, prescribed one-block pure-state preparations (in particular the usual , and any verified pure magic-state preparation), and destructive rank-one basis measurements, together with explicitly retained classical records and their declared controls. Each template is a finite directed circuit with declared input/output quantum and logical classical ports. Syndrome-processing and ancilla records of an EC are internal to that EC; the checked channel or instrument identity includes every logical classical port, with decoded recovery acting as identity on ports it does not decode. Its internal ancillas are freshly allocated or reset for that invocation; every wire crossing invocations is an explicit template port. Recursive replacement refines these ported vertices and wires, rather than introducing an undeclared shared scratch register. These are hypotheses about elementary gadgets, rather than a hypothesis of exRec correctness or of a witness reduction. Use a complete stabilizer Pauli recovery, with one chosen Pauli correction for every syndrome, including uncorrectable syndromes. Let be this recovery followed by ideal decoding; require the zero-fault EC to obey on every input. Let , , project onto the span of weight-at-most- Pauli errors applied to codewords. Equalities below hold as channel equalities on the indicated subspaces, with arbitrary finite reference systems. They must also hold when a faulty location interacts with an auxiliary memory; the memory is untouched at nonfaulty locations.
For multiple blocks, the indicated error sector is the joint linear span of tensor Pauli errors with the indicated weight in each block, tensored with an unchanged external reference. Arbitrary coherent errors and correlations between data blocks are allowed; no product noise or product state is required.
An EC with faults maps every input into . For , it preserves decoded recovery on : , where a projection in a channel identity denotes restriction to its range. A gate gadget , with ideal logical unitary , on inputs in , where , has each output in and satisfies on those inputs. A one-block preparation of a prescribed pure state with faults has output in and decoded output its prescribed ideal state, independent of a reference or memory. A destructive measurement on with has precisely the ideal logical instrument after , including its retained classical outcome. Classical processing of the final outcomes is reliable. Idle gadgets satisfy the gate conditions. All scheduled operations, ancilla preparations, syndrome processing and measurements belong to these finite gadgets. Unknown unencoded inputs are not covered: initial inputs are encoded or are the prescribed preparations.
A rectangle is a gate gadget followed by output ECs; its extended rectangle (exRec) also includes its input ECs. Preparations have no input EC; destructive measurements have no output EC. Shared ECs are the only overlaps at a fixed scale. Use the following truncation convention recursively: when a later bad exRec claims an input EC, erase that shared EC from the earlier exRec, including every elementary location belonging to the recursively expanded later exRec. Here the expanded support is defined by the recursive input-collar construction in the proof: start with the ordinary recursively replaced gadget cores, and adjoin the leading lower-scale ECs of opening child roots, descending one scale at a time. Thus an erased EC also erases those opening lower-level ECs. Complete erased output ECs by ideal recovery ECs, starting at the lowest scale. Assume uniformly bounds the number of child-location roots in any complete one-scale exRec template, including its leading ECs; erased roots retain their template labels. Every recursive path has the declared full depth.
Scan roots in reverse circuit order. At scale zero a retained location is bad exactly when faulty. At scale , perform the scale- scan inside the retained exRec, completing erased ECs ideally. Call the retained exRec bad if at least two bad child roots survive this scan, and good otherwise. A bad root claims its entire retained exRec; an earlier root loses any locations so claimed. A good root removes only its rectangle during decoding, leaving its leading ECs for the earlier scan. Use any fixed reverse topological order when roots are incomparable.
Then every good complete or truncated exRec is correct: its retained rectangle followed by decoded recovery equals decoded recovery at its input followed by the ideal logical operation, on the state produced by its retained leading ECs. The scan reduces the circuit exactly to its ideal circuit with faults only at selected bad roots. Each selected bad level- root has a full binary witness tree of depth , with distinct faulty elementary leaves; trees of jointly selected bad roots have pairwise disjoint leaves. A fixed root has at most possible labelled witness trees, where . Consequently, for any specified roots which are required to be jointly selected bad at level , the independent elementary fault model gives
This bound includes the dependence of truncation on the fault pattern; it does not assert independence of the selected bad-root events.
Facts & Assumptions
Given: The finite recursive schedule, checked local gadget identities, decoder, truncation rule, full-depth hierarchy, bound , and reverse scan in the statement. Prove correctness, disjoint witnesses, and the probability bound.
Independent Local Quantum Fault Model: For any fixed set of distinct elementary locations, the probability they are all faulty is ; other locations are unrestricted. Conditional on the pattern, each replacement is a fixed CPTP map on its own declared support; there is no additional joint cross-slot operation or undeclared persistent fault-memory wire.
The finite union bound bounds the probability of a finite union by the sum of the probabilities.
The elementary EC, gate, preparation and measurement identities in the statement hold for every allowed fault map, with references and auxiliary memory retained.
The recursive templates, full-depth replacement, shared-EC overlap rule and bound are those in the statement. Truncation erases the full elementary support of a claimed later exRec, at every nested scale.
Authoring scope
The primitive interface above is the actual distance-three threshold setting of Aliferis–Gottesman–Preskill: one-qubit pure preparations and standard-basis destructive measurements. Generic mixed or multioutput primitive preparations and arbitrary POVM primitives were introduced by the first helper draft, not required by the pre-existing threshold claim. Their broader extension is not asserted here. The port discipline is the meaning of recursive replacement used below: it does not permit undeclared cross-invocation shared scratch. Conditional on an elementary fault pattern, the independent local channel model introduces no persistent external fault-memory wire; all actual wires are the declared circuit wires. Auxiliary memory remains allowed in the checked local identities, so those hypotheses are stronger than the actual patternwise model.
Exact syndrome-preserving boundary identity
The following local identity explains the syndrome-preserving alternative to a lossy recovery insertion. It applies at an actual adjacent input boundary of a later bad region; it does not place that boundary or justify crossing any retained gate.
For a level- block let be the invertible syndrome decoder, fix its zero syndrome , and define the code isometry . The coherent recovery isometry and its inverse on its range are
Since , exactly, including after tensoring any other blocks, classical records or memory. Tracing the stored syndrome after gives the code-valued recovery ; that trace is not made in the boundary identity.
If is the actual retained channel of the selected later bad region, put on . Then
This is a typed channel equality on every input, not merely on the logical marginal. Both operations act only on that input block and its new syndrome register; all other logical blocks are unchanged references. Thus the reconstruction adds neither a logical data support nor an elementary witness address. It is included in the already selected bad region's effective operation, and no new bad region is introduced. The same equality is valid for a bad quantum comb when is inserted at its actual first input port: all its later memory ports and their chronological order remain as originally supplied. For disjoint blocks use tensor products of . For nested cuts use their actual temporal composition and reconstruct in the inverse order, so that adjacent pairs cancel. This last assertion is an identity of composed isometries; it does not allow any pair to cancel through an intervening retained gate.
The proof below does not insert these recovery isometries: it changes coordinates at actual owned block boundaries. The identity records why a syndrome-preserving reconstruction, if used, would have to remain local and adjacent; it cannot justify crossing a retained gate.
Proof
Choose a complete stabilizer syndrome decoder , using the stipulated Pauli recovery representative for each syndrome. The stabilizer eigenspaces are mutually orthogonal copies of the code, so this map is unitary. Write and . Recursively, first applies to each subblock and then to the resulting logical coordinates, retaining every syndrome register. Thus after applying . A weight-filter sector becomes or , where is the span of syndrome basis vectors of errors of weight at most . For a degenerate code, errors with the same syndrome give the same copy of the logical space, so this assertion remains true. All tensor products below include the external reference unchanged.
Here are the actual circuit boundaries used below. An ordinary gadget core is its recursive replacement circuit, before adjoining leading ECs of its opening child roots. Give every child slot its schedule address and every shared EC one physical address. To expand an exRec, adjoin those opening leading EC cores, then their opening leading EC cores at the next lower scale, and continue downwards. An added leading -EC is the output -EC of the previous -rectangle on precisely that wire; it does not include the previous gate. Thus after a later bad root claims its expanded support, its earlier neighbors lose only output ECs at the outer scale and at successively lower scales. Each affected lower rectangle still has the full input and output registers of its own gate. Its missing EC wires are connected directly from the last retained operation to the first operation owned by the later root. Register identity along that connection does not assert equality of their states after any recovery. This is a boundary in the actual retained directed circuit, not a factor of a remotely placed final decoder. Gates on other wires may lie between its endpoints in a linear schedule; none lies on that wire between these endpoints, by the definition of the preceding rectangle.
At scale one let count faults in the leading ECs, those in the gate, and those in the output ECs which are present. If their total is at most one, the leading ECs put the input in . The gate takes this entire sector into on each output, where , and has decoded logical action . Every present output EC preserves that action because . If an output EC is absent, the decoded gate identity already gives precisely the same conclusion on that output; no EC is inserted. This proves, simultaneously for every subset of output ECs retained, . The corresponding preparation and destructive-measurement identities are exactly those in [A1]. This establishes the base assertion for complete and truncated rectangles together.
First remove transparent classical bypasses from the EC ownership graph. A retained logical classical record on which acts as identity cannot have a last incident location inside an elementary EC: replacing that location by its ideal operation followed by resetting that outgoing bit to zero is an allowed one-location CPTP fault. No later EC location could restore it. On an encoded quantum input with that logical bit equal to one, this would violate , including its classical port. The same argument excludes a newly prepared retained logical bit. Thus these external record wires pass untouched through the EC; route their fan-out directly from their original incoming source, outside the EC owner. Recursive refinement preserves these bypasses because it replaces locations, and there is no EC location on such a wire to replace. Records obtained by decoding an encoded block instead belong to that block bundle until its declared measurement. Now contract ordinary recursively replaced cores. By the port discipline this recovers the parent circuit DAG, with the transparent wires bypassed: all internal ancillas close within their invocation, and every remaining external quantum or classical wire is a parent edge. Moving a shared EC from an earlier rectangle to a following selected bad exRec transfers an output-terminal subcircuit forward along that edge. No output of the moved piece returns to a retained operation of the earlier owner. To check the last assertion at nested boundaries, take the first lower EC core adjoined across the boundary: it is the trailing EC immediately before the first opening child in the already transferred piece. A retained gate on that wire between it and that child would contradict their being consecutive. Any other non-bypass output of that EC is an internal ancilla, closed within the same EC, or another output in that same block bundle. Repeat at smaller scales. Thus every collar piece transferred forward is terminal on all its non-bypass external output wires in the retained earlier owner. All such outputs of the transferred EC feed the claiming successor: syndrome-processing records are internal, transparent classical fan-out has already been bypassed, and the quantum output is precisely that successor's input bundle. Thus each new quotient edge into the successor replaces an old forward path through the preceding owner and that EC; there is no new outgoing edge to a third owner. Such a transfer cannot create a quotient cycle, since replacing every new edge by its old forward path would give a cycle in the previous DAG. Repeating these finite transfers, in the prescribed reverse root order and descending collar scale, gives disjoint owners and a causal quotient DAG. The owner's interface can be staggered in elementary time; at a stagger use its complete child block bundles, descending until each bundle is exposed. Every primitive multi-register operation belongs to one owner and is never split. This also proves that the quotient's root labels and the addresses erased at its boundaries are exactly those in the stated scan.
We will retain the syndromes in that identity. If a CPTP map on has logical marginal for every input, its conjugation by has identity logical marginal. Its Choi matrix has marginal supported on the one-dimensional maximally entangled logical subspace. Positivity forces the entire Choi matrix to have support in that subspace tensored with the remaining registers; hence it factors as the identity-channel Choi matrix times the Choi matrix of a CPTP map on . Consequently . Apply this to the entire filter sector in step 2.1, which by step 1.1 is the full logical space tensored with an allowed syndrome subspace. It gives an exact syndrome-retaining identity on that sector, including all input correlations. Extend to the remaining syndrome space by first projecting onto this sector and its orthogonal complement and using any fixed channel on the complement. Only the restriction is used on reachable states. For a prescribed pure preparation, its pure logical marginal forces its joint logical/syndrome output to be that state tensored with a syndrome state; this follows by the same positivity-support argument. For a good destructive measurement there is no syndrome output: its full quantum-to-classical channel on the admitted sector is exactly the ideal measurement following , with all other-block syndromes included in the unchanged external reference. Retain its classical output as a logical wire. No tensor-factor theorem for a general instrument is being assumed.
Fix the elementary pattern. Its replacement maps are fixed local CPTP maps by [F1]; they have no unlisted persistent memory port. Contract each actual physical owner in the DAG of step 2.2, before introducing any syndrome coordinates. It is a channel on its declared block bundles and classical ports; other live blocks are references. Now change coordinates at its actual input and output bundles: , so exactly. Insert on each internal block edge of that DAG; the adjacent pairs cancel. At a staggered interface use the lower bundles of step 2.2 and keep the upper decoder on their logical outputs. No decoder crosses an intervening retained gate. In this construction a syndrome register is the coordinate of its particular physical block edge, not a new global bath: a multi-block operation can process syndromes only on its declared block ports, and a destructive measurement has no outgoing quantum or syndrome port. Thus the coordinate change introduces no extra cross-owner memory edge or cycle. In particular, for a bad owner is the conjugation of the ORIGINAL retained physical channel, with its original incoming syndromes. Its logical support is only its declared blocks and classical ports, and its elementary support has not enlarged. Neither a physical ideal recovery nor the false identity has been inserted.
To compare this exact network to the scan, distinguish a restored address from its original physical address: the former is a virtual ideal copy at the same template slot; the original, if claimed by a later bad owner, stays with that owner. Restore the erased cores and collars from the smallest scale upwards. We prove by address induction that every opening EC address of a virtual child is also virtual. Within its restored core this is immediate; at the input boundary the address is one of the leading ECs adjoined by the expanded-support rule of step 1.2, hence was claimed and erased together with that core, and is restored as a fresh ideal copy. Repeat down to elementary addresses. Therefore every wholly added child's entire expanded support is ideal, not merely its gate core. It is good at scale zero and, inductively, at every scale, so it makes no claim on a retained physical address. A retained child's new output EC pieces have just this property; its original physical faults and original leading addresses are unchanged. Induct on its scale: the added child roots are good and make no erasure, and the original child roots have unchanged bad flags and unchanged claims on original addresses. Hence the selected bad children and their template labels agree with the scan in which those output EC pieces are absent. This proves the needed scan mapping without replacing any retained real context by an ideal channel.
Specify the induction domain at one actual INPUT boundary, rather than intersecting constraints at different circuit times. Fix the fault pattern, root and truncation. At every exposed opening lower block port record the filter required by that opening component's leading EC; impose no filter at an opening bad component. Also record the outer one-scale filter on the decoded subblock coordinates of each parent input block, where counts the effective faults in its leading EC. These are all conditions on the same input registers. Under the recursive decoder each lower-port filter constrains the syndrome register of its decoder-tree node; the outer filter constrains the outer syndrome register. Each acts as identity on the final logical coordinates by step 1.1. Thus their joint allowed space is for a syndrome subspace (use a direct sum of allowed syndrome tuples if several boundary cases are allowed). No filter at a later intermediate time is included in this definition. We prove simultaneously at scale : a good retained rectangle has ideal logical action on EVERY state in this full input space, with arbitrary reference; its syndrome-retaining form is the factor in step 3.1; a bad owner is its original exact conjugation; and a leading-EC subnetwork with effective child faults puts its decoded subblock coordinates in , preserving their decoded logical state on when . The EC assertion is on those decoded coordinates, not a claim of weight-at-most-one elementary error at every concatenation level. At scale one these assertions are exactly [A1] and step 2.1 and step 3.1.
Suppose the assertion holds at every scale at most . Decompose a retained level- exRec using the actual level- block interfaces of step 2.2, descending through staggered collars. All components used here have scale at most . Start with an arbitrary state in the full input sector of step 4.1, and process this DAG in topological order. For each next good component its leading EC is either at the initial boundary, where the required filter is part of , or is already in the processed prefix, where the lower-scale EC assertion forces that filter on EVERY incoming state. A bad component needs no input filter. This forward support induction proves eligibility of each lower-scale identity for every state in the parent input sector; it does not infer eligibility merely from one particular image of the parent leading EC. Contract their original channels and change coordinates as in step 3.2. The induction hypothesis replaces a good unitary component by its ideal logical gate and a syndrome-only channel; a good preparation by its prescribed pure logical state and a syndrome state; and a good destructive measurement by its ideal quantum-to-classical channel, discarding that measured block's syndrome. Classical outcomes remain explicit logical wires. On other blocks all syndrome registers remain references. The tensor syndrome channels on the surviving block edges commute with ideal logical gates on those edges, and with a measurement on its logical coordinate before its syndrome is discarded. If the parent is good there is at most one bad component by step 3.3. Keep each syndrome-edge channel in causal order. Its causal past supplies an arbitrary finite syndrome-memory input to that one fault; its causal future has no further access to logical data through a fault. After tracing the final syndromes, those future trace-preserving memory channels have no effect on the logical instrument and can be removed, even when conditioned on retained classical outcomes. With no bad component the whole syndrome network is of this harmless kind. Thus only the memory already arriving at the bad component is included in its effective fault map; no future outcome is pulled backwards and no other logical block is accessed. Classical controls are handled on each retained classical history, keeping the corresponding instrument branch and summing those branches at the end. This is the primitive one-scale template with at most one effective faulty location, the same classical ports, some output ECs omitted, and arbitrary finite memory only at that fault. It has not contracted multiple bad owners into a common channel or reordered memory interactions between them.
Apply [A1] to the resulting one-scale network. If effective faults are in leading EC , the EC condition puts its coarse output coordinates in for every coarse input, with the smaller syndrome registers retained as reference or allowed fault memory. On a coarse input it also gives the asserted decoded preservation whenever . This proves the auxiliary EC assertion at the new scale. The gate filter condition similarly propagates the coarse input filters, and its decoded identity, followed by any present output ECs, gives step 2.1 for the parent. Its absent output ECs remain absent. Since step 5.1 established every lower component's eligibility for ALL states in the input sector defined in step 4.1, this is a channel identity on that full sector, not just on the image of a preceding channel. Step 3.1 now supplies the parent's syndrome-retaining factor, pure preparation factor, or destructive measurement identity, as applicable. It remains to verify the ENTIRE boundary sector for the actual parent leading-EC output. Use the following cover of the actual exposed ports. A retained good opening level- component has its immediately preceding level- EC and the descending input collar of available as physical context, possibly owned by an earlier rectangle. Here availability is relative to the network under consideration: if is inside a larger claimed owner, that owner contains this context. If a different later owner had erased from this context, its only external quantum outlet would lead to . By step 1.2 and step 2.2 the claim must then include that immediately following opening region; it cannot pass through or jump across a retained gate. Thus would have been removed into that owner, or would itself be the selected bad claimant, which imposes no boundary filter. Private EC records give no alternative outlet. This excludes precisely the case of a retained good whose necessary EC has disappeared; it does not assert that an EC owned elsewhere is absent from the physical circuit. For each such good , its scan contains at most one bad child in total, hence at most one in . To apply the EC assertion to , first cover the opening ports of and its retained collar in the same manner at scales STRICTLY BELOW . At scale zero there is no decoder input filter to supply. Ascending this finite cover tree, the already proved lower-scale EC assertion therefore forces each required filter for every incoming state, including an arbitrary output of a preceding bad owner. A bad opening component requires no filter, and virtual opening components have entirely ideal collars by step 3.3. For a parent of scale , the largest used in this cover is , so no same-level EC assertion is invoked to establish its own input domain. The cover establishes all lower exposed-port constraints of independently; applying the elementary EC condition to the reduced actual parent leading EC then supplies its outer constraint. Their joint range is exactly the input-boundary sector defined in step 4.1. In particular no outer condition is used to infer a lower syndrome condition. A bad parent is still its original conjugated channel. This closes the simultaneous induction using only strictly smaller-scale identities in step 5.1 and in the cover descent, and elementary identities at the new scale. Encoded inputs or the prescribed pure preparations close the initial circuit boundary, and final destructive instruments give the ideal output law when all selected top roots are good.
A selected bad level- root, , contains at least two selected bad child roots in its retained scan. Choose the first two in the fixed order, and repeat inside each of them down to scale zero. The result is a full binary tree of depth . A later selected bad child claimed every location of its retained exRec before the earlier child was processed. Hence the two child supports are disjoint. This remains true at every nested boundary because [A2] erases all overlapping elementary locations, not just the nominal outer EC. Induction down the tree gives distinct faulty elementary leaves. The same argument gives disjoint leaves for trees from jointly selected roots. Ideal completions create no faulty leaves.
Count the trees before considering probabilities. At each internal vertex its two child roots have labels in its fixed complete exRec template, with at most possibilities; hence their unordered pair has at most possibilities. Order that pair by the fixed template order. A full depth- binary tree has internal vertices, so it has at most labelings. A label sequence fixes every elementary leaf's physical location in the original schedule, regardless of which ECs the scan erased: truncation deletes locations and never changes a root's template address. Thus no extra count of truncation patterns is needed. Some labelings cannot survive a scan or repeat a leaf; discard them. Every actual witness is among the remaining predetermined labelings, by step 7.1.
For specified selected bad roots, choose one of these labelled witness trees for each root. There are at most such tuples. Keep only tuples with distinct elementary leaves. For a fixed retained tuple the probability all its leaves fault is by [F1]; no restriction on other locations, erasure decisions, or additional faults is imposed. Step 7.1 makes the event of interest a subset of the union of these fixed leaf-fault events. Applying [F2] proves . This proof uses independence only for fixed elementary locations and therefore remains valid for fault-dependent truncations.
Remarks
The proof uses the original retained channels throughout. Ideal completions serve only the scan's address bookkeeping. Good destructive measurements discard their own syndrome and retain their classical logical outcome; only unitary logical factors use the Choi factorization. Broader primitive classes such as generic mixed multioutput preparations and arbitrary POVMs are not included in this source-derived helper and would require their own instrument/environment interface proof.
Repair history
The first two attempted repairs did not supply a valid internal decoder-cut placement invariant. An expressly authorized third cycle identified the additional distinction between a lossy recovery identity and an invertible syndrome-retaining identity; the proof claim remained retracted. The exact pre-cycle-three source remains in research/quantum-computing-algorithms-60-2026-10-15-owner/qc21-cycle3-preimages/lem-qc-t1-truncated-exrec-witness-reduction.md. Continuing user authorization then permitted cycle four without resetting that history. Its exact preimage and its first independently rejected coordinate-network candidate remain in research/quantum-computing-algorithms-60-2026-10-15-owner/qc21-cycle4-preimages/. The primitive-scope clarification restores the actual original threshold setting rather than claiming a new arbitrary-instrument theorem. The replacement argument contracts original physical channels on declared ports before changing coordinates, so no independent shared syndrome bath is introduced.
Disjoint Fault-Location Events Are Independent
Statement
In the independent local fault model, events determined by pairwise disjoint finite sets of location fault indicators are mutually independent. In particular, bad-rectangle events determined only by the faults in pairwise disjoint child rectangles are independent.
Facts & Assumptions
Given: A finite set of independent Bernoulli fault indicators indexed by , and pairwise disjoint subsets . For each , let be an event determined only by the indicators indexed by . Prove that are independent.
Independent Local Quantum Fault Model: A fault pattern has probability .
Fault Locations, Paths, and Rectangles: Distinct child rectangles used in the ordinary recursion have pairwise disjoint elementary-location sets.
Independent families of event classes: For distinct event classes, every finite intersection of chosen events has probability equal to the product of their probabilities.
Proof
For each , let be the finite set of fault-indicator patterns on , and let be the patterns that realize . The event is the disjoint union of the pattern events over .
For any tuple , the joint pattern event fixes one bit at each location in . The product fault law [F1] gives its probability as the product of the one-location bit probabilities; this is the finite-intersection condition in [F3].
Summing over the finite Cartesian product and distributing finite sums gives . Thus are mutually independent.
Conditional Distance-Three Extended-Rectangle Threshold
Statement
Assume the finite recursively closed distance-three, gadget family, complete syndrome decoder, explicit port discipline, local channel model and checked elementary correction, gate, pure-preparation and destructive-basis-measurement identities of Distance-Three exRec Correctness and Truncated Witness Reduction. Each level-zero rectangle is one elementary location, faulty independently with probability . Let bound the number of child-location roots in each one-scale exRec template, including leading ECs, and put . Use that lemma's reverse scan and expanded-support truncation convention.
Define the uniform probability envelope and . Then
For any specified roots, the probability that they are jointly selected bad at level is at most . For top-level roots, the probability of any selected bad root is at most , and every final classical success probability differs from ideal by at most . If , then super-exponentially. For fixed gadgets and fixed subthreshold , achieving error at most requires levels and polylogarithmic multiplicative size and depth overhead. Elementary gadget correctness remains an explicit hypothesis; recursive exRec correctness and the witness reduction are supplied by the cited lemma.
Facts & Assumptions
Given: The checked local gadget and recursive port hypotheses in the statement, , the independent fault process, , and target . Prove the probability and overhead bounds.
Distance-Three exRec Correctness and Truncated Witness Reduction supplies correctness of good complete or truncated exRecs and the joint bound from fixed disjoint elementary witness leaves.
Independent Local Quantum Fault Model supplies the finite independent elementary fault process and fixed patternwise local replacement maps.
The finite union bound bounds a finite union by the sum of its probabilities.
Proof
The local hypotheses in the statement are precisely those of [F1], and [F2] supplies its independent elementary model. Thus [F1] bounds the joint selected-bad event for any specified roots by . Since , this is . This argument uses only fixed elementary witness leaves; the selected bad-root events need not be independent.
The expression equals at and satisfies . Hence it is the stated recurrence envelope. In particular step 1.1 with bounds each selected bad-root probability by .
By [F3], the probability of any selected bad top-level root is at most . For every pattern in its complement, [F1] gives the ideal output instrument. Consequently the full output law is for some probability law ; at choose arbitrarily. Each success probability differs from ideal by at most . This remains true if the complement has probability zero, since then .
If , at every level. Otherwise for fixed put and . The bound holds whenever , and level zero suffices when the right side is at most one. Hence the least qualifying level is . The finite recursive gadget family has a constant size and depth expansion bound , so a circuit of original size and depth has size at most and depth at most , with a fixed boundary factor. Its multiplicative overheads are polylogarithmic, and super-exponentially.
Remarks
The local gadget conditions and port discipline are essential. The witness-tree proof handles fault-dependent truncation without independence of adaptive selected events. It applies to the stated pure-preparation and destructive-basis-measurement primitive family; no general mixed multioutput preparation or arbitrary POVM primitive is inferred.
Twice-Concatenated Steane Code and Its Transversal Clifford Gates
Statement
Let be the row space over of
Define by
The image of is an explicit stabilizer code. It admits a fixed exact decoded recovery for the entire linear span of Pauli errors of weight at most four, preserving every finite reference. In particular it has the error-correction capacity , with ; this assertion concerns ideal recovery, not a noisy recovery gadget.
Put . The following identities include their scalar phases exactly:
Here the last tensor product pairs equal coordinates of the two blocks, with the first block as control. Each displayed gate circuit has depth one and exactly gate locations. It has spread one in the support-propagation sense of Code Deviation and Fault Spread, for arbitrary joint fault channels on any set of its locations. For a two-block CNOT, errors on input coordinate sets and can affect coordinates in either output block; no bound by is asserted.
Facts & Assumptions
Given: The displayed binary matrix, coset encoding, concatenation map, and exact ordered one- and two-qubit gates.
CSS encoding dimension and commutation gives the coset encoding, its stabilizer space, and the exact dual-coset Hadamard formula.
Stabilizer projector and code dimension gives dimension for independent commuting stabilizer checks on qubits.
Stabilizer distance defines distance by the least weight of a nontrivial Pauli class in the centralizer, modulo scalar phases and stabilizers.
Stabilizer distance detection and correction gives exact recovery for the linear span of weight-at-most- Paulis when is less than the stabilizer distance.
The Pauli matrices and Exact one-qubit gates and rotations specify the exact matrices ; CNOT and Control-Target Order specifies .
Code Deviation and Fault Spread defines literal unitary support propagation per output block, retaining a finite reference.
Proof
The columns of are the seven distinct nonzero vectors of , and its last three columns are the standard basis, so its rank is three. Each row has weight four and any two distinct rows have overlap two; hence and . Every nonzero word of evaluates a nonzero linear functional on these seven columns. Such a functional takes value one on four of the eight vectors of , and takes value zero on the zero vector, so all seven nonzero words of have weight four. Also and , so . Since , it follows that . The two coset sums defining are orthonormal.
The six checks , with ranging over the rows of , are independent commuting Hermitian Paulis, and their common fixed space is by [F1]. A Pauli centralizes them exactly when , and is a scalar-phase stabilizer exactly when . No nonzero word of has weight one or two, since the columns of are nonzero and distinct. Thus a nontrivial centralizer class has weight at least three. The operators attain three and act respectively as logical on the displayed basis: translation by exchanges the cosets, and since and . Therefore this seven-qubit code has distance exactly three.
Since has representatives , , and , the exact Hadamard formula in [F1] gives . For , its weight is zero or four, so . For , the weight identity is congruent to three modulo four: the first weight is three, the second is divisible by four, and the intersection size is even because . Thus , with no additional scalar phase. Taking adjoints of this diagonal action also gives .
Partition the coordinates into seven ordered inner blocks. Take the six inner checks from step 2.1 in each block, giving checks. Lift the six outer checks by replacing their single-qubit factors with the inner representatives . All checks commute: inner checks commute with these representatives, and the representatives obey exactly the one-qubit Pauli commutation rule on each block because . The checks are independent. Indeed, reducing a relation among them modulo the seven inner stabilizer groups leaves a relation among the six independent outer Pauli labels; thus all six outer exponents vanish, and independence of the disjoint inner checks then makes the remaining exponents vanish. They fix every vector in , so their group excludes . By [F2] their fixed space has dimension and consequently equals .
On the pair of encoded computational basis states with logical bits , coordinatewise CNOT sends the summand to . The substitution is a bijection of , so the transformed sum is exactly . Linearity gives the seven-coordinate CNOT intertwining identity. Applying it first in every inner block pair and then to the outer encoding proves the stated -coordinate identity. Likewise step 2.2 at the inner and outer levels gives and .
Let centralize these checks. Its restriction to each inner block centralizes the six inner checks. Modulo an inner stabilizer and scalar phase, that restriction is uniquely one of , by the description in step 1.1 and step 2.1. Its seven labels therefore define an outer Pauli. Commutation with the lifted outer checks says exactly that this outer Pauli centralizes the seven-qubit outer code. If its outer class is trivial, multiplying the corresponding lifted outer stabilizers leaves an inner stabilizer in each block; hence is a scalar-phase stabilizer of the -qubit code. Otherwise at least three inner blocks have nontrivial labels by step 2.1, and each of those restrictions has weight at least three. Thus every nontrivial class has weight at least nine. Lift the weight-three outer logical using weight-three inner in its three occupied blocks. This gives a nontrivial logical Pauli of weight nine. The distance is therefore exactly nine.
Let list all phase-free Paulis of weight at most four. Their normalized Kraus family defines a channel, since each is unitary. Apply [F4] with , since , and compose its recovery with inverse encoding to obtain a decoded recovery with Kraus operators . This one recovery works uniformly on the entire error span. Indeed its correction of the displayed mixed-Pauli channel means that the operators are Kraus operators of the identity logical channel. Each must be a scalar multiple of the logical identity: for every pure logical input their output vectors must lie in its one-dimensional span, since their positive rank-one output sum is that pure input; applying this to a basis and its pairwise sums makes the scalar independent of the input. Thus . For any channel with Kraus operators , it follows that ; trace preservation makes the sum of squared scalar moduli one. Therefore the decoded channel is the identity, also after tensoring every operator with . This proves uniform capacity four and hence the declared smaller capacity two.
Each circuit consists of disjoint one- or two-qubit gates in one layer, so its size is and its depth is one. In a CNOT layer a location touches one coordinate in each block; in a one-block layer it touches one coordinate. Replacing any chosen locations by an arbitrary joint CPTP map supported on their union changes no other output coordinate, since all other gates are disjoint from that union. The same support assertion holds for every Kraus operator, including after tensoring ; no product assumption on the joint fault map is used. Thus one faulty location has spread at most one per block, and any collection has the union bound in [F6]. Conjugating an input-supported operator by a transversal layer also preserves coordinate labels, except that CNOT may transfer its support to the matching coordinate of the other block. Input supports therefore give output supports contained in in each block. This proves all gate and spread assertions.
Remarks
The ideal decoded recovery proved here is not a finite noisy error-correction circuit with a proved spread bound. This lemma supplies the code, its actual distance and three exact transversal Clifford circuits. Verified ancillas, a universal non-Clifford gadget, bounded syndrome processing and closure under recursive replacement require additional construction and proof.
Minimum-Weight Recovery Failure Yields a Half-Error Crossing Path
Statement
For an integer , use the relative square patch with data edges. Let be a set of actual -error edges and let be any minimum-cardinality correction satisfying (the same perfect syndrome). Recovery fails logically when . In that case contains a self-avoiding primal path joining the left and right rough boundaries. Writing , one has and .
Facts & Assumptions
Given: An integer , the relative square patch, a finite actual -error chain , its perfectly measured syndrome, and any correction chain of minimum cardinality among chains with that syndrome. Prove the crossing-path witness on logical failure.
Square planar surface code: The X-check matrix is , with rows indexed by vertices outside and columns by physical edges.
Stabilizer syndromes and logical Pauli operators: For a phase-aware Pauli error , the syndrome convention is .
Pauli matrix algebra and trace identities: Distinct Pauli matrices anticommute.
Square planar surface-code distance and path count: Every nontrivial Z logical class contains a rough-to-rough path of length at least , and a straight row attains .
Proof
For a -error chain , its commutation sign with the check at nonrough vertex is : the exponent is the parity of incident error edges by [F1], and every overlapping and factor anticommutes by [F3]. Thus the X-check component of the syndrome is by [F2]; every Z-check component is zero because Z-type Paulis commute. Equality of the perfect syndromes of and therefore gives .
Put . Logical failure means that is a nontrivial -logical class. By [F4], it contains a rough-to-rough path of length at least . If that path repeats a vertex, delete the closed subpath between two occurrences; finitely many such deletions produce a self-avoiding path whose edges remain in and whose endpoints remain on the left and right rough boundaries. It crosses every one of the vertical cuts, so , and self-avoidance bounds .
The path has zero relative boundary because its internal vertices have even degree and its two endpoints are omitted rough vertices. Hence has the same syndrome as . Minimum cardinality gives . Since , each edge of belongs to exactly one of and ; comparing the two cardinalities and canceling the edges outside yields . These counts sum to , so .
Encoded error instruments and full-space CPTP error maps
Statement
Let be an encoding isometry into a finite tensor register and let be the finite operator error span of Code Deviation and Fault Spread. A full-space CPTP map with Kraus operators in , restricted after , gives a trace-preserving encoded error instrument. The converse is false even for the explicit code and : the encoded isometry
has range in the weight-one error sector but no full-space CPTP extension whose Kraus operators all lie in . Thus neither an encoded error instrument nor one of its normalized conditional outputs can in general be identified with a full-space CPTP error map.
Nevertheless, a fixed decoded recovery which corrects the normalized mixed channel of all weight-at-most- Pauli errors corrects every trace-preserving encoded error instrument with Kraus operators , . This conclusion also holds for joint per-block error spans and arbitrary finite external references. If coefficients act on auxiliary memory, the recovery preserves the logical/reference marginal after summing the instrument outcomes and tracing that memory; a retained memory need not have identity output action.
Facts & Assumptions
Given: The finite error spans, an encoding isometry, the actual fixed recovery in the last assertion, and, for the counterexample, the explicit twice-concatenated Steane code.
Code Deviation and Fault Spread supplies the supported operator span and the stronger full-space CPTP deviation relation.
Twice-Concatenated Steane Code and Its Transversal Clifford Gates proves the code, describes its inner and outer stabilizers, and supplies a uniform recovery through weight four.
Exact recovery of an encoded quantum code defines exact decoded recovery as an equality of logical channels, including arbitrary finite reference identities.
Proof
If are Kraus operators of a full-space channel, their restrictions satisfy . Partitioning a finite Kraus family into recorded outcomes gives an encoded instrument; each branch is completely positive and the sum is trace preserving on the logical input. No assertion that each branch has trace one is needed.
In the code [F2], no nonidentity scalar-phase stabilizer has weight one or two. Indeed, an inner-block stabilizer has binary labels in the row code ; every nonzero word of has weight four, so a nonidentity inner stabilizer has support at least four. If a full stabilizer has a nontrivial outer stabilizer label modulo the inner groups, that outer label has at least four occupied inner blocks, and each nontrivial inner logical restriction has weight at least three, giving weight at least twelve. Thus distinct phase-free Paulis of weight at most one have : their product has weight at most two, is not a scalar-phase stabilizer, and is detected by some check. Also . Hence the maps have pairwise orthogonal ranges and the restriction is injective on .
List the phase-free weight-at-most- Pauli operators as . Their normalized mixed channel has Kraus operators . Let be Kraus operators of a fixed decoded recovery correcting it. Then form a Kraus representation of the identity logical channel. Every Kraus operator of the identity channel is a scalar multiple of : its output on every pure input must lie in that input's one-dimensional span, and linearity on basis vectors and their sums makes the scalar independent of the input. Thus for scalars .
Put . Step 1.2 gives , so . Therefore is an isometry and its encoded channel is trace preserving. Suppose a full-space channel with Kraus operators agreed with this channel on the code. For any logical vector , positivity of the rank-one output sum forces every to be proportional to . Since is an isometry, linearity on a basis and its pairwise sums gives scalars , independent of , with . The injectivity from step 1.2 then gives .
For any encoded instrument write . Step 1.3 gives , where . Complete trace preservation on the encoded input gives . Hence recovery of the full instrument is the identity logical channel; each recorded branch is a nonnegative scalar multiple of that channel, without requiring a normalized physical error map. Tensoring every displayed equality with an external reference identity proves its reference-preserving version. For several blocks use tensor Pauli labels and the product recovery; tensoring the scalar identities from step 1.3 yields the same proof for their joint span.
Trace preservation of the supposed extension would require . This is impossible: annihilates the nonzero eigenspace of . Thus no such extension exists. The encoded map can also occur as a normalized measured branch: prepare a control in , apply controlled , and measure that control in the basis. The plus branch has physical Kraus operator ; on code inputs its probability is by step 1.2, so its normalized output is exactly . The full two-branch instrument is trace preserving.
If coefficients in these expansions are operators on fault memory, the corrected Kraus operators instead have the form . Trace preservation makes their full sum a channel acting on that memory alone. It leaves the logical/reference marginal unchanged even for correlations with memory, since a local trace-preserving operation does not change a remote marginal. Its individual outcomes may have subnormalized probabilities and may condition correlations; its memory output need not equal its input. This proves the stated interpretation with memory and completes all assertions.
A Finite Four-Round Verified Shor Correction Circuit
Statement
For the explicit encoding of Twice-Concatenated Steane Code and Its Transversal Clifford Gates, there is a fixed finite correction circuit with the following properties. With zero faults it maps every input into the code and exactly corrects the entire weight-at-most-four Pauli error span. On inputs in the weight-at-most-two error sector, at most one faulty location leaves the original logical state with a weight-at-most-one residual error. These identities hold with every finite external reference retained, for arbitrary CPTP faults on a location's registers, also with an auxiliary fault memory. The branch assertion is an assertion about subnormalized Kraus maps: each branch, restricted to an admitted erroneous encoding, is a linear combination of weight-at-most-one operators after , with scalar coefficients on the logical factor. Summing branches and applying the declared exact decoded recovery gives the identity logical channel.
There is also an arbitrary-input attraction property: with at most one fault, every branch has output range in the span of weight-one errors applied to the code. Here the resulting logical state is unspecified and may be correlated with retained syndrome and fault memory; preservation of an arbitrary initially unencoded logical interpretation is not asserted.
The circuit uses preparations of , , , CNOT, Toffoli, computational-basis measurement, reset/discard, and their classical restrictions. All controls are physical circuit registers. It admits a fully serial schedule with fewer than locations including every idle, depth less than , and fewer than live qubits. This is a construction over that finite elementary alphabet; fault-tolerant recursive replacements for its Toffoli and preparation operations are not asserted here.
Facts & Assumptions
Given: The ordered -qubit code, its ordered independent checks (the inner checks first, followed by the six lifted outer checks), and an arbitrary finite external reference.
Twice-Concatenated Steane Code and Its Transversal Clifford Gates proves the checks, distance nine, and a fixed decoded recovery for the entire weight-at-most-four Pauli span. Every check is purely or purely and has weight at most twelve.
The Pauli matrices gives a basis of the operator space at each qubit; tensor products give a basis on the registers of one location.
Finite measurement branches and classical control permits finite instruments and circuit registers controlling a finite suffix.
Code Deviation and Fault Spread specifies joint Kraus error sectors, finite external references, and subnormalized branch identities for correcting instruments; auxiliary fault memory is not an unchanged external reference.
Proof
Fix a total order on the -qubit Paulis modulo scalar phase. For each of the syndromes , choose the least-weight Pauli having syndrome , breaking ties by that order. Such a Pauli exists: independence of the check labels makes their symplectic linear functionals independent, so their syndrome map has rank and is onto. Then maps the syndrome- eigenspace into the code. If a Pauli has weight at most four and syndrome , has weight at most four, and is a centralizer element of weight at most eight. Distance nine forces its code action to be scalar. Consequently measuring the full syndrome and applying is a fixed code-valued recovery on arbitrary inputs and corrects the full weight-four error span.
All Boolean functions below are finite explicit functions of their displayed input bits; use the following fixed reversible implementation whenever a truth table is specified. For each input string in lexicographic order, temporarily negate its zero positions, compute the conjunction of the input bits into fresh zero scratch bits by a Toffoli chain, toggle each designated output bit whose truth-table value is one, uncompute the chain, and undo the negations. Initialize output and scratch bits to zero. For input bits and two output bits this takes at most one-, two-, or three-register gates, with at most workspace registers. Each implementation has its own input copies and scratch: no working register is shared between distinct output coordinates. Classical restrictions mean these reversible quantum gates acting on computational-basis registers; no noiseless Boolean operation is assumed.
To measure a check , , form two fresh candidate cat registers. A candidate is prepared by initializing zero qubits, applying to the first, and CNOT from the first to each remaining qubit in increasing order. Verify it by measuring , for , three times each. Each parity measurement uses a fresh zero target, CNOT from cat coordinate to the target, CNOT from coordinate to the target, and target measurement. Keep all raw records. An acceptance predicate is true exactly when every triple has majority zero. Copy these raw records, using direct CNOTs from each raw register into fresh zeros, into separate workspaces. In each workspace compute the acceptance predicate: the majority of three bits is over , computable with three Toffolis into a fresh zero; combine their negations by an AND chain. The workspace for coordinate enables only the controlled- interaction of cat coordinate with data coordinate . Thus an interaction is controlled by the cat bit and its own workspace's acceptance bit. Implement enabled controlled by Toffoli, and enabled controlled by on the data, Toffoli, then on the data. Finally measure every cat qubit in the basis, using then computational-basis measurement. Do this for both candidates, always in their fixed order.
A noiseless candidate is , every verification record is zero, and all its interactions are enabled. Conditional on the final -measurement string , its data Kraus operator is . Summing strings of each parity gives exactly the projective measurement of . Record each candidate's measured parity and raw verification records. The reported check bit is the second candidate's parity if its acceptance predicate is true, otherwise the first candidate's parity if that predicate is true, and otherwise zero. Compute this reported bit in a separate workspace by the finite reversible procedure of step 1.2. In a fault-free execution both candidates measure , the second repeats its eigenvalue, and this is an exact nondestructive measurement.
Begin with one layer of explicit identity locations, one on each data coordinate. Then perform four complete rounds, each consisting of the check circuits just specified. Retain their four reported syndrome vectors . In each of separate final-decoder workspaces, receive fresh direct CNOT copies of all raw syndrome bits and compute two correction bits by the truth-table procedure of step 1.2: choose the first index with , and output the label at this workspace's coordinate of . If there is no such index, use . Apply the correction bit by CNOT with this data coordinate as target. Apply the correction bit by on that data coordinate, CNOT from the correction bit to it, then on it; this is exactly controlled since . Discard all ancillary registers. Gate order, scratch allocation, candidate order, check order, and lookup tie-breaking have all been fixed, so this specifies one finite circuit rather than an unbounded retry procedure. The initial identity layer leaves all base-level conclusions unchanged; on recursive replacement it explicitly schedules input refresh through the chosen idle templates before the first upper syndrome round.
Suppose the only fault affecting this check occurs during one candidate's preparation, before verification begins. Expand the faulty operation in the tensor Pauli basis, retaining its coefficients as operators on fault memory if present. All subsequent parity checks are exact, so every accepted component of that candidate lies in the two-dimensional space . Its interaction and cat readout therefore have data Kraus operators of the form , with memory-valued coefficients. Rejection disables every interaction of that candidate. The other candidate is ideal, is accepted, and performs a projective measurement of . If the faulty candidate is first, this last projective measurement follows it; if it is second, it follows a projective measurement and its operators preserve each eigenspace. In either case the quantum data undergoes a measurement of , possibly with a faulty reported bit, and no additional data-coordinate error.
With no faults every round measures the same full stabilizer syndrome. The first round projects an arbitrary input into one of its joint eigenspaces; all subsequent measurements repeat that syndrome. Every final decoder selects it, and step 1.1 maps its eigenspace into the code. This proves the arbitrary-input zero-fault requirement, as well as exact correction of the weight-four error span.
Suppose instead that the sole fault occurs in verification of an initially ideal cat. A verifier target can pass back to cat controls but cannot pass between different cat coordinates: it is always a CNOT target and is discarded after its second interaction. A fault in its first interaction can therefore give errors on two cat coordinates, but an component on at most the one cat coordinate touched by the faulty interaction. A fault in the second interaction has the same property. Cat idles or cat measurements affect at most one cat coordinate. Thus, apart from arbitrary cat phase errors and verification-record changes, an accepted cat has at most one bit error. Cat phase errors only change the coefficients of and ; a cat bit error produces an additional on its one matching data coordinate. The other candidate is noiseless. A faulty enabled interaction itself touches only one data coordinate, and its subsequent gates in that workspace touch no other data coordinate. These statements remain true for sums of Pauli components and memory-valued coefficients.
Put the sole fault instead in final syndrome copying or decoding. All quantum checks are then noiseless, and all four true syndrome vectors are the same . A faulty copying CNOT can arbitrarily change its one target workspace and can corrupt its one source raw bit for later workspaces. Every other workspace consequently sees at most one corrupted bit in one of its four vectors. Its first selected equal pair is still , since any matching pair includes an unchanged vector and there are four vectors. Only the target workspace can output wrong correction bits. An internal decoder fault or a faulty final controlled correction likewise affects its one designated data coordinate. Thus all other coordinates apply , and this one coordinate differs by an arbitrary local operator. Unlike a data-changing fault, this fault cannot coexist with old/new quantum syndrome changes: it is the only fault. There is therefore no mixing of coordinatewise representatives of two different valid syndromes.
A fault in copying raw verification records deserves a separate check. Before such a fault both candidates are ideal and every raw verification record is zero. A faulty copying CNOT can corrupt its target workspace arbitrarily and can change its one source raw record for later copies. Every other workspace still has at most one corrupted entry among all the triples, so majority decoding makes all its acceptance decisions true. Only the target workspace can make a wrong enable decision, affecting its own one data coordinate. A fault strictly inside one acceptance workspace likewise affects only its matching data coordinate. A fault in the final reported-bit computation has no data access and may change only that check's reported bit. This exhausts the check circuit, including faults on initialized scratch registers and idles. In particular there is no shared acceptance flag whose corruption could disable a long suffix of data interactions.
First put the sole fault in a check circuit, a data idle, or a data location before final decoding. Step 3.1 and step 4.1 and step 5.1 show that the affected round may have an arbitrary reported vector, while quantum errors added to the data are confined to one coordinate. On each Pauli component, all noiseless earlier rounds have the old syndrome and all noiseless later rounds have the new syndrome ; if no data error was added these are equal. The faulty round can be a hybrid, but cannot remove the adjacent equal pair guaranteed among four rounds: a fault in round one or two leaves rounds three and four equal, and a fault in round three or four leaves rounds one and two equal. A fault in the initial identity layer instead leaves all four rounds noiseless, with the new syndrome. Every selected adjacent pair contains a noiseless round and consequently equals or . All final copying and decoding are now noiseless, so every output coordinate selects the same pair and applies the same or .
Write an incoming Pauli component as , of weight at most two, and the added data Pauli as , on at most one coordinate. If the selected syndrome is , the Pauli has weight at most three; step 1.1 therefore makes scalar on the code. If it is , then is scalar on the code and the Pauli commutation rule gives , leaving only . Factors from a faulty cat only multiply these terms by scalar syndrome eigenvalues and do not change their support or logical action. This proves the residual weight-one assertion componentwise for the case of step 6.1.
For arbitrary input, the same branch analysis proves attraction without any claim of preserving its initially unspecified logical state. A selected equal pair contains a noiseless full syndrome measurement of its selected syndrome . If the data-changing fault precedes that measurement, the branch is already in the syndrome- eigenspace when is applied and is corrected into the code. If the fault follows that measurement, its Pauli components are supported on one coordinate; the intervening stabilizer measurements only project them or multiply them by eigenvalues, so , with code valued. Here is the full syndrome projector. Final copying/decoder faults give one-coordinate deviations from the code-valued in exactly the case split of step 4.2. Faulty cat factors do not change a fixed syndrome sector. Thus each arbitrary-input branch Kraus operator is a sum of , with supported on at most one coordinate and an arbitrary map from the original input to the logical factor and branch/memory registers. This proves the asserted attraction range, including coherent errors and arbitrary references.
Expand every incoming Kraus operator in the weight-two Pauli basis and every faulty-location Kraus operator in the Pauli basis on its registers, with matrix coefficients on finite fault memory. Every intervening noiseless circuit operation and every measured branch is linear. Step 6.1 and step 7.1 and step 4.2 give, term by term, an operator of the form on the logical input, where lies in the weight-one Pauli span and the remaining coefficient acts on fault memory and ancillary branch registers alone. The only operators applied to the logical factor are scalar multiples of the identity; all scalar-compression uses are valid by distance nine. Tensoring the identity on an external reference leaves these identities unchanged. Summing Kraus terms proves the stated subnormalized branch identities without conditioning away their probabilities. Summing all branches is trace preserving; the fixed decoded recovery corrects every pair of the residual weight-one terms by [F1], leaving the original logical/reference state. The same expansion handles joint input correlations with other blocks by keeping their tensor factors in the coefficients and applying their declared recoveries.
Here are explicit finite schedule bounds. Each cat has at most twelve coordinates and raw parity records. Its preparation uses at most locations and its parity measurements at most . Each of its twelve enable workspaces uses at most input-copy preparations, copying CNOTs, majority outputs and Toffolis, and at most more scratch preparations and AND/NOT gates. Thus all candidates in the four rounds, their enabled interactions, readouts, reported-bit truth tables (at most input bits), preparations and discards require fewer than nonidle locations by step 1.2. The final truth tables have inputs each; their gates and copies require fewer than nonidle locations. Use fresh workspaces for the currently measured check and discard them before the next check; retain only its one reported bit. For final decoding allocate all workspaces, each with fewer than registers, so fewer than registers are ever live. Serialize the nonidle gates and insert one identity location on every other live register in each layer. Depth is less than , and total locations, including all such idles, is less than . Every location has at most three quantum or classical input registers, and resets, preparation, readout, controls and discard have been included.
Remarks
This lemma proves a bounded noisy correction instrument, not a complete proper universal gate family. Its residual branch formulation does not assert the impossible full-space fault/recovery intertwiner. It also does not replace subnormalized branch maps by normalized CPTP error maps. Recursive implementations of its elementary alphabet, and a verified non-Clifford resource-state construction, remain separate obligations.
Planar Surface-Code Memory Bound Under IID Z Noise
Statement
For each integer , use the relative square patch, which has data qubits. On a finite probability space, let each data edge independently carry a error with probability . For each syndrome, choose any minimum-cardinality correction; the bound below holds for every such choice. Under one perfect syndrome round, the logical-memory failure probability satisfies
Consequently decays exponentially in , up to a polynomial prefactor, for . This is an ideal-syndrome memory theorem; it is not a faulty-gate circuit threshold.
Facts & Assumptions
Given: An integer , the finite relative square patch with data-edge count , a finite family of mutually independent Bernoulli -error indicators each of rate , one perfect syndrome round, minimum-cardinality recovery, and the geometric path interface in [F3].
Finite probability spaces, outcome weights, events, and event probabilities: A finite probability space is a pair consisting of a finite set and nonnegative weights summing to one; event probabilities are sums of outcome weights.
Minimum-Weight Recovery Failure Yields a Half-Error Crossing Path: On logical failure, a minimum-cardinality correction with the same perfect syndrome yields a self-avoiding left-to-right path of length containing at least actual error edges.
Square planar surface-code distance and path count: For each , the number of self-avoiding rough-to-rough paths of length is at most .
Independent families of event classes: The family is independent when for every natural number , every choice of distinct indices , and every choice of events , one has .
The finite union bound: For every finite family of events ,
Proof
Fix a candidate path of length . A logical failure witness on it requires at least actual errors by [F2]. If at least of its edges are faulty, some -subset is entirely faulty. There are at most such subsets; by [F4] each has probability for . The union bound [F5] gives .
There are at most candidate paths of length by [F3]. By [F2], every logical failure lies in the union of witness events for paths with . The finite union bound [F5] and step 1.1 therefore give .
If , set . The finite sum is at most , so . The denominator is a fixed positive constant for fixed , while is polynomial in ; hence the bound decays exponentially up to a polynomial prefactor.
Remarks
The geometric inputs are the relative-cycle crossing property and the finite path count in [F2] and [F3]. The probability argument uses their stated directions only; it needs no enumeration of all logical operators and no assumption about independence of recovery choices. Perfect syndrome and iid -noise are essential hypotheses. No circuit-level gate threshold follows.
Fault-Tolerant Gadget and Proper-Code Contract
Definition
A proper fault-tolerant code contract consists of a finite-dimensional code subspace in a fixed block of physical coordinates, a finite logical gate alphabet , and a fixed finite family of encoder, initialization, error-correction, decoder/readout, gate, syndrome-measurement, reset, and idle gadgets. Throughout this page, universal means that the subgroup generated by and its adjoints is dense in the unitary group on the logical space, in the operator norm of The operator norm as the least bound and as the unit-sphere or unit-ball supremum (the supremum over the unit ball). The parameter is an unlocated-error correction capacity: for an encoding isometry and the declared decoded recovery channel , every channel with Kraus operators supported on at most physical coordinates satisfies , including after tensoring the identity on any finite reference. The support may differ between Kraus operators and is not supplied to the fixed recovery. This capacity is distinct from the stabilizer distance of Stabilizer distance, the minimum weight of a Pauli centralizer class outside scalar phases times the stabilizer; a distance argument certifies capacity only after separately verifying and the relevant error-family hypotheses. When the concatenated-threshold theorem uses , this inequality is an explicit hypothesis.
For several live blocks, the noisy stage requirements use the joint encoded-instrument error sectors of Code Deviation and Fault Spread. Full-space CPTP deviations remain sufficient inputs, but an output instrument is not required to have a full-space CPTP error extension. The fixed-recovery transfer proved in Encoded error instruments and full-space CPTP error maps supplies exact decoding of these sectors. Thus a fault may have arbitrary correlations between blocks while its support budget is bounded in each block; the untouched reference is external to all live data. The tensor product of the declared block recoveries must recover every trace-preserving encoded instrument in the joint -error span, with that external reference retained after internal outcomes and fault memory are traced. Recorded logical measurement outcomes retain their stated ideal instrument law.
Each gadget specifies its finite input and output registers, ideal logical channel or instrument, fault locations and supports, depth, size, literal unitary support bounds and effective spread budget in the sense of Code Deviation and Fault Spread, and a uniform upper bound on its child rectangles. Zero-fault gadgets implement their ideal channels exactly on encoded inputs, with the reference system preserved. The encoder implements its exact isometry on arbitrary logical inputs in the zero-fault case; the noisy guarantees begin at an admitted encoded input or the protected prescribed initialization. Every encoder location inside such a protected factory is counted and its faults must be handled. No guarantee corrects an arbitrary first fault on an unknown unprotected logical input. For every integer with , the checked computation-stage contract must say that an incoming joint encoded error instrument of budget and at most bad child rectangles has joint output budget before correction; the checked correction-stage contract must correct every admitted joint input sector of budget at most and, with at most bad children, return joint residual budget with the same decoded logical channel. Residual branch maps have the encoded Kraus form specified above. Their full instrument is trace preserving on the admitted domain, and after declared decoded recovery and trace of internal records it equals the ideal logical channel. These are subnormalized branch identities for every measurement outcome, with any finite external reference retained; a branch is not replaced by a normalized physical CPTP map. They quantify over arbitrary CPTP maps supported on the union of the faulty child supports, not only product fault maps. An error-correction gadget must also map arbitrary inputs into the code subspace in the zero-fault case. Its noisy identities are required on the specified joint encoded error sectors, rather than as a full-space intertwining of every input fault through ideal recovery. Any auxiliary fault memory may be updated at a faulty location and is carried in the channel/instrument description; only the external reference is constrained to the identity, and nonfaulty locations leave that memory alone. All preparation, syndrome, readout, classical-control, reset, and scheduled idle locations are included in the size and spread bounds.
The finite physical gate alphabet is closed under recursive replacement: every operation used by each gadget is itself in the declared alphabet. The contract makes no claim that a concrete code or gadget family satisfying it has been constructed. That existence and verification obligation is a separate theorem.
Finite Verified Steane Magic States and T Injection
Statement
Use the explicit encoding of Twice-Concatenated Steane Code and Its Transversal Clifford Gates, and put and . There is a deterministic finite preparation circuit whose zero-fault output is and whose output with at most one faulty location is in its weight-one Pauli error span. There is also a deterministic finite -injection circuit on one encoded data block: on the weight-one input error sector, at most one faulty location leaves at most a weight-two error after the ideal encoded output. Both assertions are subnormalized branch Kraus identities, retain every finite external reference and allow arbitrary CPTP location faults with fault memory, as in Code Deviation and Fault Spread. Summing branches and applying the fixed decoded recovery gives exactly the stated logical operation.
With zero faults, an incoming Pauli of weight propagates to weight at most after ideal encoded ; by linearity the same holds for its operator span. The elementary alphabet is , CNOT, Toffoli, preparation, computational-basis measurement, reset/discard and idle; all Boolean controls are circuit registers. Each circuit has fewer than locations including idles, depth below and fewer than live qubits. This lemma does not yet assert a recursive fault-tolerant replacement for every elementary alphabet operation.
Facts & Assumptions
Given: The code , its check order and Pauli representatives, and the exact elementary gate matrices.
Twice-Concatenated Steane Code and Its Transversal Clifford Gates proves distance nine, the fixed weight-four recovery, and the exact transversal , , CNOT identities. Its weight-nine representative acts as the logical .
A Finite Four-Round Verified Shor Correction Circuit supplies explicit two-candidate cat preparation, threefold parity verification, independent per-coordinate enable workspaces, and finite reversible truth-table circuits. Its proof identifies every one-fault cat/control case.
The Pauli matrices gives the local operator basis, and Exact one-qubit gates and rotations fixes all scalar phases of .
Code Deviation and Fault Spread specifies the joint error sectors and subnormalized branch convention, retaining the external reference and explicitly carrying auxiliary fault memory.
Proof
Here is a fixed bare encoder, including its finite bound. Let be the rows of the seven-coordinate matrix defining , and let be its displayed logical representative. The vectors are independent. Complete them to a basis of by taking the first standard basis vector outside their span repeatedly. Let have these seven columns. Put the logical input on coordinate one, initialize the other six coordinates to zero, apply to coordinates two, three and four, and apply the reversible linear map . This is exactly the seven-qubit coset encoder. Row elimination synthesizes with at most row-addition CNOTs and seven row swaps, each swap using three CNOTs. Thus at most unitary gates suffice. Apply this encoder once at the outer level and then in the seven inner blocks, giving the exact map with at most unitary gates on coordinates. Preparation of the logical input by then gives a bare preparation with fewer than nonidle locations. No fault-tolerance property is attributed to this bare encoder.
Define the physical tensor-product Clifford . By [F1], where . Direct multiplication gives , , and ; its other eigenspace is one-dimensional with eigenvalue . Thus the code projector followed by the projector of on the code is the rank-one projector onto . The full physical need not be Hermitian off the code. It is a product of one-site Cliffords, so conjugation by preserves any fixed one-coordinate operator space. In particular for every local .
Extend the verified-cat check circuit of [F2] to the following one additional check, of length . Its cat encoding, three repetitions of every parity check, independent enables and final readout are identical. On coordinate , apply controlled if occupies that coordinate, followed by controlled on every coordinate. Both controls are the corresponding cat bit and its own acceptance workspace. To implement the latter, compute their conjunction into a fresh zero using Toffoli, use that conjunction as control of controlled , and uncompute it. Controlled is the exact five-gate circuit : its phase on is . Finally apply to cat coordinate one. This supplies the scalar on the all-one cat component. Every workspace for coordinate touches only that data coordinate. Compute each candidate's -readout parity by CNOTs into a zero bit, its acceptance predicate by majority-of-three and an AND chain, and the last-accepted reported bit by a two-input Boolean multiplexer synthesized with NOT, CNOT and Toffoli. These computations take fewer than gates and scratch preparations and avoid a truth table on all raw cat records. An ideal cat and an -readout string give the Kraus operator . On the code these are the two exact eigenprojections, with their correct branch weights.
Define the logical readout function on physical measurement bits explicitly. Let be the disjoint computational-basis supports of , obtained by expanding the finite coset encoder. Their mutual Hamming distance is nine: a difference between their words is a representative of the nontrivial pure- logical class of the CSS code, so [F1] gives minimum weight nine, attained by . Let be the label of the nearest one of these two finite sets, resolving ties as zero. If is within four bit changes of either set, this label is unique by the triangle inequality. Thus up to four erroneous readout bits cannot change the ideal logical label.
Prepare a first bare candidate by step 1.1. Verify the stabilizers in order and then , repeating each entire target check three times consecutively; each target check itself uses the two-cat circuit. Retain the resulting target-outcome bits. Acceptance means that every one of the target triples has majority zero. With no faults the bare candidate is and acceptance is certain. If preparation alone is faulty and verification is ideal, the first full set of stabilizer measurements projects onto a definite syndrome. An accepted branch has zero syndrome, so is in the code; the ensuing measurements are then the Hermitian logical measurement. Acceptance projects onto its eigenspace. Hence every accepted branch is exactly tensored with an updated preparation/fault-memory state. This argument starts from an arbitrary faulty candidate and never assumes it was merely a low-weight error.
If instead the sole fault is in verification, its input is the ideal . The cat cases of [F2] apply to each stabilizer check. For the check, accepted faulty cat preparation leaves cat operators in the span of its all-zero and all-one vectors; the data factors are , which are scalar on . A verification or interaction fault has a bit error on at most one cat coordinate, or changes only that coordinate's enable predicate. Its data factors are consequently a local operator times or , with arbitrary cat phase coefficients. By step 1.2 these are in the one-coordinate error span of . Subsequent ideal stabilizer checks multiply each Pauli component by syndrome signs or project it away, and subsequent ideal checks preserve that same one-coordinate span by step 1.2. The threefold raw-parity majority and independent enables handle copying faults exactly as in [F2]: all other workspaces have one corrupted record at most, and only the faulty workspace can omit a local controlled factor. Therefore accepted and rejected branches alike remain in the weight-one sector when verification contains the sole fault. This also covers cat and data idles, scratch preparation, and readout faults.
After first-candidate verification, prepare a second, unverified bare fallback. Copy the first candidate's raw target records directly into separate selector workspaces. Each workspace majority-decodes its triples and computes the same accept predicate. If it rejects, swap its first-candidate coordinate with the matching fallback coordinate. Implement this conditional swap by CNOT from the first coordinate to the second, Toffoli controlled by the reject bit and the second coordinate with the first as target, then the same CNOT again. This is identity when reject is zero and swap when reject is one, by checking the two classical target bits. Retain the first register and discard the fallback and all workspaces. There is no shared selection flag and no repeat-until-success loop.
With a sole fault in the first bare preparation, step 3.1 says acceptance yields the exact target and rejection selects an ideal fallback. With a sole verification fault, step 4.1 says acceptance retains a weight-one candidate and rejection selects an ideal fallback. A sole fault in fallback preparation is irrelevant because the first candidate is ideal and accepted. A sole fault in selector copying finds all raw target records zero. Outside its one target workspace it changes at most one record in a target triple, so all those workspaces still accept. The faulty workspace can swap only its one output coordinate with the matching coordinate of an ideal fallback. This is an operator supported on that coordinate of the retained register and its ancillary environment. An internal selector fault or conditional-swap fault has the same one-coordinate bound. Idles in either candidate either belong to these cases or give one local error directly; idles of selector records affect one triple entry, and idles of selector scratch affect one workspace. This proves the deterministic factory's one-fault residual sector.
The injection circuit prepares the factory state, applies transversal CNOT from the data to it, and measures every factory coordinate in . For each data coordinate independently, copy all measurement records into a fresh decoder workspace, compute by the reversible truth-table construction of [F2], and apply to that one data coordinate controlled by the output, using the five-gate controlled- decomposition of step 2.1. Discard the workspaces and measured block. On ideal logical input , the two logical target-measurement branches are for and for , as direct multiplication of the two amplitudes of shows. The second branch becomes after . The transversal identities of [F1] and the coset readout function in step 2.2 make this the exact encoded channel, preserving every reference and all branch probabilities.
First suppose there are no faults and an incoming Pauli occupies coordinates. Its component propagates to those same factory coordinates, while the data retains errors only on its original coordinates. The readout differs from its ideal coset by at most bits, so step 2.2 returns the correct . Conjugation through is coordinatewise, leaving at most the original data coordinates erroneous. Now take an incoming Pauli error on at most one data coordinate and allow one fault. If it is in the factory, its additional error is on at most one factory coordinate by step 5.1. Transversal CNOT propagates these to the union of their coordinate labels: the factory's component may reach the data and the data's component may reach the factory. Thus at most two coordinates in either block are erroneous. If the sole fault is instead a CNOT or a data/factory idle, it contributes at most its one paired coordinate, again giving at most two. In these cases the readout string remains within two bit changes of its ideal logical coset; all decoder workspaces are noiseless and return the correct . Conjugating these local error factors through the transversal preserves their two-coordinate support. All resulting output terms are weight-at-most-two errors after ideal encoded .
At a faulty destructive factory measurement on coordinate , each outcome and Kraus index has a row operator on that qubit; with fault memory, its entries are operators on the memory. Expand . Each term is an ideal computational-basis readout with the same other records, while the reported bit can differ from only at coordinate . With the admitted input error, both strings are within at most two changes of the same logical coset, so the decoder returns the same by step 2.2. Thus every term receives the same logical branch and correction; its coefficient acts only on fault memory, and its data output has the residual bound from step 7.1. Summing these terms preserves the subnormalized branch identity for the arbitrary destructive-measurement channel.
If the sole fault occurs in decoder copying, all preceding quantum operations are ideal except for the admitted one-coordinate incoming error. The measured string is within one bit change of its ideal coset. A copying fault can arbitrarily corrupt its target workspace and alter one source record for later workspaces. Every other workspace still sees at most two changes from the ideal coset, and step 2.2 returns the same correct . Only the target workspace can apply a wrong , on its one designated data coordinate. A fault internal to a decoder or in its final controlled has the same local bound. Combined with the incoming error this gives at most two data coordinates. The factory and incoming-error Pauli expansions, followed by the faulty-location operator expansion with coefficients on fault memory, extend steps 7.1 and 8.1 and the present calculation to arbitrary CPTP faults and erroneous inputs in the stated span. Scalar logical identities hold termwise; summing the subnormalized branch maps and applying [F1]'s recovery therefore gives the ideal channel with every finite external reference retained.
A length- cat needs fewer than encoding/preparation locations and four-location parity checks. Its acceptance workspaces each use raw copies and a majority/AND circuit with fewer than gates and scratch preparations. Enabled controlled- or controlled- adds fewer than twenty locations per coordinate. The two-cat version of any target check therefore has fewer than nonidle locations, and all target checks have fewer than . The final selector predicates have inputs but use explicit majority and AND circuits, not an exponentially large table; their total is below . Fewer than registers are live, since cat workspaces are discarded between target checks and only the target records and two code blocks persist. The injection readout tables have inputs; the bound in [F2] gives fewer than additional nonidle locations. Serialize every gate, including initialization, measurement and discard, and insert identity locations on every other live register at each layer. The entire factory and injection together then have depth below and fewer than locations including idles. The looser bounds in the Statement follow.
Remarks
The fallback is unverified because the whole factory permits at most one faulty location: correct rejection caused by an earlier preparation or verification fault leaves fallback preparation fault free. A sole selector fault instead finds both candidates ideal and can alter only its matching output coordinate. At no point is the output of a faulty bare encoder assumed to have small weight. All projector claims occur only after the stated ideal stabilizer projection. The physical measurement is used as a Hermitian measurement only on the code.
Good and Bad Concatenated Rectangles
Definition
Fix an integer , a recursively replaced gadget family with disjoint child rectangles, and a fault path in its finite physical schedule , as in Fault Locations, Paths, and Rectangles. Goodness and badness below are relative to this same and . A level-zero rectangle at location is good exactly when , and is bad otherwise. Recursively, a level- rectangle is -good exactly when at most of its level- child rectangles are -bad; it is -bad otherwise. Thus the status of a rectangle depends only on the restriction of to its elementary-location set. For a random fault path these predicates define the corresponding good and bad events.
The implication from -goodness to the ideal reference-preserving logical action is a property that must be proved from the gadget contracts in Fault-Tolerant Gadget and Proper-Code Contract. The definition of good and bad rectangles alone does not prove that implication. For each parent, the number of children is at most , and their underlying elementary-location sets are pairwise disjoint.
Local-Stochastic Correlated Quantum Noise
Definition
Use the finite channel-location schedule from Finite ordered channel-location schedules and its location set . Let be a finite probability space and a random fault set. Its law is -local-stochastic as in Local-Stochastic Fault-Set Law. For each pattern and each , specify a CPTP replacement map supported on the same declared support as the ideal channel at . The replacement at one location may depend on the full pattern . For each outcome, the conditional noisy denotation is the chronological schedule obtained by using those replacements at faulty locations and the ideal channels elsewhere. It is a composition of per-location channels; the model does not add a joint operation across distinct locations.
This is a separate noise model from the independent local replacement model. Its probability hypothesis is the bound on every specified subset of fault locations; it does not assert independence. Correlation is allowed in the fault-set law and in the pattern-dependent choice of local fault maps, while each map remains attached to its own location.
Verified Steane Initialization and Protected Classical Readout
Statement
For the explicit code , there are finite preparation gadgets for and with weight-one residual error under at most one arbitrary CPTP location fault. There is a finite computational-basis readout gadget which, instead of leaving an unprotected last output bit, prepares a new encoded classical register:
The displayed map includes the unchanged external reference in the second factor. On inputs in the weight-two error sector, at most one fault gives the same logical readout instrument with at most one residual error in the new block. Reset is discard followed by the verified zero preparation. All identities use subnormalized branch maps, retain arbitrary finite external references, and allow explicit auxiliary fault memory. The finite elementary alphabet and bounds locations including idles, depth and live registers of Finite Verified Steane Magic States and T Injection suffice.
Facts & Assumptions
Given: The ordered code and the exact finite circuits of the following suppliers.
Twice-Concatenated Steane Code and Its Transversal Clifford Gates gives distance nine, transversal Hadamard and logical Pauli representatives, and a fixed recovery through weight four.
A Finite Four-Round Verified Shor Correction Circuit gives finite verified cats, majority-protected acceptance controls and reversible truth tables.
Finite Verified Steane Magic States and T Injection gives the bare encoder, two-candidate coordinatewise factory selection, and the explicit nearest-logical-coset readout function , correct through four bit errors.
Code Deviation and Fault Spread gives the joint-sector, subnormalized branch and external-reference conventions.
Proof
To prepare zero, use exactly [F3]'s factory circuit with two changes: omit the initial bare that prepare the unencoded , and replace the last verified logical observable by the physical logical . The latter is a weight-nine product of operators, so its controlled factors use the already specified verified-cat Pauli circuit; no controlled non-Pauli gate is needed. Repeat each of the stabilizer target checks and the target check three times as before. A fault-free bare candidate is . For a fault in bare preparation, ideal accepted verification projects first into the code and then into its logical- space, namely the rank-one space spanned by . For a verification fault the input is that ideal state, and every later stabilizer or measurement preserves its one-coordinate Pauli error span. Thus the entire two-candidate, independently decoded swap argument of [F3] applies verbatim with this explicitly specified Pauli observable, giving weight-one residual error. Apply the -location transversal Hadamard to obtain plus: a factory fault is still local after that layer, and a fault in that layer contributes only its one coordinate.
Prepare a fresh verified zero block, while retaining the data to be read. Measure the data's coordinates in and keep all physical records . For each coordinate in the support of on the fresh block, independently copy the full -bit record into its own decoder workspace, compute [F3]'s function by its fixed reversible truth-table circuit, and apply to that one coordinate controlled by its own output. Leave the other fresh coordinates unchanged. Discard the old data and every workspace. With no errors the measured strings belong to the disjoint supports of ; all decoders return , and the output is . Since no string can occur for two different logical labels, this physical measurement followed by controlled preparation is exactly the displayed logical instrument, including its reference blocks and probabilities.
More generally, fix a physical measurement string and an incoming Pauli component of weight at most three. Its measurement amplitude on logical is zero unless . Whenever it is nonzero, is within three changes of , so by [F3]. For several Pauli components contributing to the same , their logical label is still the same: if were within three changes of both cosets, their mutual distance would be at most six, contradicting nine. Their phases and amplitudes are therefore scalar coefficients multiplying the same logical measurement bra . This proves the ideal instrument identity on the whole weight-three operator span. Summing the physical strings uses trace preservation to give the correct logical probabilities; cross terms between distinct logical labels vanish already string by string. The calculation is unchanged with an arbitrary external reference.
At a faulty destructive readout on coordinate , each recorded bit and Kraus index has a row operator on that qubit; with fault memory, its entries are operators on memory. Expand . Each term is an ideal computational-basis measurement string whose reported string can differ only at coordinate . With the two admitted data errors, these strings are within at most three changes of the same logical coset, so [F3]'s function returns the same by step 2.1. All terms therefore have the same logical measurement bra and the same encoded output ; only their subnormalized branch and memory coefficients differ. This proves the readout identity for an arbitrary one-location destructive-measurement channel.
If the sole fault is in zero preparation, its output has one residual coordinate error by step 1.1, and all readout decoders are noiseless. Their input physical strings have at most two changes from the ideal coset, so they all apply the same correct , which preserves one-coordinate support by conjugation. If the fault touches the old data, including its idles while zero is prepared, its local Kraus expansion contributes at most one changed coordinate in addition to the two admitted input errors. Step 2.1 therefore still identifies the correct logical label. A fault at a physical measurement is covered by step 3.1. The fresh zero block and all decoders are then noiseless, so the new output has no residual error.
A sole record-copying fault may arbitrarily corrupt its target decoder and change its one source bit for later decoders. All other decoders see at most three changes from the ideal coset, and [F3] therefore still returns the same . Only the faulty workspace can apply an incorrect , on its one designated fresh coordinate. An internal decoder fault, a fresh-output idle fault, or a final controlled- fault likewise affects at most that coordinate. This accounts for every location. Expanding input and fault Kraus operators in the finite Pauli bases with coefficients on fault memory extends the displayed logical-bra calculation to arbitrary CPTP faults. Each subnormalized branch is a weight-one error after the displayed ideal instrument, with scalar logical coefficients and memory actions; [F1]'s recovery removes these residual terms. Reset discards the old logical register and then applies step 1.1; a trace-preserving fault on discarded old registers alone cannot signal to the external reference.
All zero-factory target checks are shorter than their counterparts in [F3]. Readout uses at most independent -input truth tables, already bounded there by fewer than nonidle locations. There is one additional code block, and no additional exponentially large workspace. Serial scheduling and inserting an identity at every other live register therefore fit the same conservative location, depth and live-register bounds. All raw record copies, Boolean gates, final controls, preparation, measurement, reset and discard are included.
Recursive Bad-Rectangle Probability
Statement
Let and be integers and let . For each integer , suppose every level- rectangle has at most level- children, the family has full depth (every root-to-leaf path has exactly child edges), the leaves are single elementary locations, and sibling elementary-location sets are pairwise disjoint. A level-zero rectangle is bad exactly when its location faults, and a parent is bad only if at least children are bad. Put , the number of -subsets of an -element set, and define and . Under independent local faults of rate , is a uniform upper bound for the probability that a level- rectangle is bad. Moreover, and . If , then super-exponentially in . No independence of child badness is inferred without the disjoint-location hypothesis.
Facts & Assumptions
Given: A finite independent local fault model, a full-depth rooted hierarchy with one elementary location per leaf and pairwise disjoint sibling location sets, and a parent bad only when at least of at most children are bad. Prove the recurrence and closed form.
Independent Local Quantum Fault Model: Elementary fault indicators are mutually independent and each has probability .
Good and Bad Concatenated Rectangles: A parent has at most disjoint child rectangles and is bad only if at least children are bad.
Disjoint Fault-Location Events Are Independent: Events determined by disjoint child location sets are independent.
Proof
Define a dominating event for each rectangle : at a leaf it is the event that its location faults, and at a parent it is the event that at least children satisfy their events . By finite induction, actual badness implies , using the stated one-sided badness rule. Each depends only on the fault indicators in . At level zero its probability is by [F1]. For a level- parent, is the union over the at most child subsets of the events that all their occur.
Suppose every level- event has probability at most . For each fixed , these events depend on pairwise disjoint location sets, so they are independent by [F3], and their intersection has probability at most . The indicator of a finite union is at most the sum of its event indicators. Summing probabilities over the at most choices of , and also using that a probability is at most one, gives . Induction from step 1.1 proves that bounds every and hence every actual bad probability at its level. Its defining recursion also gives .
Set . The asserted closed form holds at , since . If it holds at , then , because . Induction proves the formula for every .
The condition is equivalent to . For and , the exponent tends to infinity, so the closed-form upper bound tends to zero.
Sparse Fault Paths Preserve Correctable Code Deviation
Statement
Let a proper gadget family have encoding , correction capacity , and effective spread budget as in Fault-Tolerant Gadget and Proper-Code Contract. Fix with and put . Assume type-compatible recursive replacement and the following additional finite port-substitution hypothesis, proved for the actual finite templates. It is not implied by their one-level encoded-input contracts alone.
In one substitution experiment replace each elementary port by any finite encoded port with a correctable error span and an attached private syndrome register. Good replacements have their declared ideal logical channel/instrument tensored with syndrome maps on their admitted sectors. Intermediate computation-output and correction-input sectors must be specified; they are correctable, and complete corrected boundaries use . Marked replacements are arbitrary CPTP maps on their own physical ports, with possibly unencoded outputs. Correction and designated input refresh have noisy arbitrary-input attraction into their declared residual ranges, without a logical-preservation assertion on arbitrary inputs.
For the outer block let be the span of tensor operators with at most unrestricted child factors and all other factors in , and let ; use the corresponding typed factors when port types differ. For at most marked replacements, the finite hypothesis requires computation to map to and correction to map to , preserving the specified ideal logical instrument. Correction and designated refresh must also attract arbitrary inputs into their stipulated residual ranges. These are joint, outcome-resolved Kraus-span identities, with arbitrary syndrome coefficients, full trace preservation on admitted domains, and identity on the external reference.
The finite proof must specify an acyclic order for these assertions, retaining any stronger zero-marked clause it uses. In particular it must show where an inadmissible port is refreshed before interaction, that this cleanup can be absorbed into its preceding marked map without enlarging that map's ports, and that still-inadmissible outputs lie in the residual support already counted. This is a hypothesis about one finite template with abstract ports, not correctness assumed at every concatenation level.
If each computation stage and its correction stage have at most bad child rectangles, then after correction at level the joint instrument has hierarchical residual sector , defined below, after its ideal logical target. The recursively decoded recovery returns that target exactly, including every finite external reference and recorded logical outcome. At level one this is the ordinary encoded-instrument relation; at higher levels it does not bound the total number of elementary physical errors by .
Facts & Assumptions
Given: The one-level proper-code contracts, the proved finite port-substitution hypothesis in the Statement, and with . All recursive ports and encodings have matching types.
Code Deviation and Fault Spread defines supported error spans and the joint outcome-resolved encoded-instrument relation, retaining actual subnormalized branches and the external reference.
Fault-Tolerant Gadget and Proper-Code Contract supplies the fixed decoded recovery and the one-level computation and correction identities. No higher-level substitution assertion is inferred from that definition.
Good and Bad Concatenated Rectangles supplies the disjoint recursive partition and the at-most- bad-child condition.
A recovery correcting a normalized mixed unitary error family has scalar recovered Kraus operators on its linear error span; their pairwise identities also handle joint blocks and memory coefficients (Encoded error instruments and full-space CPTP error maps).
Finite-dimensional complex inner-product spaces have orthonormal bases, and self-adjoint operators have orthonormal eigenbases (Every finite-dimensional real or complex inner product space has an orthonormal basis, Complex spectral theorem: a normal endomorphism of a finite-dimensional complex inner product space has an orthonormal eigenbasis, and conversely).
Proof
Write and , with the corresponding typed tensor products for distinct port types. Put and for , using joint per-block tensor spans. Define to be the declared decoded recovery and by applying the child decoders and then to their logical outputs. Decoder syndrome registers remain attached to their original child edges in the comparison; no decoder is inserted into the faulty circuit.
First justify scalar recovery on the whole error span. In an orthonormal basis of each nonzero physical factor, the identity, diagonal sign flips, pairwise swaps, and pairwise Hermitian swaps with off-diagonal entries are unitaries spanning its matrix algebra: subtracting the identity outside the selected pair gives the symmetric and skew matrix units, and diagonal sign flips give the diagonal units. Tensor these unitaries on at most coordinates, with identities elsewhere, and choose a basis from this finite spanning family. If its size is , its elements divided by are Kraus operators of a full-space channel corrected by . For every recovery Kraus map and basis element , [F4] gives . Linearity gives this for every error term. Inductively a factor in becomes scalar identity on its decoded logical coordinate, with its syndrome coefficient retained, whereas an unrestricted factor becomes an arbitrary operator on that one coordinate. Expanding a tensor in leaves at most outer errors, corrected by . Thus corrects the full span. Pairwise Kraus expansion gives the joint and memory-valued version, and full trace preservation makes the total recovered coefficient one. Zero-dimensional input spaces have no density instance.
Prove simultaneously, by level, the computation and correction identities and arbitrary-input attraction for correction and designated refresh. Include every stronger zero-marked clause named by the finite hypothesis. At level one these are the stated one-level contracts and the additional attraction hypotheses. At an induction step all lower intermediate sectors are correctable by step 2.1. For an error basis on such an edge, trace preservation of recovery gives . Diagonalize this finite positive Gram matrix, discard its zero directions, and normalize the others. The resulting encoded maps satisfy , so identifies that range with logical register times a private syndrome. The lower termwise sector identities give exactly the admitted logical/syndrome maps in the finite experiment.
A bad lower child remains an arbitrary CPTP map on its physical ports; its output is not assumed admitted. Apply the proved finite hypothesis to the lower-port maps from step 3.1, in its specified acyclic order. Its first-use refresh and support checks justify absorption only into that marked map's own ports and include every still-inadmissible output in the same residual support. It yields precisely for computation and for correction, together with arbitrary-input attraction and the retained zero-marked clauses. These are the required level- assertions. Logical outcome ports and private syndromes keep their actual branch maps throughout.
Initially the encoded boundary has budget zero. At a fixed level, chronological induction now alternates the proved computation bound and correction bound , starting from that boundary and the protected preparations. Composition retains complete positivity, full trace preservation on the admitted domain, and every public logical outcome. Step 2.1 decodes the resulting joint hierarchical residual instrument to the ideal logical instrument. Together with the independent level induction in steps 3.1–4.1, this proves the assertion at every level, with the external reference unchanged.
An Explicit Proper Code and Universal Fault-Tolerant Gadgets
Statement
There is an explicit fixed quantum code and finite logical gate set whose generated subgroup, including adjoints, is dense in the unitary group on its logical space in operator norm, and whose encoder, error-correction, initialization, readout, and gate gadgets satisfy the proper-code contract of Fault-Tolerant Gadget and Proper-Code Contract. A Steane construction must be paired with a separately proved extended-rectangle correctness and overlap analysis. A route using the concatenated threshold theorem with must exhibit a code correcting at least located errors and prove every required gadget contract.
Facts & Assumptions
Given: The finite gate and instrument model of the proper-code contract, including encoded-input noisy contracts and ideal unknown-input encoding.
Twice-Concatenated Steane Code and Its Transversal Clifford Gates gives an explicit encoding , a fixed exact decoded recovery through weight four, and exact transversal CNOT circuits.
A Finite Four-Round Verified Shor Correction Circuit gives a fixed finite correction instrument : with zero faults it maps arbitrary inputs into the code and corrects weight-four errors; with one fault it corrects weight-two inputs up to a weight-one residual.
Finite Verified Steane Magic States and T Injection gives the exact finite bare encoder, a verified encoded factory, and injection which takes input error weight one and one fault to output error weight at most two. With no fault its local incoming errors remain local.
Verified Steane Initialization and Protected Classical Readout gives protected zero, plus, encoded-classical readout and reset. Its readout emits a new code block in logical , not an unprotected classical bit.
An explicit scalar phase completes Clifford+T to full unitary density proves full density for and , including adjoints, and exact one-layer physical gadgets for .
Fault-Tolerant Gadget and Proper-Code Contract imposes the computation and correction budgets; Code Deviation and Fault Spread specifies the joint encoded-instrument sectors and retained external references.
Sparse Fault Paths Preserve Correctable Code Deviation states the additional finite port-substitution hypothesis and proves hierarchical sparse correctness from it. Its finite hypothesis, rather than an assumed all-level conclusion, is verified below.
Encoded error instruments and full-space CPTP error maps proves scalar recovery identities from a normalized mixed Pauli channel, including memory-valued coefficients. Complex spectral theorem: a normal endomorphism of a finite-dimensional complex inner product space has an orthonormal eigenbasis, and conversely supplies diagonalization of the finite positive Gram matrix.
Proof
Take , the code , effective spread budget , and declared capacity . Choose the decoded recovery to be the zero-fault circuit of [F2], followed by the inverse of [F3]'s bare Clifford encoder and discard of its other coordinates. This is an actual finite circuit: is code valued, and the inverse encoder extracts its one logical input with all other encoder coordinates reset to zero. By [F1] and [F2] it corrects the entire weight-four error span and hence every located weight-two channel required by the contract. The same recovery tensorized across live blocks corrects the whole joint error span: expand each joint Kraus operator as a sum of tensor products of local error operators and apply the one-block scalar recovery identities to every pair of terms. The resulting coefficients are scalars on every logical factor, although their fault-memory actions may be correlated. Thus the external reference is unchanged. The numerical conditions and hold, and the integers with consist exactly of . This is a nonvacuous sparse-fault contract.
Declare the finite physical alphabet to consist of , CNOT, Toffoli, zero preparation, computational-basis measurement with a classical output register, reset, discard and idle. Classical registers are computational-basis registers; their reversible Boolean gates are the restrictions of CNOT and Toffoli. No Boolean computation or control signal is noiseless. Every operation in the supplier circuits is in this alphabet: their controlled is CNOT, their doubly controlled is Toffoli, their controlled is –Toffoli– with the indicated two controls, their controlled has the explicit five-gate Clifford+ decomposition in [F3], and their conditional swaps use two CNOTs and one Toffoli. Source locations include all preparations, measured raw bits, scratch workspaces and idles.
Define protected elementary unitary templates as follows. Begin every template by applying the finite circuit separately to every input block, before that block interacts with another input. For use their -coordinate transversal core. For use the explicit weight-nine logical Pauli core, with idles on the other coordinates. For use [F5]'s scalar core; for CNOT use the transversal two-block core. Append one copy of to every output block. For use [F3]'s injection core between that input refresh and output correction. For use that same injection, then transversal , then output correction, since . These occurrences of are its explicitly expanded finite physical circuit, not an in-place recursive call. All templates are exact on fault-free encoded inputs. If the one fault occurs in an input correction, [F2] leaves at most one residual on that block while other input corrections are ideal; the fault-free core propagates this within its supported error budget and the output corrections are ideal. If the fault occurs in a one-block transversal, scalar or Pauli core, the input weight one plus that location gives at most two errors, corrected by the fault-free suffix. If it occurs in the suffix, its input has weight at most one and [F2] leaves at most one residual.
Here is an exact finite Toffoli core over the other gates. For computational bits the integer identity follows by expanding . Apply to the three original bits; compute their three pair parities into fresh zero registers, apply to each and uncompute; compute their triple parity into a fourth zero register, apply and uncompute. The net basis phase is and scratch returns to zero. Conjugate by on the third original coordinate to obtain exact Toffoli, without a scalar-phase discrepancy. There are unitary elementary gates, four scratch preparations and four scratch discards.
For CNOT, two input blocks with one error each can give the union of two coordinate labels in either output. A faulty core location adds at most one more label per block, for a total of three. In that case every suffix correction is fault free and [F2] corrects through weight four. If the fault is in a suffix correction, the core is fault free and produces at most two errors per output; the faulty suffix therefore satisfies precisely [F2]'s weight-two input contract. Other suffixes are ideal. Hence the protected CNOT template has at most one residual per block. For and , [F3] gives at most two errors when the fault is in the core, so ideal suffix correction removes them. If the fault is in suffix correction, the injection is noiseless and propagates an incoming one-coordinate error to one-coordinate error; transversal preserves that support. Again [F2] applies. Every protected elementary unitary therefore takes joint weight-one inputs and one fault to joint weight-one outputs, stronger than the required weight-two computation bound. These are joint Kraus-sector assertions, so correlated faults and arbitrary finite references are covered by the suppliers' termwise proofs.
Use [F4]'s verified zero and plus preparations, reset and encoded-classical readout, and [F3]'s verified magic preparation. Append to their live encoded output blocks. A fault in a preparation core leaves weight one, corrected by an ideal suffix; a suffix fault has a clean admitted input and leaves weight one. Prepend to readout's encoded input as well. A fault there leaves at most one error for the ideal readout core; a fault in the core or suffix has the stated bounds by [F4] and [F2]. Readout thus preserves the logical measurement instrument and emits an encoded classical block with at most one error. In particular the final correction/control bit is protected: recursive replacement of a computational-basis measurement emits in a new block. Subsequent classical NOT, CNOT and Toffoli use the same coherent encoded unitary templates on these basis states. Discard is the ordinary trace channel; a trace-preserving fault confined to discarded registers cannot change the retained external reference. An encoded idle template is input , a layer of physical idles, and output . Besides its weight-one invariant on admitted inputs, this template attracts arbitrary inputs into the weight-one code sector with an unspecified resulting logical map: use [F2]'s arbitrary-input attraction for the faulty correction, and its ideal arbitrary-input action for the others. This local input refresh is included even for classical registers.
For completeness specify the recursive domains, rather than treating an arbitrary bad child's output as encoded. Put , . Let be the usual weight- operator span. For , let be the span of tensor operators on the child blocks for which at most child factors are unrestricted and every other factor belongs to . This is the hierarchical error sector; all formulas use its joint tensor version across live blocks. For the base scalar identities, list all phase-free weight-at-most-four Pauli errors . Each is unitary, so , where is their number, form a trace-preserving Kraus family. The fixed recovery corrects that actual channel by [F1]. By [F8], each recovery Kraus map satisfies , and linearity extends this to the entire error span. A fixed recursive decoded recovery corrects for : take the declared , apply in every child while retaining its private recovery-syndrome register, and then apply to the logical outputs. By induction a good child factor becomes scalar identity on its logical factor, with its syndrome coefficient retained. An unrestricted factor becomes an arbitrary one-qubit map, hence a Pauli linear combination at that outer coordinate. The outer recovery therefore sees at most erroneous coordinates and corrects them by [F1]. Expanding every pair of Kraus terms proves the same assertion for coherent sums and correlations, not merely tensor product channels.
Implement step 1.4 on encoded blocks using the protected elementary templates and verified zero scratch preparations, first refreshing the three original inputs separately by . After each elementary stage apply to every live block of this at-most-seven-block construction, including untouched scratch and input blocks. This supplies a fixed finite Toffoli template. To verify its one-fault branch, induct over its finitely many stages. A fault in the active core produces at most three errors per block by step 2.1; all following corrections in that stage are ideal and correct them. A fault in a correction sees at most two errors from the fault-free core and leaves at most one residual. An idle fault on another live block occurs either before its ideal correction, when at most three errors are removed, or after that correction, when its now-clean state receives one error. A fault in scratch preparation has [F4]'s one-coordinate bound. Thus every stage ends in the correct ideal joint logical state with at most one error per block, and later stages obey the same invariant. The Pauli-basis argument in [F2] and [F3] applies jointly, retaining fault memory and the external reference. This proves the Toffoli contract without assuming a fault-tolerant Toffoli supplier in its own proof. Its native physical Toffoli locations occur only inside finite lower-level templates, not as an unproved logical gate.
The arbitrary unknown-input encoder is the exact finite linear encoder of [F3]; its zero-fault action is with the reference retained. The quantitative noisy-input contract starts on already encoded sectors or protected prescribed preparations, as stipulated in [F6]. This boundary is necessary: a circuit encoding every unknown as receives exactly the same physical input in a fault-free run on as in a run on with an initial fault. It cannot output both and ; taking contradicts orthogonality of the isometry's two encoded basis states. Every use of the bare encoder inside a prescribed-state factory is nevertheless an ordinary counted faulty location, and [F3] and [F4] verify all its arbitrary faulty outputs by the subsequent rank-one checks and fallback construction. The inverse quantum-code conversion in the declared decoded recovery is likewise an ideal decoding boundary; physical readout inside a noisy computation instead uses step 2.2's protected encoded-classical instrument. Error correction itself is the unmodified , whose fault-free action on every arbitrary input is code valued by [F2]. Its finite syndrome-measurement family consists of the explicit check circuits of [F2]: on weight-one input, one fault adds at most one data coordinate error, so each has the required weight-two computation output sector while revealing only an error syndrome, not the logical state.
All templates just specified are finite lists over the one declared physical alphabet. In particular the Toffoli template is a finite list containing native physical Toffolis inside its verified correction and preparation circuits; it does not recursively expand those native locations at the same level. At replacement level , replace each listed elementary location by its already specified template at level , with the same wire order. This is a simultaneous finite induction on , starting at the elementary physical locations at level zero. Each measurement replacement emits its encoded public classical record; each private cat, selector and syndrome register remains private until its declared discard. Thus fault-free encoded-instrument composition preserves the actual controls and every branch probability, not merely the final unconditioned channel. The local one-fault proofs quantify over arbitrary maps on the full registers of a faulty elementary child, including correlated memory, as required by [F6]. Higher-level sparse correctness uses those explicit stage contracts; alphabet closure does not identify a good noisy child with a physical ideal gate. This establishes finite recursive replacement for every noisy classical operation, initialization, measurement, reset and scheduled idle. No additional unlisted ideal decoder is inserted into any faulty circuit.
One conservative numerical bound is child locations per template, common depth , and at most live physical registers. Each supplier core or correction has an explicitly listed finite body using fewer than locations and depth, including its internal idles and scratch, and fewer than live registers. Protected elementary templates contain at most seven such core/correction bodies. In every compound template, including the Toffoli construction, compose these unpadded bodies and the required interstage idles first; do not insert a constituent's common-depth padding between stages. The Toffoli template has fewer than stages, each containing a protected core body and at most seven further block-correction bodies; their total is below listed locations and layers. Its additional idles on its other at-most-seven blocks add fewer than locations. The union of simultaneously live supplier workspaces is smaller than . After each complete template has been composed, append a single physical-identity padding suffix on its retained registers to bring its depth to exactly . If the sole fault is in this outer padding, the preceding unpadded body is ideal and has already corrected its admitted input, so padding adds at most one error; if the fault is earlier, the padding is ideal. This applies to the Toffoli only after all its stages, not at their intermediate boundaries. Padding adds at most locations, still below the common . At a global layer, other live logical blocks use their own complete padded idle templates; their count belongs to those separate circuit locations and does not inflate one active template's child bound with the total computation width. Bare encoding is an ideal boundary circuit smaller than these templates. These statements specify the common timing and every idle without a width-dependent child constant.
The locality certificate for substitution is as follows. At a fixed physical fault pattern, each elementary location acts on its declared data ports and any fault memory allowed by [F6]. Here is an explicit factorization of a correctable block edge with encoding . For a finite error basis , step 2.3 gives scalar Gram equations : applying each recovery Kraus operator to gives a scalar multiple of identity, and summing their pairwise products gives this equation. Diagonalize the finite positive matrix and discard its zero eigenvalues. The normalized transformed errors then satisfy , so is an isometry identifying the whole correctable range with logical register times a syndrome register. The termwise sector identities make each good-child Kraus map on this range ; for a measurement retain its logical outcome Kraus operator and public outcome port in place of . Trace preservation holds on this entire admitted domain. This is the required CP factorization, not an asserted full-space extension. Private cat, verifier, selector and truth-table registers are freshly prepared and discarded at their listed boundaries. Only listed data ports and public classical-result ports cross a template boundary. Recovery-syndrome registers introduced for comparison in step 2.3 remain attached to their corresponding physical block edge; they are not an additional globally shared register coupling unrelated locations. A good lower child, on its admitted encoded input, consequently factors its ideal logical channel or instrument and its attached syndrome maps by the termwise identities already proved. Public measurement records remain explicit encoded classical ports. The coefficient may act on shared fault memory; it is not assumed to commute with another location's coefficient.
Keep that memory order by expanding the finite Kraus products before making a substitution. Fix a complete instrument outcome and Kraus index at every location, and choose bases on the attached syndrome and private registers. In the logical/syndrome coordinates of step 5.2, each good map on admitted inputs has its ideal logical Kraus operator as data factor. A good input refresh on an unrestricted port has admitted output by the stipulated attraction property, so its Kraus operator can instead be expanded into arbitrary maps from that physical input to the logical output, with syndrome/memory coefficients. The marked map has the analogous unrestricted local matrix expansion. Thus write each typed factor as , where acts only on its declared data ports and on the syndrome/private registers and shared memory. Expanding the chronological product gives , with the edge isometries understood. No factors are permuted. Equivalently, contract the internal syndrome basis indices while leaving their memory coefficients in this order. This is a finite linear expansion of each actual Kraus operator; its summands are not separate probabilistic branches.
A marked output need not be admitted. Before its next interaction, however, the next good template applies its separate input correction on that port. In each data-factor product of step 6.1, move only this refresh's data factor backward along the unused output wire: intervening data factors have disjoint ports, so their tensor products commute. Absorb it into the marked data factor without changing that factor's input or output port labels. Do this separately for each marked output; a port with no subsequent use remains unrestricted at the output or is discarded. On admitted predecessor inputs a good refresh has logical factor . No syndrome/memory operation has moved, and the chronological coefficient product from step 6.1 is retained. The one-location proofs in [F2]–[F4] are linear Kraus identities for arbitrary local matrices: any such matrix can be scaled to a contraction and completed to a local CPTP Kraus family. They therefore apply to every absorbed data term, with its ordered memory coefficient, and then to their coherent sum. This proves precisely the local Kraus-span absorption required by [F7]. It does not identify the complete circuit with a single relocated CPTP fault. Complete positivity, trace preservation and actual outcome probabilities come from the unchanged original circuit after reassembling each Kraus operator and summing its branches, not from treating expansion terms as channels. The remaining unrestricted output ports must still be counted in the residual support, as checked below.
Here is the finite correction experiment required by [F7], with and a lower admitted port span . Its edge types are the logical qubit times its attached syndrome on every admitted data, cat, raw-bit and workspace port; before first use a not-yet-admitted port instead has its unrestricted physical type. The initial idle replacements in attract arbitrary input ports into their admitted ranges. With no marked replacement this converts input, , to at most arbitrary outer-coordinate errors; every subsequent good replacement acts on the admitted logical/syndrome types of step 5.2. The zero-fault four-round argument of [F2] corrects these and leaves . For arbitrary input it likewise projects onto a full outer syndrome and returns , without preserving any initial logical interpretation. With one marked prefix idle, its output is refreshed at its first subsequent use and is one arbitrary outer-coordinate error. Input budget two then gives at most three such errors, corrected by the otherwise ideal outer four-error recovery. If that coordinate is never used again, it is itself the one unrestricted output factor.
For a mark later in , use step 7.1 to absorb the first subsequent good refresh data factors on its output ports termwise, retaining every memory coefficient in chronological order. All other data factors have their ideal admitted logical action, so the linear finite case analysis of [F2] applies to each resulting local matrix term. A cat-preparation mark is followed by the parity verifications, whose accepted logical cat factors give ; faulty verifier or enabled-interaction ports affect at most their matching data coordinate. A raw-verification copy can corrupt its source bit and one target workspace, but every other acceptance workspace still has a correct majority triple. A final raw-syndrome copy can corrupt one source bit and one target decoder; the other decoders still select a true equal syndrome pair. Internal selector/decoder faults have only their designated data coordinate. These exhaust the raw/shared ports, and all remaining private cat and scratch outputs are discarded. Consequently every still-inadmissible retained data output is on the same coordinate as the one-coordinate residual already counted in [F2]; a mark with no subsequent use is a last data interaction, correction or idle on that coordinate. There is no second unrestricted data factor to add. Thus correction maps to with its original logical state, and arbitrary input into the same residual range with unspecified logical state. Full branch sums remain trace preserving; public logical readout ports are retained.
Next apply this finite correction result to the leading and trailing corrections in the protected templates. Their cores have exactly the transversal, Pauli/scalar, injection and stagewise Toffoli cases in steps 1.3–3.1: a mark in a leading correction leaves one outer error, a mark in a core adds only its listed coordinate supports, and an ideal suffix removes at most four errors; a marked suffix sees its admitted weight-at-most-two input. Step 7.1 absorbs the input-refresh data factors for an inadmissible core port before interaction, retaining the chronological memory coefficients; an invalid retained output is already one of that slot's counted residual coordinates. Each complete protected elementary template therefore maps to ; the weaker computation bound follows. The Toffoli construction refreshes and corrects all seven live blocks after each listed stage, so it has those same complete-boundary types. Preparations and encoded-classical readout use the outcome-resolved cases of step 2.2; physical classical controls have the same refresh and coordinate restrictions. Finally an idle template attracts arbitrary input: if its mark is in the leading correction use step 9.1, if in its middle layer use the clean outer-code output of the leading correction, and if in its suffix use the admitted-input correction result. An outer padding mark acts on one data coordinate after the ideal body. These give the acyclic order correction, protected computation, idle attraction, retaining the zero-marked weight-four correction clause. Every reduction concerns this one finite template, with arbitrary attached syndrome coefficients; it has no concatenation index.
The finite experiment in steps 8.1–10.1 now proves the actual recursion by simultaneous induction. Retain correction , correction attraction on arbitrary input, complete protected computation , and idle attraction. Also retain correction and arbitrary-input attraction when no child is bad. The level-one cases are [F2] and steps 1.3–3.1. At level , step 2.3 makes all lower admitted sectors correctable; step 5.2 gives their logical/syndrome factorization. Apply the finite experiment with and , in its proved correction/computation/idle order. Good lower replacements have precisely the induction identities it requires, while one bad child is left unrestricted. The resulting sectors are exactly the of step 2.3. This establishes the simultaneous assertions without assuming a bad child's output encoded.
For a sequence of computation/correction stages, the stronger complete-template bound from step 11.1 implies the required computation bound, and correction returns . Thus [F7] applies with and returns the ideal joint logical instrument after the recursive decoder. These are hierarchical support bounds, not a bound of two on the total elementary error weight at higher levels. The identities retain every public logical outcome and external reference; private syndrome and fault-memory coefficients are traced only at their declared boundaries.
By step 1.3 and step 2.1 and step 1.4 and step 3.1 and step 2.2 every computation template has input budget one and output budget at most two with one bad child, and correction has input budget and output budget one. The zero-fault correction requirement on arbitrary inputs holds independently. Step 1.1 shows that these are exactly all nonzero sparse budgets demanded by ; there is no omitted higher- branch. Steps 5.2–10.1 prove the finite port-substitution hypothesis of [F7], and steps 2.3 and 11.1–12.1 establish its actual recursive domains and decoded action. The suppliers prove the branch maps before normalization and then sum them, with all error supports and memory actions declared. Finally choose the one-block logical alphabet containing , supplemented by the provided two- and three-block Clifford/Toffoli gates for circuits. By [F5] its one-block subgroup is dense in the full in operator norm, including scalar phases. Together with the fixed code, all finite schedules, protected boundary preparations and readout, encoder boundary, correction and recursive goodness above, this proves the proper-code existence claim through the nonvacuous route.
Concatenated Threshold Under Local-Stochastic Correlated Noise
Statement
Assume a fixed proper code of block size and correction capacity , with a recursively closed finite gadget family satisfying Fault-Tolerant Gadget and Proper-Code Contract. Let its positive integer effective spread budget be , let bound the number of child rectangles, put , and assume . Assume also the proved finite port-substitution hypothesis of Sparse Fault Paths Preserve Correctable Code Deviation for these parameters, including its noisy attraction and intermediate-sector requirements, and use its recursive final decoder. Put . At each integer level , use the full-depth recursive rectangle hierarchy: every root-to-location path has exactly child edges, and sibling location sets are disjoint. Use the finite channel-location schedule of Finite ordered channel-location schedules and local-stochastic fault model of Local-Stochastic Correlated Quantum Noise, with and . For each finite simulated circuit, let be its total number of top-level rectangles, counting every gate, initialization, correction, scheduled idle, measurement, and readout gadget. Then the level- bad-rectangle bound is
The noisy computation starts at an admitted encoded boundary: pre-existing live data blocks are jointly encoded from an arbitrary logical input, with any finite external reference retained, and any newly initialized blocks are supplied by the protected prescribed-initialization gadgets covered by the contract and counted among the top-level rectangles. No guarantee is asserted for an unknown unencoded physical input before this protection begins. The probability that any of the top-level rectangles is bad, decoded-output trace distance, finite-POVM total-variation error, and success-probability change are each at most . For any target , choose the least such that (for , take ). For fixed code and gadget parameters, as , this gives concatenation levels and polylogarithmic fixed-code overhead. Fault indicators need not be independent; conditional operations remain local to their specified locations.
Facts & Assumptions
Input boundary: The admitted inputs are arbitrary joint encoded logical states, with arbitrary finite external references, or blocks produced by protected prescribed initializations covered by the proper-code contract. An unknown unencoded physical input before protection is outside the noisy guarantee.
Given: A finite local-stochastic fault-set process, full-depth disjoint child-location trees at each recursive level, the proper-code encoded-instrument correction and gadget contracts, integers , , , and , with , , with , a target , and the proved finite port-substitution hypothesis with its recursive final decoder. Prove the probability and decoded-output guarantees.
Local-Stochastic Correlated Quantum Noise: Every realized fault set obeys the local-stochastic subset bound, and its conditional channel is a chronological composition of pattern-dependent CPTP maps, one local map at each faulty location.
Good and Bad Concatenated Rectangles: A bad parent requires at least bad children with disjoint underlying location sets.
Local-Stochastic Fault-Witness Bound: Under the stated hierarchy and local-stochastic subset bound, the root bad probability is at most .
Sparse Fault Paths Preserve Correctable Code Deviation: Its finite port-substitution hypothesis gives joint hierarchical residual instruments in , exactly corrected by the recursive decoder with arbitrary references retained.
Trace Distance Range And Equality: for density operators.
Measurement Variation At Most Trace Distance: Any finite POVM outcome laws have total-variation distance at most the input-state trace distance.
Fault-Tolerant Gadget and Proper-Code Contract: The contracts hold branchwise with any finite reference retained and quantify over arbitrary CPTP maps supported on the union of faulty child supports.
Finite ordered channel-location schedules: Each conditional fault-pattern denotation is a finite chronological composition of full-register channels.
The Local Noise Model Composes With Circuit Semantics: A finite probability-weighted mixture of conditional pattern denotations is a CPTP channel.
The finite union bound: For a finite family of events, the probability of their union is at most the sum of their probabilities.
The family satisfies the additional proved finite port-substitution hypothesis in [F4], including its support/refresh checks. This is additional to the one-level contract in [F8].
Proof
Apply [F3] to each level- rectangle. Its proof counts fault-witness sets and uses only the local-stochastic subset bound, so it requires no independence between child fault indicators. Thus each top-level circuit rectangle is bad with probability at most .
If , each single-location fault event has probability zero by the local-stochastic subset bound; the finite union bound gives no faults almost surely, so level zero suffices. Otherwise put and . Any with is sufficient; if the logarithm is nonpositive or its positive value is at most , suffices. For fixed parameters, the least qualifying is as .
By [F11], the probability that at least one of the top-level circuit rectangles is bad satisfies . For every fault pattern, [F9] gives a conditional channel, so its output on the fixed joint data input and external reference is a density operator. On the complementary event, recursive goodness gives at most bad children in every stage. The one-level contract [F8] and finite hypothesis [A1] permit the simultaneous recursive correction guarantee [F4] for the per-location channels allowed by [F1]. Its recursive final decoder takes every such hierarchical residual instrument to the ideal logical instrument. Thus every pattern with no bad top-level rectangle has decoded output . If , the normalized finite mixture of bad-pattern outputs is a density operator ; if , choose any density operator for . Then , and [F10] confirms that the weighted schedule output is a channel.
By homogeneity of trace distance and [F6], . Applying [F7] to the final POVM bounds its output total-variation distance by , and every success event changes by at most that total-variation distance.
Because the gadget family is fixed and finite, choose a constant bounding both the number of elementary locations and the scheduled depth of every replacement gadget, including preparation, control, reset, and idle locations. Replacing each location of a schedule of size and depth gives size at most and depth at most : replace disjoint locations of each original layer in parallel and pad their gadgets to the common depth bound. Induction gives size at most and depth at most at level . Thus the multiplicative size and depth overheads are at most , which is a fixed power of by step 1.2.
Remarks
This is a separate proof branch from the independent-location recurrence. The source paper states the local-stochastic extension but does not supply the complete witness-count derivation written here. The finite channel schedule and proper-code gadget contracts are explicit hypotheses; their transitive supplier closure remains a draft dependency.
Conditional Concatenated Threshold for Proper Codes
Statement
Assume a fixed proper code with integer block size , integer correction capacity , positive integer effective spread budget , and an integer bound on the number of child rectangles per gadget. Let and assume . Assume also the proved finite port-substitution hypothesis of Sparse Fault Paths Preserve Correctable Code Deviation for these parameters, including its noisy attraction and intermediate-sector requirements. Put . At each integer level , use the full-depth recursive rectangle hierarchy: every root-to-location path has exactly child edges, and sibling location sets are disjoint. Use the independent local CPTP fault model of Independent Local Quantum Fault Model with rate , and assume . The circuit is a finite channel-location schedule as in Finite ordered channel-location schedules. Interpret level- outputs after the recursive decoded recovery of Sparse Fault Paths Preserve Correctable Code Deviation, built from the declared one-level recovery. For each finite simulated circuit, let be its total number of top-level rectangles, counting every gate, initialization, correction, scheduled idle, measurement, and readout gadget. Then every level- rectangle is bad with probability at most
The noisy computation starts at an admitted encoded boundary: pre-existing live data blocks are jointly encoded from an arbitrary logical input, with any finite external reference retained, and any newly initialized blocks are supplied by the protected prescribed-initialization gadgets covered by the contract and counted among the top-level rectangles. No guarantee is asserted for an unknown unencoded physical input before this protection begins. The probability that any of the top-level rectangles is bad is at most . For every admitted jointly encoded logical input, including one entangled with an arbitrary finite reference, the decoded level- output has trace distance at most from the ideal logical output; every final finite POVM output law has total-variation distance at most , so every success probability changes by at most . For any target , choose the least such that (for , take ). For fixed code and gadget parameters, as , this level is , and the fixed-code size and depth overhead are polylogarithmic in . This conditional theorem does not supply a concrete universal gadget family; that is a separate authoring obligation.
Facts & Assumptions
Input boundary: The admitted inputs are arbitrary joint encoded logical states, with arbitrary finite external references, or blocks produced by protected prescribed initializations covered by the proper-code contract. An unknown unencoded physical input before protection is outside the noisy guarantee.
Given: A finite channel-location schedule; a fixed proper code and recursively closed gadget family; integers , , , and ; with ; ; fault rate with ; full-depth disjoint rectangle hierarchies at each integer level ; a total count of top-level circuit rectangles; a target ; and the proved finite port-substitution hypothesis with its recursive final decoder. Prove the probability, decoded-output-distance, and overhead bounds.
Good and Bad Concatenated Rectangles: A parent is bad only when at least child rectangles are bad; its ordinary child location sets are disjoint.
Recursive Bad-Rectangle Probability: Under the independent local fault model, .
Sparse Fault Paths Preserve Correctable Code Deviation: Under its finite port-substitution hypothesis and , a -sparse path leaves a joint hierarchical error instrument in after correction, recovered by with every finite external reference retained.
Trace Distance Range And Equality: For density operators, .
Measurement Variation At Most Trace Distance: Any finite POVM outcome laws from have total-variation distance at most .
Fault-Tolerant Gadget and Proper-Code Contract: At one level, with at most faulty elementary locations, the computation and correction contracts preserve the decoded logical target, leave at most residual supported errors, correct every -deviation, and retain arbitrary references.
The finite union bound: For a finite family of events, the probability of their union is at most the sum of their probabilities.
Finite ordered channel-location schedules: A schedule is a finite ordered list of full-register channels, and its denotation composes them in chronological order.
The Local Noise Model Composes With Circuit Semantics: A finite probability-weighted mixture of conditional pattern denotations is a CPTP channel.
The family satisfies the additional proved finite port-substitution hypothesis in [F3], including its support/refresh checks. The one-level definition in [F7] alone does not imply that hypothesis.
Proof
Since , we have . Also , and gives . Apply [F2] to obtain .
If , the product fault law gives probability zero to every nonempty fault pattern, so and level zero suffices. If , put . Any with gives by [F2]; if the logarithm is nonpositive or its positive value is at most , level suffices. For fixed with , the least qualifying level is as .
The event that any of the top-level circuit rectangles is bad is the union of events, each of probability at most . The finite union bound [F8] gives .
For every fault pattern, [F9] gives a conditional channel, so its output on the fixed joint data input and external reference is a density operator. On the event that all top-level rectangles are -good, recursive goodness gives at most bad children in each computation and correction stage. The one-level contracts [F7], finite hypothesis [A1], and simultaneous recursive induction [F3] place the final corrected instrument in its hierarchical residual sector. Applying its recursive decoder returns the ideal logical instrument exactly, so every such pattern has decoded output . If , the normalized finite mixture of outputs from bad patterns is a density operator ; if , choose any density operator for . Thus , and [F10] confirms that this weighted schedule output is a channel.
By homogeneity of the trace norm, , where the first inequality is [F5]. The same identity holds after tensoring any reference identity, since the gadget contracts preserve the external reference after internal outcomes and fault memory are traced.
Apply [F6] to the final finite POVM. Its output total-variation distance is at most . For any success event , , so the success-probability change is at most .
Because the gadget family is fixed and finite, choose a constant bounding both the number of elementary locations and the scheduled depth of every replacement gadget, including preparation, control, reset, and idle locations. Replacing each location of a schedule of size and depth gives size at most and depth at most : replace disjoint locations of each original layer in parallel and pad their gadgets to the common depth bound. Induction gives size at most and depth at most at level . Thus the multiplicative size and depth overheads are at most , which is a fixed power of by step 1.2.
Remarks
The proof is conditional on the declared gadget contract and disjoint rectangle partition. Overlapping extended rectangles require the separate truncated-exRec witness reduction in Conditional Distance-Three Extended-Rectangle Threshold. The concrete universal-code and gadget existence theorem remains a separate item.
5 · Examples, counterexamples and false statements
None yet.
Sources
- D. Aharonov and M. Ben-Or, Fault-Tolerant Quantum Computation With Constant Error
- P. Aliferis, D. Gottesman, J. Preskill, Accuracy Threshold for Postselected Quantum Computation
- John Preskill, Quantum Computation, Chapter 7: Quantum Error Correction
- John Preskill, Toric code recovery, fault-tolerant recovery, fault-tolerant gates (2011 handwritten lecture notes)
- Christopher M. Dawson and Michael A. Nielsen, The Solovay–Kitaev Algorithm
- John Preskill, Fault-tolerant recovery and fault-tolerant gates (2011 lecture notes)
- Aliferis, Gottesman and Preskill, Quantum accuracy threshold for concatenated distance-3 codes, Sections 5 and 9
- Aliferis, Gottesman and Preskill, Quantum accuracy threshold for concatenated distance-3 codes
- David W. Kribs, Raymond Laflamme, David Poulin, and Maia Lesosky, Operator Quantum Error Correction