chars int64 40 24k | content_type stringclasses 9
values | id stringlengths 13 64 | source stringclasses 5
values | subset stringclasses 31
values | text stringlengths 40 24k |
|---|---|---|---|---|---|
686 | leanexplore_declaration | leanexplore:378404 | leanexplore_sqlite | leanexplore_declarations | /-- The operator W from the paper, defined as a matrix product. -/
noncomputable def W_mat (ρAB : HermitianMat (dA × dB) ℂ) (σBC : HermitianMat (dB × dC) ℂ) : Matrix ((dA × dB) × dC) ((dA × dB) × dC) ℂ :=
let ρA := ρAB.traceRight
let σC := σBC.traceLeft
let ρAB_sqrt := (ρAB.sqrt : Matrix (dA × dB) (dA × dB) ℂ)
... |
904 | leanexplore_declaration | leanexplore:378405 | leanexplore_sqlite | leanexplore_declarations | /--
The operator norm of a matrix product is at most the product of the operator norms.
-/
theorem Matrix.opNorm_mul_le {l m n 𝕜 : Type*} [Fintype l] [Fintype m] [Fintype n]
[DecidableEq l] [DecidableEq m] [DecidableEq n] [RCLike 𝕜]
(A : Matrix l m 𝕜) (B : Matrix m n 𝕜) :
Matrix.opNorm (A * B) ≤ Matrix.... |
1,339 | leanexplore_declaration | leanexplore:378406 | leanexplore_sqlite | leanexplore_declarations | theorem Matrix.opNorm_reindex_proven {l m n p : Type*} [Fintype l] [Fintype m] [Fintype n] [Fintype p]
[DecidableEq l] [DecidableEq m] [DecidableEq n] [DecidableEq p]
(e : m ≃ l) (f : n ≃ p) (A : Matrix m n 𝕜) :
Matrix.opNorm (A.reindex e f) = Matrix.opNorm A := by
refine' le_antisymm _ _;
· refine' cs... |
228 | leanexplore_declaration | leanexplore:378407 | leanexplore_sqlite | leanexplore_declarations | /--
Define U_rho as the Kronecker product of V_rho and the identity.
-/
noncomputable def U_rho (ρAB : HermitianMat (dA × dB) ℂ) : Matrix (((dA × dB) × dB) × dC) (dA × dC) ℂ :=
Matrix.kronecker (V_rho ρAB) (1 : Matrix dC dC ℂ) |
236 | leanexplore_declaration | leanexplore:378408 | leanexplore_sqlite | leanexplore_declarations | /--
Define U_sigma as the Kronecker product of the identity and V_sigma.
-/
noncomputable def U_sigma (σBC : HermitianMat (dB × dC) ℂ) : Matrix (dA × (dB × (dB × dC))) (dA × dC) ℂ :=
Matrix.kronecker (1 : Matrix dA dA ℂ) (V_sigma σBC) |
431 | leanexplore_declaration | leanexplore:378409 | leanexplore_sqlite | leanexplore_declarations | /--
The operator norm of the conjugate transpose is equal to the operator norm.
-/
theorem Matrix.opNorm_conjTranspose_eq_opNorm {m n : Type*} [Fintype m] [Fintype n]
[DecidableEq m] [DecidableEq n] (A : Matrix m n 𝕜) :
Matrix.opNorm Aᴴ = Matrix.opNorm A := by
unfold Matrix.opNorm
rw [← ContinuousLinearMap... |
668 | leanexplore_declaration | leanexplore:378410 | leanexplore_sqlite | leanexplore_declarations | theorem isometry_mul_conjTranspose_le_one {m n : Type*} [Fintype m] [Fintype n]
[DecidableEq m] [DecidableEq n]
(V : Matrix m n ℂ) (hV : V.conjTranspose * V = 1) :
V * V.conjTranspose ≤ 1 := by
have h_pos : (1 - V * Vᴴ) * (1 - V * Vᴴ) = 1 - V * Vᴴ := by
simp [ sub_mul, mul_sub, ← Matrix.mul_assoc ];
... |
905 | leanexplore_declaration | leanexplore:378411 | leanexplore_sqlite | leanexplore_declarations | theorem conjTranspose_isometry_mul_isometry_le_one {m n k : Type*}
[Fintype m] [Fintype n] [Fintype k] [DecidableEq m] [DecidableEq n] [DecidableEq k]
(A : Matrix k m ℂ) (B : Matrix k n ℂ)
(hA : A.conjTranspose * A = 1) (hB : B.conjTranspose * B = 1) :
(A.conjTranspose * B).conjTranspose * (A.conjTransp... |
275 | leanexplore_declaration | leanexplore:378412 | leanexplore_sqlite | leanexplore_declarations | theorem HermitianMat.reindex_le_reindex_iff {d d₂ : Type*} [Fintype d] [DecidableEq d]
[Fintype d₂] [DecidableEq d₂] (e : d ≃ d₂) (A B : HermitianMat d ℂ) :
A.reindex e ≤ B.reindex e ↔ A ≤ B := by
constructor <;> intro h <;> rw [HermitianMat.le_iff] at * <;> aesop; |
675 | leanexplore_declaration | leanexplore:378413 | leanexplore_sqlite | leanexplore_declarations | theorem HermitianMat.inv_kronecker {m n : Type*} [Fintype m] [DecidableEq m]
[Fintype n] [DecidableEq n] [Nonempty m] [Nonempty n]
(A : HermitianMat m ℂ) (B : HermitianMat n ℂ)
[A.NonSingular] [B.NonSingular] :
(A ⊗ₖ B)⁻¹ = A⁻¹ ⊗ₖ B⁻¹ := by
have h_inv : (A ⊗ₖ B).mat * (A⁻¹ ⊗ₖ B⁻¹).mat = 1 := by
ha... |
203 | leanexplore_declaration | leanexplore:378414 | leanexplore_sqlite | leanexplore_declarations | theorem HermitianMat.inv_reindex {d d₂ : Type*} [Fintype d] [DecidableEq d]
[Fintype d₂] [DecidableEq d₂] (A : HermitianMat d ℂ) (e : d ≃ d₂) :
(A.reindex e)⁻¹ = A⁻¹.reindex e := by
ext1
simp |
270 | leanexplore_declaration | leanexplore:378415 | leanexplore_sqlite | leanexplore_declarations | theorem HermitianMat.PosDef_kronecker {m n : Type*} [Fintype m] [DecidableEq m]
[Fintype n] [DecidableEq n]
(A : HermitianMat m ℂ) (B : HermitianMat n ℂ)
(hA : A.mat.PosDef) (hB : B.mat.PosDef) :
(A ⊗ₖ B).mat.PosDef := by
exact Matrix.PosDef.kron hA hB |
232 | leanexplore_declaration | leanexplore:378416 | leanexplore_sqlite | leanexplore_declarations | theorem HermitianMat.PosDef_reindex {d d₂ : Type*} [Fintype d] [DecidableEq d]
[Fintype d₂] [DecidableEq d₂] (A : HermitianMat d ℂ) (e : d ≃ d₂)
(hA : A.mat.PosDef) :
(A.reindex e).mat.PosDef := by
convert hA.reindex e |
64 | leanexplore_declaration | leanexplore:378417 | leanexplore_sqlite | leanexplore_declarations | abbrev BigIdx (dA dB dC : Type*) := ((dA × dB) × dB) × (dB × dC) |
52 | leanexplore_declaration | leanexplore:378418 | leanexplore_sqlite | leanexplore_declarations | abbrev SmallIdx (dA dB dC : Type*) := (dA × dB) × dC |
64 | leanexplore_declaration | leanexplore:378419 | leanexplore_sqlite | leanexplore_declarations | abbrev MidIdx (dA dB dC : Type*) := (dA × dB) × (dB × (dB × dC)) |
1,300 | leanexplore_declaration | leanexplore:378420 | leanexplore_sqlite | leanexplore_declarations | /-- Core inequality: W†W ≤ I.
This is the key step, following from the isometry argument:
V_rho ⊗ I_C and I_A ⊗ V_sigma are isometries, their cross product has norm ≤ 1,
and the result can be related to W_mat through the MES computation (Eq. 6 in Lin-Kim-Hsieh). -/
theorem W_mat_sq_le_one [Nonempty dA] [Nonempty dB] [N... |
2,005 | leanexplore_declaration | leanexplore:378421 | leanexplore_sqlite | leanexplore_declarations | /-- The intermediate operator inequality: ρ_AB ⊗ σ_C⁻¹ ≤ (ρ_A ⊗ σ_BC⁻¹).reindex(assoc⁻¹).
This is derived from W_mat_sq_le_one by algebraic manipulation (conjugation and simplification). -/
theorem intermediate_ineq [Nonempty dA] [Nonempty dB] [Nonempty dC]
(ρAB : HermitianMat (dA × dB) ℂ) (σBC : HermitianMat (dB... |
3,561 | leanexplore_declaration | leanexplore:378422 | leanexplore_sqlite | leanexplore_declarations | /-- **Operator extension of SSA** (Main result of Lin-Kim-Hsieh).
For positive definite ρ_AB and σ_BC:
`ρ_A⁻¹ ⊗ σ_BC ≤ ρ_AB⁻¹ ⊗ σ_C`
where ρ_A = Tr_B(ρ_AB) and σ_C = Tr_B(σ_BC), and the RHS is reindexed
via the associator `(dA × dB) × dC ≃ dA × (dB × dC)`. -/
theorem operator_ineq_SSA [Nonempty dA] [Nonempty dB... |
1,443 | leanexplore_declaration | leanexplore:378423 | leanexplore_sqlite | leanexplore_declarations | /-- Weak monotonicity, version with partial traces. -/
lemma Sᵥₙ_wm (ρ : MState (d₁ × d₂ × d₃)) :
Sᵥₙ ρ.traceRight + Sᵥₙ ρ.traceLeft.traceLeft ≤
Sᵥₙ ρ.assoc'.traceRight + Sᵥₙ ρ.traceLeft := by
have h_ne123 := ρ.nonempty
obtain ⟨ ρn, hρn_pos, hρn ⟩ := MState.approx_by_pd ρ;
-- Apply the inequality for each... |
558 | leanexplore_declaration | leanexplore:378424 | leanexplore_sqlite | leanexplore_declarations | /-- Strong subadditivity on a tripartite system -/
theorem Sᵥₙ_strong_subadditivity (ρ₁₂₃ : MState (d₁ × d₂ × d₃)) :
let ρ₁₂ := ρ₁₂₃.assoc'.traceRight;
let ρ₂₃ := ρ₁₂₃.traceLeft;
let ρ₂ := ρ₁₂₃.traceLeft.traceRight;
Sᵥₙ ρ₁₂₃ + Sᵥₙ ρ₂ ≤ Sᵥₙ ρ₁₂ + Sᵥₙ ρ₂₃ := by
have _ := ρ₁₂₃.nonempty |> nonempty_prod.m... |
507 | leanexplore_declaration | leanexplore:378425 | leanexplore_sqlite | leanexplore_declarations | /-- "Ordinary" subadditivity of von Neumann entropy -/
theorem Sᵥₙ_subadditivity (ρ : MState (d₁ × d₂)) :
Sᵥₙ ρ ≤ Sᵥₙ ρ.traceRight + Sᵥₙ ρ.traceLeft := by
have := Sᵥₙ_strong_subadditivity (ρ.relabel (d₂ := d₁ × Unit × d₂)
⟨fun x ↦ (x.1, x.2.2), fun x ↦ (x.1, ⟨(), x.2⟩), fun x ↦ by simp, fun x ↦ by simp⟩)
si... |
547 | leanexplore_declaration | leanexplore:378426 | leanexplore_sqlite | leanexplore_declarations | /-- Triangle inequality for pure tripartite states: S(A) ≤ S(B) + S(C). -/
theorem Sᵥₙ_pure_tripartite_triangle (ψ : Ket ((d₁ × d₂) × d₃)) :
Sᵥₙ (MState.pure ψ).traceRight.traceRight ≤
Sᵥₙ (MState.pure ψ).traceRight.traceLeft + Sᵥₙ (MState.pure ψ).traceLeft := by
have h_subadd := Sᵥₙ_subadditivity (MState.pur... |
281 | leanexplore_declaration | leanexplore:378427 | leanexplore_sqlite | leanexplore_declarations | /-- One direction of the Araki-Lieb triangle inequality: S(A) ≤ S(B) + S(AB). -/
theorem Sᵥₙ_triangle_ineq_one_way (ρ : MState (d₁ × d₂)) : Sᵥₙ ρ.traceRight ≤ Sᵥₙ ρ.traceLeft + Sᵥₙ ρ := by
have := Sᵥₙ_pure_tripartite_triangle ρ.purify
have := Sᵥₙ_of_partial_eq ρ.purify
aesop |
425 | leanexplore_declaration | leanexplore:378428 | leanexplore_sqlite | leanexplore_declarations | /-- Araki-Lieb triangle inequality on von Neumann entropy -/
theorem Sᵥₙ_triangle_subaddivity (ρ : MState (d₁ × d₂)) :
abs (Sᵥₙ ρ.traceRight - Sᵥₙ ρ.traceLeft) ≤ Sᵥₙ ρ := by
rw [abs_sub_le_iff]
constructor
· have := Sᵥₙ_triangle_ineq_one_way ρ
grind only
· have := Sᵥₙ_triangle_ineq_one_way ρ.SWAP
gr... |
498 | leanexplore_declaration | leanexplore:378429 | leanexplore_sqlite | leanexplore_declarations | /-- Weak monotonicity of quantum conditional entropy: S(A|B) + S(A|C) ≥ 0. -/
theorem Sᵥₙ_weak_monotonicity (ρ : MState (dA × dB × dC)) :
let ρAB := ρ.assoc'.traceRight
let ρAC := ρ.SWAP.assoc.traceLeft.SWAP
0 ≤ qConditionalEnt ρAB + qConditionalEnt ρAC := by
simp only [qConditionalEnt, MState.traceRight_... |
412 | leanexplore_declaration | leanexplore:378430 | leanexplore_sqlite | leanexplore_declarations | /-- Strong subadditivity, stated in terms of conditional entropies.
Also called the data processing inequality. H(A|BC) ≤ H(A|B). -/
theorem qConditionalEnt_strong_subadditivity (ρ₁₂₃ : MState (d₁ × d₂ × d₃)) :
qConditionalEnt ρ₁₂₃ ≤ qConditionalEnt ρ₁₂₃.assoc'.traceRight := by
have := Sᵥₙ_strong_subadditivity ... |
389 | leanexplore_declaration | leanexplore:378431 | leanexplore_sqlite | leanexplore_declarations | /-- Strong subadditivity, stated in terms of quantum mutual information.
I(A;BC) ≥ I(A;B). -/
theorem qMutualInfo_strong_subadditivity (ρ₁₂₃ : MState (d₁ × d₂ × d₃)) :
qMutualInfo ρ₁₂₃ ≥ qMutualInfo ρ₁₂₃.assoc'.traceRight := by
have := Sᵥₙ_strong_subadditivity ρ₁₂₃
dsimp at this
simp only [qMutualInfo, MSta... |
222 | leanexplore_declaration | leanexplore:378432 | leanexplore_sqlite | leanexplore_declarations | /-- The quantum conditional mutual information `QCMI` is nonnegative. -/
theorem qcmi_nonneg (ρ : MState (dA × dB × dC)) :
0 ≤ qcmi ρ := by
simp [qcmi, qConditionalEnt]
have := Sᵥₙ_strong_subadditivity ρ
linarith |
343 | leanexplore_declaration | leanexplore:378433 | leanexplore_sqlite | leanexplore_declarations | /-- The quantum conditional mutual information `QCMI ρABC` is at most 2 log dA. -/
theorem qcmi_le_2_log_dim (ρ : MState (dA × dB × dC)) :
qcmi ρ ≤ 2 * Real.log (Fintype.card dA) := by
have := Sᵥₙ_subadditivity ρ.assoc'.traceRight
have := abs_le.mp (Sᵥₙ_triangle_subaddivity ρ)
grind [qcmi, qConditionalEnt, Sᵥ... |
520 | leanexplore_declaration | leanexplore:378434 | leanexplore_sqlite | leanexplore_declarations | /-- The quantum conditional mutual information `QCMI ρABC` is at most 2 log dC. -/
theorem qcmi_le_2_log_dim' (ρ : MState (dA × dB × dC)) :
qcmi ρ ≤ 2 * Real.log (Fintype.card dC) := by
have h_araki_lieb_assoc' : Sᵥₙ ρ.assoc'.traceRight - Sᵥₙ ρ.traceLeft.traceLeft ≤ Sᵥₙ ρ := by
apply le_of_abs_le
rw [← ρ.... |
90 | leanexplore_declaration | leanexplore:378435 | leanexplore_sqlite | leanexplore_declarations | /-- Von Neumann entropy of a mixed state. -/
def Sᵥₙ (ρ : MState d) : ℝ :=
Hₛ ρ.spectrum |
151 | leanexplore_declaration | leanexplore:378436 | leanexplore_sqlite | leanexplore_declarations | /-- The Quantum Conditional Entropy S(ρᴬ|ρᴮ) is given by S(ρᴬᴮ) - S(ρᴮ). -/
def qConditionalEnt (ρ : MState (dA × dB)) : ℝ :=
Sᵥₙ ρ - Sᵥₙ ρ.traceLeft |
171 | leanexplore_declaration | leanexplore:378437 | leanexplore_sqlite | leanexplore_declarations | /-- The Quantum Mutual Information I(A:B) is given by S(ρᴬ) + S(ρᴮ) - S(ρᴬᴮ). -/
def qMutualInfo (ρ : MState (dA × dB)) : ℝ :=
Sᵥₙ ρ.traceLeft + Sᵥₙ ρ.traceRight - Sᵥₙ ρ |
370 | leanexplore_declaration | leanexplore:378438 | leanexplore_sqlite | leanexplore_declarations | /-- The Coherent Information of a state ρ passing through a channel Λ is the negative conditional
entropy of the image under Λ of the purification of ρ. -/
def coherentInfo (ρ : MState d₁) (Λ : CPTPMap d₁ d₂) : ℝ :=
let ρPure : MState (d₁ × d₁) := MState.pure ρ.purify
let ρImg : MState (d₂ × d₁) := Λ.prod (CPTPMa... |
181 | leanexplore_declaration | leanexplore:378439 | leanexplore_sqlite | leanexplore_declarations | /-- The Quantum Conditional Mutual Information, I(A;C|B) = S(A|B) - S(A|BC). -/
def qcmi (ρ : MState (dA × dB × dC)) : ℝ :=
qConditionalEnt ρ.assoc'.traceRight - qConditionalEnt ρ |
105 | leanexplore_declaration | leanexplore:378440 | leanexplore_sqlite | leanexplore_declarations | /-- von Neumman entropy is nonnegative. -/
theorem Sᵥₙ_nonneg (ρ : MState d) : 0 ≤ Sᵥₙ ρ :=
Hₛ_nonneg _ |
152 | leanexplore_declaration | leanexplore:378441 | leanexplore_sqlite | leanexplore_declarations | /-- von Neumman entropy is at most log d. -/
theorem Sᵥₙ_le_log_d (ρ : MState d) : Sᵥₙ ρ ≤ Real.log (Finset.card Finset.univ (α := d)):=
Hₛ_le_log_d _ |
218 | leanexplore_declaration | leanexplore:378442 | leanexplore_sqlite | leanexplore_declarations | /-- von Neumman entropy of pure states is zero. -/
@[simp]
theorem Sᵥₙ_of_pure_zero (ψ : Ket d) : Sᵥₙ (MState.pure ψ) = 0 := by
obtain ⟨i, hi⟩ := MState.spectrum_pure_eq_constant ψ
rw [Sᵥₙ, hi, Hₛ_constant_eq_zero] |
473 | leanexplore_declaration | leanexplore:378443 | leanexplore_sqlite | leanexplore_declarations | theorem Sᵥₙ_eq_neg_trace_log (ρ : MState d) : Sᵥₙ ρ = -⟪ρ.M.log, ρ.M⟫ := by
open HermitianMat in
rw [log, inner_eq_re_trace]
nth_rw 2 [← cfc_id ρ.M]
rw [← mat_cfc_mul]
simp only [Sᵥₙ, Hₛ, H₁, Real.negMulLog, neg_mul, Finset.sum_neg_distrib, neg_inj]
rw [← trace_eq_re_trace, ← sum_eigenvalues_eq_trace]
obt... |
493 | leanexplore_declaration | leanexplore:378444 | leanexplore_sqlite | leanexplore_declarations | /-- Von Neumann entropy is the trace of the matrix function `x ↦ -x log x`. -/
theorem Sᵥₙ_eq_trace_cfc_negMulLog (ρ : MState d) :
Sᵥₙ ρ = (ρ.M.cfc Real.negMulLog).trace := by
open HermitianMat in
unfold Real.negMulLog
rw [Sᵥₙ_eq_neg_trace_log, trace, log, inner_eq_re_trace, IsMaximalSelfAdjoint.RCLike_selfad... |
141 | leanexplore_declaration | leanexplore:378445 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem Sᵥₙ_unit_zero [Unique d] (ρ : MState d) : Sᵥₙ ρ = 0 := by
refine le_antisymm ?_ (Sᵥₙ_nonneg ρ)
simpa using Sᵥₙ_le_log_d ρ |
196 | leanexplore_declaration | leanexplore:378446 | leanexplore_sqlite | leanexplore_declarations | /-- Von Neumann entropy is invariant under relabeling of the basis. -/
@[simp]
theorem Sᵥₙ_relabel (ρ : MState d₁) (e : d₂ ≃ d₁) :
Sᵥₙ (ρ.relabel e) = Sᵥₙ ρ := by
simp [Sᵥₙ_eq_neg_trace_log] |
251 | leanexplore_declaration | leanexplore:378447 | leanexplore_sqlite | leanexplore_declarations | /-- Von Neumann entropy is unchanged under SWAP. TODO: All unitaries-/
@[simp]
theorem Sᵥₙ_of_SWAP_eq (ρ : MState (d₁ × d₂)) : Sᵥₙ ρ.SWAP = Sᵥₙ ρ := by
apply Hₛ_eq_of_multiset_map_eq
exact ρ.multiset_spectrum_relabel_eq (Equiv.prodComm d₁ d₂).symm |
214 | leanexplore_declaration | leanexplore:378448 | leanexplore_sqlite | leanexplore_declarations | /-- Von Neumann entropy is unchanged under assoc. -/
@[simp]
theorem Sᵥₙ_of_assoc_eq (ρ : MState ((d₁ × d₂) × d₃)) : Sᵥₙ ρ.assoc = Sᵥₙ ρ := by
apply Hₛ_eq_of_multiset_map_eq
apply ρ.multiset_spectrum_relabel_eq |
186 | leanexplore_declaration | leanexplore:378449 | leanexplore_sqlite | leanexplore_declarations | /-- Von Neumann entropy is unchanged under assoc'. -/
@[simp]
theorem Sᵥₙ_of_assoc'_eq (ρ : MState (d₁ × (d₂ × d₃))) : Sᵥₙ ρ.assoc' = Sᵥₙ ρ := by
rw [← Sᵥₙ_of_assoc_eq, ρ.assoc_assoc'] |
191 | leanexplore_declaration | leanexplore:378450 | leanexplore_sqlite | leanexplore_declarations | @[fun_prop]
theorem selfAdjointMap_Continuous {𝕜 : Type*} [RCLike 𝕜] :
Continuous (IsMaximalSelfAdjoint.selfadjMap : 𝕜 →+ ℝ) := by
rw [IsMaximalSelfAdjoint.RCLike_selfadjMap]
fun_prop |
210 | leanexplore_declaration | leanexplore:378451 | leanexplore_sqlite | leanexplore_declarations | @[fun_prop]
theorem HermitianMat.trace_Continuous {d 𝕜 : Type*} [Fintype d] [RCLike 𝕜] :
Continuous (HermitianMat.trace : HermitianMat d 𝕜 → ℝ) := by
rw [funext HermitianMat.trace_eq_re_trace]
fun_prop |
120 | leanexplore_declaration | leanexplore:378452 | leanexplore_sqlite | leanexplore_declarations | @[fun_prop]
theorem Sᵥₙ_continuous : Continuous (Sᵥₙ (d := d)) := by
rw [funext Sᵥₙ_eq_trace_cfc_negMulLog]
fun_prop |
182 | leanexplore_declaration | leanexplore:378453 | leanexplore_sqlite | leanexplore_declarations | /--
Convert a vector on a product space to a matrix.
-/
def vecToMat {d₁ d₂ : Type*} [Fintype d₁] [Fintype d₂] (v : d₁ × d₂ → ℂ) : Matrix d₁ d₂ ℂ :=
Matrix.of (fun i j => v (i, j)) |
184 | leanexplore_declaration | leanexplore:378454 | leanexplore_sqlite | leanexplore_declarations | lemma traceLeft_eq_transpose_mul_conj (ψ : Ket (d₁ × d₂)) :
(MState.pure ψ).traceLeft.M.val = (vecToMat ψ.vec).transpose * (vecToMat ψ.vec).map star := by
unfold vecToMat; aesop; |
410 | leanexplore_declaration | leanexplore:378455 | leanexplore_sqlite | leanexplore_declarations | /-- von Neumman entropies of the left- and right- partial trace of pure states are equal. -/
theorem Sᵥₙ_of_partial_eq (ψ : Ket (d₁ × d₂)) :
Sᵥₙ (MState.pure ψ).traceLeft = Sᵥₙ (MState.pure ψ).traceRight := by
apply Sᵥₙ_eq_of_charpoly_roots_eq
rw [traceLeft_eq_transpose_conjTranspose_mul, traceRight_eq_mul_conj... |
256 | leanexplore_declaration | leanexplore:378456 | leanexplore_sqlite | leanexplore_declarations | /-- Quantum conditional entropy is symmetric for pure states. -/
@[simp]
theorem qConditionalEnt_of_pure_symm (ψ : Ket (d₁ × d₂)) :
qConditionalEnt (MState.pure ψ).SWAP = qConditionalEnt (MState.pure ψ) := by
simp [qConditionalEnt, Sᵥₙ_of_partial_eq] |
181 | leanexplore_declaration | leanexplore:378457 | leanexplore_sqlite | leanexplore_declarations | /-- Quantum mutual information is symmetric. -/
@[simp]
theorem qMutualInfo_symm (ρ : MState (d₁ × d₂)) :
qMutualInfo ρ.SWAP = qMutualInfo ρ := by
simp [qMutualInfo, add_comm] |
371 | leanexplore_declaration | leanexplore:378458 | leanexplore_sqlite | leanexplore_declarations | /-- For a pure state, the entropy of one subsystem equals the entropy of its complement,
even after relabeling. -/
@[simp]
theorem Sᵥₙ_pure_complement (ψ : Ket d₁) (e : d₂ × d₃ ≃ d₁) :
Sᵥₙ ((MState.pure ψ).relabel e).traceLeft = Sᵥₙ ((MState.pure ψ).relabel e).traceRight := by
obtain ⟨ψ', hψ'⟩ := MState.relabel_p... |
350 | leanexplore_declaration | leanexplore:378459 | leanexplore_sqlite | leanexplore_declarations | /-- A **mixed quantum state** is a PSD matrix with trace 1.
We don't `extend (M : HermitianMat d ℂ)` because that gives an annoying thing where
`M` is actually a `Subtype`, which means `ρ.M.foo` notation doesn't work. -/
@[ext]
structure MState (d : Type*) [Fintype d] [DecidableEq d] where
M : HermitianMat d ℂ
non... |
456 | leanexplore_declaration | leanexplore:378460 | leanexplore_sqlite | leanexplore_declarations | @[ext]
structure MState (d : Type*) [Fintype d] [DecidableEq d] where
M : HermitianMat d ℂ
nonneg : 0 ≤ M
tr : M.trace = 1
variable {d d₁ d₂ d₃ : Type*}
variable [Fintype d] [Fintype d₁] [Fintype d₂] [Fintype d₃]
variable [DecidableEq d] [DecidableEq d₁] [DecidableEq d₂] [DecidableEq d₃]
variable (ψ φ : Ket d)
... |
66 | leanexplore_declaration | leanexplore:378462 | leanexplore_sqlite | leanexplore_declarations | instance instCoe : Coe (MState d) (HermitianMat d ℂ) := ⟨MState.M⟩ |
133 | leanexplore_declaration | leanexplore:378463 | leanexplore_sqlite | leanexplore_declarations | /-- The underlying `Matrix` in an MState. Prefer `MState.M` for the `HermitianMat`. -/
def m (ρ : MState d) : Matrix d d ℂ := ρ.M.mat |
49 | leanexplore_declaration | leanexplore:378464 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem mat_M : ρ.M.mat = ρ.m := by
rfl |
113 | leanexplore_declaration | leanexplore:378465 | leanexplore_sqlite | leanexplore_declarations | theorem pos (ρ : MState d) : 0 < ρ.M := by
apply ρ.nonneg.lt_of_ne'
intro h
have := ρ.tr
simp [h] at this |
392 | leanexplore_declaration | leanexplore:378466 | leanexplore_sqlite | leanexplore_declarations | /-- Positivity extension for `MState.M`: it is always positive (`0 < ρ.M`).
Note: we must not call `whnfR` on `e` because `MState.M` is a structure
projection (reducible), so `whnfR` would reduce it and destroy the pattern. -/
@[positivity MState.M _]
meta def evalMStateM : PositivityExt where eval {_u _α} _zα _pα e :=... |
70 | leanexplore_declaration | leanexplore:378467 | leanexplore_sqlite | leanexplore_declarations | theorem psd : ρ.m.PosSemidef :=
HermitianMat.zero_le_iff.mp ρ.nonneg |
85 | leanexplore_declaration | leanexplore:378468 | leanexplore_sqlite | leanexplore_declarations | /-- Every mixed state is Hermitian. -/
theorem Hermitian : ρ.m.IsHermitian :=
ρ.M.H |
111 | leanexplore_declaration | leanexplore:378469 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem tr' : ρ.m.trace = 1 := by
rw [MState.m.eq_def, ← HermitianMat.trace_eq_trace_rc, ρ.tr]
simp |
106 | leanexplore_declaration | leanexplore:378470 | leanexplore_sqlite | leanexplore_declarations | theorem ext_m {ρ₁ ρ₂ : MState d} (h : ρ₁.m = ρ₂.m) : ρ₁ = ρ₂ := by
rw [MState.mk.injEq]
ext1
exact h |
149 | leanexplore_declaration | leanexplore:378471 | leanexplore_sqlite | leanexplore_declarations | /-- The map from mixed states to their matrices is injective -/
theorem m_inj : (MState.m (d := d)).Injective :=
fun _ _ h ↦ by ext1; ext1; exact h |
97 | leanexplore_declaration | leanexplore:378472 | leanexplore_sqlite | leanexplore_declarations | theorem M_Injective : Function.Injective (MState.M (d := d)) := by
intro _ _
exact MState.ext |
408 | leanexplore_declaration | leanexplore:378473 | leanexplore_sqlite | leanexplore_declarations | /-- The matrices corresponding to MStates are `Convex ℝ` -/
theorem convex : Convex ℝ (Set.range (MState.M (d := d))) := by
simp only [Convex, Set.mem_range, StarConvex,
forall_exists_index, forall_apply_eq_imp_iff]
intro x y a b ha hb hab
replace hab : a + b = (1 : ℂ) := by norm_cast
have := HermitianMat.c... |
241 | leanexplore_declaration | leanexplore:378474 | leanexplore_sqlite | leanexplore_declarations | instance instMixable : Mixable (HermitianMat d ℂ) (MState d) where
to_U := MState.M
to_U_inj := MState.ext
mkT {u} := fun h ↦
⟨⟨u, h.casesOn fun t ht ↦ ht ▸ t.nonneg,
h.casesOn fun t ht ↦ ht ▸ t.tr⟩, rfl⟩
convex := convex d |
125 | leanexplore_declaration | leanexplore:378475 | leanexplore_sqlite | leanexplore_declarations | instance nonempty : Nonempty d := by
by_contra h
simpa [HermitianMat.trace_eq_re_trace, not_nonempty_iff.mp h] using ρ.tr |
153 | leanexplore_declaration | leanexplore:378476 | leanexplore_sqlite | leanexplore_declarations | theorem eigenvalue_nonneg : ∀ i, 0 ≤ ρ.Hermitian.eigenvalues i := by
rw [← Matrix.PosSemidef.nonneg_iff_eigenvalue_nonneg ρ.Hermitian]
exact ρ.nonneg |
210 | leanexplore_declaration | leanexplore:378477 | leanexplore_sqlite | leanexplore_declarations | theorem eigenvalue_le_one : ∀ i, ρ.Hermitian.eigenvalues i ≤ 1 := by
intro i
convert Finset.single_le_sum (fun y _ ↦ ρ.psd.eigenvalues_nonneg y) (Finset.mem_univ i)
rw [ρ.M.sum_eigenvalues_eq_trace, ρ.tr] |
221 | leanexplore_declaration | leanexplore:378478 | leanexplore_sqlite | leanexplore_declarations | theorem le_one : ρ.M ≤ 1 := by
open MatrixOrder in
suffices h : ρ.m ≤ (1 : ℝ) • 1 by
rw [one_smul] at h
exact h
rw [← Matrix.PosSemidef.le_smul_one_of_eigenvalues_iff ρ.Hermitian]
exact eigenvalue_le_one ρ |
252 | leanexplore_declaration | leanexplore:378479 | leanexplore_sqlite | leanexplore_declarations | /-- The inner product of two MState's, as a real number between 0 and 1. -/
scoped instance : Inner Prob (MState d) where
inner := fun ρ σ ↦ ⟨⟪ρ.M, σ.M⟫,
inner_ge_zero ρ.nonneg σ.nonneg,
(inner_le_mul_trace ρ.nonneg σ.nonneg).trans (by simp)⟩ |
155 | leanexplore_declaration | leanexplore:378480 | leanexplore_sqlite | leanexplore_declarations | theorem inner_def : ⟪ρ, σ⟫_Prob = ⟨⟪ρ.M, σ.M⟫,
inner_ge_zero ρ.nonneg σ.nonneg,
(inner_le_mul_trace ρ.nonneg σ.nonneg).trans (by simp)⟩ := by
rfl |
62 | leanexplore_declaration | leanexplore:378481 | leanexplore_sqlite | leanexplore_declarations | theorem val_inner : (⟪ρ, σ⟫_Prob : ℝ) = ⟪ρ.M, σ.M⟫ := by
rfl |
57 | leanexplore_declaration | leanexplore:378482 | leanexplore_sqlite | leanexplore_declarations | def exp_val_ℂ (T : Matrix d d ℂ) : ℂ :=
(T * ρ.m).trace |
120 | leanexplore_declaration | leanexplore:378483 | leanexplore_sqlite | leanexplore_declarations | /-- The **expectation value** of an operator on a quantum state. -/
def exp_val (T : HermitianMat d ℂ) : ℝ :=
⟪ρ.M, T⟫ |
105 | leanexplore_declaration | leanexplore:378484 | leanexplore_sqlite | leanexplore_declarations | theorem exp_val_nonneg {T : HermitianMat d ℂ} (h : 0 ≤ T) : 0 ≤ ρ.exp_val T :=
inner_ge_zero ρ.nonneg h |
76 | leanexplore_declaration | leanexplore:378485 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem exp_val_zero : ρ.exp_val 0 = 0 := by
simp [MState.exp_val] |
75 | leanexplore_declaration | leanexplore:378486 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem exp_val_one : ρ.exp_val 1 = 1 := by
simp [MState.exp_val] |
156 | leanexplore_declaration | leanexplore:378487 | leanexplore_sqlite | leanexplore_declarations | theorem exp_val_le_one {T : HermitianMat d ℂ} (h : T ≤ 1) : ρ.exp_val T ≤ 1 := by
have hmono := inner_mono ρ.nonneg h
rwa [inner_one ρ.M, ρ.tr] at hmono |
153 | leanexplore_declaration | leanexplore:378488 | leanexplore_sqlite | leanexplore_declarations | theorem exp_val_prob {T : HermitianMat d ℂ} (h : 0 ≤ T ∧ T ≤ 1) :
0 ≤ ρ.exp_val T ∧ ρ.exp_val T ≤ 1 :=
⟨ρ.exp_val_nonneg h.1, ρ.exp_val_le_one h.2⟩ |
136 | leanexplore_declaration | leanexplore:378489 | leanexplore_sqlite | leanexplore_declarations | theorem exp_val_sub (A B : HermitianMat d ℂ) :
ρ.exp_val (A - B) = ρ.exp_val A - ρ.exp_val B := by
simp [exp_val, inner_sub_right] |
283 | leanexplore_declaration | leanexplore:378490 | leanexplore_sqlite | leanexplore_declarations | /-- If a PSD observable `A` has expectation value of 0 on a state `ρ`, it must entirely contain the
support of `ρ` in its kernel. -/
theorem exp_val_eq_zero_iff {A : HermitianMat d ℂ} (hA₁ : 0 ≤ A) :
ρ.exp_val A = 0 ↔ ρ.M.support ≤ A.ker := by
exact inner_zero_iff ρ.nonneg hA₁ |
394 | leanexplore_declaration | leanexplore:378491 | leanexplore_sqlite | leanexplore_declarations | /-- If an observable `A` has expectation value of 1 on a state `ρ`, it must entirely contain the
support of `ρ` in its 1-eigenspace. -/
theorem exp_val_eq_one_iff {A : HermitianMat d ℂ} (hA₂ : A ≤ 1) :
ρ.exp_val A = 1 ↔ ρ.M.support ≤ (1 - A).ker := by
rw [← exp_val_eq_zero_iff ρ (A := 1 - A) (HermitianMat.zero_le... |
136 | leanexplore_declaration | leanexplore:378492 | leanexplore_sqlite | leanexplore_declarations | theorem exp_val_add (A B : HermitianMat d ℂ) :
ρ.exp_val (A + B) = ρ.exp_val A + ρ.exp_val B := by
simp [exp_val, inner_add_right] |
131 | leanexplore_declaration | leanexplore:378493 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem exp_val_smul (r : ℝ) (A : HermitianMat d ℂ) :
ρ.exp_val (r • A) = r * ρ.exp_val A := by
simp [MState.exp_val] |
186 | leanexplore_declaration | leanexplore:378494 | leanexplore_sqlite | leanexplore_declarations | @[gcongr]
theorem exp_val_le_exp_val (ρ : MState d) {A B : HermitianMat d ℂ} (h : A ≤ B) :
ρ.exp_val A ≤ ρ.exp_val B := by
simp only [MState.exp_val]
refine inner_mono ρ.nonneg h |
534 | leanexplore_declaration | leanexplore:378495 | leanexplore_sqlite | leanexplore_declarations | /-- A mixed state can be constructed as a pure state arising from a ket. -/
def pure (ψ : Ket d) : MState d where
M := {
val := Matrix.vecMulVec ψ (ψ : Bra d)
property := (Matrix.PosSemidef.outer_self_conj ψ).1
}
nonneg := HermitianMat.zero_le_iff.mpr (.outer_self_conj ψ)
tr := by
have h₁ (x) : ψ x ... |
86 | leanexplore_declaration | leanexplore:378496 | leanexplore_sqlite | leanexplore_declarations | @[simp]
theorem pure_apply {i j : d} : (pure ψ).m i j = (ψ i) * conj (ψ j) := by
rfl |
172 | leanexplore_declaration | leanexplore:378497 | leanexplore_sqlite | leanexplore_declarations | theorem pure_mul_self : (pure ψ).m * (pure ψ).m = (pure ψ : Matrix d d ℂ) := by
dsimp [pure, MState.m]
simp [Matrix.vecMulVec_mul_vecMulVec, ← Braket.dot_eq_dotProduct] |
149 | leanexplore_declaration | leanexplore:378498 | leanexplore_sqlite | leanexplore_declarations | /-- The purity of a state is Tr[ρ^2]. This is a `Prob`, because it is always
between zero and one. -/
def purity (ρ : MState d) : Prob := ⟪ρ, ρ⟫_Prob |
256 | leanexplore_declaration | leanexplore:378499 | leanexplore_sqlite | leanexplore_declarations | /-- The eigenvalue spectrum of a mixed quantum state, as a `Distribution`. -/
def spectrum (ρ : MState d) : ProbDistribution d :=
ProbDistribution.mk'
(ρ.M.H.eigenvalues ·)
(ρ.psd.eigenvalues_nonneg ·)
(by rw [sum_eigenvalues_eq_trace, ρ.tr]) |
2,855 | leanexplore_declaration | leanexplore:378500 | leanexplore_sqlite | leanexplore_declarations | /-- The spectrum of a pure state is (1,0,0,...), i.e. a constant distribution. -/
theorem spectrum_pure_eq_constant :
∃ i, (pure ψ).spectrum = ProbDistribution.constant i := by
let ρ := pure ψ
-- Prove 1 is in the spectrum of pure ψ by exhibiting an eigenvector with value 1.
have : ∃i, (pure ψ).spectrum i = 1... |
2,208 | leanexplore_declaration | leanexplore:378501 | leanexplore_sqlite | leanexplore_declarations | /-- If the spectrum of a mixed state is (1,0,0...) i.e. a constant distribution, it is
a pure state. -/
theorem pure_of_constant_spectrum (h : ∃ i, ρ.spectrum = ProbDistribution.constant i) :
∃ ψ, ρ = pure ψ := by
obtain ⟨i, h'⟩ := h
-- Translate assumption to eigenvalues being (1,0,0,...)
have hEig : ρ.M.H.... |
289 | leanexplore_declaration | leanexplore:378502 | leanexplore_sqlite | leanexplore_declarations | /-- A state ρ is pure iff its spectrum is (1,0,0,...) i.e. a constant distribution. -/
theorem pure_iff_constant_spectrum : (∃ ψ, ρ = pure ψ) ↔
∃ i, ρ.spectrum = ProbDistribution.constant i :=
⟨fun h ↦ h.rec fun ψ h₂ ↦ h₂ ▸ spectrum_pure_eq_constant ψ,
pure_of_constant_spectrum ρ⟩ |
3,820 | leanexplore_declaration | leanexplore:378503 | leanexplore_sqlite | leanexplore_declarations | theorem pure_iff_purity_one : (∃ ψ, ρ = pure ψ) ↔ ρ.purity = 1 := by
--purity = exp(-Collision entropy)
--purity eq 1 iff collision entropy is zero
--entropy is zero iff distribution is constant
--distribution is constant iff pure
constructor <;> intro h;
· obtain ⟨w, rfl⟩ := h
dsimp [purity, inner]
... |
815 | leanexplore_declaration | leanexplore:378504 | leanexplore_sqlite | leanexplore_declarations | theorem spectralDecomposition (ρ : MState d) :
∃ (ψs : d → Ket d), ρ.M = ∑ i, (ρ.spectrum i : ℝ) • (MState.pure (ψs i)).M := by
use (fun i ↦ ⟨(ρ.M.H.eigenvectorUnitary · i), Matrix.unitaryGroup_row_norm _ i⟩)
ext i j
nth_rw 1 [ρ.M.H.spectral_theorem]
--TODO Cleanup
simp only [Complex.coe_algebraMap, spect... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.