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.
Classical and Quantum Error-Correcting Codes
1 · Prerequisites
- Algebraic Extensions, Extension Degree, and Finite Fields
- Binary Operations, Monoids, Groups and Subgroups
- 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
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- 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
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Free Modules, Exact Sequences, Projective and Injective Modules
- Gaussian Elimination, Elementary Matrices and Reduced Row Echelon Form
- Group Homomorphisms and the Isomorphism Theorems
- Hilbert Space Geometry and Riesz Representation
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Modules, Submodules, Quotient Modules and the Isomorphism Theorems
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Polynomial Rings, the Division Algorithm and Roots
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Registers, Tensor Products, and Partial Trace
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Simple Field Extensions and the Construction of the Complex Numbers
- Suprema and Infima
- Tensor Products of Modules
- The ZFC Axioms and the Basic Set Constructions
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
This page develops classical linear codes over an explicitly named finite field and finite-register quantum code subspaces. Classical vectors are columns; a generator has shape , a parity-check matrix has shape , and the syndrome is . The binary repetition code is used as a worked case, while general finite-field statements are proved locally.
Quantum codes are isometric encodings into a fixed ordered register tensor product. The inner product uses the root library's first-argument-linear convention. Operator support is defined relative to the declared register factorization; the exact QC02 tensor and wire-permutation suppliers remain required for the support-invariance proof. Distance here gives error detection only. Recovery-map criteria are deferred to the next page.
3 · Logical flowchart
4 · Definitions, theorems and proofs
A full-column-rank matrix has image dimension equal to its number of columns
Statement
Let be a field, let , and let . Regard as the linear map , , using column vectors. If the columns of are linearly independent, then is a -dimensional linear subspace of . This includes and .
Facts & Assumptions
Given: A field , natural numbers , a matrix with linearly independent columns, and the associated column-vector map .
The standard list with and for is an ordered basis of ; hence , and is the zero space with basis and dimension : The standard vectors form an ordered basis of , including the empty basis when , and .
Rectangular matrix multiplication and the identity matrix , including zero-sized shapes: Matrix multiplication is defined entrywise by finite sums, including the empty-sum case.
Linear map between vector spaces over the same field: A map between -vector spaces is linear when it preserves all two-term linear combinations.
Linear subspace of a vector space: A subset containing zero and closed under addition and scalar multiplication is a linear subspace.
Rank-nullity: : If is linear and is finite-dimensional, then .
Proof
For and , the entry formula for matrix multiplication gives , so is linear by [F2] and [F3]. It sends zero to zero and its image is closed under linear combinations, hence its image is a subspace by [F4]; these calculations also cover empty coordinate sets.
If , then , where is column of . Independence of the columns forces every , so . For , and the same conclusion holds.
By [F1], . Applying [F5] to [step 1.1] and [step 1.2] gives . Since the image of is the span of the columns, it is the asserted subspace.
Remarks
- No Choice axiom is used. The zero-column case is an empty matrix map from the zero space.
Finite complex linear isometries preserve inner products
Statement
Let be a linear isometry between finite-dimensional complex inner-product spaces whose pairings are linear in the first argument. Then for all .
Facts & Assumptions
Given: Finite-dimensional complex inner-product spaces with first-argument-linear pairings and a linear isometry .
Real and complex inner-product spaces and their induced length: The complex pairing is linear in its first argument and conjugate-linear in its second, with conjugate symmetry.
Real and complex inner-product spaces and their induced length: The induced norm satisfies .
Real and imaginary parts, complex conjugation, and modulus: Every complex number has unique real and imaginary parts, and conjugation sends to .
Linear isometries, and orthogonal or unitary operators on finite-dimensional inner product spaces: A linear isometry is linear and preserves the induced norm of every vector.
Proof
Put . Expanding with [F1] and [F2] gives , so by [F3]. Also , , and ; hence and by [F3].
Linearity and norm preservation [L1] give and and equate the four squared norms for with those for . Applying step 1.1 in each space shows that and have the same real and imaginary parts; their equality follows from [F3].
Remarks
The proof is a direct finite algebra expansion under the root convention and uses no choice principle.
Classical linear code over a finite field
Definition
Let be a finite field of order , let , and let be a linear subspace (Finite fields and their order, Vector space over a field, Linear subspace of a vector space). Put ; since has dimension , (The standard list with and for is an ordered basis of ; hence , and is the zero space with basis and dimension , If and is a linear subspace of , then is finite-dimensional, , and if and only if ). A classical linear code over with a specified encoding is the data , where is a linear isomorphism. Such an isomorphism exists because and finite-dimensional vector spaces of equal dimension are isomorphic (Two finite-dimensional vector spaces over are linearly isomorphic if and only if they have the same dimension). The field is part of the data: notation does not identify the field with ; that quotient is a field only when is prime.
If , then , , and the encoding is the unique map between these zero spaces. If an encoding is represented by a full-column-rank matrix , its image has dimension by A full-column-rank matrix has image dimension equal to its number of columns.
Remarks
The code is the linear subspace together with a declared message encoding. No field existence or uniqueness theorem is repeated here.
Hamming weight and distance of a finite-field linear code
Definition
For , its Hamming weight is . For , their Hamming distance is . For a nonzero code , define its minimum distance by . This minimum exists because its nonempty set of values lies in and the natural numbers are well ordered (The well-ordering principle). For the zero code , set by convention; this sentinel exceeds every possible Hamming weight and makes the usual radius statements vacuously valid for distinct codewords.
The code parameters are written , where and . This notation records a finite-field alphabet and does not imply that .
Remarks
The identity is used over every characteristic; only in characteristic two does subtraction equal addition.
Bilinear dual of a finite-field linear code
Definition
For , define the standard bilinear dot product . For any linear subspace (Linear subspace of a vector space)—in particular, the codeword subspace of a classical linear code as in Classical linear code over a finite field—its dual code is
This is a bilinear pairing over ; it is not a positive-definite or Hermitian inner product. The proof that is a linear subspace, has dimension , and satisfies is Dimension and double-dual identity for finite-field code duals.
Quantum code as an isometric encoding and its code projector
Definition
Let be a finite-dimensional complex inner-product space and let be a fixed ordered finite register tensor product with , supplied by the QC register interface. A quantum code is an isometric encoding . Its code subspace is , its logical dimension is , and its physical block length is the number of tensor factors. When each physical factor is a qubit, ; a logical -qubit register has . Require .
Using the root library's adjoint convention, the code projector is . The theorem An isometric quantum encoding gives an orthogonal code projector ↗ proves , , and , including one-dimensional logical spaces and the full-space code.
Remarks
The QC02 suppliers set for , order qubit strings lexicographically with the first wire most significant, and distinguish the empty register from (Finite registers and their ordered computational bases). Ordered tensor registers use the factorwise product pairing, linear in the first argument, and declared wire permutations have inverse permutations (Ordered tensor registers, their inner product, and wire permutations). These are the conventions used here.
Hamming distance is a metric and linear-code distance is minimum nonzero weight
Statement
For every finite field and , is a metric on . If and is the codeword subspace of a classical linear code, then for nonzero , . For there are no distinct codewords, and the distance parameter is the stated convention .
Facts & Assumptions
Given: A finite field and for the metric claim. For the code-distance claim, assume , let be a classical linear code, and use the weight and distance functions of Hamming weight and distance of a finite-field linear code.
Classical linear code over a finite field: A code is a linear subspace of , so it contains and is closed under subtraction.
Hamming weight and distance of a finite-field linear code: counts nonzero coordinates, , and is the minimum nonzero weight or for the zero code.
Proof
Weight is nonnegative and vanishes exactly on the zero vector. Also because exactly when . Hence , exactly when , and .
If , then at least one of or is nonzero, since their sum is . Therefore the support of is contained in the union of the supports of and , so .
If and are distinct, then [L1] gives , so . Conversely every occurs as the difference of the pair , and . Thus the two nonempty sets of distances have the same minimum. When no distinct pair exists, and [L2] supplies the separate convention.
Remarks
This proof is independent of the field characteristic and uses no choice principle.
Dimension and double-dual identity for finite-field code duals
Statement
Let be a finite field, , and let be a linear subspace (Linear subspace of a vector space) of dimension . Then is a linear subspace of dimension , and . In particular this holds for every classical linear code, including and (Classical linear code over a finite field).
Facts & Assumptions
Given: A finite field , , a subspace of dimension , and the bilinear dot product of Bilinear dual of a finite-field linear code.
Bilinear dual of a finite-field linear code: consists of vectors whose dot product with every vector of is zero.
Row space, column space, nullspace, row rank, column rank and matrix rank: The row space is the span of matrix rows, the column space is the span of columns, and the nullspace is ; row and column ranks are their dimensions.
Row rank equals column rank, and both equal the number of pivots: For every finite matrix over a field, its row rank equals its column rank.
Rectangular matrix multiplication and the identity matrix , including zero-sized shapes: Matrix products are the finite coordinate sums, including empty shapes.
Linear map between vector spaces over the same field: A map between vector spaces over is linear when it preserves linear combinations.
Finite-dimensional vector space, and its dimension ; infinite-dimensional means having no finite basis: A finite-dimensional vector space has a finite basis, and its dimension is the cardinality of such a basis.
The standard list with and for is an ordered basis of ; hence , and is the zero space with basis and dimension : has dimension , including .
Rank-nullity: : For a linear map with finite-dimensional domain, domain dimension is kernel dimension plus image dimension.
If and is a linear subspace of , then is finite-dimensional, , and if and only if : A subspace of a finite-dimensional space has the same dimension as its ambient space exactly when it equals that space.
Linear subspace of a vector space: A linear subspace contains zero and is closed under addition and scalar multiplication.
Proof
Since , [F5] supplies a basis . Form the matrix whose th row is . Its row space has dimension by [F1]. The map , , is linear by [F3] and [F4]; the product formula writes as the linear combination of the columns of with coefficients , so its image is the column space. Hence [F2] gives . This also works for , with an empty row list.
A vector belongs to exactly when for every basis vector , which by bilinearity is equivalent to for every . Thus . Since is linear, this kernel contains zero and is closed under linear combinations, so it is a subspace. By [F6] and [F7], .
Applying step 1.1 and step 2.1 with in place of gives . Symmetry of the dot product gives . Apply [F8] to this inclusion inside the -dimensional space ; equal dimensions force equality. This also covers and .
Remarks
The coordinate pairing is nondegenerate over every field because the standard coordinate rows form a basis. No complex conjugation is used, and no choice principle is needed in finite dimension.
An isometric quantum encoding gives an orthogonal code projector
Statement
Let be finite-dimensional complex inner-product spaces and let be a linear isometry. Then . Consequently is self-adjoint and idempotent and is the orthogonal projection onto . If and , then ; when the code is a line, and when the code subspace is all of and .
Facts & Assumptions
Given: Finite-dimensional complex inner-product spaces , with pairing linear in the first argument, and a norm-preserving linear map .
Real and complex inner-product spaces and their induced length: The complex inner product is linear in its first argument and conjugate-linear in its second.
Finite complex linear isometries preserve inner products: A linear isometry between finite-dimensional complex inner-product spaces preserves the first-linear inner product.
The adjoint is characterised by : The adjoint satisfies .
Every linear map between finite-dimensional inner product spaces has a unique adjoint: Such an adjoint exists uniquely for finite-dimensional inner-product spaces.
Inner products separate vectors, and the induced norm is homogeneous: : Inner-product pairings separate vectors.
Adjoints satisfy , , , and : and for compatible finite-dimensional maps.
An endomorphism is an orthogonal projection exactly when it is idempotent and self-adjoint: A finite-dimensional endomorphism is an orthogonal projection exactly when it is self-adjoint and idempotent; its range is the projected subspace.
Rank-nullity: : For a finite-dimensional domain, .
If and is a linear subspace of , then is finite-dimensional, , and if and only if : A subspace of a finite-dimensional space has dimension at most the ambient dimension and equals the ambient space when dimensions agree.
Proof
Norm preservation and [F2] give for all , since each of the four norms in the polarization formula is preserved.
The adjoint exists by [F4]. By [F3] and step 1.1, for every . Conjugate symmetry from [F1] and nondegeneracy [F5] imply for every . Thus .
With , [F6] gives , and step 2.1 gives .
For every , belongs to . Conversely, , so every vector in lies in . Therefore , and [F7] identifies as the orthogonal projection onto the code subspace.
If , norm preservation gives , hence by positive definiteness [F1]; so is injective. [F8] yields , and [F9] gives . Also because dimensions are natural numbers. If , the image is a line. If , [F9] gives , so step 4.1 gives .
Remarks
The root inner product is linear in the first argument; no bra-ket convention is imported. The norm-preservation implication is proved locally in Finite complex linear isometries preserve inner products, so this argument uses no choice principle.
Hamming balls below half the code distance are disjoint
Statement
Let have distance parameter and put . For distinct codewords , the closed Hamming balls and are disjoint.
Facts & Assumptions
Given: A finite-field linear code , its distance parameter , and .
Hamming weight and distance of a finite-field linear code: is the minimum distance between distinct codewords for nonzero and is for .
Hamming distance is a metric and linear-code distance is minimum nonzero weight: Hamming distance is a metric and its minimum over distinct codeword pairs is when such pairs exist.
Proof
The defining floor gives .
If belonged to both balls, [L2] and the triangle inequality would give , contradicting the minimum-distance property [L2]. Thus the balls are disjoint. If there are no distinct codewords, so the conclusion is vacuous.
Generator and parity-check matrices over a finite field
Definition
Let have dimension . A generator matrix for is a matrix with linearly independent columns and column space . A parity-check matrix for is a matrix with linearly independent rows and nullspace . With column-vector conventions, and ; the product is defined and is the zero matrix. Existence for every code, the identity , and the boundary shapes are proved in Every finite-field linear code has generator and parity-check matrices.
The row vectors of , identified with their coordinate columns by transpose and the bilinear dot product, span . No Hermitian conjugation is used. The matrices have shapes and , including and matrices.
Support and weight of an operator on a finite register
Definition
Fix an ordered physical register with finite-dimensional factors. For , form and in the inherited order, and let be the declared bijective wire permutation. An operator is supported in if there is with
Its weight is . The minimum exists because the full set supports every operator and has finitely many subsets. Let ; scalar identity operators have weight zero. The weight is invariant under reordering the tensor factors by their declared wire permutation (Operator support weight is invariant under wire permutation ↗).
Here is the tensor map of Tensor products of finitely many linear maps. The product factors may have arbitrary finite dimensions; qubits are the special case for every .
Remarks
The register tensor pairing and exact permutation convention are supplied by Ordered tensor registers, their inner product, and wire permutations and Finite wire permutations are unitary basis permutations. Their current bodies were inspected; Operator support weight is invariant under wire permutation ↗ proves the resulting weight invariance.
Every finite-field linear code has generator and parity-check matrices
Statement
Let have dimension . There are matrices and such that the columns of form a basis of , the rows of form a basis of after transpose identification, , and . This includes and .
Facts & Assumptions
Given: A finite field , , a code of dimension , and the matrix conventions of Generator and parity-check matrices over a finite field.
Classical linear code over a finite field: is a finite-dimensional linear subspace of with .
Bilinear dual of a finite-field linear code: is defined using the bilinear dot product .
Dimension and double-dual identity for finite-field code duals: is a subspace of dimension and .
Finite-dimensional vector space, and its dimension ; infinite-dimensional means having no finite basis: A finite-dimensional vector space has a finite basis whose size is its dimension.
The vector space of by matrices over a field, with entrywise operations: An matrix is a function on the row-column index set, with rows and columns given by its coordinates.
Rectangular matrix multiplication and the identity matrix , including zero-sized shapes: Matrix multiplication uses the finite coordinate sum; zero-sized shapes use the empty sum.
Row space, column space, nullspace, row rank, column rank and matrix rank: The row space is the span of the rows and the nullspace is .
Proof
By [F1], choose a basis of ; making these vectors the columns of gives shape , independent columns, and column span exactly . If , the basis and column list are empty and is the unique matrix.
By [L3], has dimension ; [F1] supplies a basis . Place their transposes as the rows of . These rows are independent and span the row space corresponding to . If , this is the empty row list and has shape .
Every row of is orthogonal to every column of , by [L2] and [L3]. Hence every entry of is zero by [F3], so with shape , including when a dimension is zero.
By [F4], exactly when every row of has zero dot product with . The transposed rows span by step 1.2, so by [L3]. Thus is a parity-check matrix and is a generator matrix.
Remarks
The choices in steps 1.1 and 1.2 are choices of one finite basis at a time; the finite-dimensional basis theorem used here is choice-free. For , can be chosen as the identity matrix of size ; for , can be chosen as the identity and is the unique matrix.
Operator support weight is invariant under wire permutation
Statement
Let the source register have ordered factors , and let the target register have factors in the QC02 order . Let be the corresponding wire bijection and set . An original factor labeled is in target position . Thus is supported in exactly when is supported in ; consequently .
Facts & Assumptions
Given: The source and target ordered tensor registers in the Statement, a permutation , its wire bijection , and .
Support and weight of an operator on a finite register: Support means conjugating by and its inverse gives a local operator tensored with identity on the complementary factors; weight is the minimum support size.
Ordered tensor registers, their inner product, and wire permutations: A wire permutation sends a product-basis tensor to the tensor with the same factor labels in the declared output order and is extended linearly.
Finite wire permutations are unitary basis permutations: Every finite wire permutation is a bijective linear isometry, with inverse the wire permutation for the inverse ordering.
Tensor products of finitely many linear maps: A tensor map is the unique linear extension of its factorwise action on elementary tensors.
The product basis is orthonormal and tensor dimensions multiply: Elementary product tensors form a basis and span each finite ordered tensor register.
Proof
Put , the target positions occupied by source factors from . Let reorder those source factors into their target order, and let reorder the complementary factors likewise; these are wire bijections by [F2]. On each elementary tensor, both and place each factor vector in the same target order. Elementary tensors span by [F4], and the maps agree on them by [F1], so .
If is supported in , [L1] gives with . Conjugating by step 1.1 gives . On the right side is , hence equals by [F3]; thus is supported in .
Apply the same implication to and the inverse wire permutation. It gives the converse: if is supported in , then is supported in . Thus bijects the support sets of and , preserving cardinality; their minimum support sizes agree.
Remarks
The QC02 bodies were inspected. This proof uses their declared factor-order action and bijective inverse; it does not identify differently ordered registers without a map.
Detectable operators and distance of a finite-register quantum code
Definition
Let be an isometric encoding into a fixed ordered -factor register with , , and code projector . An operator is detectable by the code if there is a scalar such that
When , define the quantum distance by
where .
When , set by convention; the non-detectable set is empty in that case, as proved in Detectable operators form a subspace and quantum distance is well defined ↗. The same theorem proves that the minimum for exists, the condition is linear in , and changing to for a logical unitary leaves unchanged.
This definition distinguishes detection from recovery: no recovery map or correction criterion is asserted here. In particular the distance theorem on this page only proves detection below ; correction maps are deferred to QC19.
Remarks
The convention for a one-dimensional logical space is a sentinel larger than every possible operator weight. It avoids treating a minimum of an empty set as an ordinary integer minimum.
Detectable operators form a subspace and quantum distance is well defined
Statement
Let be the code projector of an isometric encoding into an -factor register and let be the logical dimension. Then:
- The set of detectable operators is a complex linear subspace of .
- Replacing the encoding by for any unitary on leaves , detectability, and distance unchanged.
- If , every operator is detectable, so the distance convention is appropriate. If , a non-detectable operator of weight at most exists, while every weight-zero operator is detectable; hence the minimum defining distance exists and lies in .
Facts & Assumptions
Given: An isometric encoding , its code projector , logical dimension , and an ordered -factor register with .
Quantum code as an isometric encoding and its code projector: and is the code subspace.
Detectable operators and distance of a finite-register quantum code: is detectable exactly when for some scalar, and distance is the minimum weight of a non-detectable operator when .
Support and weight of an operator on a finite register: Every operator is supported on the full factor set; scalar identity operators have weight zero.
An isometric quantum encoding gives an orthogonal code projector: The code projector is self-adjoint and acts as the identity on its range.
Every finite-dimensional real or complex inner product space has an orthonormal basis: Every finite-dimensional inner-product subspace has an orthonormal basis.
Orthogonal projection is linear, and an orthonormal basis of gives : Projection onto a unit vector acts by under the first-variable-linear convention.
Adjoints satisfy , , , and : The adjoint of a compatible composite satisfies .
Rank-nullity: : For a linear map with finite-dimensional domain, .
Proof
If with and , then for , . Thus , proving linearity.
For a unitary on , [F3] gives , so . The same projector gives the same detectable set, operator weights, and distance.
If , choose a unit vector spanning . By [F2], , and therefore for every and every . So every operator is detectable.
Suppose . If , norm preservation gives , so positive definiteness gives ; hence . Rank-nullity [F5] gives . By [L1], , so the code subspace is finite-dimensional of dimension at least two. Choose orthonormal in it using [F1], and let be projection onto . Since and by [L4], [F2] gives ; [F4] gives , so and . It cannot equal , since applying both sides to forces while applying them to forces . By [L3], has weight at most . If an operator has weight zero, the support definition uses , so it is and satisfies . Thus the non-detectable weights form a nonempty subset of and have a minimum.
Remarks
No Pauli-only reduction is used: the definition and proof range over all endomorphisms. The current QC02 register and wire-permutation definitions fix the factor order used by the code and support definitions.
Syndrome of a received word over a finite field
Definition
Let have parity-check matrix . The syndrome map is , , defined on every received word . If with transmitted codeword and error vector , its syndrome is the vector . The identity is proved in A received-word syndrome depends only on the error vector. A syndrome is not itself a decoded error; a decoding rule is additional data.
A received-word syndrome depends only on the error vector
Statement
For a codeword , an error , and received word , the syndrome satisfies .
Facts & Assumptions
Given: A codeword , error vector , received word , and a parity-check matrix for .
Syndrome of a received word over a finite field: The syndrome map is for each received word .
Syndrome of a received word over a finite field: Its hypothesis makes a parity-check matrix of ; the matrix convention in that definition's prerequisites is , hence for every codeword.
Proof
By [L1] and the linearity of matrix multiplication, .
Since by [L2], , so step 1.1 gives . The value depends on and not on which codeword was transmitted.
Equal classical syndromes imply a codeword difference
Statement
Let and let be a parity-check matrix of . If , then . If also and , then .
Facts & Assumptions
Given: A code with distance parameter , a parity-check matrix , errors , and a nonnegative integer with .
Syndrome of a received word over a finite field: The syndrome of a vector is .
Syndrome of a received word over a finite field: Its hypothesis makes a parity-check matrix of ; the matrix convention in that definition's prerequisites is .
Hamming weight and distance of a finite-field linear code: The weight counts nonzero coordinates, and every nonzero codeword has weight at least ; the zero code has .
Proof
If , linearity gives . By [L1] and [L2], . This uses subtraction in ; in characteristic two it equals addition.
The support of is contained in the union of the supports of and , so . If , [L3] contradicts that it is a codeword; for the zero code, its only codeword is already zero. Thus and .
Every operator below the quantum code distance is detectable
Statement
For a finite-register quantum code of distance , every operator with is detectable: for some . No correction-map conclusion is asserted.
Facts & Assumptions
Given: A quantum code with projector , distance , and an operator on its physical register satisfying .
Detectable operators and distance of a finite-register quantum code: For logical dimension at least two, is the minimum weight of a non-detectable operator; for logical dimension one, .
Detectable operators form a subspace and quantum distance is well defined: In logical dimension one every operator is detectable; otherwise the defining minimum exists.
Proof
If the logical dimension is one, [L2] directly gives detectability.
If the logical dimension is at least two and were non-detectable, [L1] would imply , contradicting the hypothesis. Therefore is detectable. This proves only the compression identity , not existence of a recovery map.
Remarks
Correction of a family of errors requires additional product conditions and is deferred to the QC19 Knill–Laflamme and recovery page.
Classical distance gives error detection, unique decoding, and erasure recovery
Statement
Let have distance parameter and let . Then:
- Every nonzero error of weight less than is detected by a parity-check matrix: .
- If for and , then is the unique codeword with ; moreover distinct errors of weight at most have distinct syndromes.
- If the erased coordinate set is known and , at most one codeword agrees with the received word outside .
These are detection, unique-decoding, and erasure-uniqueness guarantees. They do not assert an efficient decoder or a complexity bound.
Facts & Assumptions
Given: A finite-field linear code with distance , its parity-check matrix , and .
Hamming weight and distance of a finite-field linear code: Every nonzero codeword has weight at least ; for the zero code .
Hamming balls below half the code distance are disjoint: Hamming balls of radius around distinct codewords are disjoint.
Syndrome of a received word over a finite field: The syndrome map on a received word is .
A received-word syndrome depends only on the error vector: If with , then .
Equal classical syndromes imply a codeword difference: Equal syndromes force errors to differ by a codeword; errors of weight at most with are equal.
Syndrome of a received word over a finite field: Its hypothesis makes a parity-check matrix of ; the matrix convention in that definition's prerequisites is .
Proof
The floor formula gives . If , [L6] gives ; if and , [L1] is contradicted. Hence every such nonzero error is detected.
The transmitted codeword lies in the radius- ball around . Any other codeword in that ball would put in two distinct radius- balls, contradicting [L2]; therefore is the unique such word.
If two errors of weight at most have the same syndrome, [L5] gives . For a received word , [L3] and [L4] identify the measured syndrome as , so it uniquely identifies the error within that weight range.
If both agree with the received word outside the known set , then is supported in , so . If , this is a nonzero codeword contradicting [L1]. Thus at most one codeword is compatible. For , the only candidate is already unique and .
Remarks
The theorem is an information-theoretic uniqueness statement, not an algorithm or complexity claim. A decoder's representation of field elements, search procedure, termination proof, and cost would be separate algorithmic content.
5 · Examples, counterexamples and false statements
Binary three-bit repetition code and its syndrome table
Example
Work over . Let , with column-vector generator and parity-check matrices
The code has parameters . The four error vectors of weight at most one have distinct syndromes , giving a unique correction table.
Facts & Assumptions
Given: The field , code , and matrices displayed above.
For every prime , the two operations on make it a field: For every prime , with its usual residue-class operations is a field.
Generator and parity-check matrices over a finite field: A generator matrix has independent columns spanning ; a parity-check matrix has independent rows and nullspace ; and with column-vector conventions their product is zero.
Syndrome of a received word over a finite field: The syndrome of a received column is .
Classical distance gives error detection, unique decoding, and erasure recovery: A code of distance uniquely decodes up to unknown errors.
Verification
The prime makes a field by [F1]. The single nonzero column of is independent and spans . Multiplication gives . Solving gives , so . If and , coordinate gives and coordinate gives ; hence the rows of are independent. Thus and meet the generator and parity-check definitions [L1].
The only nonzero codeword is , whose weight is ; hence and .
Direct multiplication over gives , , , and . These are all four errors of weight at most one, and their syndromes are distinct.
For a received word with and , step 1.3 identifies from ; subtracting it yields . This realizes the one-error uniqueness guarantee of [L3].
Remarks
The matrix orientation is column-vector orientation: received words are columns and the syndrome is . The source notes use row-vector conventions in some passages; the displayed calculations are recomputed in the root library convention.
Sources
- Richard Cleve, Quantum Information Processing course notes, §37.1.2
- John Preskill, Quantum Computation, Chapter 7, §7.6
- Sheldon Axler, Linear Algebra Done Right, 4th ed., §7D, Theorem 7.49
- Richard Cleve, Quantum Information Processing course notes, §37.1
- Richard Cleve, Quantum Information Processing course notes, §§37.1–37.1.3
- Richard Cleve, Quantum Information Processing course notes, §37.1.1
- Richard Cleve, Quantum Information Processing course notes, §§36.1, 36.3, and 37.3
- John Preskill, Quantum Computation, Chapter 7, §§7.1 and 7.4.1
- Richard Cleve, Quantum Information Processing course notes, §§36.1 and 37.3
- John Preskill, Quantum Computation, Chapter 7, §7.4.1
- Richard Cleve, Quantum Information Processing course notes, §37.1.3
- Richard Cleve, Quantum Information Processing course notes, §§36.1 and 37.1–37.1.3