Three-Qubit Codes
The three-qubit repetition codes are the smallest encodings that expose the central mechanism of quantum error correction without hiding its limits. One version protects an unknown qubit against every error in the linear span of the identity and the three single-qubit bit flips. Its Hadamard-conjugate version protects against the corresponding span of single-qubit phase flips. In both cases, two commuting checks identify an error sector without measuring the encoded amplitudes, and an ideal recovery returns every state in the declared correctable span to the code space.
These are targeted codes, not general one-qubit-error-correcting codes. With the standard distance defined over the full Pauli group, each is an stabilizer code: a weight-one Pauli from the complementary axis is already a logical operator. The often quoted “distance three” belongs to the restricted repetition problem— errors for the bit-flip code or errors for the phase-flip code. Keeping those statements together makes the examples useful rather than misleading.
Required background. Why Quantum Error Correction Is Possible supplies the encoding-isometry viewpoint and the Knill–Laflamme condition used to certify an error span. Stabilizer Formalism supplies stabilizer groups, code projectors, normalizers, logical Pauli classes, and algebraic syndromes.
The Bit-Flip Repetition Code
Section titled “The Bit-Flip Repetition Code”Encoding an unknown qubit
Section titled “Encoding an unknown qubit”Let the logical Hilbert space be one qubit and let the physical register contain qubits in that order. The encoding isometry is defined on the computational basis by
Linearity then encodes an arbitrary unknown state as
where . This is one distributed logical state, not three independent copies. No physical qubit has state by itself, and the map does not violate no-cloning. Its redundancy resides in correlations: the two computational-basis strings agree in every position, while the amplitudes and remain global logical information.
For a classical repetition code, reading all three bits and taking a majority vote is allowed. Doing that here would measure whether the logical state is or and would destroy a superposition. Quantum recovery therefore asks different questions: do neighboring computational-basis values agree, and if not, which disagreement pattern occurred? Those parity questions can reveal a bit-flip sector while acting identically on both logical basis states.
The requirement applies equally when the input qubit is entangled with a reference that the encoder never touches. If
then produces . A valid recovery must preserve those reference correlations, not merely return the right answer for the two basis inputs. That is why the correction statement below is made for arbitrary density operators and an operator span rather than for a classical list of bit strings.
The code subspace is
so it encodes one qubit into three and has dimension two. Nielsen and Chuang (2010) use this example to separate quantum redundancy from literal copying and to introduce syndrome-based recovery.
Checks and the code projector
Section titled “Checks and the code projector”Choose the commuting stabilizer generators
Both logical basis states have eigenvalue under both checks. Conversely, a computational-basis state in the simultaneous eigenspace must have its first bit equal to its second and its second equal to its third. The common eigenspace is therefore exactly .
Because each is a Hermitian involution and , the code projector is
Its trace gives an immediate dimension check. Every nonidentity Pauli has trace zero on the eight-dimensional physical space, so
The same conclusion follows from independent constraints. Each nonredundant binary stabilizer generator halves the simultaneous eigenspace, so two generators reduce dimension to . The product supplies no third independent constraint; its eigenvalue is fixed once those of and are fixed.
The stabilizer group generated by the checks is
It contains four elements and does not contain , as required for a nonempty code space. Gottesman (1997) generalizes this projector construction to arbitrary independent commuting Pauli generators. Here the small code lets every step be checked directly.
A bit flip anticommutes with each check that contains and commutes with the other check. It therefore moves the code into a simultaneous eigenspace labeled by two signs. Crucially, those signs depend on the error location but not on or . The checks compare correlations without distinguishing the logical alternatives.
Logical Pauli representatives
Section titled “Logical Pauli representatives”A physical Pauli represents a logical operation when it preserves the code space but acts nontrivially inside it. One convenient choice is
Indeed, exchanges and , while assigns them eigenvalues and . Both commute with and , yet neither lies in . They are elements of the normalizer of the stabilizer modulo the stabilizer itself.
Logical representatives are not unique. Multiplication by a stabilizer does not change the action on . Thus
as logical operators, because and . Likewise, any representative obtained from by multiplying a stabilizer has the same encoded action, up to an overall Pauli phase.
The encoded Pauli relations are preserved. The chosen representatives square to , commute with every stabilizer, and anticommute with each other:
Changing a representative by an element of preserves these relations on . In quotient language, the nontrivial classes of are the encoded , , and classes. The quotient records logical action, while the syndrome records which coset of the normalizer an error occupies.
This equivalence already exposes the asymmetry of the code. The smallest -type logical operator has weight three, which is why one targeted error can be corrected. A logical , however, has a weight-one representative. A single phase flip can change the relative phase of the encoded amplitudes while commuting with both -type checks.
Syndrome Cosets and Ideal Recovery
Section titled “Syndrome Cosets and Ideal Recovery”A fixed syndrome convention
Section titled “A fixed syndrome convention”For an error Pauli , define the ordered algebraic syndrome by
A stored bit therefore denotes commutation and a check eigenvalue on ; denotes anticommutation and a eigenvalue. The order is . Reversing the checks or inverting a hardware readout discriminator changes the printed bit string without changing the underlying code, so a syndrome table is meaningful only together with its convention.
The four simultaneous-eigenspace projectors are
They obey
Each projector has trace two, so the four sectors partition the full eight-dimensional physical Hilbert space. The code projector is . For an encoded vector and a Pauli error, the convention can be read directly from the state:
The definition assumes that the code is the eigenspace of the printed generators. Replacing a generator by its negative leaves the parity support unchanged but chooses a different stabilized eigenspace and reverses that syndrome coordinate. The signs of checks are therefore data, not decoration.
These are ideal algebraic projectors. A laboratory implementation needs ancillas, an interaction order, readout conventions, and a fault model; Syndrome Measurement owns those physical circuits and repeated detector records.
Four syndrome sectors
Section titled “Four syndrome sectors”For the targeted set
the syndrome distinguishes the four weight-at-most-one representatives. It does not identify a unique unrestricted physical error: the paired representative in each row differs by the logical operator .
| Syndrome | Check eigenvalues | Weight-at-most-one representative | Paired representative | Chosen correction |
|---|---|---|---|---|
For example, anticommutes with both checks because both contain , whereas anticommutes only with . Applied to an arbitrary logical state, the low-weight representatives produce
The two basis strings in each line share the same check eigenvalues. A syndrome measurement can therefore identify the sector without learning the relative weights or phase of and .
For a concrete branch, suppose occurs. Then , while all other annihilate the state. The selected correction gives
Nothing in this calculation requires a choice of and . If a classical mixture assigns probability to this branch, syndrome occurs with that probability for every logical input. If the physical error is a coherent combination, the branch probabilities are determined by its sector amplitudes, while the same state-independent correction property holds for the complete certified span.
The word sector is safer than “the error.” Across the full Pauli group, all operators in have the same syndrome as . Some differ by a stabilizer and act identically on the code; others differ by a logical Pauli and have different logical consequences. The lookup identifies a unique representative only under the declared promise of at most one targeted error.
Recovery as a channel
Section titled “Recovery as a channel”Choose , , , and . The sector projectors can then be written compactly as
Since the representatives are self-inverse, the ideal measurement-and-correction recovery is
Each summand is completely positive. Trace preservation follows from the unitarity of the representatives and completeness of the projectors:
For any encoded density operator and any targeted representative ,
Only the branch with survives because lies wholly in that sector; its correction then cancels . One can apply physically or retain it as a Pauli-frame update when later operations and measurements can interpret the frame. The ideal channel does not determine which implementation is preferable.
If the classical syndrome is retained, the outcome-resolved instrument has branches with probabilities . Summing the branches gives the channel above. Retaining or discarding the classical record does not alter the corrected logical state for a promised correctable input, but it matters operationally for diagnostics, Pauli-frame tracking, and later decoding.
The correction representative is a convention as well. Multiplying by a stabilizer leaves its action on the mapped code sector unchanged. Multiplying it by a logical operator would preserve the code space but change the recovered logical state. A recovery table must therefore specify logical class, not merely return each branch somewhere inside .
The same channel supplies a useful reference-system check. Let be arbitrary and let have its logical support in . For every promised representative acting only on the physical register,
Thus recovery preserves not only the logical density matrix but every correlation with an external reference. Checking only and would not establish this stronger statement: a process could return both basis states yet erase their relative phase. The sector-projector calculation and the Knill–Laflamme identity rule out that failure for the declared span.
Recovery is also not unique outside that span. Two channels can agree on all four promised sectors while acting differently on a weight-two fault, a leakage state, or a coherent component outside the Pauli span. The table fixes the minimum-weight extension because it makes the later failure calculation well defined. It should not be read as a theorem that this extension is optimal for every prior. Once high-weight errors, correlations, or noisy records have appreciable probability, choosing among logically inequivalent extensions is a decoding problem rather than part of the code definition.
Recovering an Arbitrary Logical State
Section titled “Recovering an Arbitrary Logical State”Correctability without learning amplitudes
Section titled “Correctability without learning amplitudes”The Knill–Laflamme condition certifies the whole encoded qubit at once. For the ordered errors
one has
When , the product is . When , the product is either a single or a two-qubit . Every such product anticommutes with at least one stabilizer generator. If an operator anticommutes with a stabilizer and , then
so . The Knill–Laflamme matrix is therefore the identity in this error basis. Knill and Laflamme (1997) prove that this state-independent relation is necessary and sufficient for exact correction of the declared error span.
The diagonal scalar does not depend on whether the input is , , or a superposition. Equivalently, the four error images are mutually orthogonal two-dimensional subspaces. A syndrome register may acquire the label , but it cannot acquire information about and . After the conditional inverse, the logical state factorizes from that label.
The same test covers noise correlated with an inaccessible environment. A joint error isometry can be expanded as whenever its system operators lie in the certified span. Orthogonal syndrome sectors carry the dependence, while the logical factor is the same in every corrected branch. The environment may learn an error label or a coherent combination of labels; the scalar condition prevents it from learning the logical amplitudes.
For a stochastic bit-flip channel
the corrected output obeys
The probabilities can be unequal and need not be inferred from the logical state. What matters is that the channel has support inside the correctable operator span and that recovery uses the matching syndrome convention.
Coherent bit rotations lie in the corrected span
Section titled “Coherent bit rotations lie in the corrected span”Exact correctability is linear in the error operators, so it is stronger than correction of a classical random label. Consider a coherent rotation on physical qubit ,
This unitary lies in and hence in the span certified above. Acting on the code, it creates a coherent superposition of the no-error and sectors. The ideal syndrome measurement places those components in orthogonal branches; the branch-dependent correction maps both components back to the same logical state. Consequently,
for every angle and every encoded density operator.
More generally, every operator belongs to the corrected linear span. This is why correcting a basis of error operators corrects coherent combinations of them. It does not mean that every multi-qubit coherent process is corrected. A product of rotations on several carriers contains weight-two and weight-three terms. Under the minimum-weight lookup, those components can become a logical . Nor does an ideal projective recovery model interference that may persist when a physical syndrome extraction is weak, faulty, or incompletely recorded.
A syndrome measurement need not be interpreted as revealing which term “really happened.” Before measurement, and can be coherent amplitudes of one unitary process. The recovery works because their error subspaces are distinguishable without logical information, not because the noise was secretly a classical coin flip. If the syndrome record is coherently retained rather than measured, a unitary recovery controlled by that record gives the same logical decoupling.
The statement is therefore exact and bounded: the bit-flip repetition code corrects the operator space spanned by . Calling the physical process “coherent” does not defeat that theorem, while calling it “small” does not license the omission of uncorrectable components outside the span.
The Phase-Flip Code by Hadamard Duality
Section titled “The Phase-Flip Code by Hadamard Duality”Conjugating the encoding and checks
Section titled “Conjugating the encoding and checks”The single-qubit Hadamard exchanges Pauli axes,
Conjugating the entire bit-flip construction by gives the phase-flip code. With
its logical basis is
An unknown logical state is therefore encoded as , not as three copies of the original qubit. The stabilizer generators are
and the code projector is
Equivalently, one may encode in the computational basis, conjugate physical phase noise by Hadamards, apply bit-flip recovery, and conjugate back. That identity derives the algebra, but a hardware implementation must count the basis-changing operations if they are actually performed. One can instead measure the -type checks directly using an appropriate ancilla circuit. The code is defined by its subspace and checks, not by a mandatory sequence of three Hadamards.
This duality turns comparisons of computational-basis values into comparisons in the basis. A physical exchanges and , so it plays the role that played before conjugation. The construction is the elemental reason that combining protection in complementary bases can address a larger Pauli set. Shor Code owns the concatenated nine-qubit construction, degenerate recovery, and full distance-three proof, following Shor’s original scheme (Shor 1995); this page retains the two component repetition codes, each of which protects only one axis.
Phase-error syndromes and recovery
Section titled “Phase-error syndromes and recovery”Use the same stored-bit convention and the ordered checks . Then
The phase-code projectors are
and the corrections are for syndromes , respectively. Thus
corrects on the phase-code subspace. Its Knill–Laflamme matrix is again , now for the ordered representatives. A coherent rotation is corrected by the same linear-span argument.
For example, anticommutes with but commutes with , so it produces . Applying then returns both and , and therefore every superposition of them, to their pre-error values.
The syndromes are formally identical because Hadamard conjugation preserves commutation and anticommutation. Their physical circuits are not literally identical in a fixed hardware basis: measuring an -type product generally requires basis changes or the complementary ancilla orientation. The algebraic table specifies the ideal observable and bit convention, while the extraction owner specifies how a device obtains that record.
Logical operators in the dual code
Section titled “Logical operators in the dual code”Conjugating the bit-code logical representatives gives
The first exchanges and ; the second assigns them eigenvalues and . As before, multiplication by a stabilizer gives equivalent representatives, so on the phase-code subspace.
The complete crosswalk records both the exact duality and the boundary that Hadamard conjugation preserves.
| Object | Bit-flip code | Phase-flip code |
|---|---|---|
| Codewords | , | , |
| Stabilizer generators | , | , |
| Code projector | ||
| Declared correctable set | ||
| Ordered syndrome map | ||
| Chosen ideal recovery | by syndrome | by syndrome |
| Logical | ||
| Logical | ||
| Distance statement | targeted single-axis distance ; full | targeted single-axis distance ; full |
Hadamard duality exchanges the two constructions; it does not combine their protection. The phase code corrects one targeted Pauli axis and is transparent to the complementary weight-one logical operation, just as the bit code is.
Restricted Distance and Full-Pauli Failure
Section titled “Restricted Distance and Full-Pauli Failure”Targeted distance three is not full distance three
Section titled “Targeted distance three is not full distance three”For a stabilizer code, the standard distance is the minimum weight of a Pauli operator in . It is defined over all Pauli axes unless a restriction is stated. In the bit-flip code, commutes with both -type stabilizers, is not a stabilizer, and acts as . Therefore the minimum weight is one. In the phase-flip code, similarly acts as a weight-one logical . Both codes have full parameters
A restricted repetition distance asks a narrower question. Among -type operators for the bit code, the smallest undetectable nontrivial logical operator is , of weight three. The code detects up to two targeted flips in the algebraic sense and corrects up to one under . The phase code has the corresponding weight-three statement for -type operators.
Standard distance controls arbitrary operator errors because the single-qubit Pauli matrices span every one-qubit operator. A genuine distance-three qubit code can correct the full span generated by at each location. These repetition codes fail that test before recovery design begins: the weight-one complementary logical operator makes two distinct logical states respond differently to an error with syndrome zero.
Writing without a qualifier would assert correction of every single-qubit Pauli error, which is false. The precise language is “the bit-flip repetition code has targeted distance three,” or its phase-dual counterpart. Restricted distances are useful when a noise model has a strongly biased axis, but the bias and its stability are then hypotheses of the protection claim.
Complementary Pauli faults become logical operators
Section titled “Complementary Pauli faults become logical operators”The bit-code checks cannot detect any single , because all such operators commute with and . Moreover,
for each , using equivalent logical representatives. A phase fault therefore produces syndrome while changing to . Recovery sees the no-error sector and leaves the logical phase flip in place.
A fault shows why a nonzero syndrome is not enough. Using , it has the same syndrome as , since the factor commutes with both checks. The targeted decoder applies , leaving
which is a logical up to global phase. The location was inferred correctly for the component, yet the logical state was not recovered because the declared error model omitted the complementary component.
The phase code has the dual failure. A single is an undetected logical phase in its encoded basis, and a shares the syndrome of but leaves a weight-one residual after the targeted correction. No syndrome relabeling fixes this information deficit: with two checks and one encoded qubit, the code separates four targeted sectors, not all single-qubit Pauli faults.
Weight-two targeted faults fail differently. In the bit code, has the same syndrome as . Applying leaves . Every pair aliases to the remaining single flip. A triple flip has syndrome and is itself . These aliases turn the majority rule into the logical-failure polynomial below.
Logical Failure Under Independent Targeted Noise
Section titled “Logical Failure Under Independent Targeted Noise”Majority failure gives the logical polynomial
Section titled “Majority failure gives the logical polynomial”Assume a frozen one-step model: each physical carrier independently suffers the targeted Pauli with probability , no complementary error occurs, encoding and recovery are perfect, and the fixed lookup chooses the weight-zero or weight-one representative for each syndrome. The output is successful when the residual operator is a stabilizer and fails when it differs by the targeted logical .
Zero or one targeted fault is corrected. Exactly two faults occur with probability
and all three occur with probability . Both cases leave the targeted logical operation after the minimum-weight correction. Hence
For independent but nonidentical targeted probabilities , the same event count gives
Setting all three values to recovers the displayed polynomial. Correlation invalidates this product expansion even if every one-qubit marginal equals ; the probability of weight two or three must then be taken from the joint law.
The same polynomial applies to bit flips in the bit code and phase flips in the phase code. It is a pushforward of a declared independent physical-error law through this particular code and decoder. Pauli Noise and Depolarizing Channels owns the broader probability-law, correlation, and channel-convention audit.
At small , the leading logical term is . For example, the frozen model gives at , compared with the unencoded value , and at . These numbers are exact evaluations of the polynomial, not device forecasts; every omitted circuit fault or complementary error lies outside them. The quadratic behavior expresses removal of all weight-one targeted contributions. It does not say that full device error is quadratic if encoding, checks, recovery, or readout have faults.
Improvement, crossover, and what this is not
Section titled “Improvement, crossover, and what this is not”Compare with the failure of one unencoded carrier under the same one-step targeted model. Their difference factors as
Therefore
The two are equal at , , and under the fixed decoder, while the encoded rule is worse for . When , a decoder that knows the prior could reinterpret likely high-weight patterns rather than retain the minimum-weight rule; changing that rule changes the estimand. The displayed comparison is an exact finite calculation for a specified decoder, not a universal optimum.
The crossover at is not a fault-tolerance threshold. There is no infinite code family, no noisy syndrome circuit, no repeated round, no locality model, no decoder-scaling claim, and no quantified logical suppression with growing distance. It is also not a break-even experiment unless preparation, operations, waits, measurements, selection, and denominators are brought inside a matched comparison.
Correlations replace the binomial weights; coherent multi-qubit terms can interfere before a syndrome record is formed; complementary errors enter at first order because the full distance is one; and measurement faults can make a single data error look like a different sector. Decoders owns inference under nonuniform priors, aliasing, noisy records, and latency constraints. The polynomial remains valuable precisely because its assumptions are explicit and its conclusion is limited.
Canonical Owners and Boundaries
Section titled “Canonical Owners and Boundaries”What this page owns and where to continue
Section titled “What this page owns and where to continue”This page owns the two pedagogical three-qubit constructions, their exact stabilizers and projectors, the fixed four-sector syndrome conventions, ideal targeted recoveries, the Knill–Laflamme certificate for their operator spans, Hadamard duality, restricted-distance language, and the finite independent-noise polynomial. It does not own the general proof of quantum correctability, general stabilizer formalism, physical syndrome circuits, probabilistic decoding, or device-noise reconstruction.
Five-Qubit Code owns the full-Pauli cyclic construction, its sixteen-error syndrome lookup, perfect Hamming packing, and minimum-length proof; this page retains the restricted bit- and phase-flip repetition constructions.
Bits, Qubits, Qudits, and Modes provides the carrier-versus-logical-system orientation behind the encoding isometry; this page begins only after that distinction has been fixed.
Use the Quantum Error Correction and Fault Tolerance guide to place a code-level statement inside a complete protection-to-evidence record. Return to Why Quantum Error Correction Is Possible for the general Knill–Laflamme theorem and the no-cloning boundary, and to Stabilizer Formalism for binary symplectic representations, normalizers, degeneracy, Clifford updates, and arbitrary stabilizer codes.
Move to Syndrome Measurement when ideal projectors must become ancilla circuits, signed outcomes, repeated records, and detector parities. Move to Decoders when the syndrome no longer identifies one promised representative and a prior over logical equivalence classes is required. Use Pauli Noise and Depolarizing Channels before interpreting as a device parameter, especially when axes, correlations, time steps, or approximation error matter.
The boundary explains why a favorable calculation here does not settle an engineering choice. A repetition experiment may deliberately protect one Pauli observable, use postselection, repeat checks over time, or compare several physical lengths without claiming storage of an arbitrary qubit under full Pauli noise. Those can be rigorous and valuable tasks. They should be reported in their own terms rather than upgraded to a stronger full-state claim.
The codes have a substantial experimental afterlife, but each result must be read with its task and trusted boundary intact. Chiaverini and collaborators (2004) demonstrated active quantum error correction with trapped ions; Reed and collaborators (2012) implemented a three-qubit correction protocol with superconducting circuits; Ristè and collaborators (2015) repeatedly measured stabilizers of a superconducting logical qubit; and Google Quantum AI (2021) studied finite repetition-code scaling for targeted bit or phase errors. These works do not turn the three-qubit constructions into full-distance-three codes. They show how code algebra, extraction, feedback, and evidence become distinct experimental layers.
Exercises
Section titled “Exercises”1. Projector and code dimension
Section titled “1. Projector and code dimension”Show that is an orthogonal projector, find its trace, and identify a basis for its image. Explain why the answer encodes one logical qubit.
Solution
The two checks commute and square to , so each factor is an orthogonal projector and their product is an orthogonal projector onto the simultaneous eigenspace. Expanding gives
All three nonidentity Paulis are traceless, while . Hence . A computational-basis vector is in the image exactly when bit 1 equals bit 2 and bit 2 equals bit 3, so the image is . Its dimension is two, equal to the Hilbert-space dimension of one logical qubit.
2. Complete the bit-flip syndrome table
Section titled “2. Complete the bit-flip syndrome table”Starting from the ordered checks and the convention for commutation, derive the syndromes of . Then find the syndrome of each two-qubit product , , and and identify the single-error representative with which it aliases.
Solution
An anticommutes with a check exactly when that check contains . Thus
Syndromes add componentwise modulo two under Pauli multiplication. Therefore
and . Each pair differs from the aliased single error by . A minimum-weight correction consequently turns every weight-two targeted fault into a logical bit flip.
3. Verify the Knill–Laflamme matrix
Section titled “3. Verify the Knill–Laflamme matrix”For , prove directly that . State what this matrix says about the encoded amplitudes.
Solution
If , then and the projected product is . If , the product is a single or a two-body . Every such operator anticommutes with at least one generator . Since ,
so the expression vanishes. The scalar matrix is the identity and is independent of the state in the code. Error-sector information can be learned without distinguishing from in .
4. Correct a coherent bit rotation
Section titled “4. Correct a coherent bit rotation”Let act on an encoded density operator. Show from the syndrome projectors and corrections that ideal recovery returns the input for every . Why does this not prove correction of ?
Solution
Write
The identity component lies in sector and the component in sector . The projectors remove cross-sector terms in the unread record. Correction maps the first branch to the input, and correction maps the second branch to the same input. Their weights are and , so they sum to the original density operator.
The three-rotation product also contains terms proportional to and . Those operators lie outside the declared correctable span and are mapped to logical- branches by the fixed recovery.
5. Derive the phase-flip code
Section titled “5. Derive the phase-flip code”Apply to the bit-flip code. Derive the encoded basis, checks, targeted error representatives, syndrome order, recovery representatives, and one pair of logical Pauli representatives.
Solution
Hadamard sends to , to , to , and to . Hence
with checks and . The targeted representatives are , with syndromes in that order, and the matching corrections are . Conjugating the bit-code logical representatives gives
Both commute with the checks, anticommute with each other, and act as the encoded Pauli pair.
6. Show that the full Pauli distance is one
Section titled “6. Show that the full Pauli distance is one”Use the normalizer definition of stabilizer-code distance to prove that both three-qubit repetition codes have full distance one, while retaining targeted distance three.
Solution
For the bit code, has weight one, commutes with both -type checks, is not in the stabilizer, and acts nontrivially as . Thus and the full distance is at most one; a nontrivial code cannot have distance below one, so . The smallest nontrivial logical operator made only of factors is , which has weight three.
For the phase code, the dual statements use weight-one and weight-three . Therefore both are codes with a restricted targeted-axis repetition distance of three.
7. Compute the independent-noise logical failure
Section titled “7. Compute the independent-noise logical failure”Assume independent targeted faults of probability and the fixed minimum-weight recovery. Derive , determine every equality point of on , and state the interval of strict improvement and all idealizations used.
Solution
Recovery succeeds for weights zero and one and leaves a logical targeted flip for weights two and three. Thus
Subtracting the unencoded probability gives
The equality points are , , and . For the final factor is negative, so . For it is positive, so the fixed encoded rule is worse. The calculation assumes independent targeted-axis faults, ideal encoding, ideal syndrome extraction, ideal recovery, ideal readout, and the fixed minimum-weight rule. It is a finite comparison, not a threshold theorem.
8. Diagnose a Y fault and decoder mismatch
Section titled “8. Diagnose a Y fault and decoder mismatch”A fault acts on the bit-flip code, but the decoder assumes the targeted set . Find the recorded syndrome, selected correction, and residual logical operation. Explain which assumption failed.
Solution
Since and the factor commutes with both -type checks, has the same syndrome as , namely . The decoder applies . The residual is
On the code, is equivalent to the logical , so the output has an undetected logical phase flip up to global phase. The syndrome and lookup were internally consistent; the failed assumption was that the physical error belonged to the targeted -only set. A broader noise model requires a code and decoder that distinguish or otherwise correct the additional logical classes.
References
Section titled “References”- J. Chiaverini et al., “Realization of quantum error correction,” Nature 432, 602–605, 2004, doi:10.1038/nature03074.
- Google Quantum AI, “Exponential suppression of bit or phase errors with cyclic error correction,” Nature 595, 383–387, 2021, doi:10.1038/s41586-021-03588-y.
- D. Gottesman, Stabilizer Codes and Quantum Error Correction, Ph.D. thesis, California Institute of Technology, 1997, doi:10.7907/rzr7-dt72.
- E. Knill and R. Laflamme, “Theory of quantum error-correcting codes,” Physical Review A 55, 900–911, 1997, doi:10.1103/PhysRevA.55.900.
- M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 10th anniversary edition, Cambridge University Press, 2010, doi:10.1017/CBO9780511976667.
- M. D. Reed et al., “Realization of three-qubit quantum error correction with superconducting circuits,” Nature 482, 382–385, 2012, doi:10.1038/nature10786.
- D. Ristè et al., “Detecting bit-flip errors in a logical qubit using stabilizer measurements,” Nature Communications 6, 6983, 2015, doi:10.1038/ncomms7983.
- P. W. Shor, “Scheme for reducing decoherence in quantum computer memory,” Physical Review A 52, R2493–R2496, 1995, doi:10.1103/PhysRevA.52.R2493.