Project 09 · Ladder 3 · Advanced
Quantum Teleportation: move a qubit with one Bell pair and two bits
How it works
- Alice has a qubit in a state (the arrow). She and Bob share an entangled pair.
- Alice measures. Her state is gone, and the entangled pair is used up.
- Two ordinary bits travel to Bob.
- Bob uses them to fix his qubit, and Alice's state appears on it: fidelity 1.000.
Teleport a qubit tonight. Not a photo of it, not a description of it: the quantum state itself, moved onto a different qubit by one shared Bell pair and two ordinary bits. Then flip the trick round and send two bits by moving a single qubit.
- Level
- Advanced
- Hours
- 5 to 7
- Automated tests
- 23
- Ships to
- GitHub
What you build
Quantum Teleportation in Python and Qiskit
In 1993 six physicists showed that an unknown quantum state can be sent this way. In 1997 Anton Zeilinger's group did it with photons, and teleportation is named in the press release for his 2022 Nobel Prize in Physics. In 2017 a team led by Jian-Wei Pan teleported qubits from a ground station to a satellite in orbit, up to 1,400 km away.
You build the protocol the way modern quantum computers run it: a dynamic circuit that measures two qubits halfway through, sends the bits forward and applies the right correction live, shot by shot. You verify it on random states nobody chose, prove that Bob's qubit holds no message until the two bits arrive, send all four 2-bit messages with superdense coding, and find the noise level where teleportation stops beating every classical trick.
The quantum ideas inside
- Bell pairs
- Entanglement
- Dynamic circuits
- Fidelity
- Superdense coding
Warm up free: the Bell state tutorial in Qiskit uses the same ideas, in one script you can run tonight.
Real output · Project 09Qiskit Aer simulator
python quantum_teleport.py --seed 18 --plot teleport_results.png
Alice's secret state: theta=0.880, phi=4.156, Bloch vector (-0.407, -0.654, +0.637)
== Classical baseline: classical bits only ==
One copy, measured and sent as 1 bit: average fidelity 0.665 over 2,000 random states (best possible: 0.667)
10 copies per axis: worst Bloch error 0.346
100 copies per axis: worst Bloch error 0.097
1,000 copies per axis: worst Bloch error 0.032
10,000 copies per axis: worst Bloch error 0.004
For +/-0.01 on every axis: 38,416 copies per axis, 115,248 in total
== Quantum teleportation ==
Bell pair, 1,000 shots: {'00': 500, '11': 500}
Your teleporter (Bob measures Z):
(your circuit drawing: Section 7, Step 2 shows it)
First teleport: Alice sends |+>, Bob measures X. Counts (bob alice): {'0 01': 249, '0 11': 250, '0 00': 232, '0 10': 269}
Bob's average: +1.000 (+1.000 means |+> arrived every time)
Bob's Bloch vector (2,000 shots per axis): (-0.415, -0.673, +0.613)
Fidelity: 1.000 (classical limit 0.667)
Deferred-measurement teleporter: fidelity 0.996
Exact check (statevector, no sampling): fidelity 1.000000
== Superdense coding: 2 bits on 1 qubit ==
Alice sends 00, Bob decodes {'00': 1000}
Alice sends 01, Bob decodes {'01': 1000}
Alice sends 10, Bob decodes {'10': 1000}
Alice sends 11, Bob decodes {'11': 1000}
== No-signalling check ==
Bob's qubit before the two bits arrive: (+0.000, +0.000, +0.000), length 0.000 (a 50/50 blur: no message yet)
Chart saved to teleport_results.png
By the end
What you walk away with
- a teleporter with real mid-circuit measurement and live corrections (
if_test), plus a deferred-measurement twin you can check exactly - a classical baseline that shows what bits alone can and can't do with a qubit
- superdense coding that sends all four 2-bit messages on one qubit
teleport_results.png: Alice's state against Bob's for 12 random states, fidelity against the classical limit, and the superdense decoding matrixnoise_results.png: how good a Bell pair must be before teleportation is worth it (Section 11)- 23 tests, including a no-signalling test and exact statevector checks
- a public GitHub repo, a portfolio paragraph and a LinkedIn post
Where it sits
Ladder 3: Advanced
AdvancedLadder 3
Shor's Algorithm
Break RSA in miniature.
Quantum Teleportation
Teleport a qubit, then send two bits by moving one.
Quantum Error Correction
Take a 5% error rate below 1%.
Your first circuit is 10 minutes away
Stop watching quantum. Start shipping it.
$0 today. 7 days free, then $7.99 a week or $190 a year. Cancel any time.