Documentation

MIPRE.Background.Tailored.Intro.HonestPauli

The bits of the honest Pauli basis test measurements #

The honest strategy answers the twenty-six Pauli question types with MIPRE.QLD.Honest.answerOp, and the introspection verifier reads the answers through their bit encoding QLD.PauliAnswerProgram.answerBits (field elements in Shoup's polynomial basis, rows flattened). This file shows that every answer bit is a signed permutation observable, and a diagonal one at the readable (Pauli, Z) question (isXBit_answerOp, isZBit_answerOp_pauliZ):

F₂-linear bits #

theorem MIPRE.Tailored.Intro.exists_dual_of_xor {X : Type u_1} [AddCommGroup X] [Module (ZMod 2) X] (β : X → Bool) (hβ : ∀ (x y : X), β (x + y) = (β x ^^ β y)) :
∃ (ψ : Module.Dual (ZMod 2) X), ∀ (x : X), β x = decide (ψ x = 1)

A bit that is additive (the bit of a sum is the exclusive or) is an F₂-linear functional.

The bits of a vector of field elements are additive.

The Pauli measurements #

theorem MIPRE.Tailored.Intro.isXBit_pauliOp {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m : ℕ} (W : QLD.Bas) (β : QLD.Honest.Register F m → Bool) (hβ : ∀ (x y : QLD.Honest.Register F m), β (x + y) = (β x ^^ β y)) :

An additive bit of a Pauli outcome is a signed permutation.

Every bit of a Z-basis outcome is a ±1 diagonal.

theorem MIPRE.Tailored.Intro.isXBit_pauliLift {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m : ℕ} (W : QLD.Bas) (β : QLD.Honest.Register F m → Bool) (hβ : ∀ (x y : QLD.Honest.Register F m), β (x + y) = (β x ^^ β y)) :
theorem MIPRE.Tailored.Intro.probeLabel_add {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m : ℕ} (ω : QLD.Omega F m) (W : QLD.Bas) (h h' : QLD.Honest.Register F m) :

The probe label is additive in the outcome.

theorem MIPRE.Tailored.Intro.isXBit_probeLift {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m : ℕ} (ω : QLD.Omega F m) (W : QLD.Bas) (g : ZMod 2 → Bool) :

Any bit of the probe's outcome is a signed permutation: a binary outcome's bit is constant or affine, and the probe reads an F₂-linear functional of a Pauli outcome.

theorem MIPRE.Tailored.Intro.lineAnswer_add {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m : ℕ} (n : ℕ) (u v : LIDT.Point F m) (h h' : QLD.Honest.Register F m) :

Binary measurements and the Magic Square #

theorem MIPRE.Tailored.Intro.isXBit_mul_fst {Ω : Type u_1} {A : Type u_2} {B : Type u_3} [Fintype Ω] [DecidableEq Ω] [Fintype A] [Fintype B] {P : A → Matrix Ω Ω ℂ} {Q : B → Matrix Ω Ω ℂ} (hQ : ∑ b : B, Q b = 1) {f : A → Bool} (h : IsXBit P f) :
IsXBit (fun (ab : A × B) => P ab.1 * Q ab.2) fun (ab : A × B) => f ab.1
theorem MIPRE.Tailored.Intro.isXBit_mul_snd {Ω : Type u_1} {A : Type u_2} {B : Type u_3} [Fintype Ω] [DecidableEq Ω] [Fintype A] [Fintype B] {P : A → Matrix Ω Ω ℂ} {Q : B → Matrix Ω Ω ℂ} (hP : ∑ a : A, P a = 1) {f : B → Bool} (h : IsXBit Q f) :
IsXBit (fun (ab : A × B) => P ab.1 * Q ab.2) fun (ab : A × B) => f ab.2
theorem MIPRE.Tailored.Intro.bool_affine (g : ZMod 2 → Bool) (b : ZMod 2) :
g b = (g 0 ^^ decide (b = 1) && (g 0 ^^ g 1))

A bit of a binary outcome is constant or affine.

Any bit of the binary measurement ½(1 ± O) of a signed permutation is one.

The answers #

noncomputable def MIPRE.Tailored.Intro.answerBit {k : ℕ} (hk : 1 ≤ k) {m d : ℕ} (i : ℕ) (a : QLD.Answer (SAT.shoupBinField k hk).carrier m d) :

The i-th bit of the encoded answer.

Equations
Instances For
    theorem MIPRE.Tailored.Intro.answerBit_add_of {k : ℕ} (hk : 1 ≤ k) {m d : ℕ} [NeZero m] [Algebra (ZMod 2) (SAT.shoupBinField k hk).carrier] {n : ℕ} (a : QLD.Honest.Register (SAT.shoupBinField k hk).carrier m → QLD.Answer (SAT.shoupBinField k hk).carrier m d) (v : QLD.Honest.Register (SAT.shoupBinField k hk).carrier m → Fin n → (SAT.shoupBinField k hk).carrier) (hav : ∀ (h : QLD.Honest.Register (SAT.shoupBinField k hk).carrier m), QLD.PauliAnswerProgram.answerBits (SAT.shoupBinField k hk) (a h) = ((SAT.shoupBinField k hk).vecBits (v h)).flatten) (hv : ∀ (h h' : QLD.Honest.Register (SAT.shoupBinField k hk).carrier m), v (h + h') = v h + v h') (i : ℕ) (h h' : QLD.Honest.Register (SAT.shoupBinField k hk).carrier m) :
    answerBit hk i (a (h + h')) = (answerBit hk i (a h) ^^ answerBit hk i (a h'))

    A bit of an answer whose encoding is that of a vector additive in the outcome is additive.

    Every answer bit of the honest Pauli basis test measurement is a signed permutation.

    Every answer bit of the honest (Pauli, Z) measurement is a ±1 diagonal.