GLOBAL KNOWLEDGE ARK

Physics · Article

Communication, cryptography, and error correction

Track an unknown qubit, two classical messages and a quantum error syndrome through explicit protocols. Determine what each receiver can know, what physical resources are consumed, and which security or reliability claims follow from the data.

Previous article: Quantum algorithms and simulation

Back to Physics

After reading, you can

  • Derive teleportation and dense coding using a declared Bell basis, bit order and correction order.
  • Calculate what a receiver can observe before and after a classical message, including the effect of an imperfect entangled pair.
  • Explain the role of incompatible bases, authenticated communication, parameter estimation and privacy amplification in quantum key distribution.
  • Derive a repetition-code syndrome, its logical bit-error probability and its failure on a phase error.
  • Use the conditions for a correctable error set to distinguish protection of an unknown quantum state from recovery of an ordinary bit.
01

Follow the carrier, the state and the classical record

A bit sent to a friend and an unknown qubit delivered to a laboratory have different success criteria. A classical channel succeeds when a receiver can recover the intended symbol. A quantum channel asked to carry an arbitrary input must preserve relative phase as well as basis populations. If the input is entangled with a reference kept by the sender, preserving its correlations with that reference is a stronger test than getting the two Z-basis labels right. An apparatus that measures Z and sends the result can pass every computational-basis test on a single qubit and still destroy the coherence of |+⟩.

An independently prepared quantum system can carry a record, a share of an entangled pair, or one half of a code rather than an entire logical message. Name the parties and resources at the start. Alice and Bob may share a Bell pair |Φ+⟩ = (|00⟩ + |11⟩)/√2, with one qubit at each site. Each local state is I/2, so a local observer sees an unpolarized qubit. The sharp features of the preparation are joint correlations, such as equal outcomes when both parties measure Z or both measure X. Establishing such a pair between distant laboratories previously required physical communication or a source that distributed correlated systems.

One ideal Bell pair held across two sites supplies one ebit of entanglement. Classical bits, transmitted qubits and ebits are different resources. Teleportation consumes one shared ebit and two transmitted classical bits to implement one ideal quantum channel use. Dense coding consumes one shared ebit and one transmitted qubit to deliver two classical bits in the ideal case. Moving detectors or prearranging entanglement costs time and equipment even though those steps may be excluded from a statement about the main protocol. The direction and availability of each channel determine whether an experimental claim has counted the resources consistently.

Unknown-state transmission also makes clear why a universal quantum copier cannot be a preliminary convenience. A unitary that copied |a⟩ and |b⟩ while keeping their originals would have to preserve their input inner product and turn it into its square for identical clean copies. Taking magnitudes gives s = s² for s = |⟨a|b⟩|. Distinct nonorthogonal pure inputs have 0 < s < 1, so the requirement fails. Copying mutually orthogonal basis labels is entirely possible. Encoding an unknown qubit will instead distribute its amplitudes across a larger joint state, and teleportation will consume the sender’s input as a separate intact system.

02

Derive the four teleportation branches

Alice has an unknown state |ψ⟩ = α|0⟩ + β|1⟩ on S and the first qubit A of a Bell pair with Bob’s B. Use the wire order S,A,B. Alice applies CNOT from S to A, then H to S, then measures both S and A in Z. Call the outcomes m and n in that order. This local circuit is a Bell-basis measurement on S,A. The four readout labels require a definite convention, because switching the order of the recorded bits interchanges which outcome controls the phase correction.

Expand the three-qubit state and group the four possible S,A results after the two gates. Before measurement it is one half times the sum of |00⟩|ψ⟩, |01⟩X|ψ⟩, |10⟩Z|ψ⟩ and |11⟩XZ|ψ⟩. Each of the four target factors has unit norm, so the probability of every m,n is 1/4, independent of α and β. Bob’s conditional state is XⁿZᵐ|ψ⟩. Alice sends the two ordinary bits to Bob. To apply the inverse in time order, Bob first applies X when n = 1 and then Z when m = 1. Applying the two Paulis in the opposite order changes only a global sign in the branch where both are needed.

Before that message arrives Bob’s local state is the average of the four Pauli branches. For any input ρ, this average is I/2. Opposite signs cancel the off-diagonal terms, and the two possible bit flips average the two populations. Alice’s choice of input cannot affect a statistic Bob can measure locally before classical communication. Once he knows m,n, he applies the branch-specific correction and recovers ρ. The two transmitted bits contain no classical estimate of α or β. They select which of four already correlated branches his qubit occupies.

The derivation extends linearly if S is entangled with an external reference. In each branch the indicated Pauli acts on Bob’s share and the same correction restores the joint state of reference and B. Alice’s measured systems now hold classical Bell outcomes and no second independent copy of the input. Ideal teleportation transfers the logical state and consumes the shared Bell pair. Loss, a probabilistic Bell-state analyser and imperfect local gates change the realized channel. A conditional fidelity among detected events and a probability of actually delivering an output are separate quantities, particularly with lossy optical hardware.

The Bell record tells Bob which phase-sensitive correction to make

The Bell record tells Bob which phase-sensitive correction to makeConditional P(+Y). For the input |+Y⟩, read the four horizontal labels in the order m on S, n on A. Every Bell result occurs with probability 1/4. Circles and squares give the conditional probability of a +Y result before and after feed-forward. In branch 11 the raw state already equals −i|+Y⟩, so its global phase leaves the Y outcome unchanged.00.250.50.751Conditional P(+Y)0000. Before correction = 1.00. After correction = 1.0101. Before correction = 0.01. After correction = 1.1010. Before correction = 0.10. After correction = 1.1111. Before correction = 1.11. After correction = 1.
  • Before correction
  • After correction
For the input |+Y⟩, read the four horizontal labels in the order m on S, n on A. Every Bell result occurs with probability 1/4. Circles and squares give the conditional probability of a +Y result before and after feed-forward. In branch 11 the raw state already equals −i|+Y⟩, so its global phase leaves the Y outcome unchanged.
Exact values shown in the plot
Conditional P(+Y)
CategoryQuantity or frameExact valuePreparation
00Before correction1teleport y branch 00
00After correction1teleport y branch 00
01Before correction0teleport y branch 01
01After correction1teleport y branch 01
10Before correction0teleport y branch 10
10After correction1teleport y branch 10
11Before correction1teleport y branch 11
11After correction1teleport y branch 11

One classical bit can restore the populations while coherence is still missing

One classical bit can restore the populations while coherence is still missingReadout probability. The tilted input has polar angle 60° and relative phase 45°. When only the flip bit n arrives, P(1 in Z) returns to 1/4 but P(+Y) remains 1/2. With both correction bits the Y probability returns to (4 + √6)/8 ≈ 0.80619. These marks average over all four Bell outcomes after Bob has used whichever bits are available.00.250.50.751Readout probabilityNeitherNeither. Z gives 1 = 1/2.Neither. Y gives + = 1/2.Only nOnly n. Z gives 1 = 1/4.Only n. Y gives + = 1/2.Only mOnly m. Z gives 1 = 1/2.Only m. Y gives + = 1/2.BothBoth. Z gives 1 = 1/4.Both. Y gives + = (4 + √6)/8.
  • Z gives 1
  • Y gives +
The tilted input has polar angle 60° and relative phase 45°. When only the flip bit n arrives, P(1 in Z) returns to 1/4 but P(+Y) remains 1/2. With both correction bits the Y probability returns to (4 + √6)/8 ≈ 0.80619. These marks average over all four Bell outcomes after Bob has used whichever bits are available.
Exact values shown in the plot
Readout probability
CategoryQuantity or frameExact valuePreparation
NeitherZ gives 11/2no bell bits
NeitherY gives +1/2no bell bits
Only nZ gives 11/4bell bit n
Only nY gives +1/2bell bit n
Only mZ gives 11/2bell bit m
Only mY gives +1/2bell bit m
BothZ gives 11/4both bell bits
BothY gives +(4 + √6)/8both bell bits
03

Dense coding and the quality of a shared pair

In dense coding Alice and Bob begin with the same resource pair. To encode two classical bits m,n Alice applies XⁿZᵐ on her half A and physically sends it to Bob. There are four possible Bell states up to global phase. Bob holds both halves, applies CNOT from A to B and H on A, then measures both. For A,B in that order he reads m,n. Had he kept only B, its density matrix would always be I/2. The physical trip of A supplies the missing communication. Access to an entangled pair in advance makes the enlarged set of distinguishable joint signals possible.

Check the two labels separately. Acting with X on A swaps same-bit support, 00 and 11, for opposite-bit support, 10 and 01. Acting with Z on A changes the relative sign between the two supported words. Bob’s CNOT maps the parity information into B and leaves A in either |+⟩ or |−⟩ up to an overall phase. The final H converts this relative sign into the Z result on A. The physically available four-dimensional joint space has four orthogonal codewords. Four arbitrary pure states of a single isolated qubit would have no such perfect single-shot decoder.

Now characterize a noisy shared resource used for otherwise ideal standard teleportation. Suppose it is Bell diagonal with weight F on the intended |Φ+⟩ and equal weights (1 − F)/3 on the three other Bell states. Labels are known, and F refers to the overlap with this fixed resource state. Each wrong Bell label leaves a particular Pauli error on the output after the nominal correction. For pure |ψ⟩ the fidelity is the return probability ⟨ψ|ρout|ψ⟩. Each Pauli error contributes the square of the corresponding Bloch component, and the sum of the three squares is one. Thus every pure input has fidelity F + (1 − F)/3 = (1 + 2F)/3 in this symmetric model.

For uniformly distributed unknown pure qubits, a deterministic single-copy measure-and-prepare strategy has optimal average fidelity 2/3 under the usual no-prior-entanglement assumptions. A reported fidelity above that value has meaning only relative to the stated input ensemble, success criteria, handling of losses and uncertainty. The isotropic Bell resource at F = 1/2 reaches 2/3 for our standard protocol and F = 3/4 yields 5/6. A device tested only on |0⟩ and |1⟩ could transmit those two states perfectly using a classical bit. Sampling complementary preparations or entanglement with a reference tests a genuinely different claim.

A joint Bell decoder recovers both bits of the chosen message

A joint Bell decoder recovers both bits of the chosen messageDecoded-bit probability. Horizontal labels are the four possible messages mn. With both halves of the pair present, the decoded Z bits on A and B reproduce m and n. The two marks are the probabilities of reading 1 on those wires. Before A arrives, B alone is maximally mixed for every message. The full four-outcome conditional distribution for each message is in its case table.00.250.50.751Decoded-bit probability0000. First decoded bit is 1 = 0.00. Second decoded bit is 1 = 0.0101. First decoded bit is 1 = 0.01. Second decoded bit is 1 = 1.1010. First decoded bit is 1 = 1.10. Second decoded bit is 1 = 0.1111. First decoded bit is 1 = 1.11. Second decoded bit is 1 = 1.
  • First decoded bit is 1
  • Second decoded bit is 1
Horizontal labels are the four possible messages mn. With both halves of the pair present, the decoded Z bits on A and B reproduce m and n. The two marks are the probabilities of reading 1 on those wires. Before A arrives, B alone is maximally mixed for every message. The full four-outcome conditional distribution for each message is in its case table.
Exact values shown in the plot
Decoded-bit probability
CategoryQuantity or frameExact valuePreparation
00First decoded bit is 10dense message 00
00Second decoded bit is 10dense message 00
01First decoded bit is 10dense message 01
01Second decoded bit is 11dense message 01
10First decoded bit is 11dense message 10
10Second decoded bit is 10dense message 10
11First decoded bit is 11dense message 11
11Second decoded bit is 11dense message 11

Bell-pair quality sets the teleportation return in an isotropic error model

Bell-pair quality sets the teleportation return in an isotropic error modelFidelity. Categories give the intended Bell overlap F. Equal weights on the three other Bell states yield a pure-input fidelity (1 + 2F)/3. At F = 1/2 it equals 2/3, and at F = 3/4 it reaches 5/6. Squares give the deterministic one-copy classical average for uniformly distributed pure inputs.00.250.50.751Fidelity1/41/4. Teleportation return = 1/2.1/4. Classical average benchmark = 2/3.1/21/2. Teleportation return = 2/3.1/2. Classical average benchmark = 2/3.3/43/4. Teleportation return = 5/6.3/4. Classical average benchmark = 2/3.11. Teleportation return = 1.1. Classical average benchmark = 2/3.
  • Teleportation return
  • Classical average benchmark
Categories give the intended Bell overlap F. Equal weights on the three other Bell states yield a pure-input fidelity (1 + 2F)/3. At F = 1/2 it equals 2/3, and at F = 3/4 it reaches 5/6. Squares give the deterministic one-copy classical average for uniformly distributed pure inputs.
Exact values shown in the plot
Fidelity
CategoryQuantity or frameExact valuePreparation
1/4Teleportation return1/2bell resource 1 of 4
1/4Classical average benchmark2/3bell resource 1 of 4
1/2Teleportation return2/3bell resource 1 of 2
1/2Classical average benchmark2/3bell resource 1 of 2
3/4Teleportation return5/6bell resource 3 of 4
3/4Classical average benchmark2/3bell resource 3 of 4
1Teleportation return1bell resource 1
1Classical average benchmark2/3bell resource 1
04

Why compare two preparation bases?

In the ideal BB84 key-distribution model Alice chooses a random bit and one of two mutually unbiased bases. In Z the signal is |0⟩ or |1⟩. In X it is |+⟩ or |−⟩. Bob independently chooses Z or X for his measurement. With ideal aligned devices and no noise, the same basis reproduces Alice’s bit. A different basis gives either bit with probability one half. Averaging over the two equiprobable bits gives I/2 in either basis. The basis choice is therefore absent from the unconditional density matrix of one ideal emitted qubit. The ability to predict both possible basis measurements is constrained by their incompatibility.

After detection, the users compare basis information over an authenticated classical channel. They keep matched-basis positions according to their protocol and discard unsuitable ones. With unbiased independent basis choices, the expected matched fraction is one half. A random portion of suitable positions is disclosed for testing and removed from candidate key material. In a common asymmetric allocation, one basis provides raw key bits and complementary-basis data bound the corresponding phase-error rate. The parties must define which rounds contribute to each purpose before assigning a numerical rate. Detector losses and the use of biased basis probabilities change the fractions per signal sent.

Sifting yields correlated classical data. It does not by itself certify agreement or secrecy. Authenticated public messages establish the parties’ identities and protect the integrity of their discussion, while allowing the discussion itself to be observed. Statistical parameter estimation bounds errors within a proof model. Error correction, also called information reconciliation here, brings the partners’ strings into agreement and its publicly revealed information must be accounted for. Verification tests remaining disagreement. Privacy amplification compresses the reconciled string to a length justified by the bound on information held outside the parties. Correctness bounds the probability that the parties accept different keys. For secrecy, conditioned on acceptance, compare the joint state of the key and outside information with one in which the key is uniform and independent of that information. The usual composable bound multiplies this trace distance by the probability of acceptance. It constrains the experiment and the joint state across possible keys.

For an ideal single-photon, asymptotically long, appropriately sampled BB84 model, a one-way coding argument yields a sifted-key contribution of 1 − h₂(eᵦ) − h₂(eₚ) with efficient ideal reconciliation, where eᵦ and eₚ bound the bit and phase error rates of the key ensemble. The binary entropy h₂(p) = −p log₂ p − (1 − p) log₂(1 − p) uses 0 log₂ 0 = 0. When upper error bounds are in the usual low-error regime and both equal q, this becomes 1 − 2h₂(q). A negative value supplies no positive key length from that bound. Finite data need fluctuation bounds, actual reconciliation leakage, authentication costs and a declared failure parameter. An observed mismatch percentage alone cannot certify a secret key.

The ideal key-rate expression ceases to supply a positive rate

The ideal key-rate expression ceases to supply a positive rateBits per sifted key bit. Both bit and phase error values are set to q in the stated asymptotic model. Horizontal labels give q as a percentage. Circles show 1 − 2h₂(q) and squares its positive part, in secret bits per sifted key bit. At 11% the expression is still about 0.000168. At 12.5% it is negative and the bound supplies zero. These values belong to the idealized ensemble.−1−0.500.51Bits per sifted key bit0%0%. Signed expression = 1 − 2h₂(0) ≈ 1.0%. Nonnegative rate from this bound = max(0, 1 − 2h₂(0)) ≈ 1.1%1%. Signed expression = 1 − 2h₂(1/100) ≈ 0.8384137282.1%. Nonnegative rate from this bound = max(0, 1 − 2h₂(1/100)) ≈ 0.8384137282.5%5%. Signed expression = 1 − 2h₂(1/20) ≈ 0.4272060858.5%. Nonnegative rate from this bound = max(0, 1 − 2h₂(1/20)) ≈ 0.4272060858.10%10%. Signed expression = 1 − 2h₂(1/10) ≈ 0.06200881282.10%. Nonnegative rate from this bound = max(0, 1 − 2h₂(1/10)) ≈ 0.06200881282.11%11%. Signed expression = 1 − 2h₂(11/100) ≈ 0.0001680836709.11%. Nonnegative rate from this bound = max(0, 1 − 2h₂(11/100)) ≈ 0.0001680836709.12.5%12.5%. Signed expression = 1 − 2h₂(1/8) ≈ −0.0871288864.12.5%. Nonnegative rate from this bound = max(0, 1 − 2h₂(1/8)) ≈ 0.50%50%. Signed expression = 1 − 2h₂(1/2) ≈ −1.50%. Nonnegative rate from this bound = max(0, 1 − 2h₂(1/2)) ≈ 0.
  • Signed expression
  • Nonnegative rate from this bound
Both bit and phase error values are set to q in the stated asymptotic model. Horizontal labels give q as a percentage. Circles show 1 − 2h₂(q) and squares its positive part, in secret bits per sifted key bit. At 11% the expression is still about 0.000168. At 12.5% it is negative and the bound supplies zero. These values belong to the idealized ensemble.
Exact values shown in the plot
Bits per sifted key bit
CategoryQuantity or frameExact valuePreparation
0%Signed expression1 − 2h₂(0) ≈ 1asymptotic errors 0
0%Nonnegative rate from this boundmax(0, 1 − 2h₂(0)) ≈ 1asymptotic errors 0
1%Signed expression1 − 2h₂(1/100) ≈ 0.8384137282asymptotic errors 1 of 100
1%Nonnegative rate from this boundmax(0, 1 − 2h₂(1/100)) ≈ 0.8384137282asymptotic errors 1 of 100
5%Signed expression1 − 2h₂(1/20) ≈ 0.4272060858asymptotic errors 1 of 20
5%Nonnegative rate from this boundmax(0, 1 − 2h₂(1/20)) ≈ 0.4272060858asymptotic errors 1 of 20
10%Signed expression1 − 2h₂(1/10) ≈ 0.06200881282asymptotic errors 1 of 10
10%Nonnegative rate from this boundmax(0, 1 − 2h₂(1/10)) ≈ 0.06200881282asymptotic errors 1 of 10
11%Signed expression1 − 2h₂(11/100) ≈ 0.0001680836709asymptotic errors 11 of 100
11%Nonnegative rate from this boundmax(0, 1 − 2h₂(11/100)) ≈ 0.0001680836709asymptotic errors 11 of 100
12.5%Signed expression1 − 2h₂(1/8) ≈ −0.0871288864asymptotic errors 1 of 8
12.5%Nonnegative rate from this boundmax(0, 1 − 2h₂(1/8)) ≈ 0asymptotic errors 1 of 8
50%Signed expression1 − 2h₂(1/2) ≈ −1asymptotic errors 1 of 2
50%Nonnegative rate from this boundmax(0, 1 − 2h₂(1/2)) ≈ 0asymptotic errors 1 of 2
05

Measure where a flip occurred without measuring the logical bit

Protect one qubit against one specified kind of noise. The three-qubit repetition code sends |0⟩ to |000⟩ and |1⟩ to |111⟩. An arbitrary input is encoded as |ψL⟩ = α|000⟩ + β|111⟩. It is usually entangled across the physical qubits. Creating three independent copies would instead produce (α|0⟩ + β|1⟩) raised to a three-fold tensor product, with many additional terms for a superposed input. The encoded state can preserve the coherence of α and β while allowing checks of agreement. It contains one logical qubit and has used two freshly initialized physical qubits in addition to the data qubit.

Measure the commuting observables Z₀Z₁ and Z₁Z₂. Record 0 for eigenvalue +1 and 1 for −1. On an uncorrupted codeword both checks give 00. X₀ flips the sign of only the first check, giving 10. X₁ flips both signs, giving 11. X₂ flips only the second, giving 01. Each statement holds on the whole two-dimensional logical subspace. For instance X₁ gives α|010⟩ + β|101⟩ and both basis words have the same syndrome 11. A coherent ancilla parity circuit can capture each check result without measuring the logical Z observable. The syndrome is diagnostic information about the assumed error family.

Condition recovery on the two readout bits. For 00 do nothing, for 10 apply X₀, for 11 apply X₁, and for 01 apply X₂. An ideal circuit then recovers any original α,β after any one X error. The experiment has learned where a bit flip landed while learning nothing about whether the logical state was |0L⟩, |1L⟩ or their superposition. If an extra uncontrolled detector registered all three physical Z bits, that record would generally leak logical information. Even perfect knowledge of its classical syndrome would not restore the coherences that measurement destroyed.

Under independent physical X errors of identical probability p and ideal recovery, logical failure occurs for two or three flips. There are three weight-two patterns, each with probability p²(1 − p), and one weight-three pattern of probability p³. Thus pL = 3p²(1 − p) + p³ = 3p² − 2p³. For small p the leading dependence is quadratic and pL < p for 0 < p < 1/2. A correlated three-qubit flip acts as a logical X with zero syndrome. Its probability need not be p³ in a correlated channel. Counting the assumptions is essential before using this code as a numerical model for a processor or a transmission line.

A parity warning and a surviving logical error answer different questions

A parity warning and a surviving logical error answer different questionsConditional probability. Each horizontal word fixes one of eight physical X-error patterns on wires 0,1,2. The vertical values are deterministic probabilities conditional on that pattern. A single error produces a nonzero syndrome and is corrected. Both 010 and 101 give syndrome 11, but the correction X₁ leaves a logical X for 101. The triple flip 111 gives no warning and changes the logical bit.00.250.50.751Conditional probability000000. A nonzero syndrome = 0.000. A logical X after recovery = 0.001001. A nonzero syndrome = 1.001. A logical X after recovery = 0.010010. A nonzero syndrome = 1.010. A logical X after recovery = 0.011011. A nonzero syndrome = 1.011. A logical X after recovery = 1.100100. A nonzero syndrome = 1.100. A logical X after recovery = 0.101101. A nonzero syndrome = 1.101. A logical X after recovery = 1.110110. A nonzero syndrome = 1.110. A logical X after recovery = 1.111111. A nonzero syndrome = 0.111. A logical X after recovery = 1.
  • A nonzero syndrome
  • A logical X after recovery
Each horizontal word fixes one of eight physical X-error patterns on wires 0,1,2. The vertical values are deterministic probabilities conditional on that pattern. A single error produces a nonzero syndrome and is corrected. Both 010 and 101 give syndrome 11, but the correction X₁ leaves a logical X for 101. The triple flip 111 gives no warning and changes the logical bit.
Exact values shown in the plot
Conditional probability
CategoryQuantity or frameExact valuePreparation
000A nonzero syndrome0physical flip pattern 000
000A logical X after recovery0physical flip pattern 000
001A nonzero syndrome1physical flip pattern 001
001A logical X after recovery0physical flip pattern 001
010A nonzero syndrome1physical flip pattern 010
010A logical X after recovery0physical flip pattern 010
011A nonzero syndrome1physical flip pattern 011
011A logical X after recovery1physical flip pattern 011
100A nonzero syndrome1physical flip pattern 100
100A logical X after recovery0physical flip pattern 100
101A nonzero syndrome1physical flip pattern 101
101A logical X after recovery1physical flip pattern 101
110A nonzero syndrome1physical flip pattern 110
110A logical X after recovery1physical flip pattern 110
111A nonzero syndrome0physical flip pattern 111
111A logical X after recovery1physical flip pattern 111

Independent bit flips give a quadratic logical error at small physical rates

Independent bit flips give a quadratic logical error at small physical ratesFlip probability. Horizontal categories give the physical flip probability p, written in percent. The vertical axis is a probability on the 0-to-1 scale. Ideal majority recovery leaves pL = 3p² − 2p³, which equals 0.028 when p = 0.1. It crosses the unencoded rate at p = 1/2. Correlations can change the logical rate even at the same single-wire probability.00.250.50.751Flip probability0%0%. Unencoded physical flip = 0.0%. Logical X after correction = 0.1%1%. Unencoded physical flip = 1/100.1%. Logical X after correction = 149/500000.5%5%. Unencoded physical flip = 1/20.5%. Logical X after correction = 29/4000.10%10%. Unencoded physical flip = 1/10.10%. Logical X after correction = 7/250.25%25%. Unencoded physical flip = 1/4.25%. Logical X after correction = 5/32.50%50%. Unencoded physical flip = 1/2.50%. Logical X after correction = 1/2.75%75%. Unencoded physical flip = 3/4.75%. Logical X after correction = 27/32.100%100%. Unencoded physical flip = 1.100%. Logical X after correction = 1.
  • Unencoded physical flip
  • Logical X after correction
Horizontal categories give the physical flip probability p, written in percent. The vertical axis is a probability on the 0-to-1 scale. Ideal majority recovery leaves pL = 3p² − 2p³, which equals 0.028 when p = 0.1. It crosses the unencoded rate at p = 1/2. Correlations can change the logical rate even at the same single-wire probability.
Exact values shown in the plot
Flip probability
CategoryQuantity or frameExact valuePreparation
0%Unencoded physical flip0independent flips 0
0%Logical X after correction0independent flips 0
1%Unencoded physical flip1/100independent flips 1 of 100
1%Logical X after correction149/500000independent flips 1 of 100
5%Unencoded physical flip1/20independent flips 1 of 20
5%Logical X after correction29/4000independent flips 1 of 20
10%Unencoded physical flip1/10independent flips 1 of 10
10%Logical X after correction7/250independent flips 1 of 10
25%Unencoded physical flip1/4independent flips 1 of 4
25%Logical X after correction5/32independent flips 1 of 4
50%Unencoded physical flip1/2independent flips 1 of 2
50%Logical X after correction1/2independent flips 1 of 2
75%Unencoded physical flip3/4independent flips 3 of 4
75%Logical X after correction27/32independent flips 3 of 4
100%Unencoded physical flip1independent flips 1
100%Logical X after correction1independent flips 1
06

What full quantum error correction adds

A Z error on any one site leaves both repetition parity checks unchanged. Inside the logical space it sends α|000⟩ + β|111⟩ to α|000⟩ − β|111⟩. A logical |+L⟩ has become the orthogonal |−L⟩ despite syndrome 00. Describing this three-qubit repetition code as correcting an arbitrary one-qubit error would therefore make a wrong operational prediction. A version written in the X basis protects against a single phase flip instead. Protection against both requires more structure. A Y error combines an X and a Z up to an irrelevant phase.

A stabilizer code specifies a code space as the common +1 eigenspace of commuting Pauli products. An error that anticommutes with a measured stabilizer flips its sign, producing a syndrome. A Pauli that commutes with all stabilizers may act trivially on the code or may be a nontrivial logical operation. The code distance d is the minimum weight of a Pauli preserving the code space and acting nontrivially on the logical information. A distance-three code corrects an arbitrary error on one unknown physical site when encoding, syndrome extraction and recovery meet the assumed model. Equal syndromes can also describe errors whose effects on the code are equivalent.

In a CSS code, families of X-type and Z-type checks probe complementary error components while commuting with one another. The [[7,1,3]] Steane code encodes one logical qubit in seven physical qubits and can correct any single-qubit error, including a coherent superposition of Pauli errors on one site. Linearity explains why a finite operator basis is enough. For example a rotation about the X axis is a linear combination of I and X. For a general unit axis n the generator is nₓX + nᵧY + n𝓏Z, so a single-qubit rotation lies in the full span of I, X, Y and Z. Proper syndrome extraction and recovery can preserve the encoded state without learning its amplitudes. This does not imply that the device estimates the angle of each individual small rotation.

A general statement uses P, the projector onto the code, and a set of possible errors Eₐ. The Knill–Laflamme condition is P Eₐ†Eᵦ P = cₐᵦ P for every pair of correctable errors. Matrix elements of the products are therefore independent of the encoded logical state, and between orthogonal codewords their protected off-diagonal structure is compatible with recovery. A suitable change of error basis can separate orthogonal error sectors, allowing the syndrome procedure to reveal the sector while leaving logical amplitudes intact. Faults during syndrome extraction are a further physical problem. Fault-tolerant constructions limit the spread of such faults, and their thresholds depend on a specific model and architecture.

Two logical preparations reveal faults invisible to a single test

Two logical preparations reveal faults invisible to a single testLogical return probability. Each category fixes a physical error before ideal repetition-code recovery. Compare survival of |0L⟩ under a logical Z measurement with survival of |+L⟩ under a logical X measurement. A single Z₀ gives syndrome 00 and preserves the first readout while flipping the second. A triple X also gives 00 and instead flips the first readout. The Steane code uses complementary checks to correct any single-site error.00.250.50.751Logical return probabilityII. Logical 0 survives a Z readout = 1.I. Logical + survives an X readout = 1.X₁X₁. Logical 0 survives a Z readout = 1.X₁. Logical + survives an X readout = 1.Z₀Z₀. Logical 0 survives a Z readout = 1.Z₀. Logical + survives an X readout = 0.Y₁Y₁. Logical 0 survives a Z readout = 1.Y₁. Logical + survives an X readout = 0.X₀X₂X₀X₂. Logical 0 survives a Z readout = 0.X₀X₂. Logical + survives an X readout = 1.X₀X₁X₂X₀X₁X₂. Logical 0 survives a Z readout = 0.X₀X₁X₂. Logical + survives an X readout = 1.
  • Logical 0 survives a Z readout
  • Logical + survives an X readout
Each category fixes a physical error before ideal repetition-code recovery. Compare survival of |0L⟩ under a logical Z measurement with survival of |+L⟩ under a logical X measurement. A single Z₀ gives syndrome 00 and preserves the first readout while flipping the second. A triple X also gives 00 and instead flips the first readout. The Steane code uses complementary checks to correct any single-site error.
Exact values shown in the plot
Logical return probability
CategoryQuantity or frameExact valuePreparation
ILogical 0 survives a Z readout1logical probe 1
ILogical + survives an X readout1logical probe 1
X₁Logical 0 survives a Z readout1logical probe 2
X₁Logical + survives an X readout1logical probe 2
Z₀Logical 0 survives a Z readout1logical probe 3
Z₀Logical + survives an X readout0logical probe 3
Y₁Logical 0 survives a Z readout1logical probe 4
Y₁Logical + survives an X readout0logical probe 4
X₀X₂Logical 0 survives a Z readout0logical probe 5
X₀X₂Logical + survives an X readout1logical probe 5
X₀X₁X₂Logical 0 survives a Z readout0logical probe 6
X₀X₁X₂Logical + survives an X readout1logical probe 6
07

What does the observed record establish?

Bob sees a uniformly random Z result before a teleportation correction. That histogram is compatible with a maximally mixed qubit, a mixture of known pure branches whose record he lacks, or many different imperfect devices. To test the protocol, vary the input preparation and compare output measurements conditioned on the complete classical record. For dense coding vary all four equally likely message labels and record the full four-by-four confusion table. A single message label recovered perfectly provides very little information about distinguishability of the other three. Include failures to produce or deliver a usable pair when claiming a rate per attempt.

For a candidate key, distinguish source repetitions, detections, matched bases, disclosed tests, reconciled bits and final secret bits. They have different denominators. As an example, 30 mismatches in 1,000 test positions corresponds to a 3% observed rate on that sample. It is not a measurement of the probability that the entire key is wrong or of the information held by a third party. To turn the observations into a quantitative secrecy claim, use the relevant sampling and device assumptions as well as the authenticated protocol transcript. A noisy optical device and a lost signal can matter differently depending on how the protocol counts accepted records.

For a code, identify the logical observable that might have been damaged. Prepare |0L⟩ to probe a logical bit flip and |+L⟩ to probe a logical phase flip. If the goal is to transmit a quantum subsystem as part of a larger state, tests using an entangled reference can probe preservation of joint coherence. Compare encoding, storage and recovery with an appropriate unencoded baseline at the same physical duration. A low fraction of nonzero syndromes does not by itself establish low logical error. A full logical operation can commute with all the checks, and many detected single errors can still be corrected successfully.

These three uses of a classical record illustrate a general physical distinction. Bell outcomes select a correction for an existing entangled quantum state. Basis information and random test samples constrain the statistics of a key-distribution experiment. A code syndrome selects recovery in a protected subspace. The content of a record depends on the joint preparation and measurement that created it. Declaring the allowed errors, the trusted preparation and the intended output is what makes that record interpretable.

Thirty disclosed mismatches have three different denominators

Thirty disclosed mismatches have three different denominatorsObserved subset (%). All three marks count the very same 30 mismatches. They are 0.15% of 20,000 sent signals, 0.30% of 10,000 matched positions and 3% of the 1,000 tested positions. Only the last value is the observed error percentage within the test sample. The remaining 9,000 matched candidates require a finite-key analysis.00.511.522.53Observed subset (%)All sentAll sent. Disclosed test mismatches = 0.15%.MatchedMatched. Disclosed test mismatches = 0.3%.TestedTested. Disclosed test mismatches = 3%.
  • Disclosed test mismatches
All three marks count the very same 30 mismatches. They are 0.15% of 20,000 sent signals, 0.30% of 10,000 matched positions and 3% of the 1,000 tested positions. Only the last value is the observed error percentage within the test sample. The remaining 9,000 matched candidates require a finite-key analysis.
Exact values shown in the plot
Observed subset (%)
CategoryQuantity or frameExact valuePreparation
All sentDisclosed test mismatches0.15%finite count all sent
MatchedDisclosed test mismatches0.3%finite count matched
TestedDisclosed test mismatches3%finite count tested

Exact preparations and results

Test the Y phase in Bell branch 00

Prepare S in |+Y⟩ = (|0⟩ + i|1⟩)/√2 and A,B in Φ+. Alice applies CNOT S→A and then H on S. Read S as m and A as n. Compare Bob’s Y measurement on independently prepared runs sorted by mn.

Inputs
Alice’s two-bit result
00
Probability of that result
1/4
Chronological correction on B
Identity
Results
Normalized raw branch on B
(|0⟩ + i|1⟩)/√2
Raw P(+Y) given this branch
1
Joint P(this branch and an uncorrected +Y output)
1/4
Corrected state in the stipulated inverse order
(|0⟩ + i|1⟩)/√2
Corrected P(+Y)
1
Direct Z measurement
Both Z outcomes have probability 1/2 before or after the correction.
Test the Y phase in Bell branch 01

Prepare S in |+Y⟩ = (|0⟩ + i|1⟩)/√2 and A,B in Φ+. Alice applies CNOT S→A and then H on S. Read S as m and A as n. Compare Bob’s Y measurement on independently prepared runs sorted by mn.

Inputs
Alice’s two-bit result
01
Probability of that result
1/4
Chronological correction on B
X
Results
Normalized raw branch on B
(i|0⟩ + |1⟩)/√2
Raw P(+Y) given this branch
0
Joint P(this branch and an uncorrected +Y output)
0
Corrected state in the stipulated inverse order
(|0⟩ + i|1⟩)/√2
Corrected P(+Y)
1
Direct Z measurement
Both Z outcomes have probability 1/2 before or after the correction.
Test the Y phase in Bell branch 10

Prepare S in |+Y⟩ = (|0⟩ + i|1⟩)/√2 and A,B in Φ+. Alice applies CNOT S→A and then H on S. Read S as m and A as n. Compare Bob’s Y measurement on independently prepared runs sorted by mn.

Inputs
Alice’s two-bit result
10
Probability of that result
1/4
Chronological correction on B
Z
Results
Normalized raw branch on B
(|0⟩ − i|1⟩)/√2
Raw P(+Y) given this branch
0
Joint P(this branch and an uncorrected +Y output)
0
Corrected state in the stipulated inverse order
(|0⟩ + i|1⟩)/√2
Corrected P(+Y)
1
Direct Z measurement
Both Z outcomes have probability 1/2 before or after the correction.
Test the Y phase in Bell branch 11

Prepare S in |+Y⟩ = (|0⟩ + i|1⟩)/√2 and A,B in Φ+. Alice applies CNOT S→A and then H on S. Read S as m and A as n. Compare Bob’s Y measurement on independently prepared runs sorted by mn.

Inputs
Alice’s two-bit result
11
Probability of that result
1/4
Chronological correction on B
X followed by Z
Results
Normalized raw branch on B
(−i|0⟩ + |1⟩)/√2
Raw P(+Y) given this branch
1
Joint P(this branch and an uncorrected +Y output)
1/4
Corrected state in the stipulated inverse order
(|0⟩ + i|1⟩)/√2
Corrected P(+Y)
1
Direct Z measurement
Both Z outcomes have probability 1/2 before or after the correction.
Correct the tilted input with neither available

Teleport cos(30°)|0⟩ + exp(i45°) sin(30°)|1⟩. Bob applies X when he receives n = 1 and Z when he receives m = 1, in that order when both are available. Average over Alice’s actual Bell outcomes. Use separate preparations for the Z and Y measurements.

Inputs
Available classical information
Neither
Prepared P(1 in Z)
1/4
Prepared P(+Y)
(4 + √6)/8
Results
P(1 in Z) after using the available bits
1/2
P(+Y) after using the available bits
1/2
Effect of the missing bit
The unconditional density matrix is I/2.
Correct the tilted input with only n available

Teleport cos(30°)|0⟩ + exp(i45°) sin(30°)|1⟩. Bob applies X when he receives n = 1 and Z when he receives m = 1, in that order when both are available. Average over Alice’s actual Bell outcomes. Use separate preparations for the Z and Y measurements.

Inputs
Available classical information
Only n
Prepared P(1 in Z)
1/4
Prepared P(+Y)
(4 + √6)/8
Results
P(1 in Z) after using the available bits
1/4
P(+Y) after using the available bits
1/2
Effect of the missing bit
Correcting population swaps restores the Z populations. Averaging over the unknown phase bit removes the off-diagonal terms.
Correct the tilted input with only m available

Teleport cos(30°)|0⟩ + exp(i45°) sin(30°)|1⟩. Bob applies X when he receives n = 1 and Z when he receives m = 1, in that order when both are available. Average over Alice’s actual Bell outcomes. Use separate preparations for the Z and Y measurements.

Inputs
Available classical information
Only m
Prepared P(1 in Z)
1/4
Prepared P(+Y)
(4 + √6)/8
Results
P(1 in Z) after using the available bits
1/2
P(+Y) after using the available bits
1/2
Effect of the missing bit
The remaining random X operation balances Z populations and cancels the Y component. The X component of this tilted input survives.
Correct the tilted input with both available

Teleport cos(30°)|0⟩ + exp(i45°) sin(30°)|1⟩. Bob applies X when he receives n = 1 and Z when he receives m = 1, in that order when both are available. Average over Alice’s actual Bell outcomes. Use separate preparations for the Z and Y measurements.

Inputs
Available classical information
Both
Prepared P(1 in Z)
1/4
Prepared P(+Y)
(4 + √6)/8
Results
P(1 in Z) after using the available bits
1/4
P(+Y) after using the available bits
(4 + √6)/8
Effect of the missing bit
The branch-specific inverse restores the entire input state.
Send classical message 00 using a shared Bell pair

Begin with A,B in Φ+. Alice applies Z on A if m = 1, then X on A if n = 1. She transmits A. Holding both qubits, Bob applies CNOT A→B and then H on A. Measure A,B in Z.

Inputs
Message in mn order
00
Bell state after encoding, up to common phase
Φ+
Results
P(1 on B) before A arrives
1/2
Decoded two-bit word
00
Conditional probabilities of outputs 00, 01, 10, 11
1, 0, 0, 0
Resources per ideal message
One previously shared ebit and one physically transmitted qubit for the two classical bits.
Send classical message 01 using a shared Bell pair

Begin with A,B in Φ+. Alice applies Z on A if m = 1, then X on A if n = 1. She transmits A. Holding both qubits, Bob applies CNOT A→B and then H on A. Measure A,B in Z.

Inputs
Message in mn order
01
Bell state after encoding, up to common phase
Ψ+
Results
P(1 on B) before A arrives
1/2
Decoded two-bit word
01
Conditional probabilities of outputs 00, 01, 10, 11
0, 1, 0, 0
Resources per ideal message
One previously shared ebit and one physically transmitted qubit for the two classical bits.
Send classical message 10 using a shared Bell pair

Begin with A,B in Φ+. Alice applies Z on A if m = 1, then X on A if n = 1. She transmits A. Holding both qubits, Bob applies CNOT A→B and then H on A. Measure A,B in Z.

Inputs
Message in mn order
10
Bell state after encoding, up to common phase
Φ−
Results
P(1 on B) before A arrives
1/2
Decoded two-bit word
10
Conditional probabilities of outputs 00, 01, 10, 11
0, 0, 1, 0
Resources per ideal message
One previously shared ebit and one physically transmitted qubit for the two classical bits.
Send classical message 11 using a shared Bell pair

Begin with A,B in Φ+. Alice applies Z on A if m = 1, then X on A if n = 1. She transmits A. Holding both qubits, Bob applies CNOT A→B and then H on A. Measure A,B in Z.

Inputs
Message in mn order
11
Bell state after encoding, up to common phase
Ψ−
Results
P(1 on B) before A arrives
1/2
Decoded two-bit word
11
Conditional probabilities of outputs 00, 01, 10, 11
0, 0, 0, 1
Resources per ideal message
One previously shared ebit and one physically transmitted qubit for the two classical bits.
Teleport through a Bell-diagonal resource with F = 1/4

Give the intended Φ+ pair weight F and assign each other Bell state equal weight (1 − F)/3. Use the ideal deterministic standard teleportation circuit and return-test a pure input.

Inputs
Overlap with the intended resource
1/4
Weight on each erroneous Bell label
1/4
Results
Pure-input return probability
1/2
Mean advantage relative to the specified 2/3 line
−1/6
Benchmark ensemble
Uniform unknown pure qubits, one input copy, deterministic measure-and-prepare, and no previously shared entanglement.
Role of symmetry
For a pure input the three squared Bloch components sum to one. Equal Pauli-error weights make the return probability independent of its direction.
Teleport through a Bell-diagonal resource with F = 1/2

Give the intended Φ+ pair weight F and assign each other Bell state equal weight (1 − F)/3. Use the ideal deterministic standard teleportation circuit and return-test a pure input.

Inputs
Overlap with the intended resource
1/2
Weight on each erroneous Bell label
1/6
Results
Pure-input return probability
2/3
Mean advantage relative to the specified 2/3 line
0
Benchmark ensemble
Uniform unknown pure qubits, one input copy, deterministic measure-and-prepare, and no previously shared entanglement.
Role of symmetry
For a pure input the three squared Bloch components sum to one. Equal Pauli-error weights make the return probability independent of its direction.
Teleport through a Bell-diagonal resource with F = 3/4

Give the intended Φ+ pair weight F and assign each other Bell state equal weight (1 − F)/3. Use the ideal deterministic standard teleportation circuit and return-test a pure input.

Inputs
Overlap with the intended resource
3/4
Weight on each erroneous Bell label
1/12
Results
Pure-input return probability
5/6
Mean advantage relative to the specified 2/3 line
1/6
Benchmark ensemble
Uniform unknown pure qubits, one input copy, deterministic measure-and-prepare, and no previously shared entanglement.
Role of symmetry
For a pure input the three squared Bloch components sum to one. Equal Pauli-error weights make the return probability independent of its direction.
Teleport through a Bell-diagonal resource with F = 1

Give the intended Φ+ pair weight F and assign each other Bell state equal weight (1 − F)/3. Use the ideal deterministic standard teleportation circuit and return-test a pure input.

Inputs
Overlap with the intended resource
1
Weight on each erroneous Bell label
0
Results
Pure-input return probability
1
Mean advantage relative to the specified 2/3 line
1/3
Benchmark ensemble
Uniform unknown pure qubits, one input copy, deterministic measure-and-prepare, and no previously shared entanglement.
Role of symmetry
For a pure input the three squared Bloch components sum to one. Equal Pauli-error weights make the return probability independent of its direction.
Set both asymptotic error bounds to 0%

Use the ideal asymptotic, single-photon BB84 proof model with authenticated discussion, appropriately estimated bit and phase errors and ideal one-way reconciliation. Assume equal bit and phase error values q in the specified range.

Inputs
Bit-error and phase-error values
0 each
Binary entropy h₂(q) in bits
0
Results
Signed expression per sifted key bit
1
Nonnegative contribution per sifted key bit
1
Denominator
Sifted key bits in the assumed asymptotic ensemble. The model’s rate needs new finite-statistics and leakage bounds for an actual finite record.
Set both asymptotic error bounds to 1%

Use the ideal asymptotic, single-photon BB84 proof model with authenticated discussion, appropriately estimated bit and phase errors and ideal one-way reconciliation. Assume equal bit and phase error values q in the specified range.

Inputs
Bit-error and phase-error values
1/100 each
Binary entropy h₂(q) in bits
0.0807931359
Results
Signed expression per sifted key bit
0.8384137282
Nonnegative contribution per sifted key bit
0.8384137282
Denominator
Sifted key bits in the assumed asymptotic ensemble. The model’s rate needs new finite-statistics and leakage bounds for an actual finite record.
Set both asymptotic error bounds to 5%

Use the ideal asymptotic, single-photon BB84 proof model with authenticated discussion, appropriately estimated bit and phase errors and ideal one-way reconciliation. Assume equal bit and phase error values q in the specified range.

Inputs
Bit-error and phase-error values
1/20 each
Binary entropy h₂(q) in bits
0.2863969571
Results
Signed expression per sifted key bit
0.4272060858
Nonnegative contribution per sifted key bit
0.4272060858
Denominator
Sifted key bits in the assumed asymptotic ensemble. The model’s rate needs new finite-statistics and leakage bounds for an actual finite record.
Set both asymptotic error bounds to 10%

Use the ideal asymptotic, single-photon BB84 proof model with authenticated discussion, appropriately estimated bit and phase errors and ideal one-way reconciliation. Assume equal bit and phase error values q in the specified range.

Inputs
Bit-error and phase-error values
1/10 each
Binary entropy h₂(q) in bits
0.4689955936
Results
Signed expression per sifted key bit
0.06200881282
Nonnegative contribution per sifted key bit
0.06200881282
Denominator
Sifted key bits in the assumed asymptotic ensemble. The model’s rate needs new finite-statistics and leakage bounds for an actual finite record.
Set both asymptotic error bounds to 11%

Use the ideal asymptotic, single-photon BB84 proof model with authenticated discussion, appropriately estimated bit and phase errors and ideal one-way reconciliation. Assume equal bit and phase error values q in the specified range.

Inputs
Bit-error and phase-error values
11/100 each
Binary entropy h₂(q) in bits
0.4999159582
Results
Signed expression per sifted key bit
0.0001680836709
Nonnegative contribution per sifted key bit
0.0001680836709
Denominator
Sifted key bits in the assumed asymptotic ensemble. The model’s rate needs new finite-statistics and leakage bounds for an actual finite record.
Set both asymptotic error bounds to 12.5%

Use the ideal asymptotic, single-photon BB84 proof model with authenticated discussion, appropriately estimated bit and phase errors and ideal one-way reconciliation. Assume equal bit and phase error values q in the specified range.

Inputs
Bit-error and phase-error values
1/8 each
Binary entropy h₂(q) in bits
0.5435644432
Results
Signed expression per sifted key bit
−0.0871288864
Nonnegative contribution per sifted key bit
0
Denominator
Sifted key bits in the assumed asymptotic ensemble. The model’s rate needs new finite-statistics and leakage bounds for an actual finite record.
Set both asymptotic error bounds to 50%

Use the ideal asymptotic, single-photon BB84 proof model with authenticated discussion, appropriately estimated bit and phase errors and ideal one-way reconciliation. Assume equal bit and phase error values q in the specified range.

Inputs
Bit-error and phase-error values
1/2 each
Binary entropy h₂(q) in bits
1
Results
Signed expression per sifted key bit
−1
Nonnegative contribution per sifted key bit
0
Denominator
Sifted key bits in the assumed asymptotic ensemble. The model’s rate needs new finite-statistics and leakage bounds for an actual finite record.
Count the 30 observed mismatches relative to all sent

Take the worked finite run with complete detection, 20,000 emitted signals, exactly 10,000 matched bases and 1,000 matched positions disclosed at random for testing. Those 1,000 include 30 mismatches.

Inputs
Numerator in every category
30
Denominator for this category
20000
Results
Observed proportion
30/20000 = 3/2000 = 0.15%
Meaning
Fraction of all emitted signals that became disclosed test mismatches.
Retained data
9,000 undisclosed candidates. Assigning a finite secret-key length requires sampling bounds, accounted reconciliation leakage, authentication and a stated security parameter.
Count the 30 observed mismatches relative to matched

Take the worked finite run with complete detection, 20,000 emitted signals, exactly 10,000 matched bases and 1,000 matched positions disclosed at random for testing. Those 1,000 include 30 mismatches.

Inputs
Numerator in every category
30
Denominator for this category
10000
Results
Observed proportion
30/10000 = 3/1000 = 0.3%
Meaning
Fraction of all matched positions that became disclosed test mismatches.
Retained data
9,000 undisclosed candidates. Assigning a finite secret-key length requires sampling bounds, accounted reconciliation leakage, authentication and a stated security parameter.
Count the 30 observed mismatches relative to tested

Take the worked finite run with complete detection, 20,000 emitted signals, exactly 10,000 matched bases and 1,000 matched positions disclosed at random for testing. Those 1,000 include 30 mismatches.

Inputs
Numerator in every category
30
Denominator for this category
1000
Results
Observed proportion
30/1000 = 3/100 = 3%
Meaning
Observed mismatch fraction within the disclosed test sample.
Retained data
9,000 undisclosed candidates. Assigning a finite secret-key length requires sampling bounds, accounted reconciliation leakage, authentication and a stated security parameter.
Diagnose and correct the fixed flip pattern 000

A 1 specifies an X on that physical wire, with wire 0 first. For the state α|000⟩ + β|111⟩ measure the two parities Z₀Z₁, Z₁Z₂ in this order. Record 0 for +1 and 1 for −1. Use the decoder that assumes at most one X error.

Inputs
Physical X pattern and weight
000, weight 0
Corrupted components
α|000⟩ + β|111⟩
Results
Two parity bits
00
Decoder operation
Identity
Logical action after recovery
Identity on the encoded qubit
For an initial |0L⟩
The recovered logical Z measurement gives 0.
Diagnose and correct the fixed flip pattern 001

A 1 specifies an X on that physical wire, with wire 0 first. For the state α|000⟩ + β|111⟩ measure the two parities Z₀Z₁, Z₁Z₂ in this order. Record 0 for +1 and 1 for −1. Use the decoder that assumes at most one X error.

Inputs
Physical X pattern and weight
001, weight 1
Corrupted components
α|001⟩ + β|110⟩
Results
Two parity bits
01
Decoder operation
X₂
Logical action after recovery
Identity on the encoded qubit
For an initial |0L⟩
The recovered logical Z measurement gives 0.
Diagnose and correct the fixed flip pattern 010

A 1 specifies an X on that physical wire, with wire 0 first. For the state α|000⟩ + β|111⟩ measure the two parities Z₀Z₁, Z₁Z₂ in this order. Record 0 for +1 and 1 for −1. Use the decoder that assumes at most one X error.

Inputs
Physical X pattern and weight
010, weight 1
Corrupted components
α|010⟩ + β|101⟩
Results
Two parity bits
11
Decoder operation
X₁
Logical action after recovery
Identity on the encoded qubit
For an initial |0L⟩
The recovered logical Z measurement gives 0.
Diagnose and correct the fixed flip pattern 011

A 1 specifies an X on that physical wire, with wire 0 first. For the state α|000⟩ + β|111⟩ measure the two parities Z₀Z₁, Z₁Z₂ in this order. Record 0 for +1 and 1 for −1. Use the decoder that assumes at most one X error.

Inputs
Physical X pattern and weight
011, weight 2
Corrupted components
α|011⟩ + β|100⟩
Results
Two parity bits
10
Decoder operation
X₀
Logical action after recovery
X on the encoded qubit
For an initial |0L⟩
The recovered logical Z measurement gives 1.
Diagnose and correct the fixed flip pattern 100

A 1 specifies an X on that physical wire, with wire 0 first. For the state α|000⟩ + β|111⟩ measure the two parities Z₀Z₁, Z₁Z₂ in this order. Record 0 for +1 and 1 for −1. Use the decoder that assumes at most one X error.

Inputs
Physical X pattern and weight
100, weight 1
Corrupted components
α|100⟩ + β|011⟩
Results
Two parity bits
10
Decoder operation
X₀
Logical action after recovery
Identity on the encoded qubit
For an initial |0L⟩
The recovered logical Z measurement gives 0.
Diagnose and correct the fixed flip pattern 101

A 1 specifies an X on that physical wire, with wire 0 first. For the state α|000⟩ + β|111⟩ measure the two parities Z₀Z₁, Z₁Z₂ in this order. Record 0 for +1 and 1 for −1. Use the decoder that assumes at most one X error.

Inputs
Physical X pattern and weight
101, weight 2
Corrupted components
α|101⟩ + β|010⟩
Results
Two parity bits
11
Decoder operation
X₁
Logical action after recovery
X on the encoded qubit
For an initial |0L⟩
The recovered logical Z measurement gives 1.
Diagnose and correct the fixed flip pattern 110

A 1 specifies an X on that physical wire, with wire 0 first. For the state α|000⟩ + β|111⟩ measure the two parities Z₀Z₁, Z₁Z₂ in this order. Record 0 for +1 and 1 for −1. Use the decoder that assumes at most one X error.

Inputs
Physical X pattern and weight
110, weight 2
Corrupted components
α|110⟩ + β|001⟩
Results
Two parity bits
01
Decoder operation
X₂
Logical action after recovery
X on the encoded qubit
For an initial |0L⟩
The recovered logical Z measurement gives 1.
Diagnose and correct the fixed flip pattern 111

A 1 specifies an X on that physical wire, with wire 0 first. For the state α|000⟩ + β|111⟩ measure the two parities Z₀Z₁, Z₁Z₂ in this order. Record 0 for +1 and 1 for −1. Use the decoder that assumes at most one X error.

Inputs
Physical X pattern and weight
111, weight 3
Corrupted components
α|111⟩ + β|000⟩
Results
Two parity bits
00
Decoder operation
Identity
Logical action after recovery
X on the encoded qubit
For an initial |0L⟩
The recovered logical Z measurement gives 1.
Compare the one- and three-wire outputs at p = 0

Use the same exposure time with independent identical X noise of probability p on each site. Encoding, parity extraction and recovery are ideal. The plotted logical error is the probability that the residual operation is a logical X.

Inputs
Single-site X probability
0
Numbers of weight-two and weight-three patterns
3 and 1
Results
Probability of exactly two flips
0
Probability of three flips
0
Logical X probability
0 = 0
Excess relative to the unencoded baseline
0
Correlated comparison
If all three wires flip together with probability p and otherwise none flip, each site still has marginal p. The zero syndrome then conceals a logical X with probability p.
Compare the one- and three-wire outputs at p = 1/100

Use the same exposure time with independent identical X noise of probability p on each site. Encoding, parity extraction and recovery are ideal. The plotted logical error is the probability that the residual operation is a logical X.

Inputs
Single-site X probability
1/100
Numbers of weight-two and weight-three patterns
3 and 1
Results
Probability of exactly two flips
297/1000000
Probability of three flips
1/1000000
Logical X probability
149/500000 = 0.000298
Excess relative to the unencoded baseline
−4851/500000
Correlated comparison
If all three wires flip together with probability p and otherwise none flip, each site still has marginal p. The zero syndrome then conceals a logical X with probability p.
Compare the one- and three-wire outputs at p = 1/20

Use the same exposure time with independent identical X noise of probability p on each site. Encoding, parity extraction and recovery are ideal. The plotted logical error is the probability that the residual operation is a logical X.

Inputs
Single-site X probability
1/20
Numbers of weight-two and weight-three patterns
3 and 1
Results
Probability of exactly two flips
57/8000
Probability of three flips
1/8000
Logical X probability
29/4000 = 0.00725
Excess relative to the unencoded baseline
−171/4000
Correlated comparison
If all three wires flip together with probability p and otherwise none flip, each site still has marginal p. The zero syndrome then conceals a logical X with probability p.
Compare the one- and three-wire outputs at p = 1/10

Use the same exposure time with independent identical X noise of probability p on each site. Encoding, parity extraction and recovery are ideal. The plotted logical error is the probability that the residual operation is a logical X.

Inputs
Single-site X probability
1/10
Numbers of weight-two and weight-three patterns
3 and 1
Results
Probability of exactly two flips
27/1000
Probability of three flips
1/1000
Logical X probability
7/250 = 0.028
Excess relative to the unencoded baseline
−9/125
Correlated comparison
If all three wires flip together with probability p and otherwise none flip, each site still has marginal p. The zero syndrome then conceals a logical X with probability p.
Compare the one- and three-wire outputs at p = 1/4

Use the same exposure time with independent identical X noise of probability p on each site. Encoding, parity extraction and recovery are ideal. The plotted logical error is the probability that the residual operation is a logical X.

Inputs
Single-site X probability
1/4
Numbers of weight-two and weight-three patterns
3 and 1
Results
Probability of exactly two flips
9/64
Probability of three flips
1/64
Logical X probability
5/32 = 0.15625
Excess relative to the unencoded baseline
−3/32
Correlated comparison
If all three wires flip together with probability p and otherwise none flip, each site still has marginal p. The zero syndrome then conceals a logical X with probability p.
Compare the one- and three-wire outputs at p = 1/2

Use the same exposure time with independent identical X noise of probability p on each site. Encoding, parity extraction and recovery are ideal. The plotted logical error is the probability that the residual operation is a logical X.

Inputs
Single-site X probability
1/2
Numbers of weight-two and weight-three patterns
3 and 1
Results
Probability of exactly two flips
3/8
Probability of three flips
1/8
Logical X probability
1/2 = 0.5
Excess relative to the unencoded baseline
0
Correlated comparison
If all three wires flip together with probability p and otherwise none flip, each site still has marginal p. The zero syndrome then conceals a logical X with probability p.
Compare the one- and three-wire outputs at p = 3/4

Use the same exposure time with independent identical X noise of probability p on each site. Encoding, parity extraction and recovery are ideal. The plotted logical error is the probability that the residual operation is a logical X.

Inputs
Single-site X probability
3/4
Numbers of weight-two and weight-three patterns
3 and 1
Results
Probability of exactly two flips
27/64
Probability of three flips
27/64
Logical X probability
27/32 = 0.84375
Excess relative to the unencoded baseline
3/32
Correlated comparison
If all three wires flip together with probability p and otherwise none flip, each site still has marginal p. The zero syndrome then conceals a logical X with probability p.
Compare the one- and three-wire outputs at p = 1

Use the same exposure time with independent identical X noise of probability p on each site. Encoding, parity extraction and recovery are ideal. The plotted logical error is the probability that the residual operation is a logical X.

Inputs
Single-site X probability
1
Numbers of weight-two and weight-three patterns
3 and 1
Results
Probability of exactly two flips
0
Probability of three flips
1
Logical X probability
1 = 1
Excess relative to the unencoded baseline
0
Correlated comparison
If all three wires flip together with probability p and otherwise none flip, each site still has marginal p. The zero syndrome then conceals a logical X with probability p.
Use two logical input states to test I

Run the three-site repetition parity checks and the usual single-X recovery. In one ensemble prepare |0L⟩ and measure logical Z. In another prepare |+L⟩ and measure logical X = X₀X₁X₂.

Inputs
Applied physical operation
I
Measured error syndrome
00
Chosen recovery
Identity
Results
Residual logical bit and phase flips up to common phase
0 and 0
P(0 on logical Z given input 0L)
1
P(+ on logical X given input +L)
1
Protected subspace
A physical Z on a single site changes the sign of |111⟩ relative to |000⟩. The three-site bit-flip code has no check for that logical phase change.
Use two logical input states to test X₁

Run the three-site repetition parity checks and the usual single-X recovery. In one ensemble prepare |0L⟩ and measure logical Z. In another prepare |+L⟩ and measure logical X = X₀X₁X₂.

Inputs
Applied physical operation
X₁
Measured error syndrome
11
Chosen recovery
X₁
Results
Residual logical bit and phase flips up to common phase
0 and 0
P(0 on logical Z given input 0L)
1
P(+ on logical X given input +L)
1
Protected subspace
A physical Z on a single site changes the sign of |111⟩ relative to |000⟩. The three-site bit-flip code has no check for that logical phase change.
Use two logical input states to test Z₀

Run the three-site repetition parity checks and the usual single-X recovery. In one ensemble prepare |0L⟩ and measure logical Z. In another prepare |+L⟩ and measure logical X = X₀X₁X₂.

Inputs
Applied physical operation
Z₀
Measured error syndrome
00
Chosen recovery
Identity
Results
Residual logical bit and phase flips up to common phase
0 and 1
P(0 on logical Z given input 0L)
1
P(+ on logical X given input +L)
0
Protected subspace
A physical Z on a single site changes the sign of |111⟩ relative to |000⟩. The three-site bit-flip code has no check for that logical phase change.
Use two logical input states to test Y₁

Run the three-site repetition parity checks and the usual single-X recovery. In one ensemble prepare |0L⟩ and measure logical Z. In another prepare |+L⟩ and measure logical X = X₀X₁X₂.

Inputs
Applied physical operation
Y₁
Measured error syndrome
11
Chosen recovery
X₁
Results
Residual logical bit and phase flips up to common phase
0 and 1
P(0 on logical Z given input 0L)
1
P(+ on logical X given input +L)
0
Protected subspace
A physical Z on a single site changes the sign of |111⟩ relative to |000⟩. The three-site bit-flip code has no check for that logical phase change.
Use two logical input states to test X₀X₂

Run the three-site repetition parity checks and the usual single-X recovery. In one ensemble prepare |0L⟩ and measure logical Z. In another prepare |+L⟩ and measure logical X = X₀X₁X₂.

Inputs
Applied physical operation
X₀X₂
Measured error syndrome
11
Chosen recovery
X₁
Results
Residual logical bit and phase flips up to common phase
1 and 0
P(0 on logical Z given input 0L)
0
P(+ on logical X given input +L)
1
Protected subspace
A physical Z on a single site changes the sign of |111⟩ relative to |000⟩. The three-site bit-flip code has no check for that logical phase change.
Use two logical input states to test X₀X₁X₂

Run the three-site repetition parity checks and the usual single-X recovery. In one ensemble prepare |0L⟩ and measure logical Z. In another prepare |+L⟩ and measure logical X = X₀X₁X₂.

Inputs
Applied physical operation
X₀X₁X₂
Measured error syndrome
00
Chosen recovery
Identity
Results
Residual logical bit and phase flips up to common phase
1 and 0
P(0 on logical Z given input 0L)
0
P(+ on logical X given input +L)
1
Protected subspace
A physical Z on a single site changes the sign of |111⟩ relative to |000⟩. The three-site bit-flip code has no check for that logical phase change.
Limits on the inputs
Local and conditional records
Alice’s Bell outcomes are equiprobable for arbitrary inputs. Condition on the indicated outcome when quoting a branch probability. Include losses, unsuccessful detections and the input ensemble when interpreting a conditional device fidelity.
Acceptance in a finite key
Correctness bounds the probability of accepting unequal keys. Secrecy bounds the acceptance probability times the trace distance of the accepted key and outside information from a uniform independent key with the same outside marginal. This includes the public transcript.
Logical error family
The three-site model assumes independent X errors, perfect parity checks and ideal recovery. A distance-three quantum code can correct any single-site error under its stated conditions. A coherent single-qubit rotation about an arbitrary axis lies in the span of I, X, Y and Z.

Worked examples

Recover a phase-sensitive input

Alice teleports |ψ⟩ = (|0⟩ + i|1⟩)/√2 and obtains m,n = 1,1. Write Bob’s uncorrected state and apply the correction in time order.

  1. Z first changes the target description to (|0⟩ − i|1⟩)/√2. X then swaps the amplitudes, so the uncorrected branch XZ|ψ⟩ is (−i|0⟩ + |1⟩)/√2. Its branch probability is 1/4, the same as for every other input.
  2. Bob’s conditional correction begins with X. It produces (|0⟩ − i|1⟩)/√2. A subsequent Z restores (|0⟩ + i|1⟩)/√2. A Y measurement now has eigenvalue +1 with certainty. Without a reliable record of both bits, that branch assignment is unavailable.
  3. For this particular Y eigenstate the product XZ is proportional to Y, so the uncorrected 11 branch is in fact the same physical ray multiplied by −i. The written amplitude calculation still tests the inverse order. Other input states generally require a physically effective correction on this branch. Testing one eigenstate would miss that distinction.

The uncorrected state is XZ|ψ⟩. Applying X and then Z restores the specified amplitudes. The global phase in this particular 11 example has no observable consequence.

Average over Bell outcomes before the message arrives

Teleport a state with excited population 1/4. Alice has read her two outcomes, but Bob has not received them. What excited population can Bob measure?

  1. For n = 0 the branch has its original probabilities, regardless of m, so the excited population is 1/4. For n = 1 the bit labels are exchanged and the population is 3/4. The two possibilities for n are equally probable.
  2. Their average is (1/4 + 3/4)/2 = 1/2. For each fixed n the two m values also cancel the off-diagonal element. Bob’s predictive local state before receipt is I/2. The same conclusion follows if the input is mixed.
  3. Suppose Bob receives only n. He can undo a bit flip and recover the original Z probabilities, but averaging over m can still destroy the phase information. A Z-only comparison could therefore pass even though the full quantum state had not been recovered.

Bob’s excited population is 1/2 before either bit arrives. A missing phase bit matters even when corrected Z outcomes look right.

Decode a specific dense-coding message

Alice wants to send m,n = 1,0 with a shared |Φ+⟩. What operations produce the message, and what can Bob infer before Alice’s qubit arrives?

  1. Alice applies Z on A and no X, preparing (|00⟩ − |11⟩)/√2. Bob’s local B state has equal populations and zero coherence after tracing out A. All four dense-coding labels have that same local state.
  2. After A arrives, Bob’s CNOT from A to B maps the two terms to |00⟩ and |10⟩. The state factors into |−⟩ on A and |0⟩ on B. H on A maps |−⟩ to |1⟩, giving the definite readout 10.
  3. The two outcome bits are classical information about Alice’s chosen label. The protocol consumed the shared pair and physically transmitted a quantum system. No means of learning m,n was present in a measurement of B alone.

The message is decoded as 10 after the transmitted qubit arrives. Bob’s earlier measurement statistics contain no information about the encoded label.

Predict fidelity with unequal resources accounted for

The intended Bell pair has probability 3/4 and the three other Bell states each have probability 1/12. All subsequent teleportation operations are ideal. What fidelity is expected on |0⟩ and on an arbitrary pure input?

  1. For |0⟩, the intended branch and the residual Z-error branch return |0⟩. X and Y flip it to |1⟩. Fidelity is therefore 3/4 + 1/12 = 5/6.
  2. For Bloch coordinates x,y,z of any pure input, the return probabilities following X,Y,Z errors are x²,y²,z². Their sum is one. The same equal wrong-branch weights yield 3/4 + (x² + y² + z²)/12 = 5/6.
  3. Now concentrate all the wrong-branch weight in Z instead. The |0⟩ input has unit fidelity, while |+⟩ has fidelity 3/4. The isotropic calculation applies to a specific error mixture. A single population test cannot establish that the noise has that symmetry.

Both fidelities are 5/6 for the specified symmetric resource. A nonsymmetric Bell error distribution can make the result depend on the input state.

Keep the denominators straight in BB84

In an idealized run all 20,000 single-photon signals are detected. Bases are uniform and independent. Suppose exactly 10,000 match, and a random set of 1,000 matched positions is disclosed, with 30 mismatches. Which counts and rates are directly established?

  1. The expected matched number was 10,000, and this run is stated to have exactly that value. After removal of the 1,000 publicly tested positions, 9,000 candidate bits remain under this simple sifting convention. The observed test mismatch fraction is 30/1000 = 0.03.
  2. If both relevant asymptotic bit and phase errors were separately bounded by 0.03 in the ideal symmetric proof model, its illustrative fraction per sifted key bit would be 1 − 2h₂(0.03) ≈ 0.6112. This conditional calculation does not turn the sample fraction into those two bounds.
  3. To claim a finite secret output one must specify how the test sample estimates the retained bits and complementary phase errors, the tolerated failure probability, actual reconciliation leakage and other finite-key costs. The run also needs authenticated classical communication. A simple multiplication of 9,000 by the illustrative asymptotic fraction is not proof of a secure key length.

The directly established counts are 10,000 matched, 1,000 tested and 9,000 retained candidates. The observed test error is 3%. A final secret-bit count cannot be inferred from these numbers alone.

See how a plausible correction becomes a logical error

Compare a flip on site 1 with flips on sites 0 and 2 in the three-site repetition code. What syndrome occurs, and how does a single-error decoder respond?

  1. Starting from 000, the first pattern gives 010. Its adjacent pairs differ in both places, so the syndrome is 11. The second pattern gives 101, whose adjacent pairs also differ in both places. The complement codeword 111 yields the same syndrome pattern for each error.
  2. The decoder assumes one error and applies X₁. It exactly reverses the single middle flip. Following the two outer flips, that recovery instead completes X₀X₁X₂. On the code this swaps |0L⟩ and |1L⟩ and is logical X.
  3. Under independent errors with p = 0.01, each specified double flip with the third site untouched has probability p²(1 − p) = 0.000099. Summing three such patterns and the triple probability 0.000001 gives 0.000298. Using the syndrome without its error model leaves the two causes ambiguous.

Both causes give syndrome 11. The usual recovery succeeds on the single error and sends the double error to a logical X.

Produce a failure with a perfectly quiet syndrome

Prepare a logical |+L⟩ = (|000⟩ + |111⟩)/√2. Apply Z₀, then perform the two usual repetition-code parity checks. Which measurement can detect the resulting fault?

  1. Z₀ leaves the 000 component alone and reverses the sign of 111. Both components retain even adjacent parity, so both Z-type checks give eigenvalue +1 and the stored syndrome is 00.
  2. A logical X observable is X₀X₁X₂. It interchanges 000 and 111. Its expectation on |+L⟩ is +1 and on the resulting |−L⟩ is −1. Measuring all three X outcomes on repeated preparations and multiplying their signs accesses this logical observable.
  3. A logical |0L⟩ would show no visible change under the same fault because it is a phase eigenstate. The coherent phase reversal is visible for a superposed preparation, which a claim of quantum-state storage must also cover.

Measure logical X. The zero syndrome detects no phase fault here, while the logical X sign changes deterministically.

Try it yourself

  1. Encoding |+⟩ in the three-qubit repetition code gives which computational outcomes, and how does that differ from three separate |+⟩ states?

    Show the answer and reasoning

    The code gives only 000 and 111, each with probability 1/2. Three separate |+⟩ qubits give all eight words equally often.

    The amplitudes of an unknown input have been distributed across two joint basis words. They have not been copied into three independent pure states.

  2. Alice reports m = 1, n = 0. What state does Bob hold and which correction is needed?

    Show the answer and reasoning

    He holds Z|ψ⟩ and applies Z.

    The convention orders the reported bits as the phase bit m and the bit-flip bit n. Reversing that convention without relabeling the decoder would produce erroneous corrections.

  3. Alice teleports one half of a Bell pair while keeping the original reference. What should an ideal corrected protocol deliver?

    Show the answer and reasoning

    The original Bell correlations between her reference and Bob’s output.

    The branch-dependent Pauli acts on the teleported subsystem alone. The correction restores the whole reference-output state. Verifying only the maximally mixed output marginal would miss a failure of the joint channel.

  4. Which dense-coding message prepares a same-Z-bit Bell state with negative relative sign?

    Show the answer and reasoning

    m = 1, n = 0.

    Z on A changes the phase of the 11 component of |Φ+⟩, and no X is needed. A joint inverse Bell transformation makes that phase a deterministic detector bit.

  5. What is the fidelity of the standard teleportation procedure on pure inputs for a completely mixed two-qubit resource?

    Show the answer and reasoning

    1/2.

    The four Bell probabilities are 1/4, hence (1 + 2F)/3 = 1/2. The standard procedure then supplies a maximally mixed output. Other benchmark strategies correspond to different operations.

  6. Each party independently chooses Z with probability 0.8 and X with probability 0.2. What is the match probability, and what fraction of rounds have both X choices?

    Show the answer and reasoning

    The match probability is 0.68 and the both-X fraction is 0.04.

    The probabilities are 0.8² + 0.2² and 0.2², respectively. Biased choices can change throughput and the sample size available for testing the complementary basis.

  7. Evaluate the binary entropy for p = 0 and p = 1/2, and interpret those values in the illustrative symmetric-key expression.

    Show the answer and reasoning

    h₂(0) = 0 and h₂(1/2) = 1 bit.

    A deterministic binary error has zero entropy and a fair binary error has one bit of entropy. At half error the expression 1 − 2h₂ is negative and yields no positive rate under that bound.

  8. Why is a public classical channel still required to be authenticated in key distribution?

    Show the answer and reasoning

    Each party must be able to establish whom the protocol messages came from and whether they were altered.

    The security model allows public basis and reconciliation information. Integrity and endpoint authentication impose a separate requirement. The quantum measurement statistics alone do not authenticate the conversation.

  9. Sites 1 and 2 flip in a repetition-code word. Which syndrome is obtained and which logical change remains after the single-error correction?

    Show the answer and reasoning

    The syndrome is 10. The recovery flips site 0 and leaves logical X.

    For the error pattern 011, adjacent bit differences are 1 and 0. It has the same syndrome as error 100. Applying the assumed single-site correction leaves the weight-three flip.

  10. If independent physical bit flips have probability 0.1, compute the logical bit-error probability. What would invalidate this calculation?

    Show the answer and reasoning

    0.028 with perfect checks and recovery.

    The expression is 3(0.1)² − 2(0.1)³. Correlated errors, phase noise affecting a different logical observable, and faults during recovery each require an expanded model.

  11. The three-qubit repetition code appears to require three X flips for a logical X. What is its distance against unrestricted Pauli errors?

    Show the answer and reasoning

    One.

    A single physical Z is already a nontrivial logical phase operation with zero syndrome. The protection against X errors alone cannot be used as the distance of a general quantum code.

  12. Two teleportation implementations quote the same fidelity on accepted events. What additional measurement matters for communication per attempted input?

    Show the answer and reasoning

    The probability of an accepted output and how acceptance varies with the input ensemble.

    Postselection can discard most trials or select easier inputs. A channel claim should identify losses and failed heralds, the tested states, the accepted fidelity and the rate of successfully delivered states.

What to carry forward

  • Teleportation consumes shared entanglement and two communicated classical bits. The corrected channel preserves a qubit’s joint state with a reference, while Bob’s unannounced local state contains no signal.
  • Dense coding delivers two classical bits using a previously shared Bell pair and a physically transmitted qubit. Fidelity benchmarks depend on the resource, test ensemble and success conditions.
  • Key distribution combines quantum preparation and measurement with authenticated classical discussion. A finite secret-key claim requires error bounds, reconciliation leakage, privacy amplification and a stated security model.
  • A syndrome can identify a correctable error while preserving logical superpositions. Protection against bit flips alone does not establish that arbitrary quantum errors are correctable.

References

Sources for the concepts and teaching approaches in this article.

  1. Teleporting an unknown quantum state via dual classical and Einstein-Podolsky-Rosen channelsCharles H. Bennett, Gilles Brassard, Claude Crépeau, Richard Jozsa, Asher Peres, William K. WoottersResearch paperdoi.orgRead source
  2. Communication via one- and two-particle operators on Einstein-Podolsky-Rosen statesCharles H. Bennett, Stephen J. WiesnerResearch paperdoi.orgRead source
  3. General teleportation channel, singlet fraction and quasi-distillationMichał Horodecki, Paweł Horodecki, Ryszard HorodeckiResearch paperjournals.aps.orgRead source
  4. Quantum cryptography: Public key distribution and coin tossingCharles H. Bennett, Gilles BrassardResearch paperarxiv.orgRead source
  5. Simple Proof of Security of the BB84 Quantum Key Distribution ProtocolPeter W. Shor, John PreskillResearch paperarxiv.orgRead source
  6. Multiple Particle Interference and Quantum Error CorrectionAndrew SteaneResearch paperarxiv.orgRead source
  7. A Theory of Quantum Error-Correcting CodesEmanuel Knill, Raymond LaflammeResearch paperarxiv.orgRead source
  8. Tight Finite-Key Analysis for Quantum CryptographyMarco Tomamichel, Charles Ci Wen Lim, Nicolas Gisin, Renato RennerResearch paperarxiv.orgRead source

Sources and conventions

  • Teleporting an unknown quantum state via dual classical and Einstein-Podolsky-Rosen channels. Charles H. Bennett, Gilles Brassard, Claude Crépeau, Richard Jozsa, Asher Peres, William K. Wootters, Physical Review Letters.

    Establishes the one-ebit, two-classical-bit teleportation protocol and the necessity of the classical result.

    Sections 70, 1895–1899 (1993), teleportation using joint measurements, entanglement and classical communication.

  • Communication via one- and two-particle operators on Einstein-Podolsky-Rosen states. Charles H. Bennett, Stephen J. Wiesner, Physical Review Letters.

    Implements four classical messages using shared entanglement and physical transmission of one qubit.

    Sections 69, 2881–2884 (1992), distinguishable entangled encodings.

  • General teleportation channel, singlet fraction and quasi-distillation. Michał Horodecki, Paweł Horodecki, Ryszard Horodecki, Physical Review A.

    Connects entanglement overlap with teleportation fidelity and states the trace-preserving conditions for an average benchmark.

    Sections 60, 1888–1898 (1999), fidelity and singlet fraction.

  • Quantum cryptography: Public key distribution and coin tossing. Charles H. Bennett, Gilles Brassard, IEEE International Conference on Computers, Systems and Signal Processing.

    Describes encoding bits in two incompatible bases, basis sifting and statistical comparison of a sample.

    Sections Bangalore 1984, pp. 175–179, the original four-state key-distribution procedure.

  • Simple Proof of Security of the BB84 Quantum Key Distribution Protocol. Peter W. Shor, John Preskill, Physical Review Letters.

    Connects bit and phase error estimates to asymptotic secret-key rates under the proof assumptions.

    Sections 85, 441–444 (2000), entanglement purification and the CSS reduction.

  • Multiple Particle Interference and Quantum Error Correction. Andrew Steane, Proceedings of the Royal Society A.

    Develops complementary parity checks and the seven-physical-qubit code.

    Sections 452, 2551–2577 (1996), quantum codes correcting amplitude and phase errors.

  • A Theory of Quantum Error-Correcting Codes. Emanuel Knill, Raymond Laflamme, Physical Review A.

    Supports the criterion that environment and syndrome information can distinguish error subspaces while preserving the logical amplitudes.

    Sections General correctability conditions for a code subspace and a specified error set.

  • Tight Finite-Key Analysis for Quantum Cryptography. Marco Tomamichel, Charles Ci Wen Lim, Nicolas Gisin, Renato Renner, Nature Communications.

    Defines correctness and secrecy separately for an accepted finite key and relates their security parameters to a composable statement.

    Sections 3, 634 (2012), correctness, secrecy, abort probability and finite sample bounds.