Documentation

CslibFrontier.Computability.PCP.TwoProverGame.Commuting

Commuting-operator strategies #

A commuting-operator strategy (Cslib.PCP.CommutingStrategy) for a two-prover one-round game plays in an algebra of observables π’œ: a state Ο† on π’œ, a measurement {P_x^a}_a in π’œ for each question x of Alice and {Q_y^b}_b for each question y of Bob, and every effect of Alice commutes with every effect of Bob. On questions (x, y) the players answer (a, b) with probability Re Ο†(P_x^a Q_y^b) (Cslib.PCP.CommutingStrategy.prob). Commutation is what makes these numbers a probability distribution (Cslib.PCP.CommutingStrategy.answers): in an algebra with a continuous functional calculus, such as the matrix algebras or any C⋆-algebra, commuting nonnegative elements have a nonnegative product.

This is the commuting-operator model of nonlocal games, in algebraic form: by the GNS construction a state on a C⋆-algebra is a vector state of a representation on a Hilbert space. The finite-dimensional tensor-product model is the instance on the matrix algebra of β„‚^ΞΉ βŠ— β„‚^ΞΊ with the effects E βŠ— 1 and 1 βŠ— F and a vector state (Cslib.PCP.QuantumStrategy.toCommuting), and it has the same answer distribution (Cslib.PCP.QuantumStrategy.answers_toCommuting) and winning probability (Cslib.PCP.TwoProverGame.commutingWinProb_toCommuting). A theorem about commuting strategies therefore applies to both models.

Tsirelson's bound holds in this model: every commuting-operator strategy wins CHSH with probability at most cosΒ²(Ο€/8) (Cslib.PCP.TwoProverGame.commutingWinProb_chsh_le), as a consequence of Tsirelson's inequality for states (Cslib.Quantum.AlgState.re_chsh_le) Cirel'son.

Main definitions #

Main results #

References #

structure Cslib.PCP.CommutingStrategy (X : Type u_1) (Y : Type u_2) (A : Type u_3) (B : Type u_4) (π’œ : Type u_5) [Fintype A] [Fintype B] [Ring π’œ] [PartialOrder π’œ] [Algebra β„‚ π’œ] :
Type (max (max (max (max u_1 u_2) u_3) u_4) u_5)

A commuting-operator strategy for a game with questions X, Y and answers A, B, in the algebra of observables π’œ: a state, a measurement for each question of each player, and every effect of Alice commutes with every effect of Bob.

theorem Cslib.PCP.CommutingStrategy.ext_iff {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} {inst✝ : Fintype A} {inst✝¹ : Fintype B} {inst✝² : Ring π’œ} {inst✝³ : PartialOrder π’œ} {inst✝⁴ : Algebra β„‚ π’œ} {x y : CommutingStrategy X Y A B π’œ} :
theorem Cslib.PCP.CommutingStrategy.ext {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} {inst✝ : Fintype A} {inst✝¹ : Fintype B} {inst✝² : Ring π’œ} {inst✝³ : PartialOrder π’œ} {inst✝⁴ : Algebra β„‚ π’œ} {x y : CommutingStrategy X Y A B π’œ} (state : x.state = y.state) (alice : x.alice = y.alice) (bob : x.bob = y.bob) :
x = y
noncomputable def Cslib.PCP.CommutingStrategy.prob {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [PartialOrder π’œ] [Algebra β„‚ π’œ] (S : CommutingStrategy X Y A B π’œ) (x : X) (y : Y) (a : A) (b : B) :

The probability Re Ο†(P_x^a Q_y^b) that the players answer (a, b) on questions (x, y).

theorem Cslib.PCP.CommutingStrategy.sum_prob_bob {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [PartialOrder π’œ] [Algebra β„‚ π’œ] (S : CommutingStrategy X Y A B π’œ) (x : X) (y : Y) (a : A) :
βˆ‘ b : B, S.prob x y a b = (S.state ((S.alice x).effect a)).re

Summing over Bob's answer gives Alice's marginal, independent of Bob's question.

theorem Cslib.PCP.CommutingStrategy.sum_prob_alice {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [PartialOrder π’œ] [Algebra β„‚ π’œ] (S : CommutingStrategy X Y A B π’œ) (x : X) (y : Y) (b : B) :
βˆ‘ a : A, S.prob x y a b = (S.state ((S.bob y).effect b)).re

Summing over Alice's answer gives Bob's marginal, independent of Alice's question.

def Cslib.PCP.CommutingStrategy.swap {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [PartialOrder π’œ] [Algebra β„‚ π’œ] (S : CommutingStrategy X Y A B π’œ) :
CommutingStrategy Y X B A π’œ

Exchange the two physical players of a commuting strategy.

@[simp]
theorem Cslib.PCP.CommutingStrategy.prob_swap {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [PartialOrder π’œ] [Algebra β„‚ π’œ] (S : CommutingStrategy X Y A B π’œ) (x : X) (y : Y) (a : A) (b : B) :
S.swap.prob y x b a = S.prob x y a b
theorem Cslib.PCP.CommutingStrategy.sum_prob {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [PartialOrder π’œ] [Algebra β„‚ π’œ] (S : CommutingStrategy X Y A B π’œ) (x : X) (y : Y) :
βˆ‘ a : A, βˆ‘ b : B, S.prob x y a b = 1
noncomputable def Cslib.PCP.CommutingStrategy.relabel {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [PartialOrder π’œ] [Algebra β„‚ π’œ] {X' : Type u_6} {Y' : Type u_7} {A' : Type u_8} {B' : Type u_9} [Fintype A'] [Fintype B'] [IsOrderedAddMonoid π’œ] (S : CommutingStrategy X Y A B π’œ) (qx : X' β†’ X) (qy : Y' β†’ Y) (fa : A β†’ A') (fb : B β†’ B') :
CommutingStrategy X' Y' A' B' π’œ

Pull back each player's questions and post-process each player's outcomes independently.

def Cslib.PCP.CommutingStrategy.map {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [PartialOrder π’œ] [Algebra β„‚ π’œ] [IsOrderedAddMonoid π’œ] {X' : Type u_6} {Y' : Type u_7} {A' : Type u_8} {B' : Type u_9} [Fintype A'] [Fintype B'] [DecidableEq A'] [DecidableEq B'] (S : CommutingStrategy X Y A B π’œ) (questionAlice : X' β†’ X) (questionBob : Y' β†’ Y) (answerAlice : X' β†’ A β†’ A') (answerBob : Y' β†’ B β†’ B') :
CommutingStrategy X' Y' A' B' π’œ

Restrict the questions and postprocess the answers of both players, keeping the same state. Each answer effect is a sum of mutually cross-player commuting effects.

theorem Cslib.PCP.CommutingStrategy.prob_map {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [PartialOrder π’œ] [Algebra β„‚ π’œ] [IsOrderedAddMonoid π’œ] {X' : Type u_6} {Y' : Type u_7} {A' : Type u_8} {B' : Type u_9} [Fintype A'] [Fintype B'] [DecidableEq A'] [DecidableEq B'] (S : CommutingStrategy X Y A B π’œ) (questionAlice : X' β†’ X) (questionBob : Y' β†’ Y) (answerAlice : X' β†’ A β†’ A') (answerBob : Y' β†’ B β†’ B') (x : X') (y : Y') (a : A') (b : B') :
(S.map questionAlice questionBob answerAlice answerBob).prob x y a b = βˆ‘ a' : A with answerAlice x a' = a, βˆ‘ b' : B with answerBob y b' = b, S.prob (questionAlice x) (questionBob y) a' b'

Postprocessed answer probabilities sum the original probabilities over the two decoder fibers.

theorem Cslib.PCP.CommutingStrategy.sum_ite_prob_map {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [PartialOrder π’œ] [Algebra β„‚ π’œ] [IsOrderedAddMonoid π’œ] {X' : Type u_6} {Y' : Type u_7} {A' : Type u_8} {B' : Type u_9} [Fintype A'] [Fintype B'] [DecidableEq A'] [DecidableEq B'] (S : CommutingStrategy X Y A B π’œ) (questionAlice : X' β†’ X) (questionBob : Y' β†’ Y) (answerAlice : X' β†’ A β†’ A') (answerBob : Y' β†’ B β†’ B') (x : X') (y : Y') (accepts : A' β†’ B' β†’ Prop) [(a : A') β†’ (b : B') β†’ Decidable (accepts a b)] :
(βˆ‘ a : A', βˆ‘ b : B', if accepts a b then (S.map questionAlice questionBob answerAlice answerBob).prob x y a b else 0) = βˆ‘ a : A, βˆ‘ b : B, if accepts (answerAlice x a) (answerBob y b) then S.prob (questionAlice x) (questionBob y) a b else 0

Checking decoded answers in the postprocessed strategy gives the same score as checking them directly in the original joint distribution.

theorem Cslib.PCP.CommutingStrategy.effect_mul_effect_nonneg {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [StarRing π’œ] [PartialOrder π’œ] [StarOrderedRing π’œ] [Algebra β„‚ π’œ] [TopologicalSpace π’œ] [ContinuousFunctionalCalculus ℝ π’œ IsSelfAdjoint] [NonnegSpectrumClass ℝ π’œ] (S : CommutingStrategy X Y A B π’œ) (x : X) (y : Y) (a : A) (b : B) :
0 ≀ (S.alice x).effect a * (S.bob y).effect b
theorem Cslib.PCP.CommutingStrategy.prob_nonneg {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [StarRing π’œ] [PartialOrder π’œ] [StarOrderedRing π’œ] [Algebra β„‚ π’œ] [TopologicalSpace π’œ] [ContinuousFunctionalCalculus ℝ π’œ IsSelfAdjoint] [NonnegSpectrumClass ℝ π’œ] (S : CommutingStrategy X Y A B π’œ) (x : X) (y : Y) (a : A) (b : B) :
0 ≀ S.prob x y a b
noncomputable def Cslib.PCP.CommutingStrategy.answers {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [StarRing π’œ] [PartialOrder π’œ] [StarOrderedRing π’œ] [Algebra β„‚ π’œ] [TopologicalSpace π’œ] [ContinuousFunctionalCalculus ℝ π’œ IsSelfAdjoint] [NonnegSpectrumClass ℝ π’œ] (S : CommutingStrategy X Y A B π’œ) (x : X) (y : Y) :
PMF (A Γ— B)

The distribution of the answers on questions (x, y).

theorem Cslib.PCP.CommutingStrategy.answers_apply {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [StarRing π’œ] [PartialOrder π’œ] [StarOrderedRing π’œ] [Algebra β„‚ π’œ] [TopologicalSpace π’œ] [ContinuousFunctionalCalculus ℝ π’œ IsSelfAdjoint] [NonnegSpectrumClass ℝ π’œ] (S : CommutingStrategy X Y A B π’œ) (x : X) (y : Y) (a : A) (b : B) :
(S.answers x y) (a, b) = ENNReal.ofReal (S.prob x y a b)
theorem Cslib.PCP.CommutingStrategy.answers_relabel {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [StarRing π’œ] [PartialOrder π’œ] [StarOrderedRing π’œ] [Algebra β„‚ π’œ] [TopologicalSpace π’œ] [ContinuousFunctionalCalculus ℝ π’œ IsSelfAdjoint] [NonnegSpectrumClass ℝ π’œ] {X' : Type u_6} {Y' : Type u_7} {A' : Type u_8} {B' : Type u_9} [Fintype A'] [Fintype B'] [IsOrderedAddMonoid π’œ] (S : CommutingStrategy X Y A B π’œ) (qx : X' β†’ X) (qy : Y' β†’ Y) (fa : A β†’ A') (fb : B β†’ B') (x : X') (y : Y') :
(S.relabel qx qy fa fb).answers x y = PMF.map (Prod.map fa fb) (S.answers (qx x) (qy y))

The distribution of relabeled answers is the pushforward of the original distribution at the corresponding questions.

theorem Cslib.PCP.CommutingStrategy.answers_map_fst {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [StarRing π’œ] [PartialOrder π’œ] [StarOrderedRing π’œ] [Algebra β„‚ π’œ] [TopologicalSpace π’œ] [ContinuousFunctionalCalculus ℝ π’œ IsSelfAdjoint] [NonnegSpectrumClass ℝ π’œ] (S : CommutingStrategy X Y A B π’œ) (x : X) (y : Y) :

Alice's answer marginal is her measurement law and is independent of Bob's question.

theorem Cslib.PCP.CommutingStrategy.successfulMismatch_map_map_eq_event {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} [Fintype A] [Fintype B] [Ring π’œ] [StarRing π’œ] [PartialOrder π’œ] [StarOrderedRing π’œ] [Algebra β„‚ π’œ] [TopologicalSpace π’œ] [ContinuousFunctionalCalculus ℝ π’œ IsSelfAdjoint] [NonnegSpectrumClass ℝ π’œ] {C : Type u_6} [Fintype C] [DecidableEq C] [IsOrderedAddMonoid π’œ] (S : CommutingStrategy X Y A B π’œ) (x : X) (y : Y) (f : A β†’ Option C) (g : B β†’ C) :

The successful mismatch of decoded measurements is the joint probability that the first decoded answer succeeds and differs from the second.

Correlations of binary strategies #

noncomputable def Cslib.PCP.CommutingStrategy.correlation {X : Type u_1} {Y : Type u_2} {π’œ : Type u_5} [Ring π’œ] [PartialOrder π’œ] [Algebra β„‚ π’œ] (S : CommutingStrategy X Y Bool Bool π’œ) (x : X) (y : Y) :

The correlation Re Ο†(A_x B_y) of the observables A_x = P_x^0 - P_x^1 and B_y = Q_y^0 - Q_y^1 of a strategy with binary answers.

theorem Cslib.PCP.CommutingStrategy.correlation_eq {X : Type u_1} {Y : Type u_2} {π’œ : Type u_5} [Ring π’œ] [PartialOrder π’œ] [Algebra β„‚ π’œ] (S : CommutingStrategy X Y Bool Bool π’œ) (x : X) (y : Y) :
S.correlation x y = S.prob x y false false - S.prob x y false true - S.prob x y true false + S.prob x y true true

The correlation is Pr[a = b] - Pr[a β‰  b].

theorem Cslib.PCP.CommutingStrategy.commute_observable {X : Type u_1} {Y : Type u_2} {π’œ : Type u_5} [Ring π’œ] [PartialOrder π’œ] [Algebra β„‚ π’œ] (S : CommutingStrategy X Y Bool Bool π’œ) (x : X) (y : Y) :

The observables of a binary commuting strategy commute across players.

theorem Cslib.PCP.CommutingStrategy.commute_observable_map {X : Type u_1} {Y : Type u_2} {π’œ : Type u_5} [Ring π’œ] [PartialOrder π’œ] [Algebra β„‚ π’œ] [StarRing π’œ] [StarOrderedRing π’œ] {B : Type u_6} [Fintype B] (S : CommutingStrategy X Y Bool B π’œ) (g : B β†’ Bool) (x : X) (y : Y) :

The first player's observable commutes with every post-processed observable of the second.

theorem Cslib.PCP.CommutingStrategy.sum_ite_prob_eq {X : Type u_1} {Y : Type u_2} {π’œ : Type u_5} [Ring π’œ] [PartialOrder π’œ] [Algebra β„‚ π’œ] [StarRing π’œ] [StarOrderedRing π’œ] {B : Type u_6} [Fintype B] (S : CommutingStrategy X Y Bool B π’œ) (g : B β†’ Bool) (x : X) (y : Y) :
(βˆ‘ Ξ³ : Bool, βˆ‘ r : B, if Ξ³ = g r then S.prob x y Ξ³ r else 0) = (1 + (S.state ((S.alice x).observable * (Quantum.Measurement.map g (S.bob y)).observable)).re) / 2

The probability that the bit Ξ³ of the first player equals g(r) for the answer r of the second is the correlation of their observables: (1 + Re Ο†(A_x G_y)) / 2, where G_y is the observable of the second player's measurement post-processed by g.

noncomputable def Cslib.PCP.TwoProverGame.commutingWinProb {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] [Ring π’œ] [StarRing π’œ] [PartialOrder π’œ] [StarOrderedRing π’œ] [Algebra β„‚ π’œ] [TopologicalSpace π’œ] [ContinuousFunctionalCalculus ℝ π’œ IsSelfAdjoint] [NonnegSpectrumClass ℝ π’œ] (S : CommutingStrategy X Y A B π’œ) :

The probability that the commuting-operator strategy S wins G.

theorem Cslib.PCP.TwoProverGame.commutingWinProb_nonneg {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] [Ring π’œ] [StarRing π’œ] [PartialOrder π’œ] [StarOrderedRing π’œ] [Algebra β„‚ π’œ] [TopologicalSpace π’œ] [ContinuousFunctionalCalculus ℝ π’œ IsSelfAdjoint] [NonnegSpectrumClass ℝ π’œ] (S : CommutingStrategy X Y A B π’œ) :
theorem Cslib.PCP.TwoProverGame.commutingWinProb_le_one {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] [Ring π’œ] [StarRing π’œ] [PartialOrder π’œ] [StarOrderedRing π’œ] [Algebra β„‚ π’œ] [TopologicalSpace π’œ] [ContinuousFunctionalCalculus ℝ π’œ IsSelfAdjoint] [NonnegSpectrumClass ℝ π’œ] (S : CommutingStrategy X Y A B π’œ) :
theorem Cslib.PCP.TwoProverGame.commutingWinProb_eq_sum {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {π’œ : Type u_5} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] [Ring π’œ] [StarRing π’œ] [PartialOrder π’œ] [StarOrderedRing π’œ] [Algebra β„‚ π’œ] [TopologicalSpace π’œ] [ContinuousFunctionalCalculus ℝ π’œ IsSelfAdjoint] [NonnegSpectrumClass ℝ π’œ] [Fintype X] [Fintype Y] [(x : X) β†’ (y : Y) β†’ (a : A) β†’ (b : B) β†’ Decidable (G.accepts x y a b)] (S : CommutingStrategy X Y A B π’œ) :
G.commutingWinProb S = βˆ‘ x : X, βˆ‘ y : Y, (G.questions (x, y)).toReal * βˆ‘ a : A, βˆ‘ b : B, if G.accepts x y a b then S.prob x y a b else 0

The winning probability of a commuting-operator strategy: βˆ‘_{x,y} Ο€(x,y) βˆ‘_{a,b} V(a,b|x,y) Re Ο†(P_x^a Q_y^b).

The winning probability of a commuting-operator strategy for CHSH in terms of its correlations.

theorem Cslib.PCP.CommutingStrategy.chsh_correlation_le {X : Type u_1} {Y : Type u_2} {π’œ : Type u_5} [Ring π’œ] [StarRing π’œ] [PartialOrder π’œ] [StarOrderedRing π’œ] [Algebra β„‚ π’œ] [TopologicalSpace π’œ] [ContinuousFunctionalCalculus ℝ π’œ IsSelfAdjoint] [NonnegSpectrumClass ℝ π’œ] [StarModule β„‚ π’œ] [SelfAdjointDecompose π’œ] (S : CommutingStrategy X Y Bool Bool π’œ) (xβ‚€ x₁ : X) (yβ‚€ y₁ : Y) :
S.correlation xβ‚€ yβ‚€ + S.correlation xβ‚€ y₁ + S.correlation x₁ yβ‚€ - S.correlation x₁ y₁ ≀ 2 * √2

Tsirelson's inequality for commuting-operator strategies.

Tsirelson's bound in the commuting-operator model: every commuting-operator strategy wins CHSH with probability at most cosΒ²(Ο€/8).

The tensor-product model as an instance #

noncomputable def Cslib.PCP.QuantumStrategy.leftMeasurement {A : Type u_3} {ΞΉ : Type u_5} {ΞΊ : Type u_6} [Fintype A] [Fintype ΞΉ] [DecidableEq ΞΉ] [Fintype ΞΊ] [DecidableEq ΞΊ] (M : Quantum.POVM A ΞΉ) :
Quantum.Measurement A (Matrix (ΞΉ Γ— ΞΊ) (ΞΉ Γ— ΞΊ) β„‚)

Alice's measurement E βŠ— 1 on the bipartite system.

noncomputable def Cslib.PCP.QuantumStrategy.rightMeasurement {B : Type u_4} {ΞΉ : Type u_5} {ΞΊ : Type u_6} [Fintype B] [Fintype ΞΉ] [DecidableEq ΞΉ] [Fintype ΞΊ] [DecidableEq ΞΊ] (N : Quantum.POVM B ΞΊ) :
Quantum.Measurement B (Matrix (ΞΉ Γ— ΞΊ) (ΞΉ Γ— ΞΊ) β„‚)

Bob's measurement 1 βŠ— F on the bipartite system.

theorem Cslib.PCP.QuantumStrategy.commute_liftedEffects {A : Type u_3} {B : Type u_4} {ΞΉ : Type u_5} {ΞΊ : Type u_6} [Fintype A] [Fintype B] [Fintype ΞΉ] [DecidableEq ΞΉ] [Fintype ΞΊ] [DecidableEq ΞΊ] (L : Quantum.POVM A ΞΉ) (R : Quantum.POVM B ΞΊ) (a : A) (b : B) :

Any left tensor-factor effect commutes with any right tensor-factor effect.

A projective local measurement stays projective on the first tensor factor.

A projective local measurement stays projective on the second tensor factor.

noncomputable def Cslib.PCP.QuantumStrategy.toCommuting {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ΞΉ : Type u_5} {ΞΊ : Type u_6} [Fintype A] [Fintype B] [Fintype ΞΉ] [DecidableEq ΞΉ] [Fintype ΞΊ] [DecidableEq ΞΊ] (S : QuantumStrategy X Y A B ΞΉ ΞΊ) :
CommutingStrategy X Y A B (Matrix (ΞΉ Γ— ΞΊ) (ΞΉ Γ— ΞΊ) β„‚)

A tensor-product strategy as a commuting-operator strategy on the matrix algebra of β„‚^ΞΉ βŠ— β„‚^ΞΊ: the effects E βŠ— 1 and 1 βŠ— F and the vector state of the shared state.

theorem Cslib.PCP.QuantumStrategy.prob_toCommuting {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ΞΉ : Type u_5} {ΞΊ : Type u_6} [Fintype A] [Fintype B] [Fintype ΞΉ] [DecidableEq ΞΉ] [Fintype ΞΊ] [DecidableEq ΞΊ] (S : QuantumStrategy X Y A B ΞΉ ΞΊ) (x : X) (y : Y) (a : A) (b : B) :
S.toCommuting.prob x y a b = S.prob x y a b
theorem Cslib.PCP.QuantumStrategy.answers_toCommuting {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ΞΉ : Type u_5} {ΞΊ : Type u_6} [Fintype A] [Fintype B] [Fintype ΞΉ] [DecidableEq ΞΉ] [Fintype ΞΊ] [DecidableEq ΞΊ] (S : QuantumStrategy X Y A B ΞΉ ΞΊ) (x : X) (y : Y) :

The tensor-product strategy and its commuting-operator form answer alike.

theorem Cslib.PCP.QuantumStrategy.prob_toCommuting_swap_of_symmetric {Q : Type u_7} {C : Type u_8} {J : Type u_9} [Fintype C] [Fintype J] [DecidableEq J] (S : QuantumStrategy Q Q C C J J) (hM : S.bob = S.alice) (hψ : βˆ€ (a b : J), S.state.ofLp (a, b) = S.state.ofLp (b, a)) (x y : Q) (a b : C) :
S.toCommuting.prob y x b a = S.toCommuting.prob x y a b

Swapping questions and answers preserves the correlations of a symmetric strategy.

theorem Cslib.PCP.TwoProverGame.commutingWinProb_toCommuting {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ΞΉ : Type u_5} {ΞΊ : Type u_6} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] [Fintype ΞΉ] [DecidableEq ΞΉ] [Fintype ΞΊ] [DecidableEq ΞΊ] (S : QuantumStrategy X Y A B ΞΉ ΞΊ) :

The tensor-product model is an instance of the commuting-operator model: a strategy and its commuting-operator form win with the same probability.

theorem Cslib.PCP.TwoProverGame.commutingWinProb_swap_of_symmetric {Q : Type u_7} {C : Type u_8} {J : Type u_9} [Fintype C] [Fintype J] [DecidableEq J] (G : TwoProverGame Q Q C C) (S : QuantumStrategy Q Q C C J J) (hM : S.bob = S.alice) (hψ : βˆ€ (a b : J), S.state.ofLp (a, b) = S.state.ofLp (b, a)) :

Exchanging the players of a symmetric tensor strategy preserves its score in any game with the same question and answer alphabets on both sides.