Superdense coding: two bits in one qubit
With a shared Bell pair, sending one qubit can carry two classical bits.
Intermediate · 2 qubits · 6 gates · 2 two-qubit · depth 6 · reviewed November 2026
Open in the Circuit BuilderWhat is happening
Alice and Bob share a Bell pair. Alice applies Z, X, both or neither to her half, choosing one of four messages, and sends her qubit to Bob. Bob undoes the entanglement with a CNOT and an H and reads two bits.
In this circuit Alice applies Z then X, which encodes the message 11. The mapping is: nothing for 00, X for 01, Z for 10, and Z then X for 11. The sender transmits only one qubit, but the shared entanglement was prepared in advance.
Step by step
1. Share a Bell pair
H then CNOT creates (|00⟩ + |11⟩)/√2.
2. Alice encodes
Z and X on her qubit turn the shared state into another Bell state.
3. Bob decodes
CNOT then H maps each Bell state back to a distinct basis state, which he measures.
Expected result
|11⟩ with 100% probability, the message Alice encoded.
Qubit 0 is the leftmost bit. In Qiskit, bitstrings are printed in the reverse order.
Qiskit code
from qiskit import QuantumCircuit from math import pi qc = QuantumCircuit(2, 2) qc.h(0) qc.barrier() qc.cx(0, 1) qc.barrier() qc.z(0) qc.barrier() qc.x(0) qc.barrier() qc.cx(0, 1) qc.barrier() qc.h(0) qc.barrier() qc.measure(0, 0) qc.measure(1, 1) # Qiskit prints bit strings with qubit 0 on the RIGHT; this site writes qubit 0 on the LEFT.
Try this
- Remove the X to send 10.
- Remove both Alice gates to send 00.
- Use only X to send 01.
Gates used
Related reading
Questions
Does superdense coding beat the limits of communication?
No. It uses previously shared entanglement as a resource, and the total resource count is consistent with known limits.