Documentation

CslibFrontier.Computability.Circuit.Quantum.Teleportation

Quantum teleportation #

Teleportation Bennett et al.; de Wolf, Section 1.5. Alice holds an unknown qubit ψ and shares a Bell state |Φ⁺⟩ = (|00⟩ + |11⟩)/√2 with Bob. The three qubits are indexed by (Bool × Bool) × Bool: Alice's input qubit and her half of the Bell state, then Bob's half. The protocol:

  1. Alice applies a CNOT to her two qubits (her input is the control), then a Hadamard to her input qubit (Cslib.Quantum.teleportUnitary). The joint state is ½ ∑_{a,b} |a, b⟩ ⊗ X^b Z^a ψ (Cslib.Quantum.teleportState_apply).
  2. Alice measures her two qubits in the computational basis. Each outcome (a, b) has probability 1/4, whatever ψ is (Cslib.Quantum.measure_teleportState_map_fst), and leaves Bob's qubit in the post-measurement state X^b Z^a ψ (Cslib.Quantum.postMeasure).
  3. Alice sends (a, b) to Bob, who applies the correction Z^a X^b (Cslib.Quantum.teleportCorrection): first X if b = 1, then Z if a = 1. He holds ψ (Cslib.Quantum.teleportCorrection_postMeasure).

Cslib.Quantum.teleportation states the single-qubit result. The measurement is the computational-basis measurement of CslibFrontier/Foundations/Quantum/Measurement.lean, read on Alice's qubits through the marginal PMF.map Prod.fst. Bob's corrected state is the corresponding post-measurement state of CslibFrontier/Foundations/Quantum/Bipartite.lean.

By linearity, the same protocol teleports one half of an entangled state (Cslib.Quantum.teleportation_entangled): when a reference system with finite basis ι and Alice's input qubit start in any joint unit pure state Ψ ∈ ℂ^{ι × Bool}, Alice's outcome (a, b) is still uniformly distributed on Bool × Bool (leaking nothing about Ψ or its correlations with the reference), and applying I_ι ⊗ Z^a X^b (onSecond (teleportCorrection a b)) on the reference and Bob's qubit recovers the exact joint state Ψ. Taking ι = Bool and Ψ = bell gives entanglement swapping: starting from two independent Bell pairs bell ⊗ bell shared by Charlie–Alice and Alice–Bob, Alice's Bell measurement and Bob's local correction leave Charlie and Bob sharing bell without ever having interacted.

Scope: pure states with an arbitrary finite-dimensional reference register. Mixed-state channel formulations of teleportation are not formalized here.

Main definitions #

Main results #

References #

The initial state ψ ⊗ Φ⁺ of teleportation, indexed by ((Alice's input, Alice's Bell half), Bob's Bell half).

noncomputable def Cslib.Quantum.teleportUnitary {κ : Type u_1} [Fintype κ] [DecidableEq κ] :

Alice's unitary in teleportation, acting on her two qubits and trivially on any remaining register κ: a CNOT on her two qubits, controlled by her input qubit, followed by a Hadamard on her input qubit.

The joint state of teleportation before Alice's measurement.

theorem Cslib.Quantum.teleportState_apply (ψ : EuclideanSpace ℂ Bool) (a b c : Bool) :
(teleportState ψ).ofLp ((a, b), c) = 1 / 2 * ((if (a && (b ^^ c)) = true then -1 else 1) * ψ.ofLp (b ^^ c))

The joint state before Alice's measurement is ½ ∑_{a,b} |a, b⟩ ⊗ X^b Z^a ψ: its amplitude at |a, b, c⟩ is ½ (-1)^{a (b ⊕ c)} ψ_{b ⊕ c} de Wolf, Section 1.5.

Bob's correction Z^a X^b in teleportation: first X if b = 1, then Z if a = 1.

theorem Cslib.Quantum.teleportCorrection_mulVec (a b : Bool) (v : Bool → ℂ) (c : Bool) :
(↑(teleportCorrection a b)).mulVec v c = (if (a && c) = true then -1 else 1) * v (c ^^ b)

Bob's correction maps v to ((-1)^{a c} v_{c ⊕ b})_c.

Bob's correction maps the unnormalized post-measurement state of outcome (a, b) to ψ/2.

In teleportation of a unit qubit, each outcome (a, b) of Alice's measurement has probability 1/4.

In teleportation of a unit qubit, Alice's measurement outcome is uniform on Bool × Bool, independently of the teleported qubit.

After outcome (a, b) of Alice's measurement, Bob's correction Z^a X^b turns his post-measurement qubit into the teleported qubit ψ.

Quantum teleportation Bennett et al.; de Wolf, Section 1.5. Alice holds a unit qubit ψ and shares the Bell state with Bob. She applies a CNOT and then a Hadamard to her two qubits and measures them. Her outcome (a, b) is uniformly distributed, and for every outcome Bob's correction Z^a X^b turns his post-measurement qubit into ψ.

Teleporting one half of an entangled state #

The initial four-register state of entangled teleportation: a bipartite pure state Ψ ∈ ℂ^{ι × Bool} shared between a reference system ι and Alice's input qubit, tensored with the Bell state Φ⁺ shared by Alice and Bob, regrouped as ((Alice's input, Alice's Bell half), (reference, Bob's Bell half)).

theorem Cslib.Quantum.teleportEntangledInput_apply {ι : Type u_1} [Fintype ι] (Ψ : EuclideanSpace ℂ (ι × Bool)) (a b : Bool) (r : ι) (c : Bool) :

The joint state of entangled teleportation before Alice's measurement, after Alice applies teleportUnitary to her two qubits while the reference register ι and Bob's qubit stay fixed.

theorem Cslib.Quantum.teleportEntangledState_apply {ι : Type u_1} [Fintype ι] [DecidableEq ι] (Ψ : EuclideanSpace ℂ (ι × Bool)) (a b : Bool) (r : ι) (c : Bool) :
(teleportEntangledState Ψ).ofLp ((a, b), r, c) = 1 / 2 * ((if (a && (b ^^ c)) = true then -1 else 1) * Ψ.ofLp (r, b ^^ c))

Before Alice measures, the amplitude at ((a, b), (r, c)) is ½ (-1)^{a (b ⊕ c)} Ψ_{(r, b ⊕ c)}: conditioned on (a, b), the reference and Bob's qubit are in (I_ι ⊗ X^b Z^a) Ψ.

Acting as I_ι on the reference and as teleportCorrection a b on Bob's qubit maps the unnormalized conditional state of outcome (a, b) to Ψ / 2.

When teleporting one half of a unit bipartite state Ψ ∈ ℂ^{ι × Bool}, each outcome (a, b) of Alice's measurement has probability 1/4.

When teleporting one half of a unit bipartite state Ψ ∈ ℂ^{ι × Bool}, Alice's measurement outcome is uniform on Bool × Bool, independently of Ψ and its entanglement with ι.

After outcome (a, b) of Alice's measurement, Bob's local correction I_ι ⊗ Z^a X^b restores the joint state of the reference system and Bob's qubit to Ψ.

Teleportation of one half of an entangled state Bennett et al.; de Wolf, Section 1.5. A reference system ι and Alice's input qubit start in a unit pure state Ψ ∈ ℂ^{ι × Bool}, and Alice and Bob share the Bell state Φ⁺. Alice applies CNOT and Hadamard to her two qubits and measures them: her outcome (a, b) is uniformly distributed on Bool × Bool, and for every outcome Bob's local correction I_ι ⊗ Z^a X^b leaves the reference and Bob's qubit in Ψ. At ι = Bool and Ψ = bell, this is entanglement swapping.