Hands-on lab · 2 steps
Teleport a qubit
Teleport the state from Alice's qubit to Bob's qubit through the pre-shared pair . First implement the protocol with the corrections moved before measurement (principle of deferred measurement), then with real mid-circuit measurements and classically conditioned corrections. The grader compares Bob's reduced density matrix with in trace distance.
Step 1: Teleportation with deferred measurement
The first four operations are locked: and on qubit prepare , and , prepare the shared pair . Qubit is the most significant bit. Append at most four gates from , at most three of them two-qubit gates, and no measurements, so that Bob's qubit ends in . The target is Two checks are run. bob-state computes and passes when . alice-register computes and passes when it is within of (every entry ), the state the deferred protocol leaves on Alice's side.
Step 2: Teleportation with classical feed-forward
Same locked preparation, now with two classical bits . Alice measures qubit into and qubit into ; Bob may then apply and to qubit only as classically conditioned gates (a gate with a condition such as "execute if "). The budget is at most four gates from , measurements not counted, and at most one two-qubit gate, so the quantum-controlled corrections of the deferred step are no longer available; and must both appear. The grader evaluates the circuit on the density-matrix backend, which sums all four measurement branches exactly: . The check bob-state passes when .