Lesson 26 · 60 min · core
Superdense Coding
Alice and Bob share the Bell pair . By applying one of the four operators to her qubit and sending that single qubit to Bob, Alice transmits two classical bits : the four encoded states are exactly the four Bell states, which are orthonormal, and Bob reads the message out with the inverse Bell circuit . This lesson derives every encoded state with its sign, proves orthonormality through a Gram matrix, proves that the decoder returns , traces the message amplitude by amplitude, uses the Holevo bound to show why one qubit without entanglement could carry only one bit and why an eavesdropper on the travelling qubit learns nothing, and closes with the resource inequalities that make superdense coding the dual of teleportation.
Prerequisites: Entanglement & the Bell States
Objectives and key results
Compute for all four messages, including the sign , and identify the result with the Bell-circuit output .
Prove that the four encoded states are orthonormal by computing their Gram matrix, and explain why orthonormality means perfect distinguishability.
Prove that the decoder maps each encoded state to and write down its matrix.
Follow the message through the protocol with the full amplitude vector after every gate.
State the Holevo bound , prove the two right-hand inequalities, and use the reduced state to show that the travelling qubit alone carries no information.
State the resource inequalities and , and explain why each is optimal.
- formula · Encoding
- identity · Decoding
- theorem · Holevo bound
- theorem · Resource inequalities
The protocol and the four encodings#
Definition
Superdense coding
Superdense coding (Bennett and Wiesner, 1992) transmits a two-bit message from Alice to Bob with one qubit of communication:
- Share. Beforehand, Alice (qubit ) and Bob (qubit ) share .
- Encode. Alice applies to her qubit: nothing for , for , for , and followed by (the product ) for .
- Send. Alice sends her qubit to Bob; now Bob holds both qubits.
- Decode. Bob applies , then on qubit , and measures both qubits in the computational basis. The outcome is with probability .
The general encoding
- Step 1:: both qubits carry the same bit .
- Step 2:flips a bit and ; multiplies by , so contributes the sign exactly when and .
- Step 3:Apply and then to the first factor of each term; the second factor is untouched by .
- Step 4:Relabel the sum by Alice's bit ; since is its own inverse, , and runs over exactly when does.
- Step 5:Write out (sign , Bob's bit ) and (sign , Bob's bit ), and compare with the Bell-circuit formula with , .
Result
The four encoded states, one by one
- Step 1:: Alice does nothing.
- Step 2:on qubit maps and ; the two qubits now disagree.
- Step 3:on qubit leaves alone and sends , because qubit is there.
- Step 4:The rightmost factor of acts first; this is the state.
- Step 5:Only the term with qubit in , namely , picks up the sign; reordering gives , which is with sign .
- Step 6:Matrix check of the sign. With we get . The opposite order would give , which differs only by a global phase and decodes to the same outcome.
Result
Two observations organise the whole protocol. First, the bit is encoded in the parity of the pair: on one qubit turns the "equal" states into the "different" states . Second, the bit is encoded in the relative sign: on one qubit turns into . Alice touches only her own qubit, yet she can reach all four Bell states, because the Bell basis is generated from by the four Paulis acting on either half.
Quick check
Which state does Alice produce from to send the message ?
The encoded states are perfectly distinguishable#
The four encoded states are orthonormal
Let with , , , . Then for all : the Gram matrix is .
Proof (6 steps)
- Step 1:Expand both copies of ; Bob's factor gives . This is the case of from the Bell-states lesson.
- Step 2:and ; then apply the previous line with .
- Step 3:Each is unitary ( is a phase times a Pauli), so every encoded state is normalised.
- Step 4:Pairs involving : , and the three non-identity operators are traceless.
- Step 5:The remaining pairs , , , using , , and ; all three products are traceless. The pairs with are complex conjugates of these, .
- Step 6:Collect the diagonal () and off-diagonal () entries.
∎
The same conclusion follows from the encoding formula: with unitary, so , i.e. .
Why orthonormality means perfect distinguishability. If Bob measures with the projectors (a valid projective measurement, because the form an orthonormal basis, so and ), the Born rule gives The outcome equals the message with certainty. Conversely, two states with can never be told apart with certainty, so orthogonality is exactly what the protocol needs.
Decoding with the inverse Bell circuit#
The decoder returns the message
Let and . Then , and for every message .
Proof (4 steps)
- Step 1:: the adjoint reverses the order of a product.
- Step 2:is real and symmetric; is a real permutation matrix that swaps and , hence symmetric.
- Step 3:Substitute; is a product of unitaries, hence unitary, so .
- Step 4:Use the encoding formula derived above, then .
∎
The matrix of the decoder follows by multiplying on the right by . Right multiplication by a permutation matrix permutes columns; swaps columns and (the columns of and ): The rows of are , so : entry of is the overlap . A computational-basis measurement after is therefore exactly the Bell measurement . As a check, is the transpose of (both are real), and 's columns are the Bell states.
Unitary verified: (max deviation 2.2e-16)
Decoding each encoded state gate by gate
- Step 1:: is fixed and ; factor out on qubit with .
- Step 2:is fixed and . The CNOT has disentangled the pair: qubit now holds the parity bit and qubit holds the sign as .
- Step 3:is self-inverse and , .
- Step 4:The Hadamard converts the sign into the bit .
Result
Quick check
After Bob's (but before his Hadamard), what is the state if Alice sent ?
Worked example: the message 11#
Every amplitude vector for
- Step 1:Initial register; qubit is Alice's, qubit is Bob's.
- Step 2:on qubit (start of the sharing step).
- Step 3:. The pair is now shared; Bob takes qubit .
- Step 4:Alice's first encoding gate (): , .
- Step 5:Alice's second encoding gate (): only has qubit in , so only it changes sign. Hence . Alice now sends qubit to Bob.
- Step 6:Bob's CNOT: is fixed (control ), .
- Step 7:and ; the components cancel and the components add to .
Result
Circuit · 2 qubits
The full protocol for the message : share , encode, decode. The final statevector is and the histogram shows outcome with probability .
- |00⟩0
- |01⟩0
- |10⟩0
- |11⟩1
import { Statevector, reducedStateFromPure, vonNeumannEntropy, DensityMatrix, matrix } from '@/lib/quantum-simulator';
// Superdense coding for all four messages b1 b2 (qubit 0 = Alice = most significant bit, qubit 1 = Bob)
const fmt = (sv) => sv.amplitudes().map((a) => a.re.toFixed(4)).join(', ');
let average = matrix.zeros(4, 4);
for (const msg of ['00', '01', '10', '11']) {
// Share |Phi+> = CNOT (H x I)|00>
const sv = Statevector.zero(2).applyGate('H', [0]).applyGate('X', [1], [], [0]);
// Alice encodes with Z^b1 X^b2 on her qubit: X first (b2), then Z (b1)
if (msg[1] === '1') sv.applyGate('X', [0]);
if (msg[0] === '1') sv.applyGate('Z', [0]);
const encoded = fmt(sv);
const sAlice = vonNeumannEntropy(reducedStateFromPure(sv, [0]));
average = matrix.add(average, matrix.scale(DensityMatrix.fromStatevector(sv).toMatrix(), 0.25));
// Bob decodes with (H x I) CNOT: CNOT(0 -> 1), then H on qubit 0
sv.applyGate('X', [1], [], [0]).applyGate('H', [0]);
const p = Array.from(sv.probabilities());
const k = p.indexOf(Math.max(...p));
console.log('message ' + msg + ': encoded [' + encoded + '] S(rho_Alice) = ' + sAlice.toFixed(4) + ' decoded ' + k.toString(2).padStart(2, '0') + ' with P = ' + p[k].toFixed(4));
}
// Holevo quantity of the ensemble Bob receives: chi = S(average) - (1/4) sum S(pure) = S(I/4)
console.log('chi (two qubits at Bob) = ' + vonNeumannEntropy(average).toFixed(4) + ' bits');Expected output
message 00: encoded [0.7071, 0.0000, 0.0000, 0.7071] S(rho_Alice) = 1.0000 decoded 00 with P = 1.0000 message 01: encoded [0.0000, 0.7071, 0.7071, 0.0000] S(rho_Alice) = 1.0000 decoded 01 with P = 1.0000 message 10: encoded [0.7071, 0.0000, 0.0000, -0.7071] S(rho_Alice) = 1.0000 decoded 10 with P = 1.0000 message 11: encoded [0.0000, 0.7071, -0.7071, 0.0000] S(rho_Alice) = 1.0000 decoded 11 with P = 1.0000 chi (two qubits at Bob) = 2.0000 bits
Why entanglement is essential: the Holevo bound#
Definition
Holevo quantity
Alice picks a message with probability and sends the state of a -dimensional system. Bob performs any measurement with outcome . With and the von Neumann entropy , the Holevo quantity of the ensemble is The Holevo bound (Holevo, 1973) states that, whatever measurement Bob chooses, the classical mutual information between message and outcome obeys . Its proof uses the monotonicity of quantum relative entropy under quantum channels (Nielsen and Chuang, §12.1.1); here we take it as given and prove the two inequalities that turn it into a dimension count.
For every ensemble of states of a -dimensional system, . Consequently a single qubit () carries at most bit of classical information, whatever the encoding and the measurement.
Proof (5 steps)
- Step 1:are the eigenvalues of , so each term (with ).
- Step 2:Subtracting a non-negative quantity (, ).
- Step 3:are the eigenvalues of , a probability distribution. is concave, so Jensen's inequality applies with .
- Step 4:Each positive eigenvalue contributes , and a matrix has at most non-zero eigenvalues. Equality holds iff .
- Step 5:Combine with the Holevo bound .
∎
So without prior entanglement, one qubit sent from Alice to Bob conveys at most one bit; two bits would need two qubits. Superdense coding does not contradict this, because the system Bob finally measures is two qubits (): his half of the pair was delivered in advance. The ensemble he receives is , with where because the are an orthonormal basis, and pure states have zero entropy. The protocol saturates the bound for , and Bob's decoder achieves .
The travelling qubit alone carries no information
- Step 1:An eavesdropper Eve who intercepts only the qubit in transit holds Alice's qubit (qubit ), whose state is the partial trace over Bob's qubit .
- Step 2:Expand the outer product of the two-term vector; the sign appears once in each cross term and in the second diagonal term.
- Step 3:Definition of the partial trace on product operators, and orthonormality of ().
- Step 4:The cross terms vanish because Bob's bits in the two branches are different; the diagonal terms survive with weight each.
- Step 5:Every message produces the same state (entropy ), so the Holevo quantity of Eve's ensemble is and no measurement on the intercepted qubit reveals anything about the message.
Result
By the same calculation Bob's own qubit is in for every message, so Alice's local encoding sends nothing to Bob until her qubit physically arrives: the two bits live entirely in the correlations between the qubits, which only a joint (Bell) measurement can read.
Two bits per qubit is the most entanglement can give
Suppose Alice and Bob share any state , Alice applies a message-dependent operation to her -dimensional system only and sends to Bob. Then ; for one qubit, at most bits.
Proof (4 steps)
- Step 1:An operation on alone does not change the reduced state of (the trace over absorbs any trace-preserving map on ): this is the no-signalling property already seen above.
- Step 2:Subadditivity for the average state, whose -marginal is by the previous line, and from the proposition above.
- Step 3:Araki–Lieb triangle inequality , again with .
- Step 4:Insert both bounds into and use .
∎
Quick check
What is the Holevo quantity (in bits) of the ensemble seen by an eavesdropper who intercepts only Alice's qubit?
Quick check
What is the Holevo quantity (in bits) of the ensemble of two-qubit states that Bob holds after receiving Alice's qubit?
Duality with teleportation#
Definition
Resource inequality
Write for one shared Bell pair, for one use of a noiseless quantum channel and for one use of a noiseless classical bit channel, all from Alice to Bob. A resource inequality means that the resources , used with local operations, can simulate the resources exactly.
The two fundamental protocols are mirror images of each other: In superdense coding Alice applies one of four Paulis to her half of and sends the qubit; Bob performs a Bell measurement and obtains two bits. In teleportation (next lesson) Alice performs the Bell measurement on her unknown qubit together with her half of and sends the two bits; Bob applies one of four Paulis to his half and obtains the qubit. The same four Pauli operators and the same Bell basis appear in both, with the roles of sender and receiver exchanged.
Both inequalities are tight. Superdense coding cannot do better: by the proposition above, one qubit plus any amount of shared entanglement carries bits. Teleportation cannot use fewer than two cbits: suppose with . Chaining it with superdense coding would give , i.e. classical bits plus entanglement would deliver two bits. That is impossible: Bob's output is a function of the -bit message and his share ; since is independent of (no-signalling, does not depend on ), Here we used the data-processing inequality, the chain rule for mutual information, , and .
References
- C. H. Bennett and S. J. Wiesner, Communication via one- and two-particle operators on Einstein-Podolsky-Rosen states, Physical Review Letters 69, 2881–2884 (1992).doi:10.1103/PhysRevLett.69.2881
- M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 10th anniversary ed., Cambridge University Press (2010), §2.3 (superdense coding), §12.1.1 (the Holevo bound).doi:10.1017/CBO9780511976667
- A. S. Holevo, Bounds for the quantity of information transmitted by a quantum communication channel, Problemy Peredachi Informatsii 9(3), 3–11 (1973); English translation: Problems of Information Transmission 9, 177–183 (1973).
Hands-on labs
Send the message 11 with one qubit
1 step · auto-gradedOpen labAlice (qubit ) and Bob (qubit ) share , prepared by a locked . Encode the two-bit message with Pauli gates on Alice's qubit only, then decode with the inverse Bell circuit so that the register ends in . The grader checks the joint distribution and each bit separately, so it can tell which of the two bits went wrong.