Documentation

CslibFrontier.Foundations.Quantum.Algebra.AlgState

States on star-ordered algebras #

A state on a star-ordered ℂ-algebra A is a positive linear functional φ : A → ℂ with φ 1 = 1 (Cslib.Quantum.AlgState). It is the algebraic form of a quantum state: the vector state M ↦ ⟨ψ|M|ψ⟩ of a unit vector ψ (Cslib.Quantum.AlgState.vector), and more generally M ↦ Tr(ρM) for a density matrix ρ, are states on the matrix algebra, but a state may live on any algebra of observables, such as the algebra generated by the measurements of two commuting provers. Every statement about quantum strategies phrased through a state therefore holds in the finite-dimensional tensor-product model, the commuting-operator model and their tracial variants at once.

A state gives every observable a the state-dependent norm ‖a‖_φ = √(Re φ(a⋆a)) (Cslib.Quantum.AlgState.norm), the seminorm of the Gelfand–Naimark–Segal pre-inner product ⟨a, b⟩_φ = φ(a⋆b) (PositiveLinearMap.PreGNS). It is the norm in which the rigidity and self-testing theorems of nonlocal games measure closeness of operators. The Cauchy–Schwarz inequality |φ(a⋆b)| ≤ ‖a‖_φ ‖b‖_φ (Cslib.Quantum.AlgState.norm_apply_star_mul_le) and the triangle inequality (Cslib.Quantum.AlgState.norm_add_le) come from Mathlib's GNS construction and need no C⋆-norm.

Main definitions #

Main results #

structure Cslib.Quantum.AlgState (A : Type u_1) [Ring A] [PartialOrder A] [Algebra ℂ A] extends A →ₚ[ℂ] ℂ :
Type u_1

A state on a star-ordered ℂ-algebra: a positive linear functional φ with φ 1 = 1.

Instances For
    @[instance_reducible]
    theorem Cslib.Quantum.AlgState.ext {A : Type u_1} [Ring A] [PartialOrder A] [Algebra ℂ A] {φ ψ : AlgState A} (h : ∀ (a : A), φ a = ψ a) :
    φ = ψ
    theorem Cslib.Quantum.AlgState.ext_iff {A : Type u_1} [Ring A] [PartialOrder A] [Algebra ℂ A] {φ ψ : AlgState A} :
    φ = ψ ↔ ∀ (a : A), φ a = ψ a
    @[simp]
    theorem Cslib.Quantum.AlgState.map_one {A : Type u_1} [Ring A] [PartialOrder A] [Algebra ℂ A] (φ : AlgState A) :
    φ 1 = 1
    theorem Cslib.Quantum.AlgState.apply_nonneg {A : Type u_1} [Ring A] [PartialOrder A] [Algebra ℂ A] (φ : AlgState A) {a : A} (ha : 0 ≤ a) :
    0 ≤ φ a

    A state is nonnegative on nonnegative elements.

    theorem Cslib.Quantum.AlgState.apply_mono {A : Type u_1} [Ring A] [PartialOrder A] [Algebra ℂ A] (φ : AlgState A) {a b : A} (h : a ≤ b) :
    φ a ≤ φ b

    A state is monotone.

    theorem Cslib.Quantum.AlgState.ofReal_re_apply {A : Type u_1} [Ring A] [PartialOrder A] [Algebra ℂ A] (φ : AlgState A) {a : A} (ha : 0 ≤ a) :
    ↑(φ a).re = φ a

    A state is real on nonnegative elements.

    theorem Cslib.Quantum.AlgState.re_apply_nonneg {A : Type u_1} [Ring A] [PartialOrder A] [Algebra ℂ A] (φ : AlgState A) {a : A} (ha : 0 ≤ a) :
    0 ≤ (φ a).re
    theorem Cslib.Quantum.AlgState.re_apply_mono {A : Type u_1} [Ring A] [PartialOrder A] [Algebra ℂ A] (φ : AlgState A) {a b : A} (h : a ≤ b) :
    (φ a).re ≤ (φ b).re
    @[simp]
    theorem Cslib.Quantum.AlgState.apply_algebraMap {A : Type u_1} [Ring A] [PartialOrder A] [Algebra ℂ A] (φ : AlgState A) (z : ℂ) :
    φ ((algebraMap ℂ A) z) = z
    theorem Cslib.Quantum.AlgState.re_apply_le_one {A : Type u_1} [Ring A] [PartialOrder A] [Algebra ℂ A] (φ : AlgState A) {a : A} (h : a ≤ 1) :
    (φ a).re ≤ 1

    A state assigns probability at most 1 to an effect, 0 ≤ a ≤ 1.

    A state is nonnegative on a⋆a.

    noncomputable def Cslib.Quantum.AlgState.toPreGNS {A : Type u_1} [Ring A] [PartialOrder A] [Algebra ℂ A] (φ : AlgState A) :

    An observable as a vector of the GNS pre-inner product space of φ, with inner product ⟨a, b⟩_φ = φ(a⋆b).

    noncomputable def Cslib.Quantum.AlgState.norm {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] (φ : AlgState A) (a : A) :

    The state-dependent norm ‖a‖_φ = √(Re φ(a⋆a)), the GNS seminorm of a.

    theorem Cslib.Quantum.AlgState.norm_sq {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] (φ : AlgState A) (a : A) :
    φ.norm a ^ 2 = (φ (star a * a)).re
    theorem Cslib.Quantum.AlgState.ofReal_norm_sq {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] (φ : AlgState A) (a : A) :
    ↑(φ.norm a ^ 2) = φ (star a * a)
    theorem Cslib.Quantum.AlgState.norm_add_le {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] (φ : AlgState A) (a b : A) :
    φ.norm (a + b) ≤ φ.norm a + φ.norm b
    theorem Cslib.Quantum.AlgState.norm_sub_le {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] (φ : AlgState A) (a b : A) :
    φ.norm (a - b) ≤ φ.norm a + φ.norm b
    @[simp]
    theorem Cslib.Quantum.AlgState.norm_neg {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] (φ : AlgState A) (a : A) :
    φ.norm (-a) = φ.norm a
    theorem Cslib.Quantum.AlgState.norm_sub_comm {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] (φ : AlgState A) (a b : A) :
    φ.norm (a - b) = φ.norm (b - a)
    theorem Cslib.Quantum.AlgState.norm_smul {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] (φ : AlgState A) (z : ℂ) (a : A) :
    φ.norm (z • a) = ‖z‖ * φ.norm a

    Cauchy–Schwarz for states: |φ(a⋆b)| ≤ ‖a‖_φ ‖b‖_φ.

    theorem Cslib.Quantum.AlgState.abs_sum_re_star_mul_le {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] {ι : Type u_2} [Fintype ι] (φ : AlgState A) (X Y : ι → A) :
    |∑ i : ι, (φ (star (X i) * Y i)).re| ≤ √(∑ i : ι, φ.norm (X i) ^ 2) * √(∑ i : ι, φ.norm (Y i) ^ 2)

    Cauchy–Schwarz for a finite sum of state pairings.

    theorem Cslib.Quantum.AlgState.abs_sum_re_star_mul_le_of_normalized {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] {ι : Type u_2} [Fintype ι] (φ : AlgState A) (X Y : ι → A) (hX : ∑ a : ι, φ.norm (X a) ^ 2 ≤ 1) :
    |∑ a : ι, (φ (star (X a) * Y a)).re| ≤ √(∑ a : ι, φ.norm (Y a) ^ 2)

    Cauchy–Schwarz for a state pairing with a normalized left family.

    theorem Cslib.Quantum.AlgState.abs_sum_re_star_mul_le_of_normalized_right {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] {ι : Type u_2} [Fintype ι] (φ : AlgState A) (X Y : ι → A) (hY : ∑ a : ι, φ.norm (Y a) ^ 2 ≤ 1) :
    |∑ a : ι, (φ (star (X a) * Y a)).re| ≤ √(∑ a : ι, φ.norm (X a) ^ 2)

    Cauchy–Schwarz for a state pairing with a normalized right family.

    theorem Cslib.Quantum.AlgState.norm_sq_le_of_star_mul_le {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] (φ : AlgState A) {x y : A} (h : star x * x ≤ y) :
    φ.norm x ^ 2 ≤ (φ y).re

    A bound x⋆x ≤ y bounds the state norm: ‖x‖²_φ ≤ Re φ(y).

    theorem Cslib.Quantum.AlgState.norm_le_one {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] (φ : AlgState A) {a : A} (h : star a * a ≤ 1) :
    φ.norm a ≤ 1

    A contraction, a⋆a ≤ 1, has state norm at most 1.

    theorem Cslib.Quantum.AlgState.norm_sub_sq_eq_of_mul_self {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] (φ : AlgState A) {U V : A} (hU : IsSelfAdjoint U) (hV : IsSelfAdjoint V) (hU2 : U * U = 1) (hV2 : V * V = 1) :
    φ.norm (U - V) ^ 2 = 2 - 2 * (φ (U * V)).re

    For self-adjoint involutions U, V the squared distance is linear in the correlation: ‖U - V‖²_φ = 2 - 2 Re φ(U V).

    noncomputable def Cslib.Quantum.AlgState.comap {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [Algebra ℂ A] {B : Type u_2} [Ring B] [StarRing B] [PartialOrder B] [Algebra ℂ B] (φ : AlgState B) (f : A →⋆ₐ[ℂ] B) (hf : Monotone ⇑f) :

    The pullback φ ∘ f of a state along a monotone star-algebra homomorphism f.

    theorem Cslib.Quantum.AlgState.comap_apply {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [Algebra ℂ A] {B : Type u_2} [Ring B] [StarRing B] [PartialOrder B] [Algebra ℂ B] (φ : AlgState B) (f : A →⋆ₐ[ℂ] B) (hf : Monotone ⇑f) (a : A) :
    (φ.comap f hf) a = φ (f a)
    theorem Cslib.Quantum.AlgState.norm_comap {A : Type u_1} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] {B : Type u_2} [Ring B] [StarRing B] [PartialOrder B] [StarOrderedRing B] [Algebra ℂ B] [StarModule ℂ B] [SelfAdjointDecompose B] (φ : AlgState B) (f : A →⋆ₐ[ℂ] B) (hf : Monotone ⇑f) (a : A) :
    (φ.comap f hf).norm a = φ.norm (f a)

    The state norm of a pullback is the state norm of the image: ‖a‖_{φ ∘ f} = ‖f a‖_φ.

    noncomputable def Cslib.Quantum.AlgState.vector {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : EuclideanSpace ℂ ι) (hψ : ‖ψ‖ = 1) :

    The vector state M ↦ ⟨ψ|M|ψ⟩ of a unit vector ψ on the matrix algebra.

    theorem Cslib.Quantum.AlgState.vector_apply {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : EuclideanSpace ℂ ι) (hψ : ‖ψ‖ = 1) (M : Matrix ι ι ℂ) :
    (vector ψ hψ) M = star ψ.ofLp ⬝ᵥ M.mulVec ψ.ofLp
    theorem Cslib.Quantum.AlgState.norm_vector {ι : Type u_1} [Fintype ι] [DecidableEq ι] (ψ : EuclideanSpace ℂ ι) (hψ : ‖ψ‖ = 1) (M : Matrix ι ι ℂ) :

    The state norm of a vector state is the norm of the image vector: ‖M‖_ψ = ‖M ψ‖.