Quantum teleportation (deferred measurement)
Move an unknown qubit state from q0 to q2 using entanglement and two controlled corrections.
Advanced · 3 qubits · 7 gates · 4 two-qubit · depth 6 · reviewed November 2026
Open in the Circuit BuilderWhat is happening
Qubit q0 holds the state to be sent, prepared here with a rotation. Qubits q1 and q2 are made into a Bell pair. A Bell-basis measurement of q0 and q1 would normally give two classical bits that tell the receiver which correction to apply to q2.
Here the measurement is replaced by controlled gates, a trick called deferred measurement. The CNOT from q1 and the CZ from q0 apply the correction coherently, so q2 ends in the original state of q0 without any mid-circuit measurement. The Qubits tab should show q2 with the same Bloch vector that q0 started with.
Step by step
1. Prepare the message
RY(π/3) puts q0 in cos(π/6)|0⟩ + sin(π/6)|1⟩. H on q1 starts the Bell pair.
2. Finish the Bell pair
CNOT from q1 to q2 entangles them.
3. Bell-basis rotation
CNOT from q0 to q1 and H on q0 prepare the Bell-state measurement.
4. Corrections
CNOT from q1 to q2 fixes a possible bit flip, and CZ from q0 to q2 fixes a possible phase flip.
Expected result
Open the Qubits tab: q2 has Bloch x ≈ 0.866, z ≈ 0.5 and length 1, the same as q0 had before the circuit. q0 and q1 end up in an unrelated uniform state.
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(3, 3) qc.ry(pi/3, 0) qc.h(1) qc.barrier() qc.cx(1, 2) qc.barrier() qc.cx(0, 1) qc.barrier() qc.h(0) qc.barrier() qc.cx(1, 2) qc.barrier() qc.cz(0, 2) qc.barrier() qc.measure(0, 0) qc.measure(1, 1) qc.measure(2, 2) # Qiskit prints bit strings with qubit 0 on the RIGHT; this site writes qubit 0 on the LEFT.
Try this
- Change the RY angle and check that q2 follows.
- Delete the CZ and see how the phase of q2 goes wrong.
- Turn on noise and watch the Bloch length of q2 fall.
Common misunderstanding
Myth: Teleportation moves matter or sends information faster than light.
Fact: Only a quantum state is transferred, and in the standard protocol two classical bits must travel to the receiver by ordinary means. Here the classical step is replaced by controlled gates within one machine.
Gates used
Related reading
Questions
What is deferred measurement?
A rule that a measurement followed by a classically controlled gate can be replaced by a controlled quantum gate followed by a measurement at the end. It lets us simulate the protocol without mid-circuit measurement.