Communication Labs · TeleportationAvailable
Move a qubit with one Bell pair and two classical bits.
Choose any state for Alice, step through the protocol, and see why Bob needs Alice's two bits: with them his qubit is exactly |ψ⟩ in every branch; without them it is a coin flip.
State to teleport
Bob applies X if c1 = 1 and Z if c0 = 1. In every branch his qubit is now exactly |ψ⟩.
Input |ψ⟩ (Alice, q0)
Loading 3D view…
Bob's qubit (q2), averaged over Alice's outcomes
Loading 3D view…
r = (0.612, 0.612, 0.500) · |r| = 1.000 · F = 1.000
Alice's outcomes and Bob's qubit
Each row is one exact measurement branch from the simulation (record c1c0).
| c1 c0 | p | Bob before correction | Correction | Bob after | Fidelity with |ψ⟩ |
|---|---|---|---|---|---|
| 0 0 | 1/4 | none | 1.0000 | ||
| 0 1 | 1/4 | Z | 1.0000 | ||
| 1 0 | 1/4 | X | 1.0000 | ||
| 1 1 | 1/4 | X then Z | 1.0000 |
Average fidelity = 1.0000
Bob's states may differ from |ψ⟩ by a global phase (e.g. −|ψ⟩); global phase is unobservable, and fidelity accounts for it.
Circuit (generated Qiskit code)
from qiskit import QuantumCircuit
from math import pi
qc = QuantumCircuit(3, 2)
qc.ry(pi/3, 0)
qc.p(pi/4, 0)
qc.barrier()
qc.h(1)
qc.cx(1, 2)
qc.barrier()
qc.cx(0, 1)
qc.h(0)
qc.measure(0, 0)
qc.measure(1, 1)
with qc.if_test((qc.clbits[1], 1)):
qc.x(2)
with qc.if_test((qc.clbits[0], 1)):
qc.z(2)
Open in Studio →Model and assumptions
- • Ideal gates, a perfect |Φ+⟩ pair, perfect measurements, a lossless classical channel.
- • The classical bits are modelled as arriving instantly; physically they travel at most at light speed, so teleportation cannot send information faster than light.
- • Alice's q0 ends in |0⟩ or |1⟩: the original state is destroyed, consistent with the no-cloning theorem.
- • Every number is computed by simulating the circuit; the protocol uses mid-circuit measurement and classically controlled gates (QCIR 0.3).
Reference: C. H. Bennett, G. Brassard, C. Crépeau, R. Jozsa, A. Peres, W. K. Wootters, Phys. Rev. Lett. 70, 1895 (1993).