Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Abstract and §7: optimal private quantum one-time pad

Open
QAlgorithms.Papers.Independent.Advance50.P18.optimal_private_quantum_channel

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

For every nonnegative integer nnn, the quantum one-time pad encrypts every nnn-qubit state using a shared classical key of entropy exactly 2n2n2n bits. Its encoder is chosen independently of the message: select x∈{0,1,2,3}nx\in\{0,1,2,3\}^nx∈{0,1,2,3}n uniformly and conjugate by σˉx=σx1⊗⋯⊗σxn\bar\sigma_x=\sigma_{x_1}\otimes\cdots\otimes\sigma_{x_n}σˉx​=σx1​​⊗⋯⊗σxn​​. There is no ancilla, and for every density matrix ρ\rhoρ,

∑x2−2nσˉxρσˉx†=I2n/2n,H(p)=2n.\sum_x 2^{-2n}\bar\sigma_x\rho\bar\sigma_x^\dagger=I_{2^n}/2^n,\qquad H(p)=2n.x∑​2−2nσˉx​ρσˉx†​=I2n​/2n,H(p)=2n.

Conversely, let a private quantum channel for all unit nnn-qubit vectors use NNN keys with probabilities pip_ipi​, input-independent full-space unitaries, an arbitrary fixed mixed aaa-qubit ancilla, and any fixed full-output density. Then

H(p)≥2n,N≥22n.H(p)\ge 2n,\qquad N\ge 2^{2n}.H(p)≥2n,N≥22n.

Here H(p)=−∑ipilog⁡2piH(p)=-\sum_i p_i\log_2 p_iH(p)=−∑i​pi​log2​pi​, with 0log⁡20=00\log_2 0=00log2​0=0. The ancilla is independent of both input and key and is included in the transmitted system. Unitary inversion gives exact recovery. This combines the paper’s achieving scheme and its unrestricted lower bound.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P18
Formal statement
namespace QAlgorithms.Papers.Independent.Advance50.P18

open scoped ComplexConjugate

noncomputable section

variable {K I A : Type*} [Fintype K] [DecidableEq K]
  [Fintype I] [DecidableEq I] [Fintype A] [DecidableEq A]

/-- Abstract (PDF p.1), §7 (p.9), Theorem 4.1 (p.5) and Corollary 5.4 (p.8):
full tensor-Pauli encryption attains 2n bits without ancilla, including mixed inputs;
every exact PQC, with any finite mixed ancilla, requires at least 2n bits. -/
theorem optimal_private_quantum_channel (n : ℕ) :
    (∃ E : KeyedUnitaryEnsemble (Fin n → Fin 4) (Qubits n), E = fullPauli n ∧
      BarePQC (allPure (Qubits n)) E (sourceMixedIdentity (Qubits n)) ∧
      keyEntropy E.p = 2 * (n : ℝ) ∧
      ∀ rho : (Matrix (Qubits n) (Qubits n) ℂ), IsDensityMatrix rho →
        encrypt E rho = sourceMixedIdentity (Qubits n)) ∧
    (∀ (a N : ℕ) (E : KeyedUnitaryEnsemble (Fin N) (Qubits n × Qubits a))
      (anc : (Matrix (Qubits a) (Qubits a) ℂ)) (rho0 : (Matrix (Qubits n × Qubits a) (Qubits n × Qubits a) ℂ)),
      PQC (allPure (Qubits n)) E anc rho0 →
      2 * (n : ℝ) ≤ keyEntropy E.p ∧ 2 ^ (2 * n) ≤ N) := by sorry

end

end QAlgorithms.Papers.Independent.Advance50.P18
Source
Private Quantum Channels and the Cost of Randomizing Quantum Information, arXiv:quant-ph/0003101v2, PDF p. 1, Abstract and §7: optimal private quantum one-time pad
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

For every natural number nnn, the following two assertions hold. First, there exists an ensemble E=(px,Ux)E=(p_x,U_x)E=(px​,Ux​), indexed by x∈{0,1,2,3}nx\in\{0,1,2,3\}^nx∈{0,1,2,3}n and acting on Boolean strings of length nnn, that equals the explicitly specified ensemble

px=2−2n,(Ux)b,c=∏j=0n−1(σxj)bj,cj,σ0=(1001), σ1=(0110), σ2=(0−ii0), σ3=(100−1),p_x=2^{-2n},\qquad (U_x)_{b,c}=\prod_{j=0}^{n-1}(\sigma_{x_j})_{b_j,c_j}, \quad \sigma_0=\begin{pmatrix}1&0\\0&1\end{pmatrix},\ \sigma_1=\begin{pmatrix}0&1\\1&0\end{pmatrix},\ \sigma_2=\begin{pmatrix}0&-i\\i&0\end{pmatrix},\ \sigma_3=\begin{pmatrix}1&0\\0&-1\end{pmatrix},px​=2−2n,(Ux​)b,c​=j=0∏n−1​(σxj​​)bj​,cj​​,σ0​=(10​01​), σ1​=(01​10​), σ2​=(0i​−i0​), σ3​=(10​0−1​),

where the single-bit order is false,true\mathrm{false},\mathrm{true}false,true. Its weights are nonnegative and sum to 111, every UxU_xUx​ is unitary, the matrix 2−nI2^{-n}I2−nI is positive semidefinite with trace 111, and every complex vector ψ\psiψ on the nnn-bit strings with Euclidean norm 111 satisfies

∑xpxUx(ψψ∗)Ux∗=2−nI.\sum_x p_xU_x(\psi\psi^*)U_x^*=2^{-n}I.x∑​px​Ux​(ψψ∗)Ux∗​=2−nI.

Here (ψψ∗)b,c=ψbψc‾(\psi\psi^*)_{b,c}=\psi_b\overline{\psi_c}(ψψ∗)b,c​=ψb​ψc​​, and a star on a matrix denotes conjugate transpose. Moreover, the key entropy is 2n2n2n, and every positive semidefinite matrix ρ\rhoρ of trace 111 satisfies ∑xpxUxρUx∗=2−nI\sum_xp_xU_x\rho U_x^*=2^{-n}I∑x​px​Ux​ρUx∗​=2−nI. Second, for every pair of natural numbers a,Na,Na,N, every ensemble E=(pk,Uk)k=0N−1E=(p_k,U_k)_{k=0}^{N-1}E=(pk​,Uk​)k=0N−1​ acting on pairs of an nnn-bit string and an aaa-bit string, and all complex matrices anc\mathrm{anc}anc on the aaa-bit strings and ρ0\rho_0ρ0​ on those pairs, assume that the pkp_kpk​ are nonnegative and sum to 111, all UkU_kUk​ are unitary, both anc\mathrm{anc}anc and ρ0\rho_0ρ0​ are positive semidefinite with trace 111, and every norm-one ψ\psiψ on the nnn-bit strings satisfies

∑k=0N−1pkUk((ψψ∗)⊗anc)Uk∗=ρ0.\sum_{k=0}^{N-1}p_kU_k\bigl((\psi\psi^*)\otimes\mathrm{anc}\bigr)U_k^*=\rho_0.k=0∑N−1​pk​Uk​((ψψ∗)⊗anc)Uk∗​=ρ0​.

Then 2n≤H(p)2n\leq H(p)2n≤H(p) and 22n≤N2^{2n}\leq N22n≤N, where in both assertions

H(p)=−∑k{0,pk=0,pk log⁡pklog⁡2,pk≠0.H(p)=-\sum_k \begin{cases} 0,&p_k=0,\\ p_k\,\dfrac{\log p_k}{\log2},&p_k\ne0. \end{cases}H(p)=−k∑​⎩⎨⎧​0,pk​log2logpk​​,​pk​=0,pk​=0.​

The quantifiers include zero-length registers and N=0N=0N=0; for N=0N=0N=0, the assumed weight sum cannot equal 111. For n=0n=0n=0, the explicit ensemble has one key of weight 111, its matrix is (1)(1)(1), and the entropy and key-count bounds are 0≤H(p)0\leq H(p)0≤H(p) and 1≤N1\leq N1≤N.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me