Documentation

CslibFrontier.Foundations.Quantum.Algebra.CharacterFamily

Character observables of measurements with bit-string outcomes #

A measurement M with outcomes x ∈ {0,1}ⁿ defines the character observables χ_M(a) = ∑_x (-1)^{a·x} M_x (Cslib.Quantum.Measurement.charObs), its Walsh–Fourier transform, for a supplied measurement with full-bit-string outcomes.

These are not the averaged marginals of a strategy in Natarajan and Vidick, §4.1, eq. (11) (arXiv:1610.03574v1, p. 18). Those average a query-dependent measurement over the other query and the other answer. For example, a strategy that always answers -1 has marginal -1 at a = 0, while χ_M(0) = 1 for every M. Constructing such a measurement from a strategy's query-dependent measurements, comparing its characters with the strategy's marginals, and bounding the defect by the winning probability are tracked in #6149 (milestone M3).

Main definitions #

Main results #

References #

theorem Cslib.Quantum.sum_signVal_mul_signVal {ι : Type u_1} [Fintype ι] [DecidableEq ι] (x y : ι → Bool) :
∑ u : ι → Bool, ↑(BitString.signVal (u ⬝ᵥ x) * BitString.signVal (u ⬝ᵥ y)) = if x = y then 2 ^ Fintype.card ι else 0

Orthogonality of the characters, over ℂ: ∑_u (-1)^{u·x} (-1)^{u·y} = 2ⁿ [x = y].

noncomputable def Cslib.Quantum.walshSum {ι : Type u_1} [Fintype ι] [DecidableEq ι] {A : Type u_2} [Ring A] [Algebra ℂ A] (D : (ι → Bool) → A) (a : ι → Bool) :
A

The Walsh sum ∑_x (-1)^{a·x} D(x) of a family indexed by bit strings.

theorem Cslib.Quantum.walshSum_sub {ι : Type u_1} [Fintype ι] [DecidableEq ι] {A : Type u_2} [Ring A] [Algebra ℂ A] (D D' : (ι → Bool) → A) (a : ι → Bool) :
walshSum D a - walshSum D' a = walshSum (D - D') a
theorem Cslib.Quantum.walshSum_zero {ι : Type u_1} [Fintype ι] [DecidableEq ι] {A : Type u_2} [Ring A] [Algebra ℂ A] (D : (ι → Bool) → A) :
walshSum D 0 = ∑ x : ι → Bool, D x
theorem Cslib.Quantum.sum_norm_walshSum_sq {ι : Type u_1} [Fintype ι] [DecidableEq ι] {A : Type u_2} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] (φ : AlgState A) (D : (ι → Bool) → A) :
∑ a : ι → Bool, φ.norm (walshSum D a) ^ 2 = 2 ^ Fintype.card ι * ∑ x : ι → Bool, φ.norm (D x) ^ 2

Parseval in a state: ∑_a ‖∑_x (-1)^{a·x} D(x)‖²_φ = 2ⁿ ∑_x ‖D(x)‖²_φ.

theorem Cslib.Quantum.expect_norm_walshSum_sq {ι : Type u_1} [Fintype ι] [DecidableEq ι] {A : Type u_2} [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] [SelfAdjointDecompose A] (φ : AlgState A) (D : (ι → Bool) → A) :
(Finset.univ.expect fun (a : ι → Bool) => φ.norm (walshSum D a) ^ 2) = ∑ x : ι → Bool, φ.norm (D x) ^ 2

Parseval in a state, averaged: E_a ‖∑_x (-1)^{a·x} D(x)‖²_φ = ∑_x ‖D(x)‖²_φ.

noncomputable def Cslib.Quantum.Measurement.charObs {ι : Type u_1} [Fintype ι] [DecidableEq ι] {A : Type u_2} [CStarAlgebra A] [PartialOrder A] (M : Measurement (ι → Bool) A) (a : ι → Bool) :
A

The character observable χ_M(a) = ∑_x (-1)^{a·x} M_x of a measurement with bit-string outcomes.

theorem Cslib.Quantum.Measurement.charObs_zero {ι : Type u_1} [Fintype ι] [DecidableEq ι] {A : Type u_2} [CStarAlgebra A] [PartialOrder A] (M : Measurement (ι → Bool) A) :
M.charObs 0 = 1
theorem Cslib.Quantum.Measurement.charObs_eq_observable_map {ι : Type u_1} [Fintype ι] [DecidableEq ι] {A : Type u_2} [CStarAlgebra A] [PartialOrder A] [StarOrderedRing A] (M : Measurement (ι → Bool) A) (a : ι → Bool) :
M.charObs a = (map (fun (x : ι → Bool) => a ⬝ᵥ x) M).observable

The character observable χ_M(a) is the ±1 observable of the parity a · x of the outcome.

theorem Cslib.Quantum.Measurement.IsProjective.charObs_mul {ι : Type u_1} [Fintype ι] [DecidableEq ι] {A : Type u_2} [CStarAlgebra A] [PartialOrder A] [StarOrderedRing A] {M : Measurement (ι → Bool) A} (hM : M.IsProjective) (a a' : ι → Bool) :
M.charObs a * M.charObs a' = M.charObs (a + a')

The character observables of a projective measurement are exactly linear.

The character observables of a projective measurement are unitary.