Documentation

MIPRE.Background.QLD.WinMS

The Magic Square item of the win implications #

Blueprint lem:qld-win, item 6 (the paper's enu:qld-ms in lem:qld-win-implications). It is the one item that is not a consistency relation: it says that on an anticommuting tuple ω the Pauli basis test's own Constraint/Variable measurements form a strategy for the Magic Square game of value 1 - O(ε). Composed with lem:ms-direct-anticomm --- which is what the Magic Square is in the test for --- it gives the anticommutator bound this file ends with, and that bound is what the expansion stage's sign cancellation runs on.

The conditional strategy #

msPOVM M ω is the strategy: at a Magic Square question x it is the Pauli test's measurement at the corresponding question msQ ω x, relabelled into the Magic Square's answer alphabet by msAns. The relabelling is where the paper's F_2^3 constraint answers meet the layout's full F_2^9 assignments: msAssign places the three bits at the constraint's cells (MIPRE.LCS.MagicSquare.cell) and 0 elsewhere, which is invisible to the Magic Square decider because it reads only the support.

sum_weight_bornProb_map is what makes the relabelling harmless: relabelling outcomes is data processing, so the relabelled strategy wins whenever the original answers would have been accepted. That is condFail_ms_le --- the Magic Square failure at an incidence is at most the Pauli test's failure at the corresponding question pair.

The error, and why it is a sum over the incidences #

msEps is the Magic Square game's own question-weighted sum of those Pauli-test failures, so one_sub_povmValue_ms_le is immediate off the support --- where the Magic Square distribution puts no mass, and the two deciders need not agree at all. On the support the pair is an oriented incidence, hence an edge of the Pauli test's type graph, and subtest_le applies. The average of msEps over the anticommuting tuples is then 86 ε, one factor of 86 and not thirty-six, because the Magic Square's own distribution is normalized.

In a bipartite model #

Stated in a bipartite model (Phase 5 of planning/mipco-track.md). The strategy is a model M : BipartiteModel 𝒞 𝒜 ℬ with ‖M.ψ‖ = 1 and two families of POVMs PA, PB in the players' ordered algebras; the conditional strategy msPOVM coarse-grains a family in any ordered ⋆-ring, the error msEps is a sum of the model's conditional failures M.condFail, the value is M.povmValue, and the second player's ‖(Id ⊗ Y)|ψ⟩‖² is M.swap.stateSqNorm Y. The relabelling and averaging steps need no projectivity. Item 6 does, on the constraint player's side: lem:ms-direct-anticomm is stated for a projective constraint player (MS.ms_direct_anticomm_avg, whose Naimark dilation is gone), so item_magicSquare asks the first player's measurements to be projective, as every strategy of the Pauli basis test is, and passes the projectivity of the conditional strategy on (isPVMIn_msPOVM). On a unit vector ψ : dA × dB → ℂ the statements are read at the tensor-product model BipartiteModel.tensor ψ with the families POVM.toIn.

The conditional Magic Square strategy #

The question type a Magic Square question corresponds to.

Equations
Instances For
    def MIPRE.QLD.msQ {F : Type u_1} {m : ℕ} (ω : Omega F m) :

    The Pauli-test question a Magic Square question corresponds to, at the tuple ω.

    Equations
    Instances For
      theorem MIPRE.QLD.question_msTy {F : Type u_1} [Field F] [Fintype F] {m : ℕ} [NeZero m] (hm : m ∣ Fintype.card F) (c : Content F m) (x : LCS.MagicSquare.layout.Question) :

      A constraint answer read as a full assignment: its three bits at the constraint's cells and 0 elsewhere. The Magic Square decider reads only the support, so the padding is invisible.

      Equations
      Instances For

        The reading of a Pauli-test answer as an answer of the Magic Square game.

        Equations
        Instances For
          def MIPRE.QLD.msPOVM {F : Type u_1} [Fintype F] {m d : ℕ} {R : Type u_5} [Ring R] [StarRing R] [PartialOrder R] [StarOrderedRing R] (P : Question F m → POVMIn (Answer F m d) R) (ω : Omega F m) :

          The conditional Magic Square strategy of the tuple ω, for a family of POVMs in any ordered ⋆-ring.

          Equations
          Instances For
            theorem MIPRE.QLD.isPVMIn_msPOVM {F : Type u_1} [Fintype F] {m d : ℕ} {R : Type u_5} [Ring R] [StarRing R] [PartialOrder R] [StarOrderedRing R] {P : Question F m → POVMIn (Answer F m d) R} (hP : ∀ (q : Question F m), IsPVMIn (P q).op) (ω : Omega F m) (x : LCS.MagicSquare.layout.Question) :
            IsPVMIn (msPOVM P ω x).op

            The conditional strategy of a projective family is projective: each of its measurements is a coarse-graining of a projective one.

            The assignment reads the three bits #

            theorem MIPRE.QLD.msAssign_cell {F : Type u_1} {m d : ℕ} (i : Fin LCS.MagicSquare.layout.r) (α : Fin 3 → ZMod 2) (t : Fin 3) :
            theorem MIPRE.QLD.sum_msAssign {F : Type u_1} {m d : ℕ} (i : Fin LCS.MagicSquare.layout.r) (α : Fin 3 → ZMod 2) :
            ∑ k ∈ LCS.MagicSquare.layout.V i, msAssign i (Answer.bitTriple α) k = ∑ t : Fin 3, α t

            The Pauli test's Magic Square rule implies the Magic Square game's decider #

            theorem MIPRE.QLD.accepts_ms_of_accepts {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : ℕ} [NeZero m] {hm : m ∣ Fintype.card F} {i : Fin LCS.MagicSquare.layout.r} {j : Fin LCS.MagicSquare.layout.s} {ω : Omega F m} {a b : Answer F m d} (hγ : gam ω ≠ 0) (h : accepts hm (Question.con i ω) (Question.var j ω) a b = true) :
            theorem MIPRE.QLD.accepts_ms_of_accepts' {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : ℕ} [NeZero m] {hm : m ∣ Fintype.card F} {i : Fin LCS.MagicSquare.layout.r} {j : Fin LCS.MagicSquare.layout.s} {ω : Omega F m} {a b : Answer F m d} (hγ : gam ω ≠ 0) (h : accepts hm (Question.var j ω) (Question.con i ω) a b = true) :

            The failure transfers #

            theorem MIPRE.QLD.condFail_ms_le {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : ℕ} [NeZero m] {𝒞 : Type u_2} {𝒜 : Type u_3} {ℬ : Type u_4} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [PartialOrder ℬ] [StarOrderedRing ℬ] {hm : m ∣ Fintype.card F} {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : Question F m → POVMIn (Answer F m d) 𝒜} {PB : Question F m → POVMIn (Answer F m d) ℬ} (ω : Omega F m) (x y : LCS.MagicSquare.layout.Question) (hD : ∀ (a b : Answer F m d), accepts hm (msQ ω x) (msQ ω y) a b = true → LCS.MagicSquare.game.accepts x y (msAns x a) (msAns y b) = true) :
            M.condFail LCS.MagicSquare.nonlocalGame (msPOVM PA ω) (msPOVM PB ω) x y ≤ M.condFail (qldGame hm) PA PB (msQ ω x) (msQ ω y)

            Relabelling is data processing, so the Magic Square failure at a question pair is at most the Pauli test's failure at the corresponding pair --- given that the Pauli test's rule is the stricter of the two there.

            noncomputable def MIPRE.QLD.msEps {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : ℕ} [NeZero m] {𝒞 : Type u_2} {𝒜 : Type u_3} {ℬ : Type u_4} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] (hm : m ∣ Fintype.card F) (M : BipartiteModel 𝒞 𝒜 ℬ) (PA : Question F m → POVMIn (Answer F m d) 𝒜) (PB : Question F m → POVMIn (Answer F m d) ℬ) (ω : Omega F m) :

            The error the conditional Magic Square strategy inherits: the Magic Square game's own question-weighted sum of the Pauli test's conditional failures.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem MIPRE.QLD.msEps_nonneg {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : ℕ} [NeZero m] {𝒞 : Type u_2} {𝒜 : Type u_3} {ℬ : Type u_4} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [PartialOrder ℬ] [StarOrderedRing ℬ] {hm : m ∣ Fintype.card F} {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : Question F m → POVMIn (Answer F m d) 𝒜} {PB : Question F m → POVMIn (Answer F m d) ℬ} (hM : ‖M.ψ‖ = 1) (ω : Omega F m) :
              0 ≤ msEps hm M PA PB ω

              Off the support of the Magic Square distribution the two deciders need not agree at all; on it, the pair is an oriented incidence.

              theorem MIPRE.QLD.one_sub_povmValue_ms_le {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : ℕ} [NeZero m] {𝒞 : Type u_2} {𝒜 : Type u_3} {ℬ : Type u_4} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [PartialOrder ℬ] [StarOrderedRing ℬ] {hm : m ∣ Fintype.card F} {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : Question F m → POVMIn (Answer F m d) 𝒜} {PB : Question F m → POVMIn (Answer F m d) ℬ} {ω : Omega F m} (hγ : gam ω ≠ 0) :
              1 - M.povmValue LCS.MagicSquare.nonlocalGame (msPOVM PA ω) (msPOVM PB ω) ≤ msEps hm M PA PB ω

              The conditional Magic Square strategy of an anticommuting tuple fails by at most msEps.

              theorem MIPRE.QLD.sum_msEps_le {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : ℕ} [NeZero m] {𝒞 : Type u_2} {𝒜 : Type u_3} {ℬ : Type u_4} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [PartialOrder ℬ] [StarOrderedRing ℬ] {hm : m ∣ Fintype.card F} {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : Question F m → POVMIn (Answer F m d) 𝒜} {PB : Question F m → POVMIn (Answer F m d) ℬ} (hM : ‖M.ψ‖ = 1) {ε : ℝ} (hfail : 1 - M.povmValue (qldGame hm) PA PB ≤ ε) :
              ∑ c ∈ acommSet, (↑(Fintype.card (Content F m)))⁻¹ * msEps hm M PA PB c.omega ≤ 86 * ε

              The averaged error is 86 ε, one factor of 86 and not thirty-six: the Magic Square's own question distribution is normalized, so the thirty-six incidences share the mass rather than each contributing.

              The point observables #

              The first half of the paper's lem:qld-win-implications-obs: item 1 at the two-outcome probe, then xStateDist_obsOf_le.

              theorem MIPRE.QLD.pts_obs_consistency {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : ℕ} [NeZero m] {𝒞 : Type u_2} {𝒜 : Type u_3} {ℬ : Type u_4} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [PartialOrder ℬ] [StarOrderedRing ℬ] {hm : m ∣ Fintype.card F} {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : Question F m → POVMIn (Answer F m d) 𝒜} {PB : Question F m → POVMIn (Answer F m d) ℬ} (hM : ‖M.ψ‖ = 1) {ε : ℝ} (hfail : 1 - M.povmValue (qldGame hm) PA PB ≤ ε) (W : Bas) (r : F) :
              (M.xStateDist (fun (x : Content F m) => (↑(Fintype.card (Content F m)))⁻¹) (fun (c : Content F m) => pvmObs (POVMIn.map (fun (a : Answer F m d) => prb (rdVal a) r) (PA (Content.question hm c (Ty.point W)))).op sgn) fun (c : Content F m) => pvmObs (POVMIn.map (fun (a : Answer F m d) => prb (rdVal a) r) (PB (Content.question hm c (Ty.point W)))).op sgn) ≤ 344 * ε

              The point observables are cross-party consistent, the paper's eq:pts-obs-consistency. For each basis W and each r ∈ F_q, the ±1-observable of the two-outcome probe a ↦ tr(a r) of the (Point, W) measurement --- its signed sum pvmObs · sgn --- is cross-party consistent at 344 ε = 2 · 172 ε, the 2 being the two outcomes of the probe. Item 1 at the reading φ = tr(· r), then xStateDist_obsOf_le.

              The anticommutator bound #

              lem:ms-direct-anticomm applied to the conditional strategy of each anticommuting tuple, then averaged. This is what the expansion stage consumes.

              theorem MIPRE.QLD.item_magicSquare {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : ℕ} [NeZero m] {𝒞 : Type u_2} {𝒜 : Type u_3} {ℬ : Type u_4} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [PartialOrder ℬ] [StarOrderedRing ℬ] {hm : m ∣ Fintype.card F} {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : Question F m → POVMIn (Answer F m d) 𝒜} {PB : Question F m → POVMIn (Answer F m d) ℬ} [StarModule ℂ 𝒜] (hM : ‖M.ψ‖ = 1) (hPA : ∀ (q : Question F m), IsPVMIn (PA q).op) {ε : ℝ} (hfail : 1 - M.povmValue (qldGame hm) PA PB ≤ ε) :
              ∑ c ∈ acommSet, (↑(Fintype.card (Content F m)))⁻¹ * M.swap.stateSqNorm (MS.anti (msPOVM PB c.omega)) ≤ 16049664 * ε

              Item 6 of lem:qld-win, composed with lem:ms-direct-anticomm. On average over the anticommuting tuples, the anticommutator of the Pauli test's own two distinguished Variable observables annihilates the state up to 186624 * 86 = 16049664 times the failure probability.

              The two variables are 0 and 4 --- the paper's Variable_1 and Variable_5 --- which are the ones its (Point, X) and (Point, Z) rules tie to the point measurements. The first player's measurements are projective, as lem:ms-direct-anticomm asks of the constraint player; the second player's are arbitrary POVMs.