Documentation

CslibFrontier.Foundations.Quantum.Algebra.JointMeasurement

Joint measurements of commuting observables #

A finite family O : ι → A of pairwise commuting ±1 observables can be measured jointly: the outcome a : ι → Bool has the effect P_a = ∏_j P_{a_j}(O_j), the product of the eigenspace projections (Cslib.Quantum.jointProj), and these effects form a projective measurement (Cslib.Quantum.Measurement.ofCommuting). This is how a prover answers a whole equation of a linear constraint system, or measures several commuting Pauli observables at once.

The products are taken in the subalgebra generated by the family (Cslib.Quantum.jointAlg), which is commutative because the generators commute; there the commutative identities of finite products and sums apply, for instance ∑_a ∏_j P_{a_j}(O_j) = ∏_j ∑_b P_b(O_j) = 1 (Cslib.Quantum.sum_jointProj).

The relations of the family determine which outcomes occur: each O_j acts on P_a by its sign σ_{a_j} = Cslib.BitString.signVal a_j (Cslib.Quantum.mul_jointProj), so if the product of the family is c · 1 (Cslib.Quantum.jointProd), every outcome with ∏_j σ_{a_j} ≠ c has effect 0 (Cslib.Quantum.jointProj_eq_zero).

Main definitions #

Main results #

@[reducible, inline]
abbrev Cslib.Quantum.jointAlg {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] (O : ι → A) :

The subalgebra generated by a family of observables.

theorem Cslib.Quantum.mem_jointAlg {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] (O : ι → A) (j : ι) :
theorem Cslib.Quantum.signProj_mem_jointAlg {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] (O : ι → A) (j : ι) (b : Bool) :
theorem Cslib.Quantum.isMulCommutative_jointAlg {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) :

The subalgebra generated by pairwise commuting observables is commutative.

noncomputable def Cslib.Quantum.jointSignProj {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] (O : ι → A) (j : ι) (b : Bool) :
↥(jointAlg O)

The projection P_b(O_j) as an element of the generated subalgebra.

@[simp]
theorem Cslib.Quantum.val_jointSignProj {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] (O : ι → A) (j : ι) (b : Bool) :
(jointAlg O).val (jointSignProj O j b) = signProj (O j) b
noncomputable def Cslib.Quantum.jointProj {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] [Fintype ι] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) (a : ι → Bool) :
A

The joint projection ∏_j P_{a_j}(O_j) of pairwise commuting observables.

noncomputable def Cslib.Quantum.jointProd {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] [Fintype ι] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) :
A

The product ∏_j O_j of pairwise commuting observables.

theorem Cslib.Quantum.jointProd_eq_noncommProd {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] [Fintype ι] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) :

The joint product is the ordered product Finset.noncommProd of the commuting observables.

theorem Cslib.Quantum.map_jointProd {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] [Fintype ι] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) {B : Type u_3} {F : Type u_4} [Ring B] [Algebra ℂ B] [FunLike F A B] [AlgHomClass F ℂ A B] (f : F) :
f (jointProd O hO) = jointProd (fun (i : ι) => f (O i)) ⋯

An algebra homomorphism carries the joint product to the joint product of the images.

theorem Cslib.Quantum.jointProj_mem_jointAlg {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] [Fintype ι] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) (a : ι → Bool) :
theorem Cslib.Quantum.sum_jointProj {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] [Fintype ι] [DecidableEq ι] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) :
∑ a : ι → Bool, jointProj O hO a = 1

The joint projections sum to 1.

theorem Cslib.Quantum.exists_jointProj_eq_mul {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] [Fintype ι] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) (a : ι → Bool) (j : ι) :
∃ (M : A), jointProj O hO a = M * signProj (O j) (a j) ∧ jointProj O hO a = signProj (O j) (a j) * M

Each joint projection factors through every projection P_{a_j}(O_j), on either side.

theorem Cslib.Quantum.mul_jointProj {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] [Fintype ι] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) (hO' : ∀ (j : ι), O j * O j = 1) (a : ι → Bool) (j : ι) :
O j * jointProj O hO a = ↑(BitString.signVal (a j)) • jointProj O hO a

Each observable acts on a joint projection by its sign: O_j P_a = σ_{a_j} P_a.

theorem Cslib.Quantum.jointProd_mul_jointProj {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] [Fintype ι] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) (hO' : ∀ (j : ι), O j * O j = 1) (a : ι → Bool) :
jointProd O hO * jointProj O hO a = (∏ j : ι, ↑(BitString.signVal (a j))) • jointProj O hO a

The product of the family acts on a joint projection by the product of the signs.

theorem Cslib.Quantum.jointProj_eq_zero {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] [Fintype ι] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) (hO' : ∀ (j : ι), O j * O j = 1) {c : ℂ} (hprod : jointProd O hO = c • 1) {a : ι → Bool} (ha : c ≠ ∏ j : ι, ↑(BitString.signVal (a j))) :
jointProj O hO a = 0

Outcomes contradicting the product vanish: if ∏_j O_j = c · 1 and the signs of a multiply to something other than c, then P_a = 0.

theorem Cslib.Quantum.jointProj_mul_self {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] [Fintype ι] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) (hO' : ∀ (j : ι), O j * O j = 1) (a : ι → Bool) :
jointProj O hO a * jointProj O hO a = jointProj O hO a

The joint projections are idempotent.

theorem Cslib.Quantum.jointProj_mul_signProj_of_ne {ι : Type u_1} {A : Type u_2} [Ring A] [Algebra ℂ A] [Fintype ι] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) (hO' : ∀ (j : ι), O j * O j = 1) {a : ι → Bool} {j : ι} {b : Bool} (hb : a j ≠ b) :
jointProj O hO a * signProj (O j) b = 0

Joint projections of different outcomes are orthogonal.

theorem Cslib.Quantum.jointProd_eq_prod {ι : Type u_1} {A : Type u_2} [Fintype ι] [CommRing A] [Algebra ℂ A] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) :
jointProd O hO = ∏ j : ι, O j

In a commutative algebra, jointProd is the product of the family.

theorem Cslib.Quantum.isSelfAdjoint_jointProj {ι : Type u_1} {A : Type u_2} [Fintype ι] [Ring A] [StarRing A] [Algebra ℂ A] [StarModule ℂ A] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) (hsa : ∀ (j : ι), IsSelfAdjoint (O j)) (a : ι → Bool) :

The joint projections of self-adjoint observables are self-adjoint.

noncomputable def Cslib.Quantum.Measurement.ofCommuting {ι : Type u_1} {A : Type u_2} [Fintype ι] [DecidableEq ι] [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) (hsa : ∀ (j : ι), IsSelfAdjoint (O j)) (hO' : ∀ (j : ι), O j * O j = 1) :
Measurement (ι → Bool) A

The joint measurement of pairwise commuting ±1 observables: the outcome a : ι → Bool has the effect ∏_j P_{a_j}(O_j).

theorem Cslib.Quantum.Measurement.ofCommuting_effect {ι : Type u_1} {A : Type u_2} [Fintype ι] [DecidableEq ι] [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) (hsa : ∀ (j : ι), IsSelfAdjoint (O j)) (hO' : ∀ (j : ι), O j * O j = 1) (a : ι → Bool) :
(ofCommuting O hO hsa hO').effect a = jointProj O hO a
theorem Cslib.Quantum.Measurement.isProjective_ofCommuting {ι : Type u_1} {A : Type u_2} [Fintype ι] [DecidableEq ι] [Ring A] [StarRing A] [PartialOrder A] [StarOrderedRing A] [Algebra ℂ A] [StarModule ℂ A] (O : ι → A) (hO : ∀ (i j : ι), Commute (O i) (O j)) (hsa : ∀ (j : ι), IsSelfAdjoint (O j)) (hO' : ∀ (j : ι), O j * O j = 1) :
(ofCommuting O hO hsa hO').IsProjective

The joint measurement of commuting ±1 observables is projective.