Full Teleportation Circuit
Quantum teleportation is the protocol that transfers an unknown qubit state from one party to another using a pre-shared Bell pair and two classical bits. All the prerequisite pieces — Bell pair preparation, Bell-basis measurement, and classical corrections — are now in place. This lesson assembles them into a single three-qubit circuit and verifies the result by simulation.
The three-qubit layout
Three qubits take the following roles:
| Qubit | Party | Role | |-------|-------|------| | 0 | Alice | Message qubit to teleport | | 1 | Alice | Her half of the Bell pair | | 2 | Bob | His half of the Bell pair |
Before the protocol begins Alice and Bob have already shared the Bell pair on qubits 1 and 2. Alice wants to send the unknown state on qubit 0 without transmitting the qubit itself.
Five-step assembly
For this exercise the message qubit is prepared in so the simulator has a definite state to compare. The full circuit proceeds in five ordered steps.
Step 1 — Prepare the message. Apply to qubit 0. This puts the message in , the state that will be teleported to Bob.
Step 2 — Create the Bell pair. Apply to qubit 1 and then . This entangles qubits 1 and 2 into .
Step 3 — Bell-basis rotation. Apply then . Taken together these two gates rotate Alice's pair from the Bell basis back into the computational basis, exactly the reverse of the Bell-pair creation. This is the circuit implementation of a Bell measurement.
Step 4 — Deferred X correction. Apply . In a real device this gate would be applied only when a classical measurement of qubit 1 returned 1. By the deferred measurement principle (Nielsen & Chuang §4.4), replacing every classically-controlled gate with its quantum-controlled counterpart and delaying the measurements until the end of the circuit gives an identical result. The simulator uses this unitary form so the full state vector is available for grading.
Step 5 — Deferred Z correction. Apply . Analogously, this substitutes for the classically-controlled gate that would be applied when qubit 0 measured as 1.
After all five steps, qubit 2 carries the state that qubit 0 started in, while qubits 0 and 1 are each in the uniform superposition .
Why it works
Write the initial three-qubit state (before any gates) as . Tracking the state through each step and using linearity:
Each of the four Bell branches carries the same target state on qubit 2, and the corrections undo the and operators that arose in the intermediate steps. The final state is a product: qubits 0 and 1 are in and qubit 2 holds .
Try it
Build the five-step circuit below. The grader checks the full three-qubit state vector; every amplitude must match the reference solution.
After running, inspect the Amplitudes panel. You should see all eight basis states — , , , , , , , — each with real amplitude . This is the product state , confirming that qubit 2 received the message qubit's state exactly.
Sign in on the full site to ask questions and join the discussion.