Documentation

MIPRE.Background.LIDT.MIPStarRE.LDT.Basic.OperatorExpectations

Operator expectation infrastructure for the low individual degree test #

Expectation-value and normalized-trace lemmas for quantum operators.

Bridging lemmas: expectation-value linearity #

theorem MIPStarRE.LDT.ev_add {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : QuantumState ι) (X Y : Quantum.Op ι) :
ev ψ (X + Y) = ev ψ X + ev ψ Y

ev distributes over addition.

theorem MIPStarRE.LDT.ev_sub {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : QuantumState ι) (X Y : Quantum.Op ι) :
ev ψ (X - Y) = ev ψ X - ev ψ Y

ev distributes over subtraction.

Algebraic lemmas for operator expectation values #

theorem MIPStarRE.LDT.ev_scale {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : QuantumState ι) (c : Error) (X : Quantum.Op ι) :
ev ψ (c X) = c * ev ψ X

ev commutes with complex scalar multiplication by a real number.

theorem MIPStarRE.LDT.ev_real_smul {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : QuantumState ι) (c : Error) (X : Quantum.Op ι) :
ev ψ (c X) = c * ev ψ X

ev commutes with the real scalar action on operators.

This is the real-scalar form of ev_scale; it is convenient when expanding operator averages, whose weights act by the real scalar action before being coerced to complex matrix scalars.

Self-difference and zero-matrix infrastructure #

theorem MIPStarRE.LDT.ev_zero {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : QuantumState ι) :
ev ψ 0 = 0

ev of the zero operator is zero.

theorem MIPStarRE.LDT.ev_opTensor {ι₁ : Type u_1} {ι₂ : Type u_2} [Fintype ι₁] [DecidableEq ι₁] [Fintype ι₂] [DecidableEq ι₂] (ψ : QuantumState (ι₁ × ι₂)) (A : Quantum.Op ι₁) (B : Quantum.Op ι₂) :
ev ψ (opTensor A B) = ev ψ (leftTensor A * rightTensor B)

Expectation of a tensor product can be written using left/right placements.

@[simp]
theorem MIPStarRE.LDT.ev_one_of_isNormalized {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : QuantumState ι) ( : ψ.IsNormalized) :
ev ψ 1 = 1

A normalized state has unit expectation on the identity operator.

PSD trace positivity #

For a PSD state ψ and any operator M, E[Mᴴ M] ≥ 0.

Parallelogram inequality for normalized trace #

theorem MIPStarRE.LDT.normalizedTrace_diff_sq_nonneg {n : Type u_1} [Fintype n] (ρ D₁ D₂ : Matrix n n ) ( : ρ.PosSemidef) :
0 (Quantum.normalizedTrace (ρ * ((D₁ - D₂).conjTranspose * (D₁ - D₂)))).re

PSD trace nonnegativity for difference quadratic: 0 ≤ Re τ(ρ (D₁ - D₂)ᴴ(D₁ - D₂)) for PSD ρ.

theorem MIPStarRE.LDT.normalizedTrace_triangle {n : Type u_1} [Fintype n] (ρ D₁ D₂ : Matrix n n ) ( : ρ.PosSemidef) :
(Quantum.normalizedTrace (ρ * ((D₁ + D₂).conjTranspose * (D₁ + D₂)))).re 2 * ((Quantum.normalizedTrace (ρ * (D₁.conjTranspose * D₁))).re + (Quantum.normalizedTrace (ρ * (D₂.conjTranspose * D₂))).re)

Triangle inequality for normalized trace of PSD-weighted quadratic forms.

For PSD ρ, the real part of τ(ρ (D₁ + D₂)ᴴ(D₁ + D₂)) is bounded by twice the sum of the corresponding quadratic forms for D₁ and D₂.

Operator-level triangle inequality for squared differences #

theorem MIPStarRE.LDT.ev_diff_triangle {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : QuantumState ι) (X Y Z : Quantum.Op ι) :
ev ψ (Matrix.conjTranspose (X - Z) * (X - Z)) 2 * (ev ψ (Matrix.conjTranspose (X - Y) * (X - Y)) + ev ψ (Matrix.conjTranspose (Y - Z) * (Y - Z)))

Operator-level triangle inequality for expectation of squared differences: E[(X-Z)ᴴ(X-Z)] ≤ 2*(E[(X-Y)ᴴ(X-Y)] + E[(Y-Z)ᴴ(Y-Z)]).

theorem MIPStarRE.LDT.normalizedTrace_triangle_three {n : Type u_1} [Fintype n] (ρ D₁ D₂ D₃ : Matrix n n ) ( : ρ.PosSemidef) :
(Quantum.normalizedTrace (ρ * ((D₁ + D₂ + D₃).conjTranspose * (D₁ + D₂ + D₃)))).re 3 * ((Quantum.normalizedTrace (ρ * (D₁.conjTranspose * D₁))).re + (Quantum.normalizedTrace (ρ * (D₂.conjTranspose * D₂))).re + (Quantum.normalizedTrace (ρ * (D₃.conjTranspose * D₃))).re)

Three-vector version of the normalized-trace triangle inequality.

If a difference is decomposed as three successive differences, its squared norm is bounded by 3 times the sum of the three squared norms. This is the k = 3 case of the paper's prop:triangle-inequality-for-vectors-squared, and it is used by the Step 6 projectivization chain in inductive_step.tex:154--158.

theorem MIPStarRE.LDT.ev_diff_triangle_three {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : QuantumState ι) (X Y Z W : Quantum.Op ι) :
ev ψ (Matrix.conjTranspose (X - W) * (X - W)) 3 * (ev ψ (Matrix.conjTranspose (X - Y) * (X - Y)) + ev ψ (Matrix.conjTranspose (Y - Z) * (Y - Z)) + ev ψ (Matrix.conjTranspose (Z - W) * (Z - W)))

Three-step operator triangle inequality for squared differences.

Infrastructure for bridge lemma proofs #

theorem MIPStarRE.LDT.ev_finset_sum {ι : Type u_1} [Fintype ι] [DecidableEq ι] {α : Type u_2} (ψ : QuantumState ι) (s : Finset α) (f : αQuantum.Op ι) :
ev ψ (∑ as, f a) = as, ev ψ (f a)

ev distributes over finite sums.

theorem MIPStarRE.LDT.ev_sum {ι : Type u_1} [Fintype ι] [DecidableEq ι] {α : Type u_2} [Fintype α] (ψ : QuantumState ι) (f : αQuantum.Op ι) :
ev ψ (∑ a : α, f a) = a : α, ev ψ (f a)

ev distributes over univ sums.

theorem MIPStarRE.LDT.ev_averageOperatorOverDistribution {α : Type u_1} {ι : Type u_2} [Fintype ι] [DecidableEq ι] (ψ : QuantumState ι) (𝒟 : Distribution α) (A : αQuantum.Op ι) :
ev ψ (averageOperatorOverDistribution 𝒟 A) = avgOver 𝒟 fun (a : α) => ev ψ (A a)

Evaluation of an operator average is the average of the evaluations.

theorem MIPStarRE.LDT.ev_nonneg_of_psd {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : QuantumState ι) (X : Quantum.Op ι) (hX : 0 X) :
0 ev ψ X

ev of a PSD operator is nonneg.

theorem MIPStarRE.LDT.ev_mono {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : QuantumState ι) (X Y : Quantum.Op ι) (h : X Y) :
ev ψ X ev ψ Y

ev is monotone under the matrix order.

For Hermitian ρ, A, B: ev ψ (A * B) = ev ψ (B * A). Follows from ntr(ρ B A) = conj(ntr(ρ A B)) when all three are Hermitian, and Re is invariant under conjugation.

theorem MIPStarRE.LDT.ev_conjTranspose {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : QuantumState ι) (X : Quantum.Op ι) :

Taking the adjoint does not change ev.

theorem MIPStarRE.LDT.ev_mul_comm_of_hermitian {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : QuantumState ι) (A B : Quantum.Op ι) (hA : Matrix.conjTranspose A = A) (hB : Matrix.conjTranspose B = B) :
ev ψ (A * B) = ev ψ (B * A)
theorem MIPStarRE.LDT.ev_mul_comm_of_psd {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : QuantumState ι) (A B : Quantum.Op ι) (hA : 0 A) (hB : 0 B) :
ev ψ (A * B) = ev ψ (B * A)

ev commutes on PSD operators (convenience wrapper).

Cross-term identity: ev ψ (Bᴴ * A) = ev ψ (Aᴴ * B).

Cauchy-Schwarz for the state-weighted inner product: (ev ψ (Aᴴ * B))² ≤ ev ψ (Aᴴ * A) * ev ψ (Bᴴ * B).

theorem MIPStarRE.LDT.ev_abs_mul_le_sqrt {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : QuantumState ι) (A B : Quantum.Op ι) :

Absolute-value form of Cauchy-Schwarz for ev.

AM-GM for the quadratic form: 2 * ev ψ (Aᴴ * B) ≤ ev ψ (Aᴴ * A) + ev ψ (Bᴴ * B).

theorem MIPStarRE.LDT.ev_sum_conjTranspose_mul_sum_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : QuantumState ι) {α : Type u_2} [Fintype α] (X : αQuantum.Op ι) :
ev ψ ((∑ a : α, X a).conjTranspose * a : α, X a) (Fintype.card α) * a : α, ev ψ (Matrix.conjTranspose (X a) * X a)

Jensen inequality for the quadratic form: for a finite family of operators, ev ψ ((∑ Xᵢ)ᴴ * (∑ Xᵢ)) ≤ n * ∑ ev ψ (XᵢᴴXᵢ).

Bipartite-tensor sandwich Cauchy–Schwarz #

The lemmas below give the operator/real Cauchy–Schwarz step for expectations of sandwiched products lifted to a bipartite tensor space. They are a reusable primitive toward the raw Q₂ → Q₃ and Q₃ → Q₄ Cauchy–Schwarz estimates of self_improvement.tex, lines 306–311 and 326–332 (the eq:change-one-cauchy-schwarz and eq:change-another displays), where the bilinear form is ⟨X, Y⟩_{M, T} := ev ψ (opTensor (Xᴴ · M · Y) T) with PSD M, T.

theorem MIPStarRE.LDT.ev_opTensor_sandwich_cauchy_schwarz {ι₁ : Type u_1} {ι₂ : Type u_2} [Fintype ι₁] [DecidableEq ι₁] [Fintype ι₂] [DecidableEq ι₂] (ψ : QuantumState (ι₁ × ι₂)) (X Y M : Quantum.Op ι₁) (T : Quantum.Op ι₂) (hM : 0 M) (hT : 0 T) :

Bipartite-tensor Cauchy–Schwarz for state expectations.

For PSD operators M, T and arbitrary operators X, Y, (ev ψ (opTensor (Xᴴ M Y) T))² ≤ ev ψ (opTensor (Xᴴ M X) T) * ev ψ (opTensor (Yᴴ M Y) T).

The proof factors M = √M · √M, T = √T · √T (continuous functional calculus square roots) and applies ev_cauchy_schwarz to opTensor (√M · X) √T and opTensor (√M · Y) √T.

theorem MIPStarRE.LDT.ev_opTensor_sandwich_abs_le_sqrt {ι₁ : Type u_1} {ι₂ : Type u_2} [Fintype ι₁] [DecidableEq ι₁] [Fintype ι₂] [DecidableEq ι₂] (ψ : QuantumState (ι₁ × ι₂)) (X Y M : Quantum.Op ι₁) (T : Quantum.Op ι₂) (hM : 0 M) (hT : 0 T) :

Absolute-value form of the bipartite-tensor sandwich Cauchy–Schwarz.