Documentation

CslibFrontier.Crypto.Protocols.Quantum.KeyLowerBound

The 2n-bit key lower bound for private quantum channels #

Ambainis, Mosca, Tapp, and de Wolf prove that the 2n-bit quantum one-time pad (Cslib.Crypto.Protocols.Quantum.OneTimePad) is optimal: any private quantum channel (PQC, Definition 3.1) that hides every n-qubit state—even if restricted to unentangled product states, and even when encryption may append an arbitrary finite ancilla in a fixed mixed state ρa before applying key-dependent unitaries U k—requires at least 2n bits of Shannon key entropy (two_mul_card_le_entropy_of_unentangled, Corollary 5.4; two_mul_card_le_entropy_of_pureStates, Corollary 5.5) and hence at least 4ⁿ keys in the key support (four_pow_card_le_of_unentangled).

The proof follows Section 5 and Appendix A of Ambainis, Mosca, Tapp, and de Wolf:

  1. Quantum Shannon bound for classical basis messages (logb_card_le_entropy_of_basis, Theorem 5.3): if a PQC with ancilla ρa maps every computational-basis state |x⟩⟨x| on ℂ^ι to the same state ρ₀, then S(ρ₀) ≤ H(p) + S(ρa) (by holevoInformation_le_entropy applied to a single basis input) while log₂ |ι| + S(ρa) ≤ S(ρ₀) (by holevoInformation_nonneg applied to the maximally mixed input), giving log₂ |ι| ≤ H(p).
  2. Off-diagonal annihilation on product states (encryptAvg_single_eq_zero_of_ne, Lemma 4.4): by strong induction on the Hamming distance d between x ≠ y in α → Bool and discrete Fourier cancellation over 2^d single-qubit phase combinations, hiding all unentangled n-qubit states forces encryptAvg p U ρa (|x⟩⟨y|) = 0 for x ≠ y.
  3. Bell-basis / superdense reduction (exists_basis_pqc_of_unentangled, Theorem 5.2): encoding (a, b) ∈ (α → Bool) × (α → Bool) into the generalized Bell state (X^a Z^b ⊗ 1) |Φ⟩ and encrypting only the second n-qubit register with (p, U, ρa) maps every basis pair (a, b) to (1 / 2ⁿ) ⊗ ρ₀ by step 2, yielding a classical-basis PQC on 4ⁿ basis states with the same key distribution p. Applying step 1 gives 2n ≤ H(p).

Main definitions #

Main results #

References #

noncomputable def Cslib.Crypto.Protocols.Quantum.encryptAvg {K : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype K] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (p : PMF K) (U : K → ↥(Matrix.unitaryGroup (ι × κ) ℂ)) (ρa : Matrix κ κ ℂ) (M : Matrix ι ι ℂ) :
Matrix (ι × κ) (ι × κ) ℂ

The key-averaged encryption map M ↦ ∑_k p(k) U_k (M ⊗ ρa) U_kᴴ of a private quantum channel with key distribution p, encryption unitaries U, and ancilla state ρa (Ambainis, Mosca, Tapp, de Wolf, Definition 3.1).

structure Cslib.Crypto.Protocols.Quantum.IsPrivateQuantumChannel {K : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype K] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : Set (EuclideanSpace ℂ ι)) (p : PMF K) (U : K → ↥(Matrix.unitaryGroup (ι × κ) ℂ)) (ρa : Matrix κ κ ℂ) (ρ₀ : Matrix (ι × κ) (ι × κ) ℂ) :

A Private Quantum Channel (PQC) hiding a set S of pure states on ℂ^ι using key distribution p : PMF K, encryption unitaries U : K → unitaryGroup (ι × κ) ℂ, ancilla density matrix ρa, and eavesdropper state ρ₀ (Ambainis, Mosca, Tapp, de Wolf, Definition 3.1, generalized from Fin N keys and qubit spaces to arbitrary finite key and register types).

theorem Cslib.Crypto.Protocols.Quantum.IsPrivateQuantumChannel.mono {K : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype K] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] {S T : Set (EuclideanSpace ℂ ι)} (hST : S ⊆ T) {p : PMF K} {U : K → ↥(Matrix.unitaryGroup (ι × κ) ℂ)} {ρa : Matrix κ κ ℂ} {ρ₀ : Matrix (ι × κ) (ι × κ) ℂ} (h : IsPrivateQuantumChannel T p U ρa ρ₀) :
IsPrivateQuantumChannel S p U ρa ρ₀

Restricting the plaintext set preserves the private-quantum-channel property.

theorem Cslib.Crypto.Protocols.Quantum.logb_card_le_entropy_of_basis {K : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype K] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [Nonempty ι] {p : PMF K} {U : K → ↥(Matrix.unitaryGroup (ι × κ) ℂ)} {ρa : Matrix κ κ ℂ} {ρ₀ : Matrix (ι × κ) (ι × κ) ℂ} (h : IsPrivateQuantumChannel (Set.range Quantum.ket) p U ρa ρ₀) :

Quantum Shannon lower bound for classical basis messages (Ambainis, Mosca, Tapp, de Wolf, Theorem 5.3): any private quantum channel (with arbitrary ancilla ρa) that hides all computational-basis states {|x⟩ | x : ι} of a nonempty register ℂ^ι requires Shannon key entropy log₂ |ι| ≤ H(p).

Unentangled n-qubit states and the 2n-bit lower bound #

The set ℋ₂^{⊗ n} of unentangled n-qubit pure states (n = |α|): unit vectors on ℂ^{α → Bool} whose amplitudes factor as ∏ i, φ_i(u_i) for single-qubit unit vectors φ_i (Ambainis, Mosca, Tapp, de Wolf, Section 4 and Corollary 5.4).

@[simp]
theorem Cslib.Crypto.Protocols.Quantum.mem_unentangledPureStates {α : Type u_2} [Fintype α] (ψ : EuclideanSpace ℂ (α → Bool)) :
ψ ∈ unentangledPureStates α ↔ ∃ (φ : α → EuclideanSpace ℂ Bool), (∀ (i : α), ‖φ i‖ = 1) ∧ ∀ (u : α → Bool), ψ.ofLp u = ∏ i : α, (φ i).ofLp (u i)

Every unentangled product state has unit Euclidean norm.

Computational-basis states are unentangled product states.

theorem Cslib.Crypto.Protocols.Quantum.encryptAvg_single_eq_zero_of_ne {K : Type u_1} {α : Type u_2} {κ : Type u_3} [Fintype K] [Fintype α] [DecidableEq α] [Fintype κ] [DecidableEq κ] {p : PMF K} {U : K → ↥(Matrix.unitaryGroup ((α → Bool) × κ) ℂ)} {ρa : Matrix κ κ ℂ} {ρ₀ : Matrix ((α → Bool) × κ) ((α → Bool) × κ) ℂ} (h : IsPrivateQuantumChannel (unentangledPureStates α) p U ρa ρ₀) {x y : α → Bool} (hxy : x ≠ y) :
encryptAvg p U ρa (Matrix.single x y 1) = 0

Off-diagonal annihilation (Ambainis, Mosca, Tapp, de Wolf, Lemma 4.4): if a private quantum channel hides every unentangled n-qubit pure state, then it annihilates every off-diagonal computational-basis unit |x⟩⟨y| (x ≠ y).

theorem Cslib.Crypto.Protocols.Quantum.exists_basis_pqc_of_unentangled {K : Type u_1} {α : Type u_2} {κ : Type u_3} [Fintype K] [Fintype α] [DecidableEq α] [Fintype κ] [DecidableEq κ] {p : PMF K} {U : K → ↥(Matrix.unitaryGroup ((α → Bool) × κ) ℂ)} {ρa : Matrix κ κ ℂ} {ρ₀ : Matrix ((α → Bool) × κ) ((α → Bool) × κ) ℂ} (h : IsPrivateQuantumChannel (unentangledPureStates α) p U ρa ρ₀) :
∃ (U' : K → ↥(Matrix.unitaryGroup (((α → Bool) × (α → Bool)) × κ) ℂ)) (ρ₀' : Matrix (((α → Bool) × (α → Bool)) × κ) (((α → Bool) × (α → Bool)) × κ) ℂ), IsPrivateQuantumChannel (Set.range Quantum.ket) p U' ρa ρ₀'

Bell-basis reduction (Ambainis, Mosca, Tapp, de Wolf, Theorem 5.2): any private quantum channel hiding all unentangled n-qubit pure states with key distribution p and ancilla ρa yields a private quantum channel hiding all 4ⁿ computational basis states of ((α → Bool) × (α → Bool)) with the same key distribution p and ancilla ρa.

theorem Cslib.Crypto.Protocols.Quantum.two_mul_card_le_entropy_of_unentangled {K : Type u_1} {α : Type u_2} {κ : Type u_3} [Fintype K] [Fintype α] [DecidableEq α] [Fintype κ] [DecidableEq κ] {p : PMF K} {U : K → ↥(Matrix.unitaryGroup ((α → Bool) × κ) ℂ)} {ρa : Matrix κ κ ℂ} {ρ₀ : Matrix ((α → Bool) × κ) ((α → Bool) × κ) ℂ} (h : IsPrivateQuantumChannel (unentangledPureStates α) p U ρa ρ₀) :

Key-entropy lower bound for unentangled n-qubit states (Ambainis, Mosca, Tapp, de Wolf, Corollary 5.4): any private quantum channel hiding all unentangled n-qubit pure states (n = |α|), even with an arbitrary finite ancilla ρa, requires at least 2n bits of Shannon key entropy.

theorem Cslib.Crypto.Protocols.Quantum.four_pow_card_le_of_unentangled {K : Type u_1} {α : Type u_2} {κ : Type u_3} [Fintype K] [Fintype α] [DecidableEq α] [Fintype κ] [DecidableEq κ] {p : PMF K} {U : K → ↥(Matrix.unitaryGroup ((α → Bool) × κ) ℂ)} {ρa : Matrix κ κ ℂ} {ρ₀ : Matrix ((α → Bool) × κ) ((α → Bool) × κ) ℂ} (h : IsPrivateQuantumChannel (unentangledPureStates α) p U ρa ρ₀) {s : Finset K} (hs : p.support ⊆ ↑s) :

Key-count lower bound for unentangled n-qubit states (Ambainis, Mosca, Tapp, de Wolf, Corollary 5.4): if p is supported on s : Finset K, any private quantum channel hiding all unentangled n-qubit pure states satisfies 4ⁿ ≤ |s|.

theorem Cslib.Crypto.Protocols.Quantum.two_mul_card_le_entropy_of_pureStates {K : Type u_1} {α : Type u_2} {κ : Type u_3} [Fintype K] [Fintype α] [DecidableEq α] [Fintype κ] [DecidableEq κ] {p : PMF K} {U : K → ↥(Matrix.unitaryGroup ((α → Bool) × κ) ℂ)} {ρa : Matrix κ κ ℂ} {ρ₀ : Matrix ((α → Bool) × κ) ((α → Bool) × κ) ℂ} (h : IsPrivateQuantumChannel {ψ : EuclideanSpace ℂ (α → Bool) | ‖ψ‖ = 1} p U ρa ρ₀) :

Key-entropy lower bound for all n-qubit pure states (Ambainis, Mosca, Tapp, de Wolf, Corollary 5.5): any private quantum channel hiding all unit pure n-qubit states (with arbitrary ancilla ρa) requires at least 2n bits of Shannon key entropy, matching Cslib.Crypto.Protocols.Quantum.OneTimePad.

theorem Cslib.Crypto.Protocols.Quantum.two_mul_card_le_entropy_noAncilla {K : Type u_1} {α : Type u_2} [Fintype K] [Fintype α] [DecidableEq α] (p : PMF K) (U : K → ↥(Matrix.unitaryGroup (α → Bool) ℂ)) (ρ₀ : OneTimePad.Op α) (h : ∀ (ψ : EuclideanSpace ℂ (α → Bool)), ‖ψ‖ = 1 → ∑ k : K, (p k).toReal • (↑(U k) * Quantum.pureState ψ * (↑(U k)).conjTranspose) = ρ₀) :

Ancilla-free 2n-bit key-entropy lower bound (Ambainis, Mosca, Tapp, de Wolf, Theorem 5.1 / Corollary 5.5 without ancilla): if unitaries U : K → unitaryGroup (α → Bool) ℂ under key law p : PMF K map every unit pure n-qubit state to the same ciphertext state ρ₀, then 2n ≤ H(p).