AncillaFactorSpectrum.lean
1module23public import SubentropyCertificates.AncillaReplicatedFactor4public import SubentropyCertificates.DeterminantRepresentation5public import SubentropyCertificates.QuadraticStatistic6public import SubentropyCertificates.SubentropyMaximum7import all D5.S3.Quantum.Subentropy.DensityKernel8import all SubentropyCertificates.MatrixStrongConcavity910/-! Spectral formulas for the ancillary determinant factor and the original purity. -/11@[expose] public section12noncomputable section13open Matrix14open scoped BigOperators ComplexOrder MatrixOrder Kronecker1516namespace SubentropyCertificates.AncillaLimit17open D5.S3.Quantum.Foundation.FiniteStateChannel (DensityState)18open D5.S3.Quantum.Information.PartialTraceMutualInformation (density_posSemidef)19open D5.S3.Quantum.Subentropy.DensityKernel (det_spectral)20open SubentropyCertificates.BinarySpectra (densityMatrix)21open SubentropyCertificates.SpectralContinuity (maximallyMixed)22open SubentropyCertificates.Representations (determinantIntegrand)23open SubentropyCertificates.Quadratic (purity)2425variable {D : Type*} [Fintype D] [DecidableEq D]2627/-- The reciprocal determinant for the integral in Appendix C repeats each eigenvalue28of the signal matrix with ancillary multiplicity `k+1`. -/29theorem determinantIntegrand_replicated (M : Matrix D D ℂ) (hM : M.PosSemidef) (k : ℕ) (t : ℝ) :30 determinantIntegrand (M ⊗ₖ densityMatrix (maximallyMixed (Fin (k+1)))) t =31 ((1+t)⁻¹ - replicatedFactor hM.isHermitian.eigenvalues k t) / t^2 := by32 let K := Fin (k+1)33 let c := 1 / (Fintype.card K : ℝ)34 let A := fun _ : K ↦ c • M35 have htensor : M ⊗ₖ densityMatrix (maximallyMixed K) = blockDiagonal A := by36 change M ⊗ₖ diagonal (fun _ : K ↦ (c : ℂ)) = _37 rw [kroneckerMap_diagonal_right (· * ·) mul_zero]38 ext ⟨i,x⟩ ⟨j,y⟩39 by_cases h : x = y40 · subst y41 simp [A, Complex.real_smul, mul_comm]42 · simp [blockDiagonal_apply_ne _ _ _ h]43 have hshift : 1 + t • (M ⊗ₖ densityMatrix (maximallyMixed K)) =44 blockDiagonal (fun _ : K ↦ 1 + (t*c) • M) := by45 rw [htensor, ← blockDiagonal_one, ← blockDiagonal_smul, ← blockDiagonal_add]46 congr 147 funext x48 simp [A, smul_smul]49 let V := ∏ i, (1 + t * hM.isHermitian.eigenvalues i / (k+1 : ℕ))50 have hbase : (1 + (t*c) • M).det = (V : ℂ) := by51 rw [det_spectral hM.isHermitian]52 simp only [V, Complex.ofReal_prod]53 apply Finset.prod_congr rfl54 intro i _55 congr 256 simp [c, K, div_eq_mul_inv, mul_assoc, mul_left_comm, mul_comm]57 have hdet : (1 + t • (M ⊗ₖ densityMatrix (maximallyMixed K))).det = ((V^(k+1) : ℝ) : ℂ) := by58 rw [hshift, det_blockDiagonal]59 simp only [hbase, Finset.prod_const, Finset.card_univ, K, Fintype.card_fin,60 Complex.ofReal_pow]61 unfold determinantIntegrand replicatedFactor62 rw [hdet, Complex.ofReal_re]63 simp only [one_div, inv_pow, V]6465/-- The second moment of the eigenvalues is the original state's purity. -/66theorem sum_eigenvalues_sq_eq_purity (σ : DensityState D) :67 (∑ i, (density_posSemidef σ).isHermitian.eigenvalues i ^ 2) = purity σ := by68 have H := (density_posSemidef σ).isHermitian69 have h := SubentropyCertificates.StrongConcavity.hs_spectrum H70 simpa only [SubentropyCertificates.StrongConcavity.hsSquared, H.eq,71 SubentropyCertificates.StrongConcavity.energy, purity] using h.symm7273end SubentropyCertificates.AncillaLimit
Axioms used
Choose a statement to see which axioms its proof uses.