Documentation

CslibFrontier.Computability.PCP.TwoProverGame.AveragedAnswerStates

Averaged checked-answer states #

Restrict each player's measurement to the answers on a checked set. Given independent laws of the full questions, average the two restricted measurements on their respective spaces. The square-root branch for a pair of checked answers has squared norm equal to the probability of those answers in the original strategy with questions drawn from those laws.

This is the measurement construction in Bavarian, Vidick and Yuen, §4.4, equations (12)–(21). The two local question laws are parameters, so the same identity applies to fixed questions and to a noisy mixture of anchor and ordinary questions.

Main results #

noncomputable def Cslib.PCP.QuantumStrategy.checkedAlice {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} {ι : Type u_6} {κ : Type u_7} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) (x : X) :
Quantum.POVM (↥C → A) ι

Alice's measurement with only her checked answers retained.

noncomputable def Cslib.PCP.QuantumStrategy.checkedBob {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} {ι : Type u_6} {κ : Type u_7} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) (y : Y) :
Quantum.POVM (↥C → B) κ

Bob's measurement with only his checked answers retained.

noncomputable def Cslib.PCP.QuantumStrategy.checkedAnswers {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} {ι : Type u_6} {κ : Type u_7} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) (x : X) (y : Y) :
PMF ((↥C → A) × (↥C → B))

The law obtained by keeping each player's answers on the checked coordinates.

theorem Cslib.PCP.QuantumStrategy.measure_checked {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} {ι : Type u_6} {κ : Type u_7} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) (x : X) (y : Y) :

The local checked measurements give the pushforward of the full answer law.

noncomputable def Cslib.PCP.QuantumStrategy.averagedChecked {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} {ι : Type u_6} {κ : Type u_7} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) [Fintype X] [Fintype Y] (p : PMF X) (q : PMF Y) :
Quantum.POVM ((↥C → A) × (↥C → B)) (ι × κ)

Average the two players' checked measurements over independent full questions.

theorem Cslib.PCP.QuantumStrategy.measure_averagedChecked {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} {ι : Type u_6} {κ : Type u_7} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) [Fintype X] [Fintype Y] (p : PMF X) (q : PMF Y) :
(S.averagedChecked C p q).measure S.state ⋯ = p.bind fun (x : X) => q.bind fun (y : Y) => S.checkedAnswers C x y

Drawing independent local questions and retaining the checked answers has the same distribution as measuring the state with the averaged checked effects.

noncomputable def Cslib.PCP.QuantumStrategy.averagedCheckedVector {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} {ι : Type u_6} {κ : Type u_7} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) [Fintype X] [Fintype Y] (p : PMF X) (q : PMF Y) (a : ↥C → A) (b : ↥C → B) :

The unnormalized branch after the joint averaged checked measurement.

theorem Cslib.PCP.QuantumStrategy.averagedCheckedVector_eq {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} {ι : Type u_6} {κ : Type u_7} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) [Fintype X] [Fintype Y] (p : PMF X) (q : PMF Y) (a : ↥C → A) (b : ↥C → B) :

The branch can be formed by applying square roots of the two local averaged effects.

theorem Cslib.PCP.QuantumStrategy.norm_averagedCheckedVector_sq {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} {ι : Type u_6} {κ : Type u_7} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) [Fintype X] [Fintype Y] (p : PMF X) (q : PMF Y) (a : ↥C → A) (b : ↥C → B) :
‖S.averagedCheckedVector C p q a b‖ ^ 2 = ((p.bind fun (x : X) => q.bind fun (y : Y) => S.checkedAnswers C x y) (a, b)).toReal

The squared norm of the branch is the probability of the checked answer pair in the independently sampled experiment.

theorem Cslib.PCP.QuantumStrategy.norm_averagedCheckedVector_sq_coin {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} {ι : Type u_6} {κ : Type u_7} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) [Fintype X] [Fintype Y] (η : ↑unitInterval) (p₀ p₁ : PMF X) (q : PMF Y) (a : ↥C → A) (b : ↥C → B) :
‖S.averagedCheckedVector C ((Probability.PMF.coin η).bind fun (anchor : Bool) => if anchor = true then p₀ else p₁) q a b‖ ^ 2 = ↑η * ‖S.averagedCheckedVector C p₀ q a b‖ ^ 2 + (1 - ↑η) * ‖S.averagedCheckedVector C p₁ q a b‖ ^ 2

If a coin selects between two laws for Alice's questions, the squared norm of the resulting branch is the convex combination of the two squared norms. This gives the noisy-anchor normalization identity of BVY equation (21).

noncomputable def Cslib.PCP.QuantumStrategy.normalizedCheckedVector {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} {ι : Type u_6} {κ : Type u_7} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) [Fintype X] [Fintype Y] (p : PMF X) (q : PMF Y) (a : ↥C → A) (b : ↥C → B) :

Normalize the branch using the inverse of its norm. A branch of zero weight stays zero.

theorem Cslib.PCP.QuantumStrategy.averagedCheckedVector_eq_norm_smul_normalized {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} {ι : Type u_6} {κ : Type u_7} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) [Fintype X] [Fintype Y] (p : PMF X) (q : PMF Y) (a : ↥C → A) (b : ↥C → B) :

Recover an unnormalized branch from its normalized vector and original norm. The identity also holds for a zero-weight branch.

theorem Cslib.PCP.QuantumStrategy.norm_normalizedCheckedVector {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} {ι : Type u_6} {κ : Type u_7} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) [Fintype X] [Fintype Y] (p : PMF X) (q : PMF Y) (a : ↥C → A) (b : ↥C → B) (h : (a, b) ∈ (p.bind fun (x : X) => q.bind fun (y : Y) => S.checkedAnswers C x y).support) :

A possible pair of checked answers gives a normalized conditional state.