Classical Correction
After Alice performs her Bell-basis measurement, she holds two classical bits — call them (from the message qubit) and (from her half of the Bell pair). She sends these two bits to Bob over an ordinary classical channel. Bob's qubit is in some state that depends on the measurement outcome, and he must apply a classical correction to recover the exact quantum state Alice wanted to teleport.
Why corrections are needed
Tracing through the algebra shows that after Alice's measurement the four possible outcomes each leave Bob's qubit in a different state:
| | | Bob's qubit | Correction | |:-----:|:-----:|:-----------:|:----------:| | 0 | 0 | | none | | 0 | 1 | | apply | | 1 | 0 | | apply | | 1 | 1 | | apply then |
In every case, applying the stated gate(s) restores Bob's qubit to the original state . Without the classical bits there is no way to know which correction to apply, which is why teleportation requires a classical side-channel and cannot transmit information faster than light.
The deferred measurement principle
Simulating the correction on a state-vector simulator is simplest via the deferred measurement principle: instead of measuring Alice's qubits and then conditionally applying and , we replace the classical conditioning with controlled quantum gates and postpone the measurement to the very end (or omit it entirely when we only care about the state vector).
Concretely, the two corrections become:
Here and play the role of the classical bits and : the CNOT applies to Bob's qubit whenever , and the CZ applies a phase whenever . The principle guarantees this produces the same final qubit state as the classically-conditioned version.
Putting it all together
The full teleportation circuit for a message qubit on , with the Bell pair on (Alice) and (Bob), runs in this order:
- Prepare the Bell pair: , .
- Bell measurement prep: , .
- Classical corrections: , .
After step 3, qubit holds exactly , regardless of which of the four measurement outcomes would have occurred.
Try it
The starter code prepares the message on qubit 0, creates the Bell pair on qubits 1 and 2, and applies the Bell-measurement preparation gates. Your job is to add the two classical correction gates so that qubit 2 ends up in state .
After running, look at the state vector: qubit 2 should have amplitude on and on in every computational basis state, while qubits 0 and 1 are each in the equal superposition , giving each of the four two-bit outcomes equal probability when measured. Teleportation is complete.
Sign in on the full site to ask questions and join the discussion.