Documentation

CslibFrontier.Computability.PCP.TwoProverGame.Quantum

Entangled strategies for two-prover one-round games #

A quantum strategy for a two-prover one-round game in the finite-dimensional tensor-product model Cleve, Høyer, Toner, Watrous, §2 consists of a shared unit state ψ ∈ ℂ^ι ⊗ ℂ^κ, a POVM {X_x^a}_a on ℂ^ι for each question x of Alice, and a POVM {Y_y^b}_b on ℂ^κ for each question y of Bob (Cslib.PCP.QuantumStrategy). On questions (x, y) the answers are (a, b) with probability ⟨ψ|X_x^a ⊗ Y_y^b|ψ⟩ (Cslib.PCP.QuantumStrategy.answers), and the winning probability is ∑_{x,y} π(x,y) ∑_{a,b} ⟨ψ|X_x^a ⊗ Y_y^b|ψ⟩ V(a,b|x,y) (Cslib.PCP.TwoProverGame.quantumWinProb, Cslib.PCP.TwoProverGame.quantumWinProb_eq_sum).

The entangled value ω*(G) is the supremum of the winning probability over all finite dimensions (Cslib.PCP.TwoProverGame.quantumValue). Strategies on any finite index types are bounded by it, by relabelling the bases (Cslib.PCP.TwoProverGame.quantumWinProb_le_quantumValue). A deterministic classical strategy is the quantum strategy with one-dimensional systems and constant measurements (Cslib.PCP.QuantumStrategy.ofDeterministic), so value G ≤ quantumValue G (Cslib.PCP.TwoProverGame.value_le_quantumValue).

Cleve, Høyer, Toner, Watrous, §2 give both parties copies of the same space ℂⁿ; quantumValue lets the two dimensions differ. The two suprema are equal (pad the smaller space), but only the inequality value_le_quantumValue and upper bounds on quantumValue are used here. The shared state is pure, as in the source; the commuting-operator model is not formalized.

Main definitions #

Main results #

References #

structure Cslib.PCP.QuantumStrategy (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 κ] :
Type (max (max (max (max (max u_1 u_2) u_3) u_4) u_5) u_6)

A quantum strategy for a game with questions X, Y and answers A, B in the finite-dimensional tensor-product model Cleve, Høyer, Toner, Watrous, §2: a shared unit state on ℂ^ι ⊗ ℂ^κ, and a POVM on Alice's (Bob's) system for each of her (his) questions.

noncomputable def Cslib.PCP.QuantumStrategy.answers {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) :
PMF (A × B)

The distribution of the answers on questions (x, y): the outcome of measuring the shared state with X_x ⊗ Y_y.

theorem Cslib.PCP.QuantumStrategy.answers_apply {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.answers x y) (a, b) = ENNReal.ofReal (star S.state.ofLp ⬝ᵥ (Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) ((S.alice x).effect a) ((S.bob y).effect b)).mulVec S.state.ofLp).re
noncomputable def Cslib.PCP.QuantumStrategy.prob {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) :

The probability ⟨ψ|X_x^a ⊗ Y_y^b|ψ⟩ that the players answer (a, b) on questions (x, y): the outcome probability of the product POVM.

theorem Cslib.PCP.QuantumStrategy.prob_eq {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.prob x y a b = (star S.state.ofLp ⬝ᵥ (Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) ((S.alice x).effect a) ((S.bob y).effect b)).mulVec S.state.ofLp).re
theorem Cslib.PCP.QuantumStrategy.prob_nonneg {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) :
0 ≤ S.prob x y a b
theorem Cslib.PCP.QuantumStrategy.sum_prob {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.prob x y a b = 1
noncomputable def Cslib.PCP.QuantumStrategy.ofDeterministic {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B] (ha : X → A) (hb : Y → B) :
QuantumStrategy X Y A B (Fin 1) (Fin 1)

The deterministic strategy (ha, hb) as a quantum strategy on one-dimensional systems.

theorem Cslib.PCP.QuantumStrategy.answers_ofDeterministic {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B] (ha : X → A) (hb : Y → B) (x : X) (y : Y) :
(ofDeterministic ha hb).answers x y = PMF.pure (ha x, hb y)
noncomputable def Cslib.PCP.QuantumStrategy.reindex {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ι : Type u_5} {κ : Type u_6} {ι' : Type u_7} {κ' : Type u_8} [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [Fintype ι'] [DecidableEq ι'] [Fintype κ'] [DecidableEq κ'] (S : QuantumStrategy X Y A B ι κ) (e : ι ≃ ι') (f : κ ≃ κ') :
QuantumStrategy X Y A B ι' κ'

Relabel the bases of the two systems along e : ι ≃ ι' and f : κ ≃ κ'.

theorem Cslib.PCP.QuantumStrategy.answers_reindex {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ι : Type u_5} {κ : Type u_6} {ι' : Type u_7} {κ' : Type u_8} [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [Fintype ι'] [DecidableEq ι'] [Fintype κ'] [DecidableEq κ'] (S : QuantumStrategy X Y A B ι κ) (e : ι ≃ ι') (f : κ ≃ κ') (x : X) (y : Y) :
(S.reindex e f).answers x y = S.answers x y

Relabelling the bases does not change the distribution of the answers.

def Cslib.PCP.TwoProverGame.AcceptsRound {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) :
(X × Y) × A × B → Prop

The verdict of G on a round with questions (x, y) and answers (a, b).

theorem Cslib.PCP.TwoProverGame.acceptsRound_eq {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) :
G.AcceptsRound = fun (x : (X × Y) × A × B) => match x with | ((x, y), a, b) => G.accepts x y a b

The verdict of G on a round ((x, y), (a, b)) is G.accepts x y a b.

noncomputable def Cslib.PCP.TwoProverGame.answersWinProb {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) (ans : X → Y → PMF (A × B)) :

The probability of winning G when the answers to questions (x, y) are drawn from ans x y: the winning probability of any strategy, classical or quantum, with these answer distributions.

theorem Cslib.PCP.TwoProverGame.answersWinProb_eq {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) (ans : X → Y → PMF (A × B)) :
G.answersWinProb ans = ((G.questions.bind fun (q : X × Y) => PMF.map (fun (ab : A × B) => (q, ab)) (ans q.1 q.2)).toOuterMeasure {z : (X × Y) × A × B | G.AcceptsRound z}).toReal

The winning probability in terms of G's question distribution and round acceptance event.

theorem Cslib.PCP.TwoProverGame.answersWinProb_nonneg {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) (ans : X → Y → PMF (A × B)) :
theorem Cslib.PCP.TwoProverGame.answersWinProb_le_one {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) (ans : X → Y → PMF (A × B)) :
theorem Cslib.PCP.TwoProverGame.answersWinProb_eq_sum {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] [Fintype X] [Fintype Y] [dec : (x : X) → (y : Y) → (a : A) → (b : B) → Decidable (G.accepts x y a b)] (ans : X → Y → PMF (A × B)) :
G.answersWinProb ans = ∑ x : X, ∑ y : Y, (G.questions (x, y)).toReal * ∑ a : A, ∑ b : B, if G.accepts x y a b then ((ans x y) (a, b)).toReal else 0

The winning probability ∑_{x,y} π(x,y) ∑_{a,b} V(a,b|x,y) Pr[(a, b) | x, y].

theorem Cslib.PCP.TwoProverGame.answersWinProb_eq_sum_of_ofReal {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] [Fintype X] [Fintype Y] [(x : X) → (y : Y) → (a : A) → (b : B) → Decidable (G.accepts x y a b)] (ans : X → Y → PMF (A × B)) (p : X → Y → A → B → ℝ) (hp : ∀ (x : X) (y : Y) (a : A) (b : B), 0 ≤ p x y a b) (h : ∀ (x : X) (y : Y) (a : A) (b : B), (ans x y) (a, b) = ENNReal.ofReal (p x y a b)) :
G.answersWinProb ans = ∑ x : X, ∑ y : Y, (G.questions (x, y)).toReal * ∑ a : A, ∑ b : B, if G.accepts x y a b then p x y a b else 0

The winning probability of answer distributions with nonnegative real probabilities p x y a b.

noncomputable def Cslib.PCP.TwoProverGame.quantumWinProb {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] {ι : Type u_5} {κ : Type u_6} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y A B ι κ) :

The probability that the quantum strategy S wins G.

theorem Cslib.PCP.TwoProverGame.quantumWinProb_nonneg {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] {ι : Type u_5} {κ : Type u_6} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y A B ι κ) :
theorem Cslib.PCP.TwoProverGame.quantumWinProb_le_one {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] {ι : Type u_5} {κ : Type u_6} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y A B ι κ) :
theorem Cslib.PCP.TwoProverGame.quantumWinProb_eq_sum {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] {ι : Type u_5} {κ : Type u_6} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [Fintype X] [Fintype Y] [(x : X) → (y : Y) → (a : A) → (b : B) → Decidable (G.accepts x y a b)] (S : QuantumStrategy X Y A B ι κ) :
G.quantumWinProb S = ∑ x : X, ∑ y : Y, (G.questions (x, y)).toReal * ∑ a : A, ∑ b : B, if G.accepts x y a b then (star S.state.ofLp ⬝ᵥ (Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) ((S.alice x).effect a) ((S.bob y).effect b)).mulVec S.state.ofLp).re else 0

The winning probability of a quantum strategy Cleve, Høyer, Toner, Watrous, §2: ∑_{x,y} π(x,y) ∑_{a,b} V(a,b|x,y) ⟨ψ|X_x^a ⊗ Y_y^b|ψ⟩.

theorem Cslib.PCP.TwoProverGame.quantumWinProb_reindex {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] {ι : Type u_5} {κ : Type u_6} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] {ι' : Type u_7} {κ' : Type u_8} [Fintype ι'] [DecidableEq ι'] [Fintype κ'] [DecidableEq κ'] (S : QuantumStrategy X Y A B ι κ) (e : ι ≃ ι') (f : κ ≃ κ') :

Relabelling the bases does not change the winning probability.

theorem Cslib.PCP.TwoProverGame.answersWinProb_pure {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) (ha : X → A) (hb : Y → B) :
(G.answersWinProb fun (x : X) (y : Y) => PMF.pure (ha x, hb y)) = G.winProb ha hb

Point-mass answer laws reproduce the deterministic winning probability.

theorem Cslib.PCP.TwoProverGame.quantumWinProb_ofDeterministic {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] [DecidableEq A] [DecidableEq B] (ha : X → A) (hb : Y → B) :

The quantum embedding of a deterministic strategy wins with its classical probability.

noncomputable def Cslib.PCP.TwoProverGame.quantumValue {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] :

The entangled value ω*(G) of a game: the supremum of the winning probability of quantum strategies over all finite dimensions Cleve, Høyer, Toner, Watrous, §2.

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

Every quantum strategy, on any finite-dimensional systems, wins with probability at most the entangled value.

theorem Cslib.PCP.TwoProverGame.quantumValue_le {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] {c : ℝ} (hc : 0 ≤ c) (h : ∀ {ι κ : Type} [inst : Fintype ι] [inst_1 : DecidableEq ι] [inst_2 : Fintype κ] [inst_3 : DecidableEq κ] (S : QuantumStrategy X Y A B ι κ), G.quantumWinProb S ≤ c) :

A bound on the winning probability of every quantum strategy bounds the entangled value.

theorem Cslib.PCP.TwoProverGame.quantumValue_le_one {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] :
theorem Cslib.PCP.TwoProverGame.quantumValue_nonneg {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] :
theorem Cslib.PCP.TwoProverGame.value_le_quantumValue {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) [Fintype A] [Fintype B] [Finite X] [Finite Y] [Nonempty A] [Nonempty B] :

Entanglement does not hurt: the classical value is at most the entangled value.