---
title: "Good quantum error-correcting codes exist — Calderbank 1996"
description: "Calderbank and Shor show how classical codes protect quantum states and prove that the encoding rate can stay positive as the block grows."
canonical: "https://research.elamur.ai/free/en/papers/calderbank-1996-good-quantum-error-correcting-codes/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/calderbank-1996-good-quantum-error-correcting-codes/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [1996](https://md.research.elamur.ai/free/en/papers/1996/) / Good quantum error-correcting codes exist

# Good quantum error-correcting codes exist

Paper · 1996 · A.R. Calderbank and Peter W. Shor

**Authors:** A.R. Calderbank and [Peter W. Shor](https://md.research.elamur.ai/free/en/authors/peter-w-shor/) · **Year:** 1996 · **Venue:** Physical Review A · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[Cited by **14** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/calderbank-1996-good-quantum-error-correcting-codes/cited-by/) · Physical Review A · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/quant-ph/9512032)
- [DOI 10.1103/physreva.54.1098](https://doi.org/10.1103/physreva.54.1098)
- [arXiv quant-ph/9512032](https://arxiv.org/abs/quant-ph/9512032)

## Summary

An error-correcting code needs some way to recover information after part of its physical representation has changed. For quantum information, making spare copies of an unknown state is unavailable. Calderbank and Shor show how to obtain redundancy by encoding the state across a larger block of qubits. Their recovery procedure restores the entire encoded state after arbitrary disturbance of any set of up to a specified size. The affected qubits can interact with a common environment, and the procedure can recover a superposition without finding out which logical state it holds.

The construction starts with nested classical binary codes. One classical code separates strings that differ by a small number of bit flips. A change of basis brings another classical code into play, and ordinary bit flips in that basis correspond to phase changes in the original basis. The crucial part of the proof establishes that the bit and phase corrections can be carried out in sequence, even when the disturbance cannot be described as a definite list of flips. A worked example uses the Hamming code to protect one logical qubit with 7 physical qubits against an arbitrary error on one of them. The earlier example discussed in the paper used 9 physical qubits for that protection.

The authors then ask what happens when the block grows and the number of correctable errors grows with it. A counting argument shows that there are codes whose asymptotic rate is bounded below by an expression involving binary entropy. In the range where that bound is positive, the number of encoded qubits can grow in proportion to the block length while the code still corrects a fixed fraction of disturbed positions. The proof guarantees the existence of suitable classical codes for the construction. It leaves their explicit asymptotic design open.

The paper also distinguishes exact correction of a bounded disturbance from high-fidelity transmission through a noisy channel. Under independent noise, the channel calculation relates fidelity to the part of its output covered by the correction guarantee. Two channel bounds, one based on classical information and another on entanglement, limit the rates a quantum code can achieve. Together with the existence result, they show where the paper can guarantee a rate, where higher rates are ruled out, and where the achievable rate remains open.

## Deep dive: Good quantum error-correcting codes exist

Calderbank and Shor show how classical codes protect quantum states and prove that the encoding rate can stay positive as the block grows. · about 36 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Redundancy for a state that cannot be copied

The prospect of quantum computation made the preservation of delicate quantum states a practical question. The paper points to prime factorization as an example of a problem for which interference and superposition appeared to offer a major speed advantage. That advantage depended on operations acting on a sufficiently coherent state throughout the calculation. An interaction with the surroundings could disturb the state even while it was being stored. Imperfect control could also introduce errors while a gate was acting. The authors describe a wide gap between the accuracy reached in the experimental gates they discuss, which was below 90%, and the accuracy they expected a difficult factorization to require.

Classical information already had a language for dealing with such a gap. In storage and communication, a code maps a message into a longer string chosen from a set with carefully arranged distances. A received string can then be assigned to its original codeword if the corruption is small enough. The paper also cites classical work in which systems assembled from unreliable gates could perform reliable computation. Those examples made redundancy a natural place to look for a way to preserve quantum information.

Copying an unknown quantum state is forbidden by the no-cloning theorem. The authors describe how this fact had been taken as a reason to doubt that quantum error correction could work. The inference depended on treating each redundant part as a copy. A longer quantum register can instead store the state in relations among its physical qubits. The encoding then has to preserve everything that the original state could do, including interference between components of a superposition. The way the information is distributed determines whether some of the register can be disturbed without taking that information away.

The earlier construction cited in the paper had already made this distinction concrete. It encoded one logical qubit in 9 physical qubits and allowed faithful recovery after arbitrary decoherence of any one physical qubit. This gave the authors a starting point and a question about scale. A code can establish that quantum correction is possible at a particular block length. It takes a different argument to show that a long block can protect a growing amount of information while the number of correctable errors grows too.

#### What a quantum code needs to preserve

For a classical message, the goal is to return the original string. For a quantum message, correct recovery must include the relative amplitudes of all components of the original state. A logical qubit can be in a combination of its basis states, with complex coefficients whose relative phase affects interference. A readout can distinguish logical basis states and still destroy that phase. A test that checks recovered basis labels alone would therefore miss one of the main ways a quantum memory can fail.

One can see the problem even when the physical register stays within the range of a classical decoder. If an interaction changes the relative sign of two components, their ordinary basis probabilities can remain exactly the same. A correction that only checks those probabilities has no way to see the change. The paper uses another basis, in which a change of phase shows up as a difference in the labels of basis vectors. This brings a second classical error-correcting problem into the description of the same quantum state.

The two correction tasks have to fit together. Extracting a bit-flip record can disturb the phase if the record carries information about the logical state. Correcting phase in the rotated basis also requires preserving the superposition that expresses the logical information there. The criterion the authors need is stronger than classical recovery in either basis considered on its own. After the full operation, the logical state must be restored, and everything retained by the recovery apparatus and the environment must be independent of that state.

This condition also explains the storage motivation in the introduction. The authors consider storing entangled qubits, with an ion trap as an example of a setting where this question would arise. They discuss how the coherence time of a register of entangled qubits could decline as the number of qubits grows, even under a favorable assumption about coherence between qubits. Encoding changes the property that must survive. Local disturbances can change the physical register while leaving its logical information recoverable. The lifetime of the stored information can therefore differ from the time for which the entire physical state remains intact.

#### The error guarantee and the channel question

The paper first puts a bound on the number of affected qubits. Their locations can be arbitrary. Within those locations the disturbance can be a joint interaction with an environment. The decoder is required to work without already knowing either the affected locations or the interaction. This separates a restriction on where an error can act from a restriction on what it can do there.

A physical channel raises a different question. The authors observe that it would be unusual for a channel to leave all but a specified small set of qubits perfectly untouched. A channel can instead produce a mixture or a superposition with both correctable and uncorrectable contributions. In that setting the paper asks about fidelity, a measure of how well the recovered output agrees with the intended quantum state. The exact theorem supplies a set of disturbances on which recovery works. A separate channel argument is needed to tell how much of the output falls within that set.

The other classical ingredient is a counting argument for the Gilbert–Varshamov bound, which relates the possible rate of a code to the separation of its codewords. Using it for quantum coding requires an additional step. The two classical codes have to be compatible because they describe the same physical register in different bases. Counting good classical codes without that compatibility would leave open whether a suitable pair exists. The paper turns the compatibility requirement into a restriction on the family over which it counts.

### The method, step by step

#### Classical distance and nested codes

A classical binary code is a set of strings of a fixed length. The Hamming weight of a string counts its non-zero entries. The Hamming distance between two strings counts the positions where they disagree. Binary addition gives the string of disagreements, since adding equal entries gives zero. A linear code is closed under this addition. Its minimum distance is consequently the smallest Hamming weight of a non-zero codeword, because the difference between distinct codewords is itself a non-zero codeword.

```
d_H(v,w) = wt(v + w)
```

Here v and w are binary strings of the same length, d_H is Hamming distance, wt is Hamming weight, and + is coordinatewise addition over the binary field.

If two codewords could both have produced the same received string by a small number of flips, then the distance between them would be no larger than the sum of those two error weights. A code with a large enough minimum distance excludes this ambiguity. The correction radius used in the paper is the largest integer strictly less than half the minimum distance.

```
t = ⌊(d − 1)/2⌋
```

Here t is the number of errors the distance guarantees can be corrected, d is the minimum distance, and the floor brackets round down to an integer.

The authors use the dual of a binary code. To find whether a string belongs to the dual, take its binary dot product with every word of the original code. The dot product adds the coordinatewise products in binary arithmetic, so it tells whether the positions where both strings have a non-zero entry occur with even parity. Membership in the dual means every one of these tests gives zero.

```
C⊥ = {v ∈ F₂ⁿ : v · c = 0 for every c ∈ C}
```

Here C is a binary linear code, C⊥ is its dual, F₂ⁿ is the space of length-n binary vectors, v is a candidate for the dual, and c ranges over C. The centered dot denotes the binary dot product, and 0 is the zero element of the binary field.

The dimensions of a code and its dual sum to the block length. A code contained in another code has the larger dual, since testing orthogonality against fewer strings imposes fewer conditions. The authors begin with a smaller code C₂ contained in C₁. Their two error-correction tasks will use C₁ and C₂⊥. The nesting ensures that the phase patterns chosen for the quantum code fit both descriptions.

At the quantum level, each binary string indexes a basis vector of the whole register. A state can be a superposition of these basis vectors, with different amplitudes for different strings. To build a code, the authors choose a subspace and specify orthogonal states that span it. An encoder sends the basis states of the logical register to those states. Linearity specifies where every arbitrary superposition goes. Physically, the encoding can be described as a unitary operation on the logical register together with additional qubits initialized to a fixed state.

From nested binary codes to quantum recovery The steps in order.

#### Building the encoded states

The authors use a generator matrix whose rows form a basis of C₁. A word of C₁ is obtained by adding the rows indicated by a binary coefficient vector. In each encoded basis state, all of those words occur with the same amplitude magnitude. The sign can vary with the word and with a label for the state. The rule is to take the dot product of the word with the label and use the resulting parity to choose a sign.

```
|c_w⟩ = 2^(−dim(C₁)/2) Σ_{v ∈ F₂^dim(C₁)} (−1)^((vM) · w) |vM⟩
```

Here |c_w⟩ is the state labeled by the binary string w. C₁ is the larger classical code and dim(C₁) is its binary dimension. The sum runs over all coefficient strings v of that dimension in the binary field F₂. M is the generator matrix, vM is the resulting classical codeword, and |vM⟩ is its basis vector in the physical register. The dot product is binary, so the sign factor is either positive or negative. The power of 2 in front normalizes the state.

Two labels give the same state if their sum is in the dual of C₁. Such labels produce the same parity on every codeword. For any other sum of labels, there is a codeword with which that sum has non-zero dot product. Adding that codeword pairs the terms in the overlap and reverses the sign in each pair. The overlap is therefore zero. This explains why labels that mod out by C₁⊥ give an orthogonal basis for the span of all the strings in C₁.

The equivalence classes here are cosets. A coset of a linear code consists of one representative string added to every word of that code. A coset label can be described by any of its representatives, because adding a member of the underlying code gives the same set. For the quantum code the authors restrict the labels to C₂⊥. Since C₁⊥ is contained in C₂⊥, the distinct encoded basis states are indexed by the cosets of C₁⊥ inside C₂⊥. All the allowed signs can consequently be indexed without picking multiple labels for the same state.

```
R = (dim(C₁) − dim(C₂))/n
```

Here R is the quantum encoding rate, n counts physical qubits, and dim(C₁) and dim(C₂) are the dimensions of the nested classical codes. Their difference is the number of logical qubits. The number of distinct orthogonal encoded basis states is a power of 2 with that difference as its exponent.

The dimension calculation is about the span, not a count of the physical strings used in a single superposition. Many physical strings can contribute to each encoded basis state, and distinct encoded states can use precisely the same strings. What distinguishes the states is their pattern of relative signs. Logical information can be present in this pattern even if measuring the physical register directly gives identical probability distributions for two different logical basis states.

#### Changing basis to expose phase errors

The paper then makes the same change of basis on each physical qubit. This replaces each original basis vector with an equal-magnitude superposition of the two basis vectors, with a relative minus sign for the image of the second one.

```
|0⟩ ↦ (|0⟩ + |1⟩)/√2
```

Here |0⟩ and |1⟩ are the physical qubit's original basis vectors, the arrow gives the image of |0⟩ under the change of basis, and the square-root factor preserves its norm.

```
|1⟩ ↦ (|0⟩ − |1⟩)/√2
```

Here the arrow gives the image of |1⟩ under the same transformation. The minus sign makes this image orthogonal to the image of |0⟩, and the square-root factor preserves its norm.

A phase flip preserves the original basis labels and negates the amplitude of the component labeled by the second basis vector. Applied to the new basis vectors, it exchanges them. A bit flip, which exchanges the original labels, becomes a sign change in the rotated basis. These are two descriptions of the same operations. Choosing the basis determines which features of an error can be treated as changes of classical strings.

The sign sum in the encoded state makes the change of basis especially useful. The amplitude for any candidate rotated string is a sum of parity signs over the original classical code. This sum cancels unless the candidate string and the label differ by an element of the dual. The surviving terms have equal amplitudes, supported on a single coset.

```
|s_w⟩ = 2^((dim(C₁) − n)/2) Σ_{u ∈ C₁⊥} |u + w⟩
```

Here |s_w⟩ is the rotated form of |c_w⟩, w is its label, u runs over the dual C₁⊥, and |u + w⟩ is the basis vector of the binary sum. The block length is n and the dimension of C₁ sets the size of its dual. The power of 2 normalizes the equal-amplitude sum.

Because the labels belong to C₂⊥ and the summation is over its subcode C₁⊥, every string in this rotated description is in C₂⊥. The first basis thus presents the support of the encoded state in C₁ and the rotated basis presents it in C₂⊥. If both classical codes have sufficient minimum distance, the first one can distinguish small bit flips and the second can distinguish small phase flips, using the same distance argument in each basis.

The authors also explain the connection with Steane's related construction, which they learned about after submitting the paper. Its basis states are uniform sums over translates of C₂, indexed by cosets within C₁. At the level of the original basis in Calderbank and Shor's construction, the sign patterns are constant on those same translates, because their labels are orthogonal to C₂. Varying the signs gives another basis for the span of the uniform sums. The paper identifies these as different bases for the same quantum code subspace. It also relates Steane's states to its rotated construction by exchanging the roles of the classical codes used for correction.

#### The Hamming code example

The classical example is the [7, 4, 3] Hamming code. The three entries give the length of the binary strings, the binary dimension of the code, and its minimum distance. The paper lists its 16 codewords. Its dual consists of the even-weight words within the Hamming code. In this example C₁ is the Hamming code and C₂ is its dual, so the same Hamming code supplies the minimum distance for both correction passes.

The first encoded basis state is a sum over all 16 words with positive amplitudes of magnitude 1/4. The second uses those same words and the same magnitude, with a minus sign on the odd-weight words. The two states are orthogonal even though an ordinary physical-basis measurement samples from the same collection of strings with the same probabilities. The difference in signs contains the distinction between the encoded states.

After the basis rotation, one encoded state is supported on the even-weight codewords and the other on the odd-weight codewords. These sets are cosets of the dual inside the Hamming code. A bit flip in the rotated register can move a term away from one of these strings. The classical distance still tells the correction procedure which string it came from. An error affecting one physical qubit can also involve both bit and phase disturbance. That case calls for the full decoding proof, because an environment can couple these effects and keep a record correlated with the physical register.

#### Representing an arbitrary local disturbance

For the detailed proof the paper uses k for the dimension of C₂ and n − k for the dimension of C₁. In this part of the argument, k is a classical dimension. The logical dimension counted in qubits is the difference between the classical dimensions. This convention matters when comparing the proof with the introductory discussion, where k counts the encoded qubits.

The authors describe the disturbance by a unitary acting on the affected qubits together with the environment. A unitary preserves the quantum state of the combined system. Ignoring the environment can leave the register in a mixed state. The proof keeps the environment in the calculation, since doing so makes it possible to show directly whether recovery leaves it correlated with the encoded information.

A binary mask E has support on the affected positions. The proof writes e as a possible flip pattern supported on E. The notation u|_E means the string u restricted to those positions, with zero entries used elsewhere. On a basis input u, expand the disturbed physical state by listing all the basis outputs the affected positions can produce. Each output can be written as u with a flip pattern added. The corresponding environment vector can depend on both the original bits at those positions and the particular flip pattern.

```
D|u,a₀⟩ = Σ_{e ≼ E} |u + e⟩ |a_{u|_E,e}⟩
```

Here D is the disturbance, |u,a₀⟩ is the basis input together with the initial environment state |a₀⟩, and the sum runs over binary masks e with support contained in that of E, written e ≼ E. The vector |u + e⟩ represents the physical output for that flip pattern. The accompanying vector |a_{u|_E,e}⟩ describes the corresponding environment contribution. It need not be normalized separately. Adjacent kets on the right represent a joint state of the register and the environment.

The environment vectors can differ even in terms where the physical basis label is unchanged. They can also have overlaps and phases. Thus the sum is a quantum expansion of a general allowed interaction. It would lose information about the disturbance if it were read as a probability distribution over definite errors. The decoder has to work on the entire sum, including the correlations expressed by the environment vectors.

#### Correcting bit flips coherently

Each physical basis term of the encoded state starts at a classical word of C₁. Every e in the disturbance expansion has weight at most t. By the minimum distance of C₁, each received basis string in the expansion is within the correction radius of a unique original word. The recovery operation restores that word and stores e in an ancillary register, a separate system prepared for use by the decoder.

This record makes the operation reversible on the inputs of interest. If a received string were simply replaced by its closest codeword, several inputs could give the same output. With the flip pattern retained, the received string can be reconstructed by adding the pattern back to the restored word. A reversible action on the relevant basis states can be applied linearly to the superposition. This implementation explains why the decoder can use a classical decision rule without making a measurement that reads the whole physical string.

After this step, all register terms are again supported on C₁, but the phase structure can still be disturbed. In particular, an environment vector still depends on the original bits within E. Correcting the visible flips therefore does not establish that the encoded state is restored. The authors express the resulting state in the full sign-pattern basis of the span of C₁. This basis includes labels outside the quantum code. The next task is to show that only a restricted set of those labels can occur, and that a unique logical label can be recovered from any of them.

#### Why the remaining errors stay local in the phase description

The proof uses a fact about binary linear codes. Project a code onto some chosen coordinates and keep only the patterns on those coordinates. If fewer coordinates are chosen than the minimum distance of the dual, every binary pattern on them must occur. If a pattern were missing, the projected linear space would fail to span all the patterns. Some non-zero linear test on the chosen coordinates would then be zero throughout the projection. Extending that test by zeros outside the chosen coordinates would give a non-zero dual word of weight below the minimum distance.

This fact applies to the relevant projection of C₁. Its dual is a subcode of C₂⊥, whose minimum distance is large enough for the correctable size of E. For every specified pattern on E, the words of C₁ with that pattern form a translate of the subspace whose words vanish there. All the translates therefore contain the same number of terms. Just as in the calculation for orthogonality, a sum of parity signs over one of them can either cancel completely or have a common sign after the dependence on the specified pattern is taken out.

Let P be the projection that keeps basis vectors with a specified pattern e on E. The key matrix element computes what this projection does between two sign-pattern states. It gives a direct test for when environmental dependence on the chosen coordinates can connect their labels.

```
⟨c_w₁|P|c_w₂⟩ = (−1)^(e · (c + w₁ + w₂)) / 2^wt(E)
```

Here ⟨c_w₁|P|c_w₂⟩ is the matrix element between states labeled by w₁ and w₂, P retains the pattern e on the coordinates of E, and wt(E) counts those coordinates. The equation applies if there is a vector c in C₁⊥ for which c + w₁ + w₂ is supported on E. The exponent uses a binary dot product, and addition of the strings is binary. The matrix element is zero if there is no such c.

To understand the condition, consider the subspace of C₁ that is zero on E. If the sum of the two labels has a non-zero dot product with any member of this subspace, adding that member pairs each sign with its opposite without changing the specified pattern e. The contribution cancels. If the dot product vanishes throughout that subspace, it depends only on the projected coordinates. Every pattern on those coordinates is attainable, so the dot product there is a linear function of that pattern. It can therefore be represented by a vector supported on E. The difference between that vector and the sum of the labels pairs to zero with every word of C₁ and thus belongs to its dual. This is the condition used in the matrix element.

Grouping the state after bit correction by the original physical pattern on E brings precisely these matrix elements into the phase calculation. The environment depends on that pattern and on the flip record. For any such term, a surviving outgoing phase label differs from the original label, up to the equivalence by C₁⊥, by a pattern supported on the same E. This conclusion restricts the effects of the first pass even when the environment retains detailed information about the disturbed physical positions.

#### Correcting the phase and separating the records

The distance of C₂⊥ gives uniqueness in the phase pass. Suppose an outgoing phase label could be reached from two allowed labels by two patterns of weight at most t, allowing representatives to be shifted by C₁⊥. The sum of those patterns would belong to C₂⊥. Its weight would be at most twice the correction radius. If it were non-zero, it would contradict the minimum distance. The two patterns must therefore coincide, and the two proposed labels represent the same encoded state.

```
e₁ + e₂ = w₁ + w₂ + c₁ + c₂ ∈ C₂⊥
```

Here e₁ and e₂ are proposed small phase patterns, w₁ and w₂ are allowed labels in C₂⊥, and c₁ and c₂ are adjustments from C₁⊥ for the choice of representatives. The common observed label cancels in the sum because addition is binary. All four strings on the right belong to C₂⊥, which is itself linear.

The recovery can now map a phase label back to its allowed label and keep a second ancillary record for the phase pattern. As in the bit correction, retaining the pattern makes the action reversible. The proof goes further than showing that each basis state returns to the right label. It calculates the joint state after both correction operations, including the two records and the environment.

```
Rₚ R_f D|c_w,a₀⟩ = |c_w⟩ ⊗ |η⟩
```

Here R_f denotes the coherent bit correction, Rₚ denotes the phase correction, D is the disturbance, |c_w⟩ is the encoded basis state, and |a₀⟩ is the initial environment state. The input also uses fixed initial ancilla states, left implicit. The tensor product symbol ⊗ separates the restored data register from |η⟩, the joint state of the ancillary records and the environment.

The factorization matters because |η⟩ is the same for every encoded label w for a fixed disturbance. In the calculation the signs from the original and recovered labels cancel each other, leaving signs determined by the error pattern and the original local physical pattern. A correction that left different final record states for different logical labels could recover each encoded basis state separately and still destroy a superposition. The common factor lets linearity carry the recovery through to every combination of the encoded states. The correction processes are fixed by the codes. They may depend on the error through their records, and they require no advance description of D.

#### Counting compatible codes at large block lengths

The decoding result applies to a pair of nested classical codes once both distances are large enough. To obtain the asymptotic rate the authors take the larger code to be the dual of the smaller one. They count across a family with a particular condition on the smaller code. It contains the all-ones vector and is contained in its dual. Following terminology from the classical work cited in the paper, the authors call it weakly self-dual.

```
{0} ⊆ ⟨1ₙ⟩ ⊆ C ⊆ C⊥ ⊆ F₂ⁿ
```

Here {0} is the zero subspace, 1ₙ is the length-n all-ones vector, and ⟨1ₙ⟩ is the subspace it generates. C is the smaller code, C⊥ is its dual and the larger code used in encoding, and F₂ⁿ is the ambient binary space. Each ⊆ denotes containment. In this family the same classical code, C⊥, supplies both correction distances.

The counting argument asks whether every member of a candidate family of large codes must contain a short non-zero word. For a family in which each relevant short vector occurs in the same number of codes, one can count incidences between vectors and codes. If the total number of incidences involving short non-zero words is smaller than the number of codes, some code has no such word. That code has at least the target minimum distance. The argument can certify existence even if listing the family and testing its members would be impractical.

```
(2^nᵢ − 1) Wᵢ = (2^kᵢ − 1) |φᵢ|
```

Here φᵢ is a family of binary linear codes at index i, nᵢ is their block length, kᵢ is their dimension in this general counting identity, and |φᵢ| is the number of codes in the family. Wᵢ is the number of codes containing a given non-zero vector under the uniformity hypothesis. The left side counts incidences by vectors, and the right side counts by codes, excluding the zero vector from both counts.

```
Σ_{j=0}^{d−1} binom(nᵢ,j)
```

This expression counts binary vectors of length nᵢ with weight below d, including the zero vector. The index j is the weight, d is the target distance, and binom(nᵢ,j) counts choices of j non-zero positions. For an incidence test about minimum distance, only the non-zero vectors can be obstructions. The displayed sum can be used as an upper bound on their number.

The family of duals used in the quantum proof needs its own uniformity argument. The requirement to contain the all-ones vector forces the duals to have even-weight words. The all-ones vector itself belongs to every code in the tower, and it does not obstruct the target distance because it has full weight. For the other possible even-weight vectors, the authors use a classical counting result on extensions of weakly self-dual subspaces. The number of allowed extensions depends on the dimension of the subspace being extended. The authors split the count into two cases, according to whether the particular vector is already in the smaller code or belongs only to its dual.

In the first case, the smaller code contains the span of the vector and the all-ones vector. In the second, adjoining the vector to the smaller code produces a larger weakly self-dual code containing that span. The count then runs through the larger codes and the possible smaller subspaces that omit the chosen vector. In both cases the number is independent of which eligible vector was chosen. This is what allows the incidence argument, with the parity restriction taken into account, to give the classical distance needed by both passes of the quantum decoder.

```
H₂(p) = −p log₂ p − (1 − p) log₂(1 − p)
```

Here H₂ is binary entropy, p is the argument in the interval of probabilities, and log₂ is the base-2 logarithm. The endpoint values are understood by continuity. In the distance calculation, binary entropy describes the asymptotic exponent governing the count of vectors in the relevant low-weight range.

```
(n − k)/n ≥ 1 − H₂(d/n)
```

Here n is the block length, k is the dimension of the smaller code C, and n − k is the dimension of the larger code C⊥. The target minimum distance is d, and H₂ is binary entropy. The inequality describes the classical rate that the counting argument achieves asymptotically in the range used for the positive quantum bound.

```
R = (n − 2k)/n ≥ 1 − 2H₂(d/n)
```

Here R is the quantum rate, n counts physical qubits, and k again denotes the dimension of C. The numerator subtracts the dimension of C from that of C⊥. The classical redundancy therefore enters twice in the rate accounting, and d/n is the relative minimum distance. Using the minimum distance required for correction gives the paper's asymptotic expression in terms of the correctable fraction t/n.

The construction and proof use classical code spaces, algebraic distances, and counts of possible words and subspaces. There is no training stage or division of data into splits. The explicit Hamming construction starts from known codewords, while the asymptotic part establishes a property of a family by counting. The two parts answer different design questions, since the first illustrates how to make and decode a particular code and the second proves that suitable distances and rates can coexist at large block lengths.

### Experiments and results

#### An exact comparison at a fixed amount of protection

The evidence consists of a worked code, an existence theorem, and analytical channel comparisons. The paper gives no empirical dataset, training run, or measurement on a physical register. Its finite example can be compared with the earlier code on a common task. Both store one logical qubit and permit exact recovery from arbitrary decoherence at any one physical position. The quantity that varies in this comparison is the number of physical qubits used for that protection.

Physical qubits per code block for one encoded qubit and one correctable error The Hamming construction uses a shorter block for the same exact correction guarantee.

**The numbers**

| System or setting | physical qubits |
| --- | --- |
| Earlier quantum code | 9 |
| Hamming construction (this paper) | 7 |

The number 7 is the block length of the worked Hamming construction. Its classical minimum distance is 3 in both descriptions used by the decoder. The two distinct encoded basis states span a space large enough for one logical qubit. Because the decoder restores their superpositions as well as the basis states, the result applies to an arbitrary state of that logical qubit. The 9-qubit comparison is the earlier example cited in the introduction. Neither block length is a hardware cost measurement. The comparison holds the payload and correction guarantee fixed, and the chart measures physical qubits in the encoding itself.

The worked case illustrates a strategy for choosing a small code. The code and its dual are related in the needed direction, and distance in the larger code serves the two correction passes. A reader can trace the classical strings that support the encoded states and observe how the sign difference becomes a difference of cosets after the rotation. This is a finite demonstration of the general mechanism. The argument for increasing block size uses a separate family and a separate counting proof.

#### Rate as the block becomes long

The asymptotic comparison uses rate, the number of encoded qubits divided by the number of physical qubits. Its horizontal variable is the fraction of physical positions whose disturbance must be correctable. The paper's principal lower bound on achievable rate is the following expression.

```
R ≥ 1 − 2H₂(2t/n)
```

Here R is the asymptotic quantum rate, t is the guaranteed number of correctable errors in a block of n physical qubits, and H₂ is binary entropy. The argument 2t/n reflects the relative classical separation needed to disambiguate two possible error patterns. The expression is informative as a positive-rate guarantee where its right-hand side is positive.

This result is stronger than the existence of a code that can protect a fixed amount of information against a fixed number of errors. The protected fraction can remain positive along a growing sequence of block lengths, and the logical payload can grow proportionally to those lengths in the positive part of the bound. The counting proof supplies a lower bound on what can be achieved. It does not measure the rate of a specific large implementation.

The paper's figure puts the achievable lower bound beside the Levitin–Holevo upper bound and the upper bound from entanglement transmission. All three compare allowable rate at a given error fraction. A lower bound guarantees there are codes with at least the stated asymptotic performance where the bound is useful. An upper bound puts a ceiling on the rate. The value of the comparison is the gap between these kinds of statements. The displayed curves place constraints on what might be achievable, while the paper provides no array of measured operating points for them.

#### Fidelity under independent disturbance

For its channel analysis the paper uses worst-case pure-state fidelity. For a given normalized input, take the expected overlap of the output with the original state. Fidelity for the channel is the minimum of that overlap across possible pure inputs. This choice makes the guarantee apply to every input, including those for which the channel behaves least well.

```
F(W) = min_{|x⟩ ∈ H_sig} E⟨x|W|x⟩
```

Here F(W) is the fidelity assigned to the channel W, |x⟩ is a normalized pure state of the signal space H_sig, and ⟨x| is its adjoint. The expectation E denotes averaging over the channel output. The paper's overlap notation denotes the overlap with the transmitted output for that input. The minimum selects the least favorable pure state.

Under independent disturbance, the paper bounds block fidelity using a binomial sum. The calculation associates a term with each number of affected positions up to the correction radius. Independence permits a product of single-position contributions, and the binomial coefficient counts which positions are involved. Exact recovery on the correctable part then supplies the lower bound for the combined channel and decoder.

```
E⟨y|Rₚ R_f Wⁿ|y⟩ ≥ Σ_{j=0}^{t} binom(n,j) F^(n−j) (1 − F)^j
```

Here |y⟩ is an encoded pure state, Wⁿ denotes independent application of the channel to the n physical qubits, R_f and Rₚ are the bit and phase recovery operations, and E denotes the expected output overlap. The single-qubit fidelity is F. The sum counts contributions with j affected positions up to t, and binom(n,j) counts their possible locations. The powers contain the single-qubit fidelity and its complement.

The paper concludes that the bound approaches 1 for large blocks when the correctable fraction t/n is greater than 1 − F. This calculation uses a condition on the channel in addition to the code's exact correction theorem. The theorem guarantees recovery whenever the disturbance is confined to a sufficiently small set. The channel result uses independence to bound how much output is covered. The authors also give a more general sufficient condition in terms of the expected projection onto the correctable subspace.

#### Upper bounds from a specific channel

For the rate ceiling the paper considers a channel that independently applies either the identity or a bit flip, a phase flip, or both. The probability of leaving the qubit untouched is 1 − p. Each of the three nonidentity operations has probability p/3, where p is the overall probability of one of those operations. If the code corrects a fraction above p by a fixed positive margin, the correctable contribution approaches the full output as the block grows. Accordingly, a code family with a given guaranteed correction fraction would also have to transmit through channels of this form with error probability below that fraction.

The classical information bound uses the entropy of the channel's output. The paper describes the same channel in another way, as sometimes transmitting the input and otherwise replacing it by a fully random state. The output entropy floor involves the binary entropy at 2p/3. The Levitin–Holevo argument bounds the classical information obtainable from the outputs. Since sending quantum states faithfully also allows classical messages to be sent, that ceiling applies to the quantum rate as well.

```
U_LH(p) = 1 − H₂(2p/3)
```

Here U_LH(p) denotes the Levitin–Holevo upper bound used for the channel, p is the probability of a nonidentity operation, and H₂ is binary entropy. The expression bounds the information rate by subtracting the output entropy floor from the one-qubit entropy ceiling.

The other bound starts from a different requirement. Faithful quantum transmission would also allow the transmission of entanglement. The paper applies a bound from the prior work it cites on how much entanglement the same channel can transmit.

```
U_ent(p) = H₂(1/2 + √(p(1 − p))) for p < 1/2
```

Here U_ent(p) denotes the entanglement upper bound, p is the channel error probability, H₂ is binary entropy, and the square root acts on p times its complement. The paper gives the entanglement bound as 0 for p at or above 1/2. In the asymptotic comparison the channel probability can approach the guaranteed correctable fraction from below. The smaller of the two ceilings then gives the tighter upper bound at the corresponding point.

The lower and upper bounds answer related questions by different arguments. The lower bound comes from counting classical codes compatible with a quantum recovery procedure. The upper bounds impose necessary conditions through a channel that such a procedure would have to handle. Neither argument requires an observed set of channel outputs. Together they put the attainable rate in a range without selecting its exact value throughout that range.

### What the ablations show

The paper has no experimental ablations. Its analyses instead isolate the jobs of the two classical codes, compare two descriptions of the same encoded state, and examine how the correction guarantee translates to a rate bound. In the original basis, the support on C₁ is sufficient for the bit-flip part of recovery. The proof of that pass uses uniqueness of the nearest original word within the permitted distance. The corresponding phase result uses C₂⊥ and a different application of distance, to rule out competing logical labels after the bit pass. These are distinct uses of the classical distance property within the same decoder.

The bit-corrected state is an important intermediate comparison. Its physical basis terms are all back inside C₁, as they are before the noise, but the environment can still distinguish local physical patterns. Agreement of the supports before the disturbance and after bit correction is therefore an incomplete test of recovery. The authors analyze the amplitudes in the sign-pattern basis and show that the remaining components can shift a phase label only by a pattern on the disturbed positions, modulo the dual. That is the property that lets the second classical correction work after a general interaction.

The final factorization gives a stronger check than following each logical basis vector through the decoder and recording whether the output label agrees. Each ancilla is allowed to retain an error record. Each may also be correlated with the environment. The proof establishes that the joint state of all these records is independent of the logical label. This is what carries the recovery claim across to unknown superpositions. It also shows why the authors choose linear codes for the construction. The signs cancel uniformly because the physical strings with a fixed local pattern are translates of one subspace.

The Hamming example illustrates both descriptions at fixed block length and with fixed codewords. In the original basis the encoded states use the same collection of strings. In the rotated basis their supports fall into distinct cosets. Comparing these descriptions holds the underlying code subspace fixed and changes how the information is expressed. The relation to Steane's basis offers another comparison with the subspace held fixed. It establishes equivalence at the level of the quantum code, while leaving implementation questions about the different encoders and representations open.

Another structural comparison occurs between the decoding theorem and the asymptotic existence theorem. In the decoder, two nested codes with the appropriate distances suffice. In the counting proof, the authors impose the stronger condition that the larger code is the dual of the smaller one and work within the weakly self-dual family. This makes both distance requirements refer to a single code. The uniform count in that family shows that the additional restriction still leaves room for the claimed asymptotic rate. The argument is about what a constrained family can achieve. It gives no comparison of the best rate in that family with the best rate attainable using more general pairs.

Finally, varying the noise assumptions changes what can be concluded. Bounded support gives exact correction and allows arbitrary joint action within that support. With independent noise distributed across the register, the binomial calculation gives a fidelity bound, because some of the output can fall outside the range of the exact guarantee. In the specific channel used for the upper bounds, the paper compares a ceiling from classical information with one from entanglement. These analyses trace which conclusion follows from the code, which depends on a channel assumption, and which follows from limits on transmission through that channel.

### Limitations

#### Limits the authors state

The asymptotic proof is nonconstructive. It shows that a suitable classical code occurs in the counted family, because there are too few incidences with low-weight words for every candidate to have one. The authors do give the quantum encoding in terms of a generator matrix and an explicit small example. The counting step leaves open how to produce a sequence of suitable generator matrices that achieves the asymptotic bound. The paper also notes that explicit classical constructions reaching the Gilbert–Varshamov bound asymptotically were unknown to the authors.

The paper cautions that actual physical channels are unlikely to disturb only a fixed small subset of a block. It gives a fidelity argument for independent noise and identifies a sufficient condition for more general channels in terms of the part of the output covered by the decoder. A channel that correlates disturbance among small groups can still produce correctable errors. If correlations spread disturbance beyond the guaranteed number of positions, the support theorem by itself gives no estimate of how often that occurs. The channel argument needs a way to control that contribution.

The authors also distinguish their fidelity from an average over a particular ensemble of input states. They choose the least favorable pure input because the goal is faithful transmission of arbitrary pure states. Average fidelity could be more useful for settings with a known input distribution. The choice determines what the result certifies. Its guarantee is about the floor over inputs under the paper's channel assumptions, with no performance profile across different state ensembles.

They give two upper bounds and signal a reason to expect the classical-information ceiling to leave room. For the channel they discuss, the classical bound is attainable for classical information, yet they doubt that it is tight for quantum information. The entanglement bound gives a separate restriction. The paper's rate comparison leaves a gap between an existence guarantee and the upper limits supplied by the channels. Where the lower expression no longer gives a positive rate, it ceases to certify positive-rate codes. The actual rate question there depends on further arguments.

#### Limits apparent from the setup

The decoder proof invokes classical correction through the uniqueness of a nearby word and shows how to store a reversible record of the correction. Uniqueness establishes the existence of the recovery action on the relevant states. It supplies neither the classical decoding time for the asymptotic family nor the quantum gate cost of performing the action coherently. The ancillas figure in the correctness proof because their relationship to the logical register matters. The paper gives no resource estimate for preparing, operating, or resetting them in a physical device.

Its claims about storage and transmission also presume that the encoding and recovery operations themselves are carried out as specified. Introducing noise during the recovery can change both the register and the ancilla record. The proof does not analyze the spread of errors through a noisy implementation of the decoder. As a result the rate bound for an encoded block does not by itself quantify the accuracy needed for sustained computation using imperfect gates, despite that need being part of the paper's motivation.

The finite code comparison measures the length of blocks for the same payload and guaranteed correction. It leaves other practical quantities unmeasured, including operation count and storage lifetime in a device. The discussion of ion traps motivates the question instead of reporting a test of the code on ions. Likewise, the binomial fidelity result is an analytical consequence of the stated independence and fidelity conditions. It gives no fitted parameters for a physical channel, and the gap between its assumptions and particular hardware would have to be addressed before treating it as a performance estimate for that hardware.

The sufficient distance conditions can also be read in only one direction. If the two classical distances are large enough, the decoder succeeds under the specified support bound. The proof does not establish that failure of either distance condition forces every quantum recovery procedure for the subspace to fail. The asymptotic argument concentrates on a family that makes it possible to prove existence, and the finite example concentrates on one transparent pair of codes. Neither claim establishes optimality over quantum codes with other structures.

### What came after

[Quantum algorithms: A survey of applications and end-to-end complexities](https://md.research.elamur.ai/free/en/papers/dalzell-2023-quantum-algorithms-survey-applications-end/) cites Calderbank and Shor in a survey concerned with quantum algorithms, their applications, and the complexities of complete computations. That scope places the citation in a different kind of inquiry from the code existence proof. Calderbank and Shor ask how much quantum information a block can retain under a specified correction guarantee. An end-to-end complexity survey considers the cost of a wider computation. The citation establishes the connection between the works at that level. It does not establish that the survey implements the Hamming example, uses the asymptotic family as a concrete encoder, or takes the entropy bound as an estimate of operational overhead.

## Cite

Cite as A.R. Calderbank and Peter W. Shor. 1996. Good quantum error-correcting codes exist. Physical Review A.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1103/physreva.54.1098](https://doi.org/10.1103/physreva.54.1098) · [arXiv quant-ph/9512032](https://arxiv.org/abs/quant-ph/9512032)

```bibtex
@article{calderbank1996good,
  title = {{Good quantum error-correcting codes exist}},
  author = {A.R. Calderbank and Peter W. Shor},
  journal = {Physical Review A},
  year = {1996},
  doi = {10.1103/physreva.54.1098},
  eprint = {quant-ph/9512032},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1103/physreva.54.1098}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
