From ef13fbd94a57249511354b7fe780c5f62ec2745a Mon Sep 17 00:00:00 2001 From: Devin Phillip Davis <354534380+quantum-osiris@users.noreply.github.com> Date: Sun, 22 Nov 2026 01:18:35 -0500 Subject: [PATCH 1/3] feat(experiments): OSIRIS-BT2T-001 M1 exact 2T inversion oracle, circuits and offline verifier Exact integer quaternion group (24 Hurwitz units), frozen encoding bt2t-enc-1 (Qiskit little-endian; 8 unused codewords fixed), generic transposition reference circuit and a structured synthesis, verified exactly incl. phases on all 32 inputs and random complex superpositions. Local proxy compilations are labelled PROXY. No provider calls. Co-Authored-By: Claude Opus 5.5 --- experiments/bt2t_inversion/bt2t.py | 241 +++++++++++++++++++++++++ experiments/bt2t_inversion/manifest.py | 87 +++++++++ experiments/bt2t_inversion/verify.py | 209 +++++++++++++++++++++ tests/test_bt2t_inversion.py | 118 ++++++++++++ 4 files changed, 655 insertions(+) create mode 100644 experiments/bt2t_inversion/bt2t.py create mode 100644 experiments/bt2t_inversion/manifest.py create mode 100644 experiments/bt2t_inversion/verify.py create mode 100644 tests/test_bt2t_inversion.py diff --git a/experiments/bt2t_inversion/bt2t.py b/experiments/bt2t_inversion/bt2t.py new file mode 100644 index 00000000..16656be5 --- /dev/null +++ b/experiments/bt2t_inversion/bt2t.py @@ -0,0 +1,241 @@ +"""OSIRIS-BT2T-001, milestone 1: exact inversion in the binary tetrahedral group 2T on one 5-qubit register. + +Everything here is exact integer arithmetic or an exact permutation; nothing is fitted or sampled. + +Group +----- +2T is the group of the 24 Hurwitz units: +-1, +-i, +-j, +-k and the 16 quaternions (+-1 +-i +-j +-k)/2. +An element q = (a + b i + c j + d k) / 2 is stored as its doubled integer coordinates (a, b, c, d), so every +coordinate is an integer and a^2 + b^2 + c^2 + d^2 = 4. Products are computed with the Hamilton rules on the +doubled coordinates (giving 4 q1 q2) and halved; the halving is checked to be exact. + +Encoding (frozen; ENCODING_VERSION) +----------------------------------- +Index 0..7: 1, -1, i, -i, j, -j, k, -k (the quaternion group Q8) +Index 8..23: (s_a 1 + s_b i + s_c j + s_d k) / 2, with signs given by the 4-bit number n = index - 8: + bit 3 of n -> s_a, bit 2 -> s_b, bit 1 -> s_c, bit 0 -> s_d; bit value 0 means +, 1 means -. +Index 24..31: unused codewords. Inversion leaves them fixed (a valid unitary extension of the group map). + +Basis and bit order +------------------- +Basis state |x>, x in 0..31, holds bit q of x on qubit q (qubit 0 is the least significant bit). This is +Qiskit's convention: a counts key "b4 b3 b2 b1 b0" reads qubit 4 first. Any other toolchain must be +converted explicitly (see ``reverse_bits``). + +Inversion +--------- +For a unit quaternion the inverse is the conjugate (a, -b, -c, -d). This module derives the inverse map in +two independent ways (search of the multiplication table, and conjugation) and checks they agree. The map is +an involution whose fixed points are exactly +-1 (indices 0 and 1) and the 8 unused codewords; the other 22 +elements form 11 transpositions. + +Circuit +------- +``inversion_circuit`` realises the 32x32 permutation as a product of the 11 disjoint transpositions. Each +transposition (a b) is C . T . C, where C is a set of CNOTs from a pivot bit p (a bit where a and b differ) +onto the other differing bits, which makes the two images differ only at p, and T is an X on p controlled on +the remaining four bits taking the images' common values. Every gate is a permutation with no phases, so the +circuit's matrix must equal the permutation matrix exactly, including phase; the tests check that. +""" + +from __future__ import annotations + +import hashlib +import json +from itertools import product +from typing import Dict, List, Sequence, Tuple + +ENCODING_VERSION = "bt2t-enc-1" +N_QUBITS = 5 +N_STATES = 1 << N_QUBITS +N_ELEMENTS = 24 +UNUSED = tuple(range(N_ELEMENTS, N_STATES)) + +Quat = Tuple[int, int, int, int] # doubled coordinates (a, b, c, d) of (a + b i + c j + d k) / 2 + + +def elements() -> List[Quat]: + """The 24 elements of 2T in frozen index order (see module docstring).""" + q8 = [(2, 0, 0, 0), (-2, 0, 0, 0), (0, 2, 0, 0), (0, -2, 0, 0), + (0, 0, 2, 0), (0, 0, -2, 0), (0, 0, 0, 2), (0, 0, 0, -2)] + hurwitz = [] + for n in range(16): + s = [(-1 if (n >> bit) & 1 else 1) for bit in (3, 2, 1, 0)] + hurwitz.append((s[0], s[1], s[2], s[3])) + return q8 + hurwitz + + +def qmul(p: Quat, q: Quat) -> Quat: + """Product of two elements given as doubled coordinates; returns doubled coordinates of p*q.""" + a1, b1, c1, d1 = p + a2, b2, c2, d2 = q + raw = (a1 * a2 - b1 * b2 - c1 * c2 - d1 * d2, + a1 * b2 + b1 * a2 + c1 * d2 - d1 * c2, + a1 * c2 - b1 * d2 + c1 * a2 + d1 * b2, + a1 * d2 + b1 * c2 - c1 * b2 + d1 * a2) # (2p)(2q) = 4pq; the doubled coordinates of pq are raw / 2 + if any(x % 2 for x in raw): + raise ArithmeticError(f"product of {p} and {q} is not a Hurwitz unit: {raw}") + return tuple(x // 2 for x in raw) # type: ignore[return-value] + + +def conjugate(q: Quat) -> Quat: + return (q[0], -q[1], -q[2], -q[3]) + + +def index_of() -> Dict[Quat, int]: + return {g: i for i, g in enumerate(elements())} + + +def multiplication_table() -> List[List[int]]: + """table[i][j] = index of element_i * element_j. Raises if the 24 elements are not closed.""" + els, idx = elements(), index_of() + table = [] + for g in els: + row = [] + for h in els: + gh = qmul(g, h) + if gh not in idx: + raise ArithmeticError(f"{g} * {h} = {gh} is outside the encoded set") + row.append(idx[gh]) + table.append(row) + return table + + +def inverse_from_table(table: Sequence[Sequence[int]]) -> List[int]: + """inv[i] = the unique j with table[i][j] == table[j][i] == identity (index 0).""" + inv = [] + for i in range(N_ELEMENTS): + js = [j for j in range(N_ELEMENTS) if table[i][j] == 0 and table[j][i] == 0] + if len(js) != 1: + raise ArithmeticError(f"element {i} has {len(js)} two-sided inverses") + inv.append(js[0]) + return inv + + +def inversion_permutation() -> List[int]: + """perm[x] = image of basis state x under inversion; unused codewords are fixed.""" + inv = inverse_from_table(multiplication_table()) + return inv + list(UNUSED) + + +def transpositions(perm: Sequence[int]) -> List[Tuple[int, int]]: + """Disjoint transpositions of an involution, each (a, b) with a < b. Raises if perm is not an involution.""" + if any(perm[perm[x]] != x for x in range(len(perm))): + raise ValueError("permutation is not an involution") + return [(x, perm[x]) for x in range(len(perm)) if x < perm[x]] + + +def _bits(x: int) -> List[int]: + return [(x >> q) & 1 for q in range(N_QUBITS)] + + +def reverse_bits(x: int, n: int = N_QUBITS) -> int: + """Map a Qiskit (qubit 0 = LSB) basis index to the qubit-0-is-MSB convention, and back.""" + return int(format(x, f"0{n}b")[::-1], 2) + + +def transposition_gates(a: int, b: int) -> List[Tuple[str, Tuple[int, ...], Tuple[int, ...]]]: + """Gate list for the transposition of basis states a and b. + + Returns tuples (kind, controls, targets): ("cx", (p,), (q,)), ("x", (), (q,)), ("mcx", controls, (p,)). + """ + diff = [q for q in range(N_QUBITS) if ((a ^ b) >> q) & 1] + if not diff: + raise ValueError("a transposition needs two different states") + p = diff[0] + cnots = [("cx", (p,), (q,)) for q in diff[1:]] + + def apply_c(x: int) -> int: + for _, (c,), (t,) in cnots: + if (x >> c) & 1: + x ^= 1 << t + return x + + a2, b2 = apply_c(a), apply_c(b) + assert (a2 ^ b2) == (1 << p), (a, b, a2, b2) + others = [q for q in range(N_QUBITS) if q != p] + zero_controls = [q for q in others if not (a2 >> q) & 1] + flips = [("x", (), (q,)) for q in zero_controls] + core = flips + [("mcx", tuple(others), (p,))] + flips + return cnots + core + cnots[::-1] + + +def inversion_gate_list() -> List[Tuple[str, Tuple[int, ...], Tuple[int, ...]]]: + gates = [] + for a, b in transpositions(inversion_permutation()): + gates.extend(transposition_gates(a, b)) + return gates + + +def apply_gate_list_classically(gates, x: int) -> int: + """Independent classical simulation of the gate list on one basis state (no quantum library).""" + for kind, controls, (t,) in gates: + if kind == "x" or all((x >> c) & 1 for c in controls): + x ^= 1 << t + return x + + +def inversion_circuit(): + """Qiskit circuit for the inversion permutation (needs qiskit).""" + from qiskit import QuantumCircuit + qc = QuantumCircuit(N_QUBITS, name="bt2t_inversion") + for kind, controls, (t,) in inversion_gate_list(): + if kind == "x": + qc.x(t) + elif kind == "cx": + qc.cx(controls[0], t) + else: + qc.mcx(list(controls), t) + return qc + + +def encoding_record() -> Dict[str, object]: + """Frozen, hashable description of the encoding and the inversion map.""" + els = elements() + perm = inversion_permutation() + rec = { + "encoding_version": ENCODING_VERSION, + "coordinates": "doubled: (a, b, c, d) means (a + b i + c j + d k) / 2", + "bit_order": "basis |x>: bit q of x on qubit q (qubit 0 = least significant bit)", + "elements": [{"index": i, "doubled_coords": list(g), "bits_q4_to_q0": format(i, "05b")} + for i, g in enumerate(els)], + "unused_codewords": list(UNUSED), + "unused_behaviour": "fixed by inversion", + "inversion_permutation": perm, + "fixed_points": [x for x in range(N_STATES) if perm[x] == x], + "transpositions": [list(t) for t in transpositions(perm)], + } + rec["sha256"] = hashlib.sha256(json.dumps(rec, sort_keys=True, separators=(",", ":")).encode()).hexdigest() + return rec + + +def all_products_associative() -> bool: + """Exhaustive associativity over 24^3 triples (a sanity check on qmul, not on the circuit).""" + t = multiplication_table() + return all(t[t[i][j]][k] == t[i][t[j][k]] for i, j, k in product(range(N_ELEMENTS), repeat=3)) + + +def inversion_circuit_structured(): + """Same permutation as ``inversion_circuit``, built from the structure of this encoding (needs qiskit). + + Derivation (checked against the generic reference by the tests, not trusted on its own): + * Hurwitz elements (index 8..23) have (q4, q3) in {(0, 1), (1, 0)}, i.e. q3 XOR q4 = 1, and their low + three bits are (s_b, s_c, s_d). Conjugation negates b, c, d: X on q0, q1, q2 exactly when + q3 XOR q4 = 1, which is CX(q3 -> t) CX(q4 -> t) for t in {0, 1, 2}. + * Q8 elements (q3 = q4 = 0): 1 and -1 (index 0, 1) are fixed; i <-> -i, j <-> -j, k <-> -k are the pairs + (2, 3), (4, 5), (6, 7): X on q0 when q1 OR q2. Written as X_q0[not q3, not q4] followed by + X_q0[not q1, not q2, not q3, not q4]; the two cancel when q1 = q2 = 0. + * Unused codewords (q3 = q4 = 1) satisfy neither condition and are fixed. + The two parts commute: the Q8 part needs q3 = q4 = 0, where the Hurwitz part does nothing. + """ + from qiskit import QuantumCircuit + qc = QuantumCircuit(N_QUBITS, name="bt2t_inversion_structured") + for t in (0, 1, 2): + qc.cx(3, t) + qc.cx(4, t) + qc.x([3, 4]) + qc.ccx(3, 4, 0) + qc.x([1, 2]) + qc.mcx([1, 2, 3, 4], 0) + qc.x([1, 2, 3, 4]) + return qc diff --git a/experiments/bt2t_inversion/manifest.py b/experiments/bt2t_inversion/manifest.py new file mode 100644 index 00000000..a874abdd --- /dev/null +++ b/experiments/bt2t_inversion/manifest.py @@ -0,0 +1,87 @@ +#!/usr/bin/env python3 +"""Offline manifest for OSIRIS-BT2T-001 milestone 1 (inversion). No provider calls, no network. + + python experiments/bt2t_inversion/manifest.py --out experiments/bt2t_inversion/manifest.json + +Records: experiment ID; source commit and dirty-tree state; dependency versions; the frozen encoding and +inversion map; logical circuit (OpenQASM 2 and 3) with SHA-256; gate counts; local proxy compilations +(labelled PROXY: these are local Qiskit transpiler runs, not provider output); and the verification summary. +A hash identifies bytes. It does not establish when anything was registered or what hardware ran it. +""" + +from __future__ import annotations + +import argparse +import hashlib +import json +import subprocess +import sys +from datetime import datetime, timezone +from importlib import metadata +from pathlib import Path + +HERE = Path(__file__).resolve().parent +sys.path.insert(0, str(HERE)) +import bt2t # noqa: E402 +import verify # noqa: E402 + + +def _git(*args: str) -> str: + try: + return subprocess.run(["git", *args], cwd=HERE, check=True, capture_output=True, text=True).stdout.strip() + except Exception: + return "" + + +def _version(pkg: str) -> str: + try: + return metadata.version(pkg) + except metadata.PackageNotFoundError: + return "not installed" + + +def build_manifest() -> dict: + from qiskit import qasm2, qasm3 + qc = bt2t.inversion_circuit() + q2, q3 = qasm2.dumps(qc), qasm3.dumps(qc) + qs = bt2t.inversion_circuit_structured() + qs2 = qasm2.dumps(qs) + sha = lambda s: hashlib.sha256(s.encode("utf-8")).hexdigest() # noqa: E731 + report = verify.run_all() + return { + "experiment_id": "OSIRIS-BT2T-001", + "milestone": "M1: exact inversion on one 5-qubit register (offline)", + "execution_class": "NO_EXECUTION (exact linear algebra and local proxy compilation only)", + "preregistration": None, + "generated_utc": datetime.now(timezone.utc).isoformat(timespec="seconds"), + "source": {"commit": _git("rev-parse", "HEAD"), "dirty": bool(_git("status", "--porcelain", "--", str(HERE))), + "path": "experiments/bt2t_inversion"}, + "dependencies": {"python": sys.version.split()[0], + **{p: _version(p) for p in ("qiskit", "numpy", "pytket")}}, + "encoding": bt2t.encoding_record(), + "logical_circuit": {"qasm2_sha256": sha(q2), "qasm3_sha256": sha(q3), + "gate_counts": dict(qc.count_ops()), "depth": qc.depth(), "qasm2": q2, + "role": "generic transposition reference"}, + "structured_circuit": {"qasm2_sha256": sha(qs2), "gate_counts": dict(qs.count_ops()), + "depth": qs.depth(), "qasm2": qs2, + "role": "candidate synthesis; must equal the reference exactly"}, + "proxy_compilations": report["compilations"], + "verification": {k: v for k, v in report.items() if k != "compilations"}, + "next_gate": "G1 passed only if every verification check is true; hardware comparison stays BLOCKED " + "until a preregistration and explicit approval exist.", + } + + +def main() -> int: + ap = argparse.ArgumentParser(description=__doc__.splitlines()[0]) + ap.add_argument("--out", type=Path, required=True) + args = ap.parse_args() + m = build_manifest() + args.out.write_text(json.dumps(m, indent=1, sort_keys=False) + "\n", encoding="utf-8") + ok = all(m["verification"]["checks"].values()) + print(f"wrote {args.out}; all checks pass: {ok}") + return 0 if ok else 1 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/experiments/bt2t_inversion/verify.py b/experiments/bt2t_inversion/verify.py new file mode 100644 index 00000000..6749c917 --- /dev/null +++ b/experiments/bt2t_inversion/verify.py @@ -0,0 +1,209 @@ +"""Verification of OSIRIS-BT2T-001 milestone 1 against independent references. + +References, each independent of the circuit construction: + R1 group axioms checked by exhaustive enumeration on exact integers (closure, identity, associativity, + the Hamilton relations i^2 = j^2 = k^2 = ijk = -1); + R2 the inverse map from searching the multiplication table, compared with quaternion conjugation; + R3 a classical bit-level simulation of the gate list on all 32 basis inputs; + R4 the circuit's full 32x32 matrix compared with the permutation matrix EXACTLY (phases included); + R5 seeded random complex superpositions (valid codewords only, and all 32 states) evolved through the + circuit and compared with the permuted amplitudes, which catches relative-phase errors a basis test + would miss; + R6 local proxy compilations (Qiskit to rz/sx/x/cz on all-to-all and a heavy-hex fragment; pytket rebase + to the H2 native set) checked for unitary equivalence up to global phase. PROXY: not provider output. + +``prior_prototype_findings`` measures the unvalidated earlier harness against the conditions any correct +inversion must meet (``prior`` is kept out of ``checks``: it describes the old code, not this one). +""" + +from __future__ import annotations + +from typing import Dict, List + +import numpy as np + +import bt2t + +SEED = 20261122 + + +def permutation_matrix(perm: List[int]) -> np.ndarray: + m = np.zeros((len(perm), len(perm)), dtype=complex) + for x, y in enumerate(perm): + m[y, x] = 1.0 # column x is the image of basis state x + return m + + +def group_checks() -> Dict[str, bool]: + els = bt2t.elements() + idx = bt2t.index_of() + one, minus_one = (2, 0, 0, 0), (-2, 0, 0, 0) + i, j, k = (0, 2, 0, 0), (0, 0, 2, 0), (0, 0, 0, 2) + m = bt2t.qmul + try: + bt2t.multiplication_table() + closed = True + except ArithmeticError: + closed = False + return { + "group_24_distinct_elements": len(set(els)) == 24, + "group_all_unit_norm": all(sum(c * c for c in g) == 4 for g in els), + "group_closed": closed, + "group_identity_is_index_0": all(m(els[0], g) == g == m(g, els[0]) for g in els), + "group_hamilton_relations": (m(i, i) == m(j, j) == m(k, k) == m(m(i, j), k) == minus_one + and m(i, j) == k and m(j, k) == i and m(k, i) == j and m(j, i) == (0, 0, 0, -2)), + "group_associative_exhaustive": bt2t.all_products_associative(), + "group_index_roundtrip": all(idx[g] == n for n, g in enumerate(els)) and els[1] == minus_one, + } + + +def map_checks() -> Dict[str, bool]: + els, idx = bt2t.elements(), bt2t.index_of() + table_inv = bt2t.inverse_from_table(bt2t.multiplication_table()) + conj_inv = [idx[bt2t.conjugate(g)] for g in els] + perm = bt2t.inversion_permutation() + fixed = {x for x in range(bt2t.N_STATES) if perm[x] == x} + return { + "map_table_inverse_equals_conjugate": table_inv == conj_inv, + "map_is_bijection_on_32": sorted(perm) == list(range(32)), + "map_is_involution": all(perm[perm[x]] == x for x in range(32)), + "map_fixed_points_are_pm1_and_unused": fixed == {0, 1} | set(bt2t.UNUSED), + "map_valid_set_preserved": all(perm[x] < 24 for x in range(24)), + "map_11_transpositions": len(bt2t.transpositions(perm)) == 11, + } + + +def circuit_checks() -> Dict[str, object]: + perm = bt2t.inversion_permutation() + gates = bt2t.inversion_gate_list() + checks: Dict[str, object] = { + "circuit_classical_sim_all_32_inputs": all(bt2t.apply_gate_list_classically(gates, x) == perm[x] + for x in range(32)), + } + from qiskit.quantum_info import Operator, Statevector + qc = bt2t.inversion_circuit() + u = Operator(qc).data + p = permutation_matrix(perm) + err = float(np.max(np.abs(u - p))) + checks["circuit_matrix_equals_permutation_exactly"] = err < 1e-9 + checks["_circuit_matrix_max_abs_error"] = err + checks["circuit_squared_is_identity"] = bool(np.allclose(u @ u, np.eye(32), atol=1e-9)) + us = Operator(bt2t.inversion_circuit_structured()).data + serr = float(np.max(np.abs(us - p))) + checks["structured_matrix_equals_permutation_exactly"] = serr < 1e-9 + checks["_structured_matrix_max_abs_error"] = serr + + rng = np.random.default_rng(SEED) + worst = 0.0 + for support in (range(24), range(32)): + for _ in range(16): + amp = np.zeros(32, dtype=complex) + s = list(support) + amp[s] = rng.normal(size=len(s)) + 1j * rng.normal(size=len(s)) + amp /= np.linalg.norm(amp) + out = Statevector(amp).evolve(qc).data + expected = np.zeros(32, dtype=complex) + for x in range(32): + expected[perm[x]] = amp[x] + worst = max(worst, float(np.max(np.abs(out - expected)))) + checks["circuit_superpositions_exact_with_phases"] = worst < 1e-9 + checks["_superposition_max_abs_error"] = worst + return checks + + +HEAVY_HEX_5Q = [[0, 1], [1, 0], [1, 2], [2, 1], [2, 3], [3, 2], [2, 4], [4, 2]] # a T-shaped heavy-hex fragment + + +def proxy_compilations() -> List[Dict[str, object]]: + from qiskit import qasm2, transpile + from qiskit.quantum_info import Operator + from qiskit.transpiler import CouplingMap + ref = Operator(bt2t.inversion_circuit()) + out = [] + for name, qc in (("generic", bt2t.inversion_circuit()), ("structured", bt2t.inversion_circuit_structured())): + for label, cmap in (("all_to_all", None), ("heavy_hex_fragment_T5", CouplingMap(HEAVY_HEX_5Q))): + for level in (1, 3): + t = transpile(qc, basis_gates=["rz", "sx", "x", "cz"], coupling_map=cmap, + optimization_level=level, seed_transpiler=SEED) + equiv = Operator.from_circuit(t).equiv(ref) + ops = dict(t.count_ops()) + out.append({"kind": "PROXY qiskit transpile", "circuit": name, "target": label, + "optimization_level": level, + "seed": SEED, "two_qubit_gates": {"cz": int(ops.get("cz", 0))}, + "depth": t.depth(), "size": t.size(), "equivalent_up_to_global_phase": bool(equiv)}) + try: + from pytket.circuit import OpType + from pytket.passes import AutoRebase, FullPeepholeOptimise + from pytket.qasm import circuit_from_qasm_str + except ImportError: + out.append({"kind": "PROXY pytket H2-native rebase", "status": "SKIPPED: pytket not installed"}) + return out + for (name, qc), opt in [((n, c), o) for n, c in (("generic", bt2t.inversion_circuit()), + ("structured", bt2t.inversion_circuit_structured())) + for o in (False, True)]: + tk = circuit_from_qasm_str(qasm2.dumps(qc.decompose(reps=4))) + if opt: + FullPeepholeOptimise().apply(tk) + AutoRebase({OpType.ZZPhase, OpType.PhasedX, OpType.Rz}).apply(tk) + # pytket orders basis states with qubit 0 as the MOST significant bit; convert to Qiskit order. + u_tk = tk.get_unitary() + r = [bt2t.reverse_bits(x) for x in range(32)] + u_q = u_tk[np.ix_(r, r)] + a = ref.data + phase = np.vdot(a.flatten(), u_q.flatten()) + equiv = abs(abs(phase) - 32.0) < 1e-6 and np.allclose(u_q * np.conj(phase / abs(phase)), a, atol=1e-6) + out.append({"kind": "PROXY pytket H2-native rebase (local pytket, not Nexus)", "circuit": name, + "FullPeepholeOptimise": opt, + "two_qubit_gates": {"ZZPhase": int(tk.n_gates_of_type(OpType.ZZPhase))}, + "depth": tk.depth(), "size": tk.n_gates, "equivalent_up_to_global_phase": bool(equiv)}) + return out + + +def prior_prototype_findings() -> Dict[str, object]: + """The earlier harness's 'inversion' (build_bt_inversion_circuit), reconstructed gate for gate. + + Its stated encoding: q0 sign bit, (q1, q2) Q8 index, (q3, q4) Z3 coset index, so coset value 3 + (q3 = q4 = 1) is unused and 24 states are valid. A correct inversion on any such encoding must map the + valid set to itself, be an involution there, and fix exactly 2 valid elements (+-1). + """ + from qiskit import QuantumCircuit + from qiskit.quantum_info import Operator, Statevector + prep = QuantumCircuit(5) + for q in range(5): + prep.h(q) + prep.cx(0, 1); prep.cx(2, 3); prep.cx(3, 4) # noqa: E702 + inv = QuantumCircuit(5) + inv.cx(1, 0); inv.cx(2, 0); inv.ccx(1, 2, 0); inv.swap(3, 4); inv.ccx(3, 4, 0) # noqa: E702 + inv.cx(3, 1); inv.cx(4, 2) # noqa: E702 + support = int(np.sum(np.abs(Statevector(prep).data) ** 2 > 1e-12)) + u = Operator(inv).data + perm = [int(np.argmax(np.abs(u[:, x]))) for x in range(32)] + valid = [x for x in range(32) if not (((x >> 3) & 1) and ((x >> 4) & 1))] + return { + "prep_support_states": support, + "prep_restricted_to_24": support == 24, + "inversion_is_involution": all(perm[perm[x]] == x for x in range(32)), + "inversion_preserves_valid_set": all(perm[x] in valid for x in valid), + "valid_fixed_points": sum(1 for x in valid if perm[x] == x), + "meets_necessary_conditions": (all(perm[perm[x]] == x for x in range(32)) + and all(perm[x] in valid for x in valid) + and sum(1 for x in valid if perm[x] == x) == 2), + } + + +def run_all() -> Dict[str, object]: + checks: Dict[str, object] = {} + checks.update(group_checks()) + checks.update(map_checks()) + circ = circuit_checks() + metrics = {k: v for k, v in circ.items() if k.startswith("_")} + checks.update({k: v for k, v in circ.items() if not k.startswith("_")}) + comps = proxy_compilations() + checks["proxy_compilations_all_equivalent"] = all(c.get("equivalent_up_to_global_phase", False) + for c in comps if "status" not in c) + return {"checks": checks, "metrics": metrics, "compilations": comps, "prior": prior_prototype_findings()} + + +if __name__ == "__main__": + import json + print(json.dumps(run_all(), indent=1, default=str)) diff --git a/tests/test_bt2t_inversion.py b/tests/test_bt2t_inversion.py new file mode 100644 index 00000000..572bda61 --- /dev/null +++ b/tests/test_bt2t_inversion.py @@ -0,0 +1,118 @@ +"""OSIRIS-BT2T-001 milestone 1: exact checks of 2T inversion (offline; no provider calls).""" + +import importlib.util +import sys +from pathlib import Path + +import pytest + +HERE = Path(__file__).resolve().parents[1] / "experiments" / "bt2t_inversion" + + +def _load(name): + if str(HERE) not in sys.path: + sys.path.insert(0, str(HERE)) + spec = importlib.util.spec_from_file_location(name, HERE / f"{name}.py") + mod = importlib.util.module_from_spec(spec) + sys.modules[name] = mod + spec.loader.exec_module(mod) + return mod + + +bt2t = _load("bt2t") + + +# --- exact group and map (no quantum library needed) ------------------------------------------------- + +def test_group_axioms_hold_exhaustively(): + els = bt2t.elements() + assert len(set(els)) == 24 and all(sum(c * c for c in g) == 4 for g in els) + table = bt2t.multiplication_table() # raises if not closed + assert all(table[0][j] == j == table[j][0] for j in range(24)) + assert bt2t.all_products_associative() + i, j, k = (0, 2, 0, 0), (0, 0, 2, 0), (0, 0, 0, 2) + assert bt2t.qmul(i, j) == k and bt2t.qmul(j, i) == (0, 0, 0, -2) + assert bt2t.qmul(bt2t.qmul(i, j), k) == (-2, 0, 0, 0) + + +def test_encoding_is_frozen(): + rec = bt2t.encoding_record() + assert rec["encoding_version"] == "bt2t-enc-1" + assert rec["elements"][8]["doubled_coords"] == [1, 1, 1, 1] # (1 + i + j + k) / 2 + assert rec["elements"][23]["doubled_coords"] == [-1, -1, -1, -1] + assert rec["fixed_points"] == [0, 1] + list(range(24, 32)) + # Changing the encoding, bit order or map must change this hash; update it only with a new version. + assert rec["sha256"] == "3e3b02d13539daaf431af39056d031f777a785a556eb9da21ef4ea6097dfc4c5" + + +def test_inverse_from_table_matches_conjugation_and_is_an_involution(): + els, idx = bt2t.elements(), bt2t.index_of() + inv = bt2t.inverse_from_table(bt2t.multiplication_table()) + assert inv == [idx[bt2t.conjugate(g)] for g in els] + perm = bt2t.inversion_permutation() + assert sorted(perm) == list(range(32)) + assert all(perm[perm[x]] == x for x in range(32)) + assert {x for x in range(32) if perm[x] == x} == {0, 1} | set(range(24, 32)) + assert len(bt2t.transpositions(perm)) == 11 + + +def test_gate_list_maps_all_32_basis_inputs_classically(): + perm = bt2t.inversion_permutation() + gates = bt2t.inversion_gate_list() + assert [bt2t.apply_gate_list_classically(gates, x) for x in range(32)] == perm + + +def test_bit_reversal_helper(): + assert bt2t.reverse_bits(0b00001) == 0b10000 + assert all(bt2t.reverse_bits(bt2t.reverse_bits(x)) == x for x in range(32)) + + +# --- circuit, exact including phases (needs qiskit) --------------------------------------------------- + +@pytest.fixture(scope="module") +def verify(): + pytest.importorskip("qiskit") + return _load("verify") + + +def test_circuit_matrices_equal_the_permutation_exactly(verify): + np = pytest.importorskip("numpy") + from qiskit.quantum_info import Operator + p = verify.permutation_matrix(bt2t.inversion_permutation()) + for qc in (bt2t.inversion_circuit(), bt2t.inversion_circuit_structured()): + assert np.max(np.abs(Operator(qc).data - p)) < 1e-9, qc.name # phases included, not just support + + +def test_superpositions_with_relative_phases(verify): + c = verify.circuit_checks() + assert c["circuit_superpositions_exact_with_phases"] and c["circuit_classical_sim_all_32_inputs"] + + +def test_a_phase_error_is_caught_by_the_phase_tests(verify): + """Positive control: a CZ that only adds a relative phase passes a basis-output test but must fail.""" + np = pytest.importorskip("numpy") + from qiskit.quantum_info import Operator + bad = bt2t.inversion_circuit_structured() + bad.cz(0, 1) + u = Operator(bad).data + perm = bt2t.inversion_permutation() + assert [int(np.argmax(np.abs(u[:, x]))) for x in range(32)] == perm # basis outputs still right + assert np.max(np.abs(u - verify.permutation_matrix(perm))) > 1.0 # phases are not + + +def test_proxy_compilation_stays_equivalent(verify): + from qiskit import transpile + from qiskit.quantum_info import Operator + from qiskit.transpiler import CouplingMap + qc = bt2t.inversion_circuit_structured() + t = transpile(qc, basis_gates=["rz", "sx", "x", "cz"], coupling_map=CouplingMap(verify.HEAVY_HEX_5Q), + optimization_level=3, seed_transpiler=verify.SEED) + assert Operator.from_circuit(t).equiv(Operator(bt2t.inversion_circuit())) + + +def test_prior_prototype_fails_the_necessary_conditions(verify): + """The earlier, unvalidated harness: its preparation covers all 32 states and its 'inversion' is not + an involution, so it is not group inversion under its own stated encoding.""" + f = verify.prior_prototype_findings() + assert f["prep_support_states"] == 32 and not f["prep_restricted_to_24"] + assert not f["inversion_is_involution"] and not f["meets_necessary_conditions"] From 982ce6db34e26a5311c9956fd3e2d518ab5b0ad4 Mon Sep 17 00:00:00 2001 From: Devin Phillip Davis <354534380+quantum-osiris@users.noreply.github.com> Date: Sun, 22 Nov 2026 01:18:47 -0500 Subject: [PATCH 2/3] docs(phase1): evidence map, reconciliation, errata, verification queue; BT2T M1 manifest Source inventory, 38-row claim-evidence map, reconciliation of E-44..E-53 leads (reported context, not owner decisions), qByte/LambdaPhi/A-field errata proposal (historical drafts unchanged), ranked landscape and three experiment cards. Manifest generated offline at ef13fbd9 (clean tree). Self-review only. Co-Authored-By: Claude Opus 5.5 --- experiments/bt2t_inversion/manifest.json | 580 +++++++++++++++++++++++ phase1/claim_evidence_map.jsonl | 38 ++ phase1/errata_qbyte_lambda_phi.md | 30 ++ phase1/reconciliation.md | 96 ++++ phase1/source_inventory.json | 174 +++++++ phase1/verification_queue.md | 113 +++++ 6 files changed, 1031 insertions(+) create mode 100644 experiments/bt2t_inversion/manifest.json create mode 100644 phase1/claim_evidence_map.jsonl create mode 100644 phase1/errata_qbyte_lambda_phi.md create mode 100644 phase1/reconciliation.md create mode 100644 phase1/source_inventory.json create mode 100644 phase1/verification_queue.md diff --git a/experiments/bt2t_inversion/manifest.json b/experiments/bt2t_inversion/manifest.json new file mode 100644 index 00000000..a071eb30 --- /dev/null +++ b/experiments/bt2t_inversion/manifest.json @@ -0,0 +1,580 @@ +{ + "experiment_id": "OSIRIS-BT2T-001", + "milestone": "M1: exact inversion on one 5-qubit register (offline)", + "execution_class": "NO_EXECUTION (exact linear algebra and local proxy compilation only)", + "preregistration": null, + "generated_utc": "2026-11-22T06:18:41+00:00", + "source": { + "commit": "ef13fbd94a57249511354b7fe780c5f62ec2745a", + "dirty": false, + "path": "experiments/bt2t_inversion" + }, + "dependencies": { + "python": "3.14.4", + "qiskit": "2.6.2", + "numpy": "2.5.4", + "pytket": "2.18.5" + }, + "encoding": { + "encoding_version": "bt2t-enc-1", + "coordinates": "doubled: (a, b, c, d) means (a + b i + c j + d k) / 2", + "bit_order": "basis |x>: bit q of x on qubit q (qubit 0 = least significant bit)", + "elements": [ + { + "index": 0, + "doubled_coords": [ + 2, + 0, + 0, + 0 + ], + "bits_q4_to_q0": "00000" + }, + { + "index": 1, + "doubled_coords": [ + -2, + 0, + 0, + 0 + ], + "bits_q4_to_q0": "00001" + }, + { + "index": 2, + "doubled_coords": [ + 0, + 2, + 0, + 0 + ], + "bits_q4_to_q0": "00010" + }, + { + "index": 3, + "doubled_coords": [ + 0, + -2, + 0, + 0 + ], + "bits_q4_to_q0": "00011" + }, + { + "index": 4, + "doubled_coords": [ + 0, + 0, + 2, + 0 + ], + "bits_q4_to_q0": "00100" + }, + { + "index": 5, + "doubled_coords": [ + 0, + 0, + -2, + 0 + ], + "bits_q4_to_q0": "00101" + }, + { + "index": 6, + "doubled_coords": [ + 0, + 0, + 0, + 2 + ], + "bits_q4_to_q0": "00110" + }, + { + "index": 7, + "doubled_coords": [ + 0, + 0, + 0, + -2 + ], + "bits_q4_to_q0": "00111" + }, + { + "index": 8, + "doubled_coords": [ + 1, + 1, + 1, + 1 + ], + "bits_q4_to_q0": "01000" + }, + { + "index": 9, + "doubled_coords": [ + 1, + 1, + 1, + -1 + ], + "bits_q4_to_q0": "01001" + }, + { + "index": 10, + "doubled_coords": [ + 1, + 1, + -1, + 1 + ], + "bits_q4_to_q0": "01010" + }, + { + "index": 11, + "doubled_coords": [ + 1, + 1, + -1, + -1 + ], + "bits_q4_to_q0": "01011" + }, + { + "index": 12, + "doubled_coords": [ + 1, + -1, + 1, + 1 + ], + "bits_q4_to_q0": "01100" + }, + { + "index": 13, + "doubled_coords": [ + 1, + -1, + 1, + -1 + ], + "bits_q4_to_q0": "01101" + }, + { + "index": 14, + "doubled_coords": [ + 1, + -1, + -1, + 1 + ], + "bits_q4_to_q0": "01110" + }, + { + "index": 15, + "doubled_coords": [ + 1, + -1, + -1, + -1 + ], + "bits_q4_to_q0": "01111" + }, + { + "index": 16, + "doubled_coords": [ + -1, + 1, + 1, + 1 + ], + "bits_q4_to_q0": "10000" + }, + { + "index": 17, + "doubled_coords": [ + -1, + 1, + 1, + -1 + ], + "bits_q4_to_q0": "10001" + }, + { + "index": 18, + "doubled_coords": [ + -1, + 1, + -1, + 1 + ], + "bits_q4_to_q0": "10010" + }, + { + "index": 19, + "doubled_coords": [ + -1, + 1, + -1, + -1 + ], + "bits_q4_to_q0": "10011" + }, + { + "index": 20, + "doubled_coords": [ + -1, + -1, + 1, + 1 + ], + "bits_q4_to_q0": "10100" + }, + { + "index": 21, + "doubled_coords": [ + -1, + -1, + 1, + -1 + ], + "bits_q4_to_q0": "10101" + }, + { + "index": 22, + "doubled_coords": [ + -1, + -1, + -1, + 1 + ], + "bits_q4_to_q0": "10110" + }, + { + "index": 23, + "doubled_coords": [ + -1, + -1, + -1, + -1 + ], + "bits_q4_to_q0": "10111" + } + ], + "unused_codewords": [ + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31 + ], + "unused_behaviour": "fixed by inversion", + "inversion_permutation": [ + 0, + 1, + 3, + 2, + 5, + 4, + 7, + 6, + 15, + 14, + 13, + 12, + 11, + 10, + 9, + 8, + 23, + 22, + 21, + 20, + 19, + 18, + 17, + 16, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31 + ], + "fixed_points": [ + 0, + 1, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31 + ], + "transpositions": [ + [ + 2, + 3 + ], + [ + 4, + 5 + ], + [ + 6, + 7 + ], + [ + 8, + 15 + ], + [ + 9, + 14 + ], + [ + 10, + 13 + ], + [ + 11, + 12 + ], + [ + 16, + 23 + ], + [ + 17, + 22 + ], + [ + 18, + 21 + ], + [ + 19, + 20 + ] + ], + "sha256": "3e3b02d13539daaf431af39056d031f777a785a556eb9da21ef4ea6097dfc4c5" + }, + "logical_circuit": { + "qasm2_sha256": "e711fd5d8e4bd606c245c5b962f8fe5f403d7e9de2613c37f64a2b991991a791", + "qasm3_sha256": "e58aedb12e71c99a7d4e10a91b770b21ac608606c6d1e64dfe6329f577255375", + "gate_counts": { + "x": 48, + "cx": 32, + "mcx": 11 + }, + "depth": 56, + "qasm2": "OPENQASM 2.0;\ninclude \"qelib1.inc\";\ngate mcx q0,q1,q2,q3,q4 { h q4; cp(pi/2) q3,q4; h q4; h q3; t q3; cx q2,q3; tdg q3; h q3; cx q0,q3; t q3; cx q1,q3; tdg q3; cx q0,q3; t q3; cx q1,q3; tdg q3; h q3; t q3; cx q2,q3; tdg q3; h q3; h q4; cp(-pi/2) q3,q4; h q4; h q3; t q3; cx q2,q3; tdg q3; h q3; t q3; cx q1,q3; tdg q3; cx q0,q3; t q3; cx q1,q3; tdg q3; cx q0,q3; h q3; t q3; cx q2,q3; tdg q3; h q3; h q4; cp(pi/8) q0,q4; h q4; cx q0,q1; h q4; cp(-pi/8) q1,q4; h q4; cx q0,q1; h q4; cp(pi/8) q1,q4; h q4; cx q1,q2; h q4; cp(-pi/8) q2,q4; h q4; cx q0,q2; h q4; cp(pi/8) q2,q4; h q4; cx q1,q2; h q4; cp(-pi/8) q2,q4; h q4; cx q0,q2; h q4; cp(pi/8) q2,q4; h q4; }\nqreg q[5];\nx q[2];\nx q[3];\nx q[4];\nmcx q[1],q[2],q[3],q[4],q[0];\nx q[2];\nx q[3];\nx q[4];\nx q[1];\nx q[3];\nx q[4];\nmcx q[1],q[2],q[3],q[4],q[0];\nx q[1];\nx q[3];\nx q[4];\nx q[3];\nx q[4];\nmcx q[1],q[2],q[3],q[4],q[0];\nx q[3];\nx q[4];\ncx q[0],q[1];\ncx q[0],q[2];\nx q[1];\nx q[2];\nx q[4];\nmcx q[1],q[2],q[3],q[4],q[0];\nx q[1];\nx q[2];\nx q[4];\ncx q[0],q[2];\ncx q[0],q[1];\ncx q[0],q[1];\ncx q[0],q[2];\nx q[4];\nmcx q[1],q[2],q[3],q[4],q[0];\nx q[4];\ncx q[0],q[2];\ncx q[0],q[1];\ncx q[0],q[1];\ncx q[0],q[2];\nx q[2];\nx q[4];\nmcx q[1],q[2],q[3],q[4],q[0];\nx q[2];\nx q[4];\ncx q[0],q[2];\ncx q[0],q[1];\ncx q[0],q[1];\ncx q[0],q[2];\nx q[1];\nx q[4];\nmcx q[1],q[2],q[3],q[4],q[0];\nx q[1];\nx q[4];\ncx q[0],q[2];\ncx q[0],q[1];\ncx q[0],q[1];\ncx q[0],q[2];\nx q[1];\nx q[2];\nx q[3];\nmcx q[1],q[2],q[3],q[4],q[0];\nx q[1];\nx q[2];\nx q[3];\ncx q[0],q[2];\ncx q[0],q[1];\ncx q[0],q[1];\ncx q[0],q[2];\nx q[3];\nmcx q[1],q[2],q[3],q[4],q[0];\nx q[3];\ncx q[0],q[2];\ncx q[0],q[1];\ncx q[0],q[1];\ncx q[0],q[2];\nx q[2];\nx q[3];\nmcx q[1],q[2],q[3],q[4],q[0];\nx q[2];\nx q[3];\ncx q[0],q[2];\ncx q[0],q[1];\ncx q[0],q[1];\ncx q[0],q[2];\nx q[1];\nx q[3];\nmcx q[1],q[2],q[3],q[4],q[0];\nx q[1];\nx q[3];\ncx q[0],q[2];\ncx q[0],q[1];", + "role": "generic transposition reference" + }, + "structured_circuit": { + "qasm2_sha256": "ae934e1589ad4bb6c9b418fe01a316d64009158db28479e17b78de3c0ffe187c", + "gate_counts": { + "x": 8, + "cx": 6, + "ccx": 1, + "mcx": 1 + }, + "depth": 8, + "qasm2": "OPENQASM 2.0;\ninclude \"qelib1.inc\";\ngate mcx q0,q1,q2,q3,q4 { h q4; cp(pi/2) q3,q4; h q4; h q3; t q3; cx q2,q3; tdg q3; h q3; cx q0,q3; t q3; cx q1,q3; tdg q3; cx q0,q3; t q3; cx q1,q3; tdg q3; h q3; t q3; cx q2,q3; tdg q3; h q3; h q4; cp(-pi/2) q3,q4; h q4; h q3; t q3; cx q2,q3; tdg q3; h q3; t q3; cx q1,q3; tdg q3; cx q0,q3; t q3; cx q1,q3; tdg q3; cx q0,q3; h q3; t q3; cx q2,q3; tdg q3; h q3; h q4; cp(pi/8) q0,q4; h q4; cx q0,q1; h q4; cp(-pi/8) q1,q4; h q4; cx q0,q1; h q4; cp(pi/8) q1,q4; h q4; cx q1,q2; h q4; cp(-pi/8) q2,q4; h q4; cx q0,q2; h q4; cp(pi/8) q2,q4; h q4; cx q1,q2; h q4; cp(-pi/8) q2,q4; h q4; cx q0,q2; h q4; cp(pi/8) q2,q4; h q4; }\nqreg q[5];\ncx q[3],q[0];\ncx q[4],q[0];\ncx q[3],q[1];\ncx q[4],q[1];\ncx q[3],q[2];\ncx q[4],q[2];\nx q[3];\nx q[4];\nccx q[3],q[4],q[0];\nx q[1];\nx q[2];\nmcx q[1],q[2],q[3],q[4],q[0];\nx q[1];\nx q[2];\nx q[3];\nx q[4];", + "role": "candidate synthesis; must equal the reference exactly" + }, + "proxy_compilations": [ + { + "kind": "PROXY qiskit transpile", + "circuit": "generic", + "target": "all_to_all", + "optimization_level": 1, + "seed": 20261122, + "two_qubit_gates": { + "cz": 400 + }, + "depth": 1945, + "size": 2568, + "equivalent_up_to_global_phase": true + }, + { + "kind": "PROXY qiskit transpile", + "circuit": "generic", + "target": "all_to_all", + "optimization_level": 3, + "seed": 20261122, + "two_qubit_gates": { + "cz": 400 + }, + "depth": 1481, + "size": 2069, + "equivalent_up_to_global_phase": true + }, + { + "kind": "PROXY qiskit transpile", + "circuit": "generic", + "target": "heavy_hex_fragment_T5", + "optimization_level": 1, + "seed": 20261122, + "two_qubit_gates": { + "cz": 838 + }, + "depth": 2736, + "size": 3992, + "equivalent_up_to_global_phase": true + }, + { + "kind": "PROXY qiskit transpile", + "circuit": "generic", + "target": "heavy_hex_fragment_T5", + "optimization_level": 3, + "seed": 20261122, + "two_qubit_gates": { + "cz": 723 + }, + "depth": 2073, + "size": 3281, + "equivalent_up_to_global_phase": true + }, + { + "kind": "PROXY qiskit transpile", + "circuit": "structured", + "target": "all_to_all", + "optimization_level": 1, + "seed": 20261122, + "two_qubit_gates": { + "cz": 48 + }, + "depth": 213, + "size": 296, + "equivalent_up_to_global_phase": true + }, + { + "kind": "PROXY qiskit transpile", + "circuit": "structured", + "target": "all_to_all", + "optimization_level": 3, + "seed": 20261122, + "two_qubit_gates": { + "cz": 48 + }, + "depth": 168, + "size": 242, + "equivalent_up_to_global_phase": true + }, + { + "kind": "PROXY qiskit transpile", + "circuit": "structured", + "target": "heavy_hex_fragment_T5", + "optimization_level": 1, + "seed": 20261122, + "two_qubit_gates": { + "cz": 84 + }, + "depth": 268, + "size": 400, + "equivalent_up_to_global_phase": true + }, + { + "kind": "PROXY qiskit transpile", + "circuit": "structured", + "target": "heavy_hex_fragment_T5", + "optimization_level": 3, + "seed": 20261122, + "two_qubit_gates": { + "cz": 72 + }, + "depth": 218, + "size": 350, + "equivalent_up_to_global_phase": true + }, + { + "kind": "PROXY pytket H2-native rebase (local pytket, not Nexus)", + "circuit": "generic", + "FullPeepholeOptimise": false, + "two_qubit_gates": { + "ZZPhase": 428 + }, + "depth": 2092, + "size": 3233, + "equivalent_up_to_global_phase": true + }, + { + "kind": "PROXY pytket H2-native rebase (local pytket, not Nexus)", + "circuit": "generic", + "FullPeepholeOptimise": true, + "two_qubit_gates": { + "ZZPhase": 400 + }, + "depth": 1720, + "size": 2520, + "equivalent_up_to_global_phase": true + }, + { + "kind": "PROXY pytket H2-native rebase (local pytket, not Nexus)", + "circuit": "structured", + "FullPeepholeOptimise": false, + "two_qubit_gates": { + "ZZPhase": 48 + }, + "depth": 218, + "size": 354, + "equivalent_up_to_global_phase": true + }, + { + "kind": "PROXY pytket H2-native rebase (local pytket, not Nexus)", + "circuit": "structured", + "FullPeepholeOptimise": true, + "two_qubit_gates": { + "ZZPhase": 47 + }, + "depth": 194, + "size": 294, + "equivalent_up_to_global_phase": true + } + ], + "verification": { + "checks": { + "group_24_distinct_elements": true, + "group_all_unit_norm": true, + "group_closed": true, + "group_identity_is_index_0": true, + "group_hamilton_relations": true, + "group_associative_exhaustive": true, + "group_index_roundtrip": true, + "map_table_inverse_equals_conjugate": true, + "map_is_bijection_on_32": true, + "map_is_involution": true, + "map_fixed_points_are_pm1_and_unused": true, + "map_valid_set_preserved": true, + "map_11_transpositions": true, + "circuit_classical_sim_all_32_inputs": true, + "circuit_matrix_equals_permutation_exactly": true, + "circuit_squared_is_identity": true, + "structured_matrix_equals_permutation_exactly": true, + "circuit_superpositions_exact_with_phases": true, + "proxy_compilations_all_equivalent": true + }, + "metrics": { + "_circuit_matrix_max_abs_error": 3.474998621301448e-14, + "_structured_matrix_max_abs_error": 3.552716894235139e-15, + "_superposition_max_abs_error": 1.8989609283442296e-14 + }, + "prior": { + "prep_support_states": 32, + "prep_restricted_to_24": false, + "inversion_is_involution": false, + "inversion_preserves_valid_set": true, + "valid_fixed_points": 2, + "meets_necessary_conditions": false + } + }, + "next_gate": "G1 passed only if every verification check is true; hardware comparison stays BLOCKED until a preregistration and explicit approval exist." +} diff --git a/phase1/claim_evidence_map.jsonl b/phase1/claim_evidence_map.jsonl new file mode 100644 index 00000000..1e8c6080 --- /dev/null +++ b/phase1/claim_evidence_map.jsonl @@ -0,0 +1,38 @@ +{"claim_id": "ENG-NEXUS-1", "proposition": "osiris-cli main contains a qnexus-SDK Nexus adapter (osiris nexus)", "origin": "PR #72", "evidence_basis": "directly inspected", "execution_class": "no execution", "assessment": "SUPPORTED", "scope": "code present at 8e963c77 (merge 4cd16a35)", "links": [{"artifact": "osiris_cli/providers/nexus_sdk.py@8e963c77", "relationship": "supports"}], "next_check": "none", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "ENG-NEXUS-2", "proposition": "test_nexus_sdk.py and test_quantinuum_client.py execute (not skip) with pytket 2.18.5 and qnexus 0.51.4", "origin": "E-49/E-50; PR #75", "evidence_basis": "measured", "execution_class": "no execution (unit tests with fakes)", "assessment": "REPRODUCED", "scope": "CI run 44989410176 quantinuum job (38 collected, no-skip gate) and local rerun: 34 passed, 0 skipped in those two files", "links": [{"artifact": "actions/44989410176", "relationship": "supports"}, {"artifact": "local pytest -v 2026-11-22", "relationship": "supports"}], "next_check": "none", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "ENG-NEXUS-3", "proposition": "every SDK call the adapter makes binds to qnexus 0.51.4's real signatures", "origin": "PR #72", "evidence_basis": "measured", "execution_class": "no execution", "assessment": "SUPPORTED", "scope": "inspect.signature().bind on recorded calls, incl. jobs.status and jobs.get; does not show the service accepts them", "links": [{"artifact": "tests/test_nexus_sdk.py::test_every_sdk_call_binds_to_the_real_qnexus_signature", "relationship": "supports"}], "next_check": "first approved live preflight", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "ENG-NEXUS-4", "proposition": "the adapter works against the live Nexus service (upload, compile, cost, emulator, hardware)", "origin": "implied by docs", "evidence_basis": "declared", "execution_class": "none", "assessment": "UNVERIFIED", "scope": "no credentials; nothing sent", "links": [], "next_check": "approved preflight on 1 circuit after access is granted; compare Nexus HQC with local_hqc", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "ENG-NEXUS-5", "proposition": "HARDWARE_ATTESTED is recorded only after Nexus confirms COMPLETED status and the requested device", "origin": "PR #75", "evidence_basis": "directly inspected + measured with fakes", "execution_class": "no execution", "assessment": "SUPPORTED", "scope": "logic and fake-service tests only; real backend_config_store/backend_info field contents unverified", "links": [{"artifact": "osiris_cli/providers/nexus_sdk.py::_attest_hardware", "relationship": "supports"}], "next_check": "inspect a real completed emulator job's jobs.get and download_backend_info fields", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "ENG-TKET-1", "proposition": "12 test_quantinuum_client.py tests failed on pre-fix main with pytket installed", "origin": "E-49", "evidence_basis": "measured", "execution_class": "no execution", "assessment": "REPRODUCED", "scope": "rerun on a worktree of f017e743 in an earlier session of this conversation: 12 failed, 9 passed (those files)", "links": [{"artifact": "origin/main f017e743", "relationship": "supports"}], "next_check": "none", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "ENG-TKET-2", "proposition": "the 12 failures are fixed at root cause (hqslib1 export for single-bit conditions; no_reduce honoured)", "origin": "PR #74", "evidence_basis": "measured", "execution_class": "no execution", "assessment": "REPRODUCED", "scope": "CI 44989410176 and local rerun; tests were not skipped or xfailed", "links": [{"artifact": "osiris_cli/providers/tket_wrapper.py@8e963c77", "relationship": "supports"}], "next_check": "none", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "ENG-TKET-3", "proposition": "the old tket wrapper dropped feed-forward corrections", "origin": "agent's own earlier statement (this conversation)", "evidence_basis": "measured", "execution_class": "no execution", "assessment": "REFUTED", "scope": "pytket rewrote x as u3; all three if(syn==k) corrections were present", "links": [{"artifact": "local reproduction 2026-11-22", "relationship": "contradicts"}], "next_check": "none (corrected in PR #72 description)", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "ENG-DNL-1", "proposition": "dnalang-core main CI passes at 90b6805", "origin": "E-51", "evidence_basis": "measured (run conclusion)", "execution_class": "no execution", "assessment": "SUPPORTED", "scope": "workflow conclusion only; the 110-test local run was on the PR branch", "links": [{"artifact": "actions/44989084645", "relationship": "supports"}], "next_check": "none", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "ENG-DEPLOY-1", "proposition": "www.quantumagentlab.com serves deployment dpl_6gdekc1Cc1FjwPRDnjhPBmCT4CQ6 built from 190c326", "origin": "E-52", "evidence_basis": "directly inspected", "execution_class": "no execution", "assessment": "SUPPORTED (qualified)", "scope": "alias->deployment binding verified via Vercel API; source binding is operator-supplied meta.sourceCommit from a git archive the agent made, not a Vercel Git link", "links": [{"artifact": "vercel/dpl_6gdekc1Cc1FjwPRDnjhPBmCT4CQ6", "relationship": "supports"}], "next_check": "after the Vercel GitHub App is granted org access: redeploy from Git and compare", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "ENG-DEPLOY-2", "proposition": "no 'SIGNATURE: 9HUP5' or 'Sovereign ID: ADS-9HUP5' remains in quantum-ide source", "origin": "E-52", "evidence_basis": "directly inspected", "execution_class": "no execution", "assessment": "SUPPORTED", "scope": "git grep at 190c326 (app, components, lib); rendered check on 3 routes only", "links": [{"artifact": "quantum-ide@190c326", "relationship": "supports"}], "next_check": "crawl all built routes of the deployed artifact", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "ENG-DEPLOY-3", "proposition": "quantum-ide's Vercel project was Git-linked to ENKI-420", "origin": "reconciliation E-45/E-52 lead", "evidence_basis": "directly inspected", "execution_class": "no execution", "assessment": "REFUTED", "scope": "Vercel API on 2026-11-22: project link is null (no Git link at all)", "links": [{"artifact": "vercel/project quantum-ide", "relationship": "contradicts"}], "next_check": "none", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "ENG-DEPLOY-4", "proposition": "www.quantumosiris.com serves the portfolio built from quantumosiris-site 7ae1104", "origin": "E-44/E-45", "evidence_basis": "directly inspected", "execution_class": "no execution", "assessment": "SUPPORTED (qualified)", "scope": "alias binding verified; source binding operator-supplied; authorization is the pasted owner decision record (declared)", "links": [{"artifact": "vercel/dpl_2Vqd7pCGnX8Da9MiGJaVkLCW4hzY", "relationship": "supports"}], "next_check": "Git-linked deploy once permitted", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "SCI-ARCH1-1", "proposition": "NCLM-ARCH-1 is FAIL under Amendment 3's two-seed rule", "origin": "E-46", "evidence_basis": "directly inspected", "execution_class": "physical (local CPU training runs)", "assessment": "SUPPORTED", "scope": "results.json decision/verdict, 2 seed pairs; not rerun", "links": [{"artifact": "experiments/nclm_arch1/results.json", "relationship": "supports"}, {"artifact": "RESULT.md", "relationship": "supports"}], "next_check": "none for this proposition", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "SCI-ARCH1-2", "proposition": "NCLM-ARCH-1 is complete against the original 8-seed registration", "origin": "PRE_REGISTRATION.md", "evidence_basis": "directly inspected", "execution_class": "n/a", "assessment": "REFUTED", "scope": "seeds 202-207 never ran", "links": [{"artifact": "PRE_REGISTRATION.md", "relationship": "contradicts"}, {"artifact": "results.json", "relationship": "contradicts"}], "next_check": "run seeds 202-207 as registered", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "SCI-ARCH1-3", "proposition": "Amendment 3 was adopted after both seed-200 runs finished", "origin": "E-46", "evidence_basis": "independently derived", "execution_class": "n/a", "assessment": "SUPPORTED (assumption-dependent)", "scope": "run_id start + recorded hours: crsm_s200 ends ~00:13, standard_s200 ~01:36 (local); Amendment 3 commit da96afed 02:56:55-05:00; standard_s201 started 02:57:54. Assumes run_ids use the same local time zone as commits; crsm_s201 was running at amendment time", "links": [{"artifact": "results.json runs[].run_id,hours", "relationship": "supports"}, {"artifact": "git da96afed", "relationship": "supports"}], "next_check": "read run-directory logs (inaccessible here)", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "SCI-ARCH1-4", "proposition": "seed-200 held-out scores were viewed before Amendment 3", "origin": "not claimed anywhere", "evidence_basis": "none", "execution_class": "n/a", "assessment": "UNVERIFIED", "scope": "no record either way; do not infer", "links": [], "next_check": "evaluation-log access times / operator statement", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "SCI-ARCH1-5", "proposition": "register CRSM_ARCH verdict REFUTED with the Amendment 3 qualification", "origin": "PR #75 per owner E-46", "evidence_basis": "directly inspected", "execution_class": "n/a", "assessment": "SUPPORTED as a register state", "scope": "register has no 'FAIL under amendment' verdict; REFUTED may read stronger than an incomplete test supports — see reconciliation.md R-3", "links": [{"artifact": "osiris_cli/claims.py@8e963c77", "relationship": "supports"}], "next_check": "owner decision on whether to add an INCOMPLETE/AMENDED verdict", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "SCI-ADV0-1", "proposition": "PR #73 merged and main CI passed at the merge", "origin": "E-47", "evidence_basis": "measured (run conclusion)", "execution_class": "no execution", "assessment": "SUPPORTED", "scope": "merge f0adb8c5; main push run success", "links": [{"artifact": "github PR #73", "relationship": "supports"}], "next_check": "none", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "SCI-ADV0-2", "proposition": "in all 30 scanned cells at least one classical attack recovered the hidden string", "origin": "ADV0_REPORT.md", "evidence_basis": "independently derived from raw rows", "execution_class": "ideal simulation (classical)", "assessment": "SUPPORTED", "scope": "recomputed from scan.jsonl: 30/30, matches stored flag; attacks themselves not rerun in this pass", "links": [{"artifact": "docs/adv0/scan.jsonl", "relationship": "supports"}], "next_check": "rerun n=56 d=16 MPS chi=256 from the pinned commit", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "SCI-ADV0-3", "proposition": "the predicted hardware peak at n=56 d=16 is 0.041", "origin": "ADV0_REPORT.md", "evidence_basis": "declared (model)", "execution_class": "noisy simulation / cost model", "assessment": "SUPPORTED as a model output", "scope": "product-of-(1-err) model from FakeMarrakesh; checked earlier against full noisy sim (1-7% optimistic); not a hardware measurement", "links": [{"artifact": "docs/adv0/scan.jsonl", "relationship": "supports"}, {"artifact": "docs/adv0/noisy_check.jsonl", "relationship": "supports"}], "next_check": "none before any hardware proposal", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "SCI-XTOP-1", "proposition": "the XTOP-005 preregistration was public before the IBM job was created", "origin": "E-48", "evidence_basis": "independently derived", "execution_class": "n/a", "assessment": "INCONCLUSIVE", "scope": "Zenodo created 18:53:24.06Z (server clock) vs local submitted_utc 18:53:43.25Z (client clock): 19 s margin, client clock offset unknown; IBM creation_date not retrieved. Circuit lock 18:37:20Z precedes both (local clock)", "links": [{"artifact": "zenodo/24425416", "relationship": "supports"}, {"artifact": "docs/xtop005/qpu/job_receipt.json", "relationship": "supports"}, {"artifact": "lock.json", "relationship": "supports"}], "next_check": "retrieve IBM job creation_date (provider clock) and compare", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "SCI-XTOP-2", "proposition": "Zenodo metadata publication_date for the preregistration is accurate", "origin": "Zenodo 24425416", "evidence_basis": "directly inspected", "execution_class": "n/a", "assessment": "REFUTED", "scope": "publication_date '2026-11-20' precedes the record's creation (2026-11-21T18:53Z)", "links": [{"artifact": "zenodo/24425416", "relationship": "contradicts"}], "next_check": "owner: correct the metadata field in a new version note; never backdate", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "SCI-XTOP-3", "proposition": "dynamical decoupling beat bare idling (H2, H3) at depths 1 and 3", "origin": "XTOP-005 paper", "evidence_basis": "directly inspected", "execution_class": "physical hardware (ibm_marrakesh, one job)", "assessment": "SUPPORTED", "scope": "results.json tests: Holm p=0.002 each; unit of inference is one job/one session; shots are not independent replicates", "links": [{"artifact": "docs/xtop005/qpu/results.json", "relationship": "supports"}], "next_check": "replication in an independent calibration window", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "SCI-XTOP-4", "proposition": "[[4,2,2]] encoding helped (H1, H4)", "origin": "XTOP-005 prereg hypotheses", "evidence_basis": "directly inspected", "execution_class": "physical hardware", "assessment": "REFUTED as tested (not supported)", "scope": "H1 not supported at either depth; H4 CI below zero at depth 1", "links": [{"artifact": "docs/xtop005/qpu/results.json", "relationship": "contradicts"}], "next_check": "H2-1 design run (Nexus), separately registered", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "SCI-XTOP-5", "proposition": "under an H2-like noise model, full encoding predicts 0.989 vs 0.975 bare at depth 3", "origin": "XTOP-005 paper / showcase", "evidence_basis": "declared", "execution_class": "noisy simulation", "assessment": "SUPPORTED as SIMULATED only", "scope": "not rerun in this pass; must never be cited as hardware", "links": [{"artifact": "docs/xtop005/quantinuum/", "relationship": "supports"}], "next_check": "rerun from pinned commit before any Nexus proposal", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "PHY-1", "proposition": "theta_lock = arctan(4/pi) = 51.843 deg", "origin": "physics/QBYTE_PHYSICS_WHITEPAPER.md:53", "evidence_basis": "independently derived", "execution_class": "n/a", "assessment": "REFUTED", "scope": "arctan(4/pi) = 51.853974 deg", "links": [{"artifact": "QBYTE_PHYSICS_WHITEPAPER.md", "relationship": "contradicts"}], "next_check": "none", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "PHY-2", "proposition": "the draft equates arccos(1/3) with 51.843 deg", "origin": "pasted correction table", "evidence_basis": "directly inspected", "execution_class": "n/a", "assessment": "REFUTED (misattribution)", "scope": "draft states arccos(1/3) = 70.53 deg 'projected as 51.84 deg' with no defined projection; the projection is the unsupported step", "links": [{"artifact": "QBYTE_PHYSICS_WHITEPAPER.md:59", "relationship": "contradicts"}], "next_check": "none", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "PHY-3", "proposition": "lambda_Phi = 2.176435e-8 s^-1 is a physical rate", "origin": "whitepaper, falsifiable_predictions.md", "evidence_basis": "independently derived", "execution_class": "n/a", "assessment": "REFUTED as dimensioned", "scope": "equals the Planck mass in kg (2.176434e-8); sqrt(c^5/(G hbar)) = 1.8549e43 s^-1; register already NOT_MEASURED", "links": [{"artifact": "falsifiable_predictions.md:40", "relationship": "contradicts"}], "next_check": "none", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "PHY-4", "proposition": "E_qByte = lambda_Phi * hbar is about 1e-18 eV", "origin": "whitepaper:505-508", "evidence_basis": "independently derived", "execution_class": "n/a", "assessment": "REFUTED", "scope": "2.2961e-42 J = 1.4331e-23 eV", "links": [{"artifact": "QBYTE_PHYSICS_WHITEPAPER.md:505", "relationship": "contradicts"}], "next_check": "none", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "PHY-5", "proposition": "curl E_dielectric = (2 pi / lambda_phi) n-hat", "origin": "whitepaper:93", "evidence_basis": "independently derived", "execution_class": "n/a", "assessment": "REFUTED (dimensional)", "scope": "LHS V/m^2; RHS has units of s with lambda_phi in s^-1", "links": [{"artifact": "QBYTE_PHYSICS_WHITEPAPER.md", "relationship": "contradicts"}], "next_check": "none", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "PHY-6", "proposition": "Bell fidelity is universally bounded by 1 - phi^-8 = 0.9787", "origin": "falsifiable_predictions.md v2.1.0 ('100% validated')", "evidence_basis": "independently derived", "execution_class": "n/a", "assessment": "REFUTED", "scope": "ideal Bell preparation has fidelity 1 and no derivation of the bound exists; published >0.99 trapped-ion Bell fidelities are a lead (citation not inspected in this pass); register F_MAX already REFUTED", "links": [{"artifact": "falsifiable_predictions.md:15-22", "relationship": "contradicts"}, {"artifact": "osiris_cli/claims.py F_MAX", "relationship": "contradicts"}], "next_check": "none", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "PHY-7", "proposition": "falsifiable_predictions.md accurately states validation status", "origin": "repo file v2.1.0", "evidence_basis": "directly inspected", "execution_class": "n/a", "assessment": "REFUTED", "scope": "'STRONGLY VALIDATED (100% compliance)' conflicts with register verdicts; the softer v2.2.0 is not in the repo", "links": [{"artifact": "falsifiable_predictions.md:3-5", "relationship": "contradicts"}], "next_check": "owner: add errata header pointing to phase1/errata_qbyte_lambda_phi.md (historical text retained)", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "PHY-8", "proposition": "GHZ scaling table uses one tau_mem", "origin": "pasted v2.2.0", "evidence_basis": "independently derived", "execution_class": "n/a", "assessment": "REFUTED (internal inconsistency)", "scope": "implied tau_mem 45.5-47.1 ns across rows; also 46 ns vs the 46 us T2 grid differ by 1000x", "links": [], "next_check": "freeze one value and regenerate the table", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "PHY-9", "proposition": "EXP-AFIELD-01/02 empirically refute the A-field hypothesis", "origin": "research/a_field_study/experiments/falsification_harness.py", "evidence_basis": "directly inspected", "execution_class": "ideal/noisy simulation", "assessment": "REFUTED as labelled", "scope": "the harness assigns REFUTED whenever a simulated observable with zero injected signal falls below its threshold; no injection-recovery test; physical claim UNVERIFIED", "links": [{"artifact": "falsification_harness.py:45-47,101-107", "relationship": "contradicts"}], "next_check": "injection-recovery and false-positive-rate study; relabel outputs as simulation", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "BT2T-1", "proposition": "the earlier pasted harness's circuit implements 2T inversion", "origin": "pasted harness (unvalidated prototype)", "evidence_basis": "measured", "execution_class": "ideal simulation", "assessment": "REFUTED", "scope": "its preparation populates all 32 states and its inversion block is not an involution, so it fails a necessary condition under its own encoding", "links": [{"artifact": "experiments/bt2t_inversion/verify.py::prior_prototype_findings", "relationship": "contradicts"}], "next_check": "none", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "BT2T-2", "proposition": "bt2t.inversion_circuit implements 2T inversion exactly under encoding bt2t-enc-1 (sha256 3e3b02d1...)", "origin": "this session", "evidence_basis": "independently derived + measured", "execution_class": "ideal simulation (exact)", "assessment": "SUPPORTED", "scope": "exhaustive group axioms; table inverse = conjugate; all 32 basis inputs (classical sim); full matrix equals permutation incl. phase (max err 3.5e-14); 32 random complex superpositions; self-review only", "links": [{"artifact": "experiments/bt2t_inversion/", "relationship": "supports"}, {"artifact": "tests/test_bt2t_inversion.py", "relationship": "supports"}], "next_check": "independent reviewer rederives the encoding and reruns tests", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "BT2T-3", "proposition": "the structured circuit equals the generic reference and compiles to ~1/8 the two-qubit gates", "origin": "this session", "evidence_basis": "measured", "execution_class": "no execution (local proxy compilation)", "assessment": "SUPPORTED", "scope": "exact matrix equality; PROXY counts: 48 CZ all-to-all, 72 CZ on a 5-qubit heavy-hex fragment (opt 3), 47 ZZPhase after local pytket rebase. Not provider output", "links": [{"artifact": "experiments/bt2t_inversion/verify.py::proxy_compilations", "relationship": "supports"}], "next_check": "compile on real backends' targets at run time (approval needed for Nexus)", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} diff --git a/phase1/errata_qbyte_lambda_phi.md b/phase1/errata_qbyte_lambda_phi.md new file mode 100644 index 00000000..3f1ec998 --- /dev/null +++ b/phase1/errata_qbyte_lambda_phi.md @@ -0,0 +1,30 @@ +# Errata: qByte whitepaper, ΛΦ "Falsifiable Predictions" and A-field harness (2026-11-22) + +- **Historical texts kept unchanged:** + - `physics/QBYTE_PHYSICS_WHITEPAPER.md` + - `falsifiable_predictions.md` (v2.1.0) + - `research/a_field_study/experiments/falsification_harness.py` +- **How numbers were checked:** each was recomputed from CODATA 2018 constants (c, G, ħ, e) with double-precision arithmetic. +- **Status of this document:** an errata proposal. It changes no register verdict. + +| # | Location | Original | Defect | Correction | Regression check | Effect on conclusion | +|---|---|---|---|---|---|---| +| 1 | whitepaper §1.1 | θ_lock = 51.843° = arctan(4/π) | arithmetic | arctan(4/π) = 51.85397°. Separately, arccos(1/3) = 70.52878° is the regular-tetrahedron dihedral angle; the "projection" from 70.53° to 51.84° is undefined. | `math.degrees(math.atan(4/math.pi))` | None of the listed coincidences derives the angle. | +| 2 | whitepaper §1.4, §5; predictions §2 | λ_Φ = 2.176435 × 10⁻⁸ s⁻¹ | units | 2.176434 × 10⁻⁸ is the Planck mass in kg. The Planck angular frequency √(c⁵/Għ) is 1.8549 × 10⁴³ s⁻¹. | `sqrt(hbar*c/G)`, `sqrt(c**5/(G*hbar))` | Every equation using λ_Φ as a rate is dimensionally unsupported. The register already has NOT_MEASURED. | +| 3 | whitepaper eq. at line 505 | E = λ_Φ ħ = 2.30 × 10⁻⁴² J ≈ 10⁻¹⁸ eV | conversion | 2.2961 × 10⁻⁴² J = 1.4331 × 10⁻²³ eV | `E/1.602176634e-19` | The energy scale is 5 orders of magnitude smaller than stated. | +| 4 | whitepaper §1.4 | ∇ × E = (2π/λ_φ) n̂ | dimensional | The left side is in V m⁻². The right side is in s when λ_φ is in s⁻¹. | units table | The equation has no physical content as written. | +| 5 | whitepaper (quaternion section) | q ⊗ q* = 1 + δE_release | dimensional | For a unit quaternion, q q* = \|q\|² = 1 identically, and it is dimensionless. | `bt2t.qmul(g, bt2t.conjugate(g)) == (2,0,0,0)` for all 24 Hurwitz units | Unit-quaternion inversion is valid mathematics (used in BT2T). No energy term can appear in it. | +| 6 | predictions §3, §5 | F_Bell ≤ 1 − φ⁻⁸ = 0.9787, "100% validated" | logic | The arithmetic is right (0.978714), but ideal Bell preparation has F = 1 and no derivation of the bound exists. A sample lying below the bound cannot tell a universal ceiling from device noise. | Ideal statevector Bell fidelity is 1 | REFUTED as a universal bound; consistent with the register's `F_MAX`. | +| 7 | predictions header | "STRONGLY VALIDATED (100% compliance)" | status claim | Conflicts with register verdicts. The pasted v2.2.0 ("provisional") is not in the repo. | — | The header should point here. | +| 8 | predictions §6; whitepaper | χ_pc = 0.946 and χ_pc = 0.869 | versioning | These are two different predictions: recovery fractions χ² = 0.894916 and 0.755161. Do not treat them as a range. | — | The recovery law must name one operation and one value before data are collected. | +| 9 | predictions §8 (v2.2.0 text) | α = 1/(90° − θ_lock)² | none | 6.8683 × 10⁻⁴ deg⁻². Correct as arithmetic. | — | Testing a free-minimum fit is not a test of the fixed curvature. | +| 10 | predictions §9 (v2.2.0 text) | T2(N) table with τ_mem | internal consistency | The rows imply τ_mem of 47.09, 45.66, 45.46 and 47.07 ns, so there is no single τ_mem. This 46 ns scale also differs from the 46 μs T2 grid by a factor of 1000. | Recompute `T/(N**-0.5*exp(-0.092*N))` | Freeze one τ_mem and regenerate the table before any test. | +| 11 | predictions §7 (v2.2.0 text) | Ξ = ΛΦ/Γ > 0.7734 | dimensional | With Λ and Φ dimensionless and Γ a rate, Ξ has units of time, so the threshold needs units. | — | Not operationally defined, so not testable yet. | +| 12 | A-field harness lines 45–47 and 101–107 | `verdict = "REFUTED" if is_null_result` | labelling | A simulated observable with zero injected signal, falling below a configured threshold, is a null control, not an empirical refutation. Proposed labels: `BELOW_THRESHOLD_WITH_ZERO_INJECTED_SIGNAL`, and `physical_claim_assessment: UNVERIFIED`. | Add an injection-recovery test: detection probability for signals below, near and above threshold, and a false-positive rate at zero signal. | Detector sensitivity is untested; no physical exclusion follows. | + +**What survives as valid mathematics:** +- the binary tetrahedral group 2T ⊂ SU(2); +- unit-quaternion inversion; +- echo, or time-reversal, constructions as diagnostics. + +None of these supports qByte emission, vacuum-energy extraction, nonlocal workload effects or a consciousness metric. Those remain unverified hypotheses with no defined observable. diff --git a/phase1/reconciliation.md b/phase1/reconciliation.md new file mode 100644 index 00000000..962c4c66 --- /dev/null +++ b/phase1/reconciliation.md @@ -0,0 +1,96 @@ +# Phase 1 reconciliation (2026-11-22) + +- **Reviewer:** Claude, an AI agent in a Claude Code session. This is self-review: no independent reviewer ran. +- **Pinned revisions:** + - osiris-cli `8e963c77` + - dnalang-core `90b6805` + - quantum-ide `190c326` + - quantumosiris-site `7ae1104` +- **Claim IDs** refer to `claim_evidence_map.jsonl`. +- **What this record changes:** nothing in the canonical register, production or provider state. Each proposed correction below is for the owner to decide. + +## R-1 Engineering closures (E-44, E-45, E-49 to E-52) + +| Lead | Verified now | Still open | +|---|---|---| +| E-49/E-50 pytket and Nexus tests | CI run 44989410176 at `8e963c77`: the `quantinuum` job installs pytket 2.18.5 and qnexus 0.51.4, collects 38 items, and fails on any skip. Local rerun: 34 passed, 0 skipped in the two named files (ENG-NEXUS-2). The 12 failures on main before the fix were reproduced and are fixed at the root cause (ENG-TKET-1, ENG-TKET-2). | Compatibility with the live Nexus service (ENG-NEXUS-4). Real-service contents of the fields the attestation step reads (ENG-NEXUS-5). | +| E-51 dnalang-core CI | Run 44989084645 at `90b6805`: success. | None. | +| E-52 CAGE wording | No old strings remain in source at `190c326`. The alias `www.quantumagentlab.com` points to deployment `dpl_6gdekc1…`. | That deployment's source binding is metadata the operator supplied (`--meta sourceCommit`), not a Vercel Git link. The rendered check covered only 3 routes. | +| E-45 "reconnect quantum-ide's Vercel Git link from ENKI-420" | **The premise is false** (ENG-DEPLOY-3). The Vercel API reports no Git link at all for quantum-ide or quantumosiris-site. | Linking needs the Vercel GitHub App to be installed on `quantum-osiris`. Git-linked deploys of the private site repo were BLOCKED on the current plan. | +| E-44 domain move | The alias `www.quantumosiris.com` points to quantumosiris-site deployment `dpl_2Vqd7…`. | Authorization rests on the owner decision record pasted into the conversation (declared, not inspected). | + +**Correction to an earlier statement by this agent (ENG-TKET-3).** The agent first said the old tket wrapper "drops a feed-forward correction". Reproduction showed pytket only rewrote `x` as `u3`; all corrections were present. The PR #72 description was corrected, and the claim is recorded here as REFUTED. + +**Second correction to this agent's own statements.** In the conversation the agent said arccos(1/3) ≈ 70.53° "is not the dihedral angle". That is wrong: the dihedral angle of a regular tetrahedron is arccos(1/3) ≈ 70.529°. + +## R-2 NCLM-ARCH-1 chronology (E-46) + +| Local time, 2026-10-31 to 11-01 (-05:00 assumed) | Event | Source | +|---|---|---| +| 10-31 21:48 to about 11-01 00:13 | crsm s200 runs, 12,000 steps, 2.418 h | `results.json` run_id and hours | +| 00:15 to about 01:36 | standard s200 runs, 1.349 h | same | +| 01:37 (to about 03:09) | crsm s201 starts | same | +| 02:56:55 | **Amendment 3 committed** (`da96afed`): scope set to N = 2 | git | +| 02:57:54 | standard s201 relaunched from step 0 | `results.json` | +| about 04:22 | last run ends | derived | +| 04:25:19 | result committed (`e2679dad`) | git | + +- **Supported:** Amendment 3 was adopted after both seed-200 runs had finished (SCI-ARCH1-3). This assumes run IDs use the same time zone as the commits. +- **Unknown:** whether seed-200 held-out scores were looked at before the amendment (SCI-ARCH1-4). The run directories are not on this machine. +- **Preserve both rules:** + - FAIL under Amendment 3, N = 2 (SCI-ARCH1-1); + - incomplete against the 8-seed registration (SCI-ARCH1-2). + +**R-3 Proposed correction, for the owner.** PR #75 set `CRSM_ARCH` to `REFUTED`, carrying the exact Amendment 3 wording, as approved in the owner record (E-46). The register's verdict set has no value for "failed under an amended, incomplete design". `REFUTED` ("tested and failed") can be read as stronger than the evidence. Two options, neither applied: +- (a) add a verdict such as `FAIL_AMENDED_INCOMPLETE`, with standing "not supported"; +- (b) keep `REFUTED` and make the caveats render with the verdict wherever it is shown. + +The registration itself must not be rewritten. + +## R-4 ADV-0 (E-47) + +| Proposition | Status | +|---|---| +| PR #73 merged, and main CI passed at the merge | SUPPORTED (SCI-ADV0-1) | +| A classical attack wins all 30 cells | SUPPORTED. Recomputed from the raw rows (SCI-ADV0-2); the attacks were not rerun in this pass. | +| Predicted hardware peak | A model output only (SCI-ADV0-3) | + +The board's "Done" is not used as evidence for any of these. + +## R-5 XTOP-005 timing (E-48) + +All times are UTC, original values kept. "Local" means recorded by this machine's clock. + +| Time | Clock | Event | +|---|---|---| +| 18:37:20.195 | local | circuits locked (`lock.json`) | +| 18:53:24.065 | Zenodo server | preregistration record 24425416 created | +| 18:53:43.247 | local | job submitted (`job_receipt.json`) | +| 18:55:12.526 | local | results received | +| 19:06:02.677 | Zenodo server | paper record 24425628 created | + +- **Ordering:** the preregistration record precedes local submission by 19 seconds, but the two times come from different clocks. The claim "preregistered before the job ran" is INCONCLUSIVE until IBM's own `creation_date` is retrieved (SCI-XTOP-1). That retrieval is BLOCKED in this session. +- **Metadata defect:** Zenodo's `publication_date` field says 2026-11-20, before the record existed (SCI-XTOP-2). Correct it in a new version or note it; never backdate. +- **Simulation result:** the H2-like noise-model result stays SIMULATED (SCI-XTOP-5). + +## R-6 Physics drafts (CRSM/qByte, ΛΦ, A-field) + +The full errata are in `errata_qbyte_lambda_phi.md`; the historical drafts are kept as they are. + +1. **The pasted correction table misattributes θ_lock (PHY-2).** The draft writes θ_lock = arctan(4/π) = 51.843°. That arithmetic is wrong too: arctan(4/π) = 51.854° (PHY-1). The draft separately calls 70.53° "projected as 51.84°", without defining any projection. +2. **The repo copy of `falsifiable_predictions.md` is v2.1.0** and still says "STRONGLY VALIDATED (100% compliance)" (PHY-7). The softer v2.2.0 text exists only in a pasted message. +3. **The A-field harness labels null simulations as REFUTED** (PHY-9). That is a labelling defect in code, not a finding about physics. + +## R-7 Statements not to repeat without qualification + +| Statement | Must be qualified as | +|---|---| +| "osiris nexus works with Quantinuum Nexus" | unit-tested against SDK signatures; never run against the live service | +| "HARDWARE_ATTESTED is verified by Nexus" | the logic is in place; it has not yet been exercised on a real job | +| "XTOP-005 was preregistered before the job ran" | provider timing is unverified (R-5) | +| "NCLM-ARCH-1 refuted CRSM" | FAIL under Amendment 3 (N = 2); incomplete against the 8-seed registration | +| "the site is deployed from Git" or "has commit provenance" | the commit SHA is metadata the operator supplied, with no Vercel Git link | +| "θ_lock = 51.843° = arctan(4/π)" | arithmetically false | +| "F_Bell ≤ 0.9787 validated" | REFUTED as a universal bound | +| "A-field hypothesis refuted" | simulated nulls only; detector sensitivity untested | +| Any "2T group primitive" from the earlier harness | the earlier harness fails necessary conditions (BT2T-1) | diff --git a/phase1/source_inventory.json b/phase1/source_inventory.json new file mode 100644 index 00000000..bdf942c6 --- /dev/null +++ b/phase1/source_inventory.json @@ -0,0 +1,174 @@ +{ + "record": "phase1/source_inventory.json", + "review_date": "2026-11-22", + "cutoff_utc": "2026-11-22T06:00:00Z", + "reviewer": "Claude (AI agent, Claude Code session); self-review only, no independent reviewer ran", + "workspace": "Node Beta (Linux/WSL2) ~/osiris-assessment/work", + "repositories": [ + { + "remote": "github.com/quantum-osiris/osiris-cli", + "pinned": "8e963c77 (origin/main)", + "inspected_branch": "claude/phase1-bt2t (from 8e963c77)", + "dirty_at_review": "only this Phase 1 work" + }, + { + "remote": "github.com/quantum-osiris/dnalang-core", + "pinned": "90b6805 (origin/main)", + "local_checkout": "31f16bf3 main, clean (not fast-forwarded)", + "inspected": "dnalang/passes/wen_plaquette_pass.py, CI run 44989084645" + }, + { + "remote": "github.com/quantum-osiris/quantum-ide", + "pinned": "190c326 (origin/main)", + "inspected": "git grep for CAGE strings at 190c326; rendered /, /verify, /osiris-bridge" + }, + { + "remote": "github.com/quantum-osiris/quantumosiris-site (private)", + "pinned": "7ae1104 (main)" + }, + { + "remote": "github.com/quantum-osiris/osiris-governance", + "pinned": "78b1fbe4 (local main, clean)", + "inspected": "searched for a SYS-026 definition: none found" + } + ], + "files_osiris_cli_at_8e963c77": [ + { + "path": "falsifiable_predictions.md", + "sha256": "978108c6638e0f9e8c125e44c329282cc2ccb37c809453a5256ebcca83dc4ffc" + }, + { + "path": "physics/QBYTE_PHYSICS_WHITEPAPER.md", + "sha256": "09728de517a4641f58b20a21525d91b9334463136ac932916fab567c7d346e10" + }, + { + "path": "research/a_field_study/experiments/falsification_harness.py", + "sha256": "f498afd4406a4c90d97356cc6ea1fb9161fcc46f88f6f50d7af5f1f562d652c5" + }, + { + "path": "experiments/nclm_arch1/PRE_REGISTRATION.md", + "sha256": "6b14645c793d0e9ef388e88b388ac1ece4f833a74d9991d41f917f2af728c77e" + }, + { + "path": "experiments/nclm_arch1/EXECUTION.md", + "sha256": "8d1e0081ae6e8965df38e86dc6fd84e8af8589e8f91ba8e61f2beacb81492fa1" + }, + { + "path": "experiments/nclm_arch1/results.json", + "sha256": "5242b6be88cb5ebe62e6fdd69d8cceb9dd763d6180f1f58eb7761c79c768493f" + }, + { + "path": "experiments/nclm_arch1/RESULT.md", + "sha256": "1e7602c6967fe061b0709a144971df970d1585c486c1681ddc341e42ccc4e529" + }, + { + "path": "docs/xtop005/qpu/job_receipt.json", + "sha256": "7a7d36f3c8203719afa223254bb93b757bea01389af7f0bda7762794e536c073" + }, + { + "path": "docs/xtop005/qpu/results.json", + "sha256": "4ab747abbac0f259d947ddc09e2b52bbffbe656e4b5bd3907af9cf79cab422b6" + }, + { + "path": "docs/xtop005/qpu/raw_counts.json", + "sha256": "bb838862751795d90c7b8d77a6660aa26ce5c31544e4e0cbd3ebf29762dd9d28" + }, + { + "path": "docs/xtop005/qpu/lock.json", + "sha256": "77492c195c78aec048f8a0a3b920c8dee8fa241df9cfb8a12373456907a36a3c" + }, + { + "path": "docs/adv0/scan.jsonl", + "sha256": "81cce04cedaeeef84406803f6d7f7d8cfa8ff949315d4e264f741eae784ca43a" + }, + { + "path": "docs/adv0/ADV0_REPORT.md", + "sha256": "06a4a80faf1312b73b2682a6794f7af317544b4144257b2b905b50079b2e2dde" + }, + { + "path": "osiris_cli/claims.py", + "sha256": "ebc742d297772d93f4328dc7dac7038a2b04c09544037d0cd174fc44bde92751" + }, + { + "path": "docs/research/crsm_claim_audit.md", + "sha256": "dc38e478743f5c6f0abc3ed0ed3e24f1b0e20b517465d28382a053845155eac4" + } + ], + "external_records": [ + { + "type": "github_actions_run", + "id": "44989410176", + "repo": "osiris-cli", + "head": "8e963c77", + "observed": "jobs lint, test 3.9-3.12, quantinuum: success; quantinuum log shows pytket-2.18.5, qnexus-0.51.4 installed and 'collected 38 items'", + "retrieved": "2026-11-22" + }, + { + "type": "github_actions_run", + "id": "44989084645", + "repo": "dnalang-core", + "head": "90b6805", + "observed": "conclusion success", + "retrieved": "2026-11-22" + }, + { + "type": "vercel_deployment", + "id": "dpl_6gdekc1Cc1FjwPRDnjhPBmCT4CQ6", + "project": "quantum-ide", + "observed": "READY 2026-11-22T05:22:15Z; alias www.quantumagentlab.com -> this id; meta.sourceCommit=190c32695be220bb5469c09d7292dbde8c1addc3 (operator-supplied CLI metadata, not a Vercel Git binding)" + }, + { + "type": "vercel_deployment", + "id": "dpl_2Vqd7pCGnX8Da9MiGJaVkLCW4hzY", + "project": "quantumosiris-site", + "observed": "READY 2026-11-22T05:17:53Z; alias www.quantumosiris.com -> this id; meta.sourceCommit=7ae1104d026e8d557da17e5ca3c599261668a412 (operator-supplied)" + }, + { + "type": "vercel_project_link", + "projects": [ + "quantum-ide", + "quantumosiris-site" + ], + "observed": "link = null for both (no Git integration); linking to quantum-osiris repos failed: Vercel GitHub App has no access to the org" + }, + { + "type": "zenodo_record", + "id": "24425416", + "observed": "XTOP-005 preregistration; created 2026-11-21T18:53:24.064843Z; metadata.publication_date '2026-11-20'", + "retrieved": "2026-11-22" + }, + { + "type": "zenodo_record", + "id": "24425628", + "observed": "XTOP-005 paper version; concept DOI 10.5281/zenodo.24425627; created 2026-11-21T19:06:02.677496Z", + "retrieved": "2026-11-22" + } + ], + "inaccessible": [ + { + "source": "IBM Quantum job dc0uhdts2omc7389tmt0 server metadata (creation_date, timestamps)", + "reason": "no default saved account; use of the owner's key file was blocked by the session permission system", + "prevents": "a provider-clock comparison of job creation with the Zenodo preregistration time" + }, + { + "source": "$OSIRIS_HOME/experiments/nclm_arch1 run directories", + "reason": "absent on this machine (~/.osiris/experiments/nclm_arch1 does not exist)", + "prevents": "checking evaluation logs for when held-out scores were first computed or viewed" + }, + { + "source": "canonical SYS-ID governance specification", + "reason": "not found in osiris-governance or osiris-cli (AGENTS.md names SYS-021, SYS-024, SYS-025, SYS-026 without a spec file)", + "prevents": "mapping Phase 1 execution classes onto official SYS labels; left unresolved" + }, + { + "source": "Quantinuum Nexus service", + "reason": "no credentials", + "prevents": "any live-service compatibility claim" + }, + { + "source": "Pasted 'Falsifiable Predictions v2.2.0' text", + "reason": "not present in the repository; repo file is v2.1.0", + "prevents": "treating v2.2.0 as the project's recorded position" + } + ] +} \ No newline at end of file diff --git a/phase1/verification_queue.md b/phase1/verification_queue.md new file mode 100644 index 00000000..53544396 --- /dev/null +++ b/phase1/verification_queue.md @@ -0,0 +1,113 @@ +# Phase 1 verification queue and experiment cards (2026-11-22) + +- **Reviewer:** self-review (Claude). No independent reviewer ran. +- **Claim IDs** refer to `claim_evidence_map.jsonl`. +- **Owner abbreviations:** "owner" is the project owner; "agent" is a Claude Code session working under the owner's approval. + +## 1. Prioritized checks + +The queue is ordered by decision value per unit of cost. Checks that can invalidate a whole downstream comparison come first. + +| # | Check | Claim | Owner | Prerequisite | Expected artifact | If it passes | If it fails | +|---|---|---|---|---|---|---|---| +| 1 | BT2T inversion against an exact oracle: all 32 inputs, phases, unused codewords | BT2T-2 | agent | none | `tests/test_bt2t_inversion.py`, `manifest.json` | **Done this session: pass.** Advance to offline compiler validation (G1 to G2). | Revise the circuit; hardware stays blocked. | +| 2 | Independent rederivation of encoding `bt2t-enc-1` and rerun of the tests | BT2T-2 | second reviewer (human or separate agent) | the reviewer has the repo | review note | G1 is signed off by someone other than the author. | Freeze nothing; fix the defect first. | +| 3 | Retrieve IBM `creation_date` for job `dc0uhdts2omc7389tmt0` | SCI-XTOP-1 | owner, who must run it or authorize use of the key | IBM account access | job metadata JSON (CRN redacted) | Timing claim becomes SUPPORTED or REFUTED on the provider clock. | Claim stays INCONCLUSIVE; drop it from the paper. | +| 4 | Decide the CRSM_ARCH verdict wording (R-3) | SCI-ARCH1-5 | owner | none | register PR | Register matches both decision rules. | — | +| 5 | Correct Zenodo `publication_date` in a new version note | SCI-XTOP-2 | owner | Zenodo access | new version record | Metadata is accurate; nothing is backdated. | — | +| 6 | Relabel the A-field harness outputs and add injection-recovery | PHY-9 | agent, if approved | none (local) | harness patch and test | The harness can show detector sensitivity. | — | +| 7 | Errata pointer in `falsifiable_predictions.md` | PHY-7 | owner decision | none | one-line header change | — | — | +| 8 | First approved Nexus preflight on one circuit, with Nexus HQC compared to `local_hqc` | ENG-NEXUS-4 | owner approves; agent runs | Nexus credentials, explicit approval | preflight receipt | Live compatibility becomes SUPPORTED. | File adapter defects before any paid job. | +| 9 | Install the Vercel GitHub App on `quantum-osiris`; redeploy from Git | ENG-DEPLOY-1/4 | owner | org admin | Git-linked deployment | Source binding moves from operator-supplied to platform-recorded. | — | +| 10 | Retrieve NCLM-ARCH-1 run directories (evaluation logs) | SCI-ARCH1-4 | owner | the machine that ran them | logs | The question of when results were viewed becomes answerable. | It stays unknown. | + +## 2. Provisional research landscape + +Scores run from 1 to 5, where higher is better; for cost, 5 means cheapest. They reflect this reviewer's judgement from the literature and the inspected repo, not a measurement. "Null info" is what a negative result would teach us. + +| Area | Representative task | Classical comparator | Theory | Classical gap | HW readiness | Cost | Null info | Total | Class | +|---|---|---|---|---|---|---|---|---|---| +| QEC: memory and repeated correction | logical memory vs rounds, small codes | none needed (the reference is the unencoded qubit) | 5 | n/a | 4 | 4 | 5 | **18** | useful hardware primitive | +| Compiler and placement diagnostics (echo) | predict held-out circuit fidelity | calibration-ranked and topology-only placement | 4 | n/a | 5 | 5 | 4 | **18** | engineering benchmark | +| Exact group primitives (BT2T) | inversion, then multiplication and Fourier transform on 2T | exact classical oracle (trivial) | 5 | none (classically trivial) | 5 | 5 | 3 | **18** | scientific benchmark and compiler test bed | +| Many-body dynamics | Trotterized 2D Ising and Heisenberg dynamics past exact-diagonalization size | tensor networks, Pauli propagation | 4 | 2 (classical methods keep catching up) | 3 | 2 | 3 | 14 | advantage claim, contested | +| Chemistry and materials | ground-state energy to chemical accuracy, FeMoco-class | DMRG, CCSD(T), AFQMC | 5 | 3 (only at fault-tolerant scale) | 1 (needs about 10⁶ physical qubits; T-count about 10⁹ to 10¹⁰, roughly) | 1 | 2 | 12 | end-to-end advantage, FT era | +| Random-circuit sampling and peaked circuits | sampling or peak finding (ADV-0) | MPS, Pauli propagation, light cone | 4 | 1 (ADV-0: classical attack won 30 of 30 cells) | 4 | 3 | 3 | 15 | advantage claim, **STOP at current sizes** | +| Metrology | phase estimation with entangled probes | standard quantum limit | 5 | n/a (physical-resource advantage) | 3 | 3 | 3 | 14 | physics benchmark | +| Cryptography (Shor) | RSA-2048 factoring | GNFS | 5 | 5 | 1 (about 10⁶ physical qubits, around a week; unknown for this stack) | 1 | 1 | 13 | FT-era advantage | +| Optimization (QAOA, annealing) | MaxCut and similar on NISQ | Goemans–Williamson, simulated annealing, heuristics | 2 | 1 | 4 | 4 | 2 | 13 | weak advantage case | +| ML with quantum kernels | classification | classical kernels and NNs | 2 | 1 (data loading and dequantization) | 4 | 4 | 1 | 12 | weak | +| Communication (teleportation, QKD) | teleportation fidelity with feed-forward | — | 5 | n/a | 4 | 4 | 3 | 16 | useful primitive (exercises feed-forward) | + +**Cost accounting.** Every comparison against a classical method must count: +- compilation; +- shots and repetitions; +- postselection loss (acceptance rate); +- decoding; +- result processing. + +Where a row above omits one of these, it is **unknown**, not zero. + +## 3. Experiment cards + +### Card A: OSIRIS-BT2T-001, exact 2T inversion (milestone 1) + +- **Hypothesis (engineering):** a 5-qubit reversible circuit implements group inversion on encoding `bt2t-enc-1` exactly. The structured synthesis needs fewer native two-qubit gates than the generic transposition reference, with the logical operation held fixed. +- **Reference:** an exact multiplication table from integer quaternion arithmetic. Inverses are found from the table and cross-checked against conjugation. The generic transposition circuit is the synthesis reference. +- **Controls:** + - a positive control: an injected CZ phase error is detected while basis outputs are unchanged; + - the earlier prototype, which fails necessary conditions. +- **Primary metric:** + - *Ideal stage:* the maximum absolute difference between the circuit matrix and the permutation matrix (must be below 1e-9). Measured values: 3.5e-14 for the generic circuit and 3.6e-15 for the structured one. + - *Later hardware stage, not authorized:* correct-output probability under uniform weighting over the 24 valid inputs, reported separately from unused-codeword outcomes and from preparation and readout controls. +- **Local PROXY results** (not provider output): + + | Target | Generic | Structured | + |---|---|---| + | Qiskit, all-to-all, opt 3 | 400 CZ | 48 CZ | + | Qiskit, 5-qubit heavy-hex fragment, opt 3 | 723 CZ | 72 CZ | + | pytket H2-native rebase, with FullPeepholeOptimise | 400 ZZPhase | 47 ZZPhase | + + These are differences between syntheses, not hardware advantages. +- **Falsifier:** any basis mismatch, any phase mismatch beyond tolerance, or an unused codeword that is not fixed. +- **Stop/go:** + - **GO** to offline compiler validation: pinned compiler versions, saved compiled artifacts, equivalence on each target's native set. All ideal checks pass. + - **Hardware: BLOCKED** until (a) an independent reviewer signs off G1; (b) a frozen preregistration exists covering input weighting, shots, the unit of inference (calibration window or job, not shots), and the equal-shot rule; (c) target access and cost are verified at run time; (d) the owner gives explicit approval. + +### Card B: OSIRIS-ECHO, does echo-based placement predict held-out performance? + +- **Hypothesis:** placements ranked by the return probability of a forward-then-inverse echo predict the fidelity of *unseen* circuits better than calibration-ranked, topology-only or random placements, under the same selection budget. +- **Reference:** held-out circuits whose ideal outputs are exactly computable, such as BT2T inversion, Clifford circuits and mirror circuits. +- **Controls:** + - a no-workload echo (identity); + - a known perturbation, such as a deliberate over-rotation, which must lower the return; + - a compiled-artifact inspection showing the workload was not cancelled. A barrier alone is not enough evidence. +- **Primary metric:** Spearman rank correlation between the echo score and held-out fidelity, minus the same correlation for the best non-echo comparator. Uncertainty comes from a bootstrap over calibration windows, which are the unit of inference. +- **Minimum effect of interest:** not yet set, so this starts as an **exploratory pilot** with a separate confirmatory dataset. +- **Falsifier:** echo ranking is no better than calibration ranking on held-out windows. +- **First stop/go:** an offline noisy simulation with a known placement-dependent noise model must recover the right ranking. If it cannot, STOP before hardware. +- **Mechanism:** none is inferred from return curves. + +### Card C: OSIRIS-QEC, when does repeated correction improve logical reliability? + +- **Audit first.** dnalang-core `wen_plaquette_pass.py` is a TKET pass with a provenance capsule. Inspected evidence covers compilation and tests only; no syndrome or logical-outcome dataset for Wen-plaquette or qLDPC was found in this pass. XTOP-005's [[4,2,2]] encoding did not beat bare qubits on hardware (SCI-XTOP-4). +- **Hypothesis:** for the smallest code with an auditable decoder (a distance-3 repetition code; a d=3 surface code if the target supports it), logical failure per round under decoded correction falls below both the unencoded and the encoded-without-correction arms, at matched task duration. +- **Arms:** + 1. unencoded; + 2. encoded, no correction; + 3. postselected detection, with the acceptance rate reported; + 4. decoded correction, comparing offline decoding or Pauli-frame tracking against physical feed-forward, labelled separately. +- **Reference:** stim and pymatching (or an equivalent auditable decoder) under stated circuit-level noise: relaxation, dephasing, coherent over-rotation, readout and reset, leakage where modelled, and correlated noise. Any mechanism omitted is documented. +- **Primary metric:** logical error per round, from a fit of failure against rounds 1 to N. Unconditional outcomes are reported separately from postselected ones. +- **Falsifier:** decoded correction does not beat arm 2 at any tested round count. +- **First stop/go:** the simulation must show the crossing at the target's published error rates, verified at run time. If not, STOP. +- **Scope limit:** a single code distance answers the question for that size only. Scaling with distance remains open, and a single-size result is not evidence of scalable fault tolerance. + +## 4. Go/no-go + +**GO:** BT2T-001 advances to **offline compiler validation only** (G1 to G2). + +**NO-GO (BLOCKED):** any hardware, emulator, Nexus upload, remote compile or costing for BT2T. Unblocking needs: +- an independent G1 review (check 2); +- a frozen preregistration; +- explicit owner approval naming the provider, target, shot budget and cost ceiling. From e2e7b7257f4bcba7e55985422cb8a1034d2695c3 Mon Sep 17 00:00:00 2001 From: Devin Phillip Davis <354534380+quantum-osiris@users.noreply.github.com> Date: Sun, 22 Nov 2026 02:06:42 -0500 Subject: [PATCH 3/3] docs(phase1): record loss of IBM account access for the XTOP-005 timing check Co-Authored-By: Claude Opus 5.5 --- phase1/claim_evidence_map.jsonl | 2 +- phase1/source_inventory.json | 2 +- phase1/verification_queue.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/phase1/claim_evidence_map.jsonl b/phase1/claim_evidence_map.jsonl index 1e8c6080..fa17d325 100644 --- a/phase1/claim_evidence_map.jsonl +++ b/phase1/claim_evidence_map.jsonl @@ -19,7 +19,7 @@ {"claim_id": "SCI-ADV0-1", "proposition": "PR #73 merged and main CI passed at the merge", "origin": "E-47", "evidence_basis": "measured (run conclusion)", "execution_class": "no execution", "assessment": "SUPPORTED", "scope": "merge f0adb8c5; main push run success", "links": [{"artifact": "github PR #73", "relationship": "supports"}], "next_check": "none", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} {"claim_id": "SCI-ADV0-2", "proposition": "in all 30 scanned cells at least one classical attack recovered the hidden string", "origin": "ADV0_REPORT.md", "evidence_basis": "independently derived from raw rows", "execution_class": "ideal simulation (classical)", "assessment": "SUPPORTED", "scope": "recomputed from scan.jsonl: 30/30, matches stored flag; attacks themselves not rerun in this pass", "links": [{"artifact": "docs/adv0/scan.jsonl", "relationship": "supports"}], "next_check": "rerun n=56 d=16 MPS chi=256 from the pinned commit", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} {"claim_id": "SCI-ADV0-3", "proposition": "the predicted hardware peak at n=56 d=16 is 0.041", "origin": "ADV0_REPORT.md", "evidence_basis": "declared (model)", "execution_class": "noisy simulation / cost model", "assessment": "SUPPORTED as a model output", "scope": "product-of-(1-err) model from FakeMarrakesh; checked earlier against full noisy sim (1-7% optimistic); not a hardware measurement", "links": [{"artifact": "docs/adv0/scan.jsonl", "relationship": "supports"}, {"artifact": "docs/adv0/noisy_check.jsonl", "relationship": "supports"}], "next_check": "none before any hardware proposal", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} -{"claim_id": "SCI-XTOP-1", "proposition": "the XTOP-005 preregistration was public before the IBM job was created", "origin": "E-48", "evidence_basis": "independently derived", "execution_class": "n/a", "assessment": "INCONCLUSIVE", "scope": "Zenodo created 18:53:24.06Z (server clock) vs local submitted_utc 18:53:43.25Z (client clock): 19 s margin, client clock offset unknown; IBM creation_date not retrieved. Circuit lock 18:37:20Z precedes both (local clock)", "links": [{"artifact": "zenodo/24425416", "relationship": "supports"}, {"artifact": "docs/xtop005/qpu/job_receipt.json", "relationship": "supports"}, {"artifact": "lock.json", "relationship": "supports"}], "next_check": "retrieve IBM job creation_date (provider clock) and compare", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} +{"claim_id": "SCI-XTOP-1", "proposition": "the XTOP-005 preregistration was public before the IBM job was created", "origin": "E-48", "evidence_basis": "independently derived", "execution_class": "n/a", "assessment": "INCONCLUSIVE", "scope": "Zenodo created 18:53:24.06Z (server clock) vs local submitted_utc 18:53:43.25Z (client clock): 19 s margin, client clock offset unknown; IBM creation_date not retrieved. Circuit lock 18:37:20Z precedes both (local clock)", "links": [{"artifact": "zenodo/24425416", "relationship": "supports"}, {"artifact": "docs/xtop005/qpu/job_receipt.json", "relationship": "supports"}, {"artifact": "lock.json", "relationship": "supports"}], "next_check": "BLOCKED: owner no longer has access to the IBM account (reported 2026-11-22). Only route: provider-side metadata via IBM support. Until then keep INCONCLUSIVE and do not state preregistration-before-job ordering.", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} {"claim_id": "SCI-XTOP-2", "proposition": "Zenodo metadata publication_date for the preregistration is accurate", "origin": "Zenodo 24425416", "evidence_basis": "directly inspected", "execution_class": "n/a", "assessment": "REFUTED", "scope": "publication_date '2026-11-20' precedes the record's creation (2026-11-21T18:53Z)", "links": [{"artifact": "zenodo/24425416", "relationship": "contradicts"}], "next_check": "owner: correct the metadata field in a new version note; never backdate", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} {"claim_id": "SCI-XTOP-3", "proposition": "dynamical decoupling beat bare idling (H2, H3) at depths 1 and 3", "origin": "XTOP-005 paper", "evidence_basis": "directly inspected", "execution_class": "physical hardware (ibm_marrakesh, one job)", "assessment": "SUPPORTED", "scope": "results.json tests: Holm p=0.002 each; unit of inference is one job/one session; shots are not independent replicates", "links": [{"artifact": "docs/xtop005/qpu/results.json", "relationship": "supports"}], "next_check": "replication in an independent calibration window", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} {"claim_id": "SCI-XTOP-4", "proposition": "[[4,2,2]] encoding helped (H1, H4)", "origin": "XTOP-005 prereg hypotheses", "evidence_basis": "directly inspected", "execution_class": "physical hardware", "assessment": "REFUTED as tested (not supported)", "scope": "H1 not supported at either depth; H4 CI below zero at depth 1", "links": [{"artifact": "docs/xtop005/qpu/results.json", "relationship": "contradicts"}], "next_check": "H2-1 design run (Nexus), separately registered", "reviewer": "self-review (Claude)", "reviewed": "2026-11-22"} diff --git a/phase1/source_inventory.json b/phase1/source_inventory.json index bdf942c6..0cf34685 100644 --- a/phase1/source_inventory.json +++ b/phase1/source_inventory.json @@ -147,7 +147,7 @@ "inaccessible": [ { "source": "IBM Quantum job dc0uhdts2omc7389tmt0 server metadata (creation_date, timestamps)", - "reason": "no default saved account; use of the owner's key file was blocked by the session permission system", + "reason": "no default saved account; use of the owner's key file was blocked by the session permission system; update 2026-11-22: the owner reports they no longer have access to that IBM account, so this gap is expected to persist", "prevents": "a provider-clock comparison of job creation with the Zenodo preregistration time" }, { diff --git a/phase1/verification_queue.md b/phase1/verification_queue.md index 53544396..102af2a9 100644 --- a/phase1/verification_queue.md +++ b/phase1/verification_queue.md @@ -12,7 +12,7 @@ The queue is ordered by decision value per unit of cost. Checks that can invalid |---|---|---|---|---|---|---|---| | 1 | BT2T inversion against an exact oracle: all 32 inputs, phases, unused codewords | BT2T-2 | agent | none | `tests/test_bt2t_inversion.py`, `manifest.json` | **Done this session: pass.** Advance to offline compiler validation (G1 to G2). | Revise the circuit; hardware stays blocked. | | 2 | Independent rederivation of encoding `bt2t-enc-1` and rerun of the tests | BT2T-2 | second reviewer (human or separate agent) | the reviewer has the repo | review note | G1 is signed off by someone other than the author. | Freeze nothing; fix the defect first. | -| 3 | Retrieve IBM `creation_date` for job `dc0uhdts2omc7389tmt0` | SCI-XTOP-1 | owner, who must run it or authorize use of the key | IBM account access | job metadata JSON (CRN redacted) | Timing claim becomes SUPPORTED or REFUTED on the provider clock. | Claim stays INCONCLUSIVE; drop it from the paper. | +| 3 | Retrieve IBM `creation_date` for job `dc0uhdts2omc7389tmt0` | SCI-XTOP-1 | owner | **BLOCKED: owner reported on 2026-11-22 that they no longer have access to the IBM account that ran the job** | job metadata JSON (CRN redacted), only if IBM support or a former account holder can supply it | Timing claim becomes SUPPORTED or REFUTED on the provider clock. | Default while access is lost: the claim stays INCONCLUSIVE, and the paper should not say the preregistration preceded the job. | | 4 | Decide the CRSM_ARCH verdict wording (R-3) | SCI-ARCH1-5 | owner | none | register PR | Register matches both decision rules. | — | | 5 | Correct Zenodo `publication_date` in a new version note | SCI-XTOP-2 | owner | Zenodo access | new version record | Metadata is accurate; nothing is backdated. | — | | 6 | Relabel the A-field harness outputs and add injection-recovery | PHY-9 | agent, if approved | none (local) | harness patch and test | The harness can show detector sensitivity. | — |