Research-development layer. Provisional and model-based. No hardware measurement exists; no physical advantage is claimed. Revision H is frozen and separate.
Original checkpoint file checkpoints/v0.7/docs/buddy-verification-v0.7.md, rendered here without any change to its text. The Markdown source is the authoritative copy (raw file). Later corrections are in Errata.

Buddy verification, version 0.7: does verification stay manageable as the computation grows?

On this page

Project: PhaseKeep Research. Owner: Tyler O'Bryan. Written by Claude. Separate from Revision H, pull request #1 and checkpoints v0.1 to v0.6. Nothing here has been independently reproduced, and nothing here claims a hardware result or an advantage over any architecture.

Evidence tags: DERIVED (follows from the stated model: ideal unitaries, exact Pauli algebra or 16-dimensional state vectors), ASSUMED (a noise value or an ensemble I chose as an example), PROPOSED (a design idea), UNVERIFIED (literature recalled, not read), MEASURED (none), BLOCKED (needs something I do not have).

Central question: Can deliberate geometric organization and controlled transformation of photonic entanglement improve the efficiency, controllability, reliability or continuity of equivalent quantum operations? Programme question (subordinate): Can a photonic processor adapt its information geometry, verification requirements and physical execution routes in response to changing operational conditions, while achieving a measurable advantage over conventional architectures? The question V0.7 puts to the first: can computational complexity grow without verification complexity growing in proportion? The answer below is "sometimes, and which times is a property of the route".

1. What the verification variable is (answer to a question asked during this build)

Four things are tracked, and they are separate.

ItemMeaningKnown before the photon is launched?
Observablethe property to measure; here a parity such as ZZ (DERIVED: a stabilizer of the code; established quantum theory, not new physics)yes
Expected valuewhat valid information must give; +1 for the diagonal Tetragonyes, including its sign as it is transported
Measured valuewhat Buddy observed: PASS, FAIL or UNKNOWNno
Verification costwhat obtaining the evidence cost the computationnot quantified here (physical cost fields stay empty, audit item A02)

Two qualifications that the version 0.6 and 0.7 results make concrete.

  1. The sign can change. In version 0.6 the route "X via X_a then X_b" transports the check ZZ to -ZZ at the midpoint and back. A register that stored only "+1" would be wrong mid-route. The expected value is part of the transported plan. [DERIVED, v0.6 class B; the v0.7 group tracking carries signs and requires +1 at endpoints]
  2. PASS confirms the checked property only. Section 3 gives a direct counter-example: a controlled phase with the wrong angle passes both local checks. A "classical verification plan" carried by the Intelligent Register is a PROPOSED use; its sufficiency has to be argued per checkpoint.

2. What was done

PartStudyMethod
0Pauli-algebra engine validated against explicit matrices on random sequences (2 and 3 axes)matrices
1Transported-check complexity for one Tetragonexact Pauli algebra
2Two Tetragons: local checks during inter-photon operations16-dimensional state vectors
32, 4 and 8 photons: fixed generators versus the transported groupexact Pauli algebra
4Non-commuting steps, term growth, equivalent routesexact Pauli algebra, ASSUMED ensembles
5Measure, transport or defer around an excursion out of the codestate vectors
6Preparation geometry, criteria kept separatematrices
7Productivity under explicit output-identifiability assumptionsthe version 0.5 dynamic programme

33 checks, run time about 7 seconds, standard library only. Run python3 -I code/buddy_v07_checks.py; the last line is ALL PASS.

How to read the numbers. Term count, support size (axes, photons) and interaction order are structural proxies. They are not measurement costs, and no combined score is formed anywhere. Measuring a transported observable by reversing the computational prefix is one possible implementation; it is not shown to be the cheapest, and a many-term observable need not be expensive to measure, nor a one-term observable cheap.

3. One Tetragon: when does the transported check get complicated? DERIVED

4. Two Tetragons: do local checks survive inter-photon operations? DERIVED

5. Register scaling: 2, 4 and 8 photons [DERIVED within the model]

Random logical sequences of 25 operations (ASSUMED ensemble), tracking (a) the fixed local generators transported by the operations and (b) the minimum-weight basis of the transported group (the lowest-weight equivalent checks):

PhotonsRoute mixLocal checks valid after every stepFixed generator: max axes, photonsLowest-weight basis: max axes, photons
2, 4, 8compatible routes onlyyes2, 12, 1
2with two-CNOT routeno (mid-route only)4, 23, 2
4with two-CNOT routeno (mid-route only)8, 43, 2
8with two-CNOT routeno (mid-route only)10, 53, 2

Findings:

  1. Compatible routes keep verification exactly local at any size. Every local check stays one weight-2 check on one photon, however many photons interact.
  2. Spreading of fixed generators is partly an artefact of which generator you follow. With the two-CNOT route, the fixed generators spread (10 axes over 5 photons at 8 photons), but at every logical-gate endpoint the original local checks are valid again and a weight-2, one-photon check exists. The code space is preserved by a logical gate, so the group is unchanged.
  3. True spreading exists only mid-operation. Between the two physical CNOTs the lowest-weight basis has weight 3 across two photons: no weight-2 check exists there, at any register size.
  4. Invisible faults do not accumulate per photon. Of 16^n two-axis Pauli strings, 8^n commute with every local check (brute force for n = 1, 2, 3; formula for any n); 2^n of those are products of the checks (harmless) and 8^n - 2^n are undetected logical errors. Single-axis faults: 6n of them, 4n detected, 2n invisible; the detected fraction is 2/3 at 2, 4 or 8 photons. Corollary: adding photons does not make a given fault less visible, but it does give the register more places where an invisible fault can be made. Both statements are true, and the second is not a verification-cost statement.

6. Non-commuting steps: how fast does the check grow? [ASSUMED ensemble, 30 steps]

PhotonsFraction of incompatible stepsMean terms in photon 0's checkMean photons touchedMax terms
2, 4, 801.001.001
20.05 / 0.1025.65 / 60.181.37 / 1.68129 / 247
40.05 / 0.107.82 / 66.481.37 / 1.70169 / 1389
80.05 / 0.102.50 / 11.931.15 / 1.4527 / 208

Reading it carefully:

7. Measure, transport or defer around an excursion DERIVED

Route: logical Hadamard on the diagonal Tetragon as CNOT(a to b), H on a, CNOT(a to b). The geometry is diagonal, then edge (b = 0 after the first CNOT, check IZ), then diagonal again. Single-axis faults inserted at three points (0: before the first CNOT; 1: after it, just before IZ is read; 2: after H, after IZ was read):

Faultat 0: IZ in the middle / ZZ at the endat 1at 2 (IZ already read)
X_aseen 1.00 / seen 1.000 / 0not reached / 0
X_b1.00 / 1.001.00 / 1.00not reached / 1.00
Z_a, Z_b0 / 00 / 0not reached / 0

(entries are probabilities that the check reads odd; all state-independent.)

  1. Detectability follows the geometry the fault is made in. X_a is caught if made while the geometry is diagonal (both axes covered) and is invisible if made while the geometry is edge (only the idle axis b is covered): in the edge geometry X_a is the logical X, and it passes through the rest of the route into the code space. This is the single-axis 4-of-6 versus 2-of-6 result of version 0.3, now shown inside one route.
  2. Deferring the check costs nothing in detectability here for faults on the idle axis: X_b is caught by the end check wherever it happened. What deferral changes is the timing of the report and how much computation continues past a fault.
  3. Every Z fault is invisible to both checks at every insertion point. Invisible is not harmless: X_a or Z_a made before the Hadamard leaves the output in the code (both checks pass) with mean fidelity 0.29 and 0.32 against the intended output. Z_b does nothing there because that axis is in the state |0>.
  4. Correction of a prediction I made earlier in this build: I expected some Z faults inside the excursion to be seen with a state-dependent probability. They are not, in this route. The first version of two checks failed because my expectation was wrong, not the program; I re-derived the propagation by hand before changing the assertions.

8. Preparation geometry: criteria kept separate [DERIVED where stated, PROPOSED as a list]

For each logical gate in each geometry, the generator route is correct and preserves the geometry's own check throughout. Largest single generator: diagonal 1 to 2 axes; edge 1 axis (on the carrier axis).

CriterionDiagonalEdgeStatus
Single-axis faults detected by the geometry's own check4 of 62 of 6DERIVED
Physical CZ routes between two photons41DERIVED (v0.3)
Largest generator in the gate routes2 axes1 axisDERIVED
Local checks preserved by every compatible routeyesyesDERIVED
Encoding capacity2 states per photon2 states per photonDERIVED, equal
Physical transmissionnot assessednot assessedBLOCKED (needs hardware)
Structural continuity, transformation complexity in hardware termsnot assessednot assessedUNVERIFIED

The six criteria you listed (encoding capacity, transformation complexity, verification complexity, structural continuity, fault detectability, physical transmission) stay separate. No score is formed. Three can be partly computed in the model; two (continuity, transmission) need a physical model I do not have. The diagonal geometry buys fault detectability and routing freedom with a larger generator; the edge geometry has the opposite profile. Neither dominates.

9. Productivity under two output-identifiability assumptions [ASSUMED parameters]

Eight segments, harmful Z fault rate 0.001, ancilla X fault 0.002, ancilla harmful Z 0.003, loss 0.002. Mode I: wrong outputs are identified and discarded at the end. Mode II: they are not, and every accepted output is used.

Segment X rateMode I: segments per accepted-correct, uncheckedbest checked policyMode II: wrong share of accepted, uncheckedbest checked
0.0058.798.74 (spacing 2 or 4)9.0%2.0% (spacing 8)
0.019.499.20 (spacing 2)15.7%2.5% (spacing 4)
0.0210.9710.22 (spacing 2)27.1%3.4% (spacing 2)
0.0515.8913.96 (spacing 1)49.7%6.0% (spacing 1)
0.123.8424.01 (no checked policy beats unchecked)66.5%12.5% (spacing 1)

10. Corrections and refinements to earlier statements

11. Limits

All gates are ideal. The fault model is independent Pauli faults on axes (the Pauli-frame statements of version 0.5 are exact only for idle and Clifford segments; for rotations the "invisible/detected" statements here are about the transported observable, not about frames). Ensembles and rates are ASSUMED examples. Nothing here is a measurement of any device, a cost, or a comparison with a conventional architecture. The literature (stabilizer transport through Clifford gates, QND parity measurement, verified ancilla preparation, linear-optics gates) is UNVERIFIED: I recalled titles and did not read papers.

12. What this suggests for GEA (PROPOSED, not adopted)

  1. Verification compatibility as one selection criterion, listed next to transmission, transformation complexity and controllability, not combined with them.
  2. Prefer routes whose generators lie in the normalizer of the active check; they keep verification structurally flat as the register grows.
  3. Treat an excursion out of the code as a scheduled interval in which the check is moved, deferred or not read, and record which faults are covered in that interval.
  4. Do not use a PASS as proof of the operation. Add checks that test what the local checks cannot (relative phase), or accept the limit explicitly.

13. Next study (suggestion)

Four and eight photons with ensembles drawn from stated circuit families (not random), reporting terms, support and interaction order per family; a physical-cost model for one candidate route pair (P versus G) once hardware assumptions are chosen; a test of the relative-phase gap (what extra check catches the wrong-angle controlled phase).

14. Open (not resolved here)

Independent reproduction (see CODEX_HANDOFF.md); literature reading; name checks for PALADIN, Docked Scheduling, the resource-class names, BUD-xx and "information checkpoint"; the third axis ("path, provisionally"); audit items A03 and A04; Zenodo and DOI (nothing claimed); decisions on pull request #1.