Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 6.1: optimal entropy for randomizing arbitrary quantum states

Open
QAlgorithms.Papers.Independent.Advance50.P18.corollary_6_1

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

prove2quantum

For every nonnegative integer nnn, there is a randomization procedure on arbitrary nnn-qubit states with entropy cost exactly 2n2n2n bits: choose a tensor Pauli uniformly, apply it without an ancillary environment, and forget the key. Every density matrix then gives the same output I2n/2nI_{2^n}/2^nI2n​/2n. Conversely, every valid finite random-unitary procedure, allowing any fixed mixed ancillary environment and retaining its full output, has cost at least 2n2n2n:

∃ E: H(pE)=2n,∀ R: H(pR)≥2n.\exists\,\mathcal E:\ H(p_{\mathcal E})=2n,\qquad \forall\,\mathcal R:\ H(p_{\mathcal R})\ge2n.∃E: H(pE​)=2n,∀R: H(pR​)≥2n.

The quantifiers range over the exact source-randomizing procedures just described. Cost is the entropy of the forgotten classical choice. This is an attained optimum, with no infimum convention or thermodynamic work formula required.

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]

/-- PDF p.9, Corollary 6.1: randomizing all n-qubit states has attainable entropy
cost exactly 2n, and every procedure in the full-environment model costs at least 2n. -/
theorem corollary_6_1 (n : ℕ) :
    (∃ E : KeyedUnitaryEnsemble (Fin n → Fin 4) (Qubits n), E = fullPauli n ∧
      BareRandomizes (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) ℂ)),
      ExactSourceRandomization (allPure (Qubits n)) E anc rho0 → 2 * (n : ℝ) ≤ keyEntropy E.p) := 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. 9, Corollary 6.1: optimal entropy for randomizing arbitrary quantum states
Read-back

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

For every natural number nnn, write Qr={0,1}rQ_r=\{0,1\}^rQr​={0,1}r, and, for any finite probability family ppp, define

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\neq0. \end{cases}H(p)=−k∑​⎩⎨⎧​0,pk​log2logpk​​,​pk​=0,pk​=0.​

Two assertions hold jointly. First, there exists an ensemble EEE with keys k∈{0,1,2,3}nk\in\{0,1,2,3\}^nk∈{0,1,2,3}n, equal to the ensemble specified by pk=2−2np_k=2^{-2n}pk​=2−2n and Uk=⨂j=0n−1σkjU_k=\bigotimes_{j=0}^{n-1}\sigma_{k_j}Uk​=⨂j=0n−1​σkj​​, where

σ0=I2,σ1=(0110),σ2=(0−ii0),σ3=(100−1).\sigma_0=I_2,\qquad \sigma_1=\begin{pmatrix}0&1\\1&0\end{pmatrix},\qquad \sigma_2=\begin{pmatrix}0&-i\\i&0\end{pmatrix},\qquad \sigma_3=\begin{pmatrix}1&0\\0&-1\end{pmatrix}.σ0​=I2​,σ1​=(01​10​),σ2​=(0i​−i0​),σ3​=(10​0−1​).

Its weights are nonnegative and sum to 111, every UkU_kUk​ is unitary, 2−nI2^{-n}I2−nI is positive semidefinite with trace 111, every norm-111 vector ψ∈CQn\psi\in\mathbb C^{Q_n}ψ∈CQn​ satisfies ∑kpkUk∣ψ⟩⟨ψ∣Uk†=2−nI\sum_kp_kU_k|\psi\rangle\langle\psi|U_k^\dagger=2^{-n}I∑k​pk​Uk​∣ψ⟩⟨ψ∣Uk†​=2−nI, its key entropy is H(p)=2nH(p)=2nH(p)=2n, and, for every positive semidefinite matrix ρ\rhoρ on CQn\mathbb C^{Q_n}CQn​ with trace 111, ∑kpkUkρUk†=2−nI\sum_kp_kU_k\rho U_k^\dagger=2^{-n}I∑k​pk​Uk​ρUk†​=2−nI. Here ∣ψ⟩⟨ψ∣|\psi\rangle\langle\psi|∣ψ⟩⟨ψ∣ has entries ψ(x)ψ(y)‾\psi(x)\overline{\psi(y)}ψ(x)ψ(y)​. Second, for every pair of natural numbers a,Na,Na,N, every ensemble with real weights pk′p'_kpk′​ and complex matrices VkV_kVk​ on CQn×Qa\mathbb C^{Q_n\times Q_a}CQn​×Qa​, indexed by 0≤k<N0\leq k<N0≤k<N, and every pair of complex matrices α,ρ0\alpha,\rho_0α,ρ0​ indexed respectively by QaQ_aQa​ and Qn×QaQ_n\times Q_aQn​×Qa​, the following implication holds: if pk′≥0p'_k\geq0pk′​≥0, ∑k<Npk′=1\sum_{k<N}p'_k=1∑k<N​pk′​=1, all VkV_kVk​ are unitary, α,ρ0\alpha,\rho_0α,ρ0​ are positive semidefinite with trace 111, and every norm-111 vector ψ∈CQn\psi\in\mathbb C^{Q_n}ψ∈CQn​ satisfies

∑k<Npk′Vk(∣ψ⟩⟨ψ∣⊗α)Vk†=ρ0,\sum_{k<N}p'_kV_k\bigl(|\psi\rangle\langle\psi|\otimes\alpha\bigr)V_k^\dagger=\rho_0,k<N∑​pk′​Vk​(∣ψ⟩⟨ψ∣⊗α)Vk†​=ρ0​,

then 2n≤H(p′)2n\leq H(p')2n≤H(p′). Zero-probability keys are permitted and still require unitary matrices. The case n=0n=0n=0 gives a single key of probability 111, a one-dimensional identity matrix, and entropy 000; a=0a=0a=0 is also included. For N=0N=0N=0, the premise of the second assertion is impossible.

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