Documentation

CslibFrontier.Computability.Circuit.Quantum.SuperdenseCoding

Superdense coding #

Superdense coding Bennett, Wiesner; de Wolf, Chapter 1, Exercise 14. Alice and Bob share a Bell state |Φ⁺⟩ = (|00⟩ + |11⟩)/√2, with Alice's half first. To send two classical bits (a, b), Alice applies X^b Z^a to her half (Cslib.Quantum.superdenseEncoding): first Z if a = 1, then X if b = 1. She sends her qubit to Bob, who applies a CNOT (Alice's qubit the control) and then a Hadamard on Alice's qubit (Cslib.Quantum.superdenseDecoding). The result is the basis state (-1)^{a b} |a, b⟩ (Cslib.Quantum.superdenseState_eq), so Bob's computational-basis measurement returns (a, b) with probability 1 (Cslib.Quantum.superdense_coding).

De Wolf's exercise has Alice apply X if a = 1 and then Z if b = 1, that is Z^b X^a. With that encoding the same decoding returns (b, a). The encoding here is chosen so that Bob reads (a, b) in order.

Main definitions #

Main results #

References #

Alice's encoding X^b Z^a of two bits in superdense coding: first Z if a = 1, then X if b = 1.

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

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

Bob's decoding in superdense coding: a CNOT controlled by Alice's qubit, then a Hadamard on Alice's qubit.

The state Bob measures in superdense coding of (a, b): the Bell state after Alice's encoding on her half and Bob's decoding.

Bob's state in superdense coding of (a, b) is the basis state (-1)^{a b} |a, b⟩.

Superdense coding Bennett, Wiesner; de Wolf, Chapter 1, Exercise 14: after Alice encodes (a, b) into her half of a shared Bell state and sends it, Bob's decoding and computational-basis measurement return (a, b) with probability 1.