The Pauli braiding verifier #
This is a seeded verifier based on Natarajan and Vidick, Figure 2 (arXiv:1610.03574v1, p. 17), for any anticommutation game with a common question and answer alphabet for its two roles. A uniform branch choice selects linearity, anticommutation, or consistency, and a uniform role bit assigns the two physical players to the logical roles. In the last two branches the pair of strings is uniform among pairs with odd inner product. The consistency branch chooses the basis and an independent fair coin. One outcome asks the second player a question from the anticommutation game's second-question marginal. Agreement is checked when that question is the special question of the chosen basis. The other outcome compares two basis answers on the shared checked string.
The same-basis check shares the first string in basis X and the second in basis Z, using
the X–Z coordinate convention of equation (11). The same-basis bullet in
Figure 2 writes the shared first string and uses the symbol N for the second basis label.
Here both players receive the sampled basis. This check still draws the first player's
pair from the odd-pair law. The checked string is therefore nonzero. Controlling
the uniform averages in Lemma 17 requires additional work at zero. The uniform fixed-role
game in AveragedConsistency uses a different seed law.
Basis questions send strings in lexicographic order and are shared by the linearity and
consistency branches. Anticommutation questions carry the pair in X–Z coordinate order so
that each player can identify which string belongs to which observable. This preserves the
labels of the oriented pair even when the Z string comes first lexicographically.
Anticommutation labels distinguish the two logical roles even when their question tokens
coincide. The special consistency round uses the second logical role's label.
Main definitions #
Cslib.PCP.PauliBraidingQuestion: the common visible question type.Cslib.PCP.PauliBraidingSeed: the four kinds of private seed.Cslib.PCP.pauliBraidingBranchGame: the verifier conditioned on one branch.Cslib.PCP.pauliBraidingGame: the joint verifier with private branch and role choices.
Main results #
Cslib.PCP.answersWinProb_pauliBraidingGame: winning probability splits into branch scores.Cslib.PCP.pauliBraidingBranch_deficit_le: branch deficits are controlled by the full score.
A Pauli braiding question. The basis label is false for X and true for Z.
- basis {n : ℕ} {Q : Type u_1} (zBasis : Bool) (strings : (Fin n → Bool) × (Fin n → Bool)) : PauliBraidingQuestion n Q
Two strings in lexicographic order, to be measured in the same basis.
- anticommutation {n : ℕ} {Q : Type u_1} (secondRole : Bool) (question : Q) (strings : ↥(BitString.oddPairs (Fin n))) : PauliBraidingQuestion n Q
A role-tagged question and the strings in X–Z order.
secondRoledenotes the second logical role, regardless of the physical player receiving it.
The private choices for one round of the braiding verifier. In the last three
constructors swapRoles is true when the second physical player plays the first logical role.
- linearity {n : ℕ} {Q : Type u_1} (zBasis : Bool) (round : SymmetricLinearitySeed n) : PauliBraidingSeed n Q
The linearity branch in one of the two bases.
- anticommutation {n : ℕ} {Q : Type u_1} (swapRoles : Bool) (strings : ↥(BitString.oddPairs (Fin n))) (first second : Q) : PauliBraidingSeed n Q
The anticommutation branch at an odd pair.
- special {n : ℕ} {Q : Type u_1} (swapRoles zBasis : Bool) (strings : ↥(BitString.oddPairs (Fin n))) (second : Q) : PauliBraidingSeed n Q
The consistency branch with a question drawn from the second-question marginal.
- sameBasis {n : ℕ} {Q : Type u_1} (swapRoles zBasis : Bool) (strings : ↥(BitString.oddPairs (Fin n))) (dummy : Fin n → Bool) : PauliBraidingSeed n Q
The consistency branch with an independent dummy string for the second logical player.
The strings of a consistency question in the order sent by the braiding verifier.
Send a basis question without exposing the unsorted X–Z coordinate order.
Read the bit associated with the checked string from an answer to the sorted basis question.
Reading the checked bit after answering both sorted strings agrees with evaluating the bit function on the checked string, also when the two strings are equal.
Away from a Z-basis tie, the consistency and linearity conventions give the same sorted question and read the same coordinate.
The two basis questions before lexicographic sorting, in physical player order.
The conditional seed law of the consistency branch. The basis and role are already
fixed, and specialRound selects between the special-question and same-basis checks.
A verifier conditioned on the linearity (0), anticommutation (1), or consistency (2) branch. It uses the same questions and checks as the full game. It takes a game, two distinguished second-player questions and a bit decoder for each basis. Basis answers are the left summand and anticommutation game answers are the right summand. Giving an answer from the wrong summand loses, including in the special branch when the sampled question would otherwise be accepted automatically.
The Pauli braiding verifier with a private uniform choice among the three branches.
The full verifier accepts with the mean of the three conditional winning probabilities. The same answer kernel is used in all branches.
A strategy within ε of the mean of the three branch upper bounds is within 3 * ε of
each bound. The branch scores must be for the same answer kernel.