Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ahr-q2-hardware-replay.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: AHR Q2 hardware receipt replay
on:
pull_request:
paths:
- 'research/arithmetic_holonomy_rotor/ibm_qpu_01/Q2_HARDWARE_RESULTS.md'
- 'research/arithmetic_holonomy_rotor/ibm_qpu_01/HARDWARE_Q2_ARCHIVE.md'
- 'research/arithmetic_holonomy_rotor/ibm_qpu_01/hardware_q2_replay.py'
- 'research/arithmetic_holonomy_rotor/ibm_qpu_01/receipts/hardware_q2/**'
- '.github/workflows/ahr-q2-hardware-replay.yml'
push:
branches: [main]
paths:
- 'research/arithmetic_holonomy_rotor/ibm_qpu_01/Q2_HARDWARE_RESULTS.md'
- 'research/arithmetic_holonomy_rotor/ibm_qpu_01/hardware_q2_replay.py'
- 'research/arithmetic_holonomy_rotor/ibm_qpu_01/receipts/hardware_q2/**'
- '.github/workflows/ahr-q2-hardware-replay.yml'
permissions:
contents: read
jobs:
receipt-audit:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Reproduce archived QPU count and checksum audit
run: python research/arithmetic_holonomy_rotor/ibm_qpu_01/hardware_q2_replay.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# AHR-QPU-01 hardware Q2 archive (23 November 2026)

This is the **actual QPU observation** from IBM job `dc1vksqnj2vs73dfu0n0` on `ibm_fez` physical qubits 9 and 10. It is distinct from AHR-QPU-01's previously merged simulator and the later AHR-QPU-02 historical fake-backend study.

The approved 36-circuit Q2 pilot returned 2,048 shots each (73,728 total). Forward and reversed signed phase estimates were +38.90° and −42.86° for programmed values ±41.83°. The tree control's joint confidence interval includes zero. The prespecified primary complex-harmonic acceptance check passed at t=1.6. IBM charged 21 free QPU seconds, and the account reported 515 remaining at the conclusion.

Original evidence source: [MathCan PR #254](https://github.com/patrickdugan/MathCan/pull/254), commit [981b07b6d555b268ce0f28add39176bf3f39beb4](https://github.com/patrickdugan/MathCan/commit/981b07b6d555b268ce0f28add39176bf3f39beb4).

The old PR predates the merged simulator PR #255 and conflicts with newer files on main. This archive transfers the original evidence as byte-identical Git blobs and preserves the current simulator code.

## Local audit

```sh
python research/arithmetic_holonomy_rotor/ibm_qpu_01/hardware_q2_replay.py
```

This stdlib replay verifies the complete shot count and 36 case identifiers, both signed phases, the primary harmonic, tree magnitude, IBM allocation arithmetic, the original calibrated QPY and text-normalized calibration SHA256, execution ordering, and the archived acceptance indicators. The replay requires **no IBM credentials** and **never submits jobs**.

The full prespecified uncertainty procedure, its Qiskit version dependencies, and the original hardware capture remain reviewable at the pinned source commit. CI validates the archived data consistency. The 95% intervals reproduced in Q2_HARDWARE_RESULTS.md are sourced from that original analysis, rather than independently reestimated in this compact replay.

The mathematical interpretation is finite-dimensional U(1) magnetic-flux interferometry. It establishes a real-hardware response and signed orientation under tested controls. Quantum computational advantage, the Riemann hypothesis, and consciousness remain separate questions. Q3 has received **simulation only**; any Q3 hardware test requires a separate protocol and authorization.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# AHR-QPU-01 · Approved Q2 results

IBM job **dc1vksqnj2vs73dfu0n0** completed on **ibm_fez**, running 36 circuits with 2,048 shots each for **73,728 returned shots**. The physical mapping was $x\mapsto9$ and $y\mapsto10$.

The approval covered this Q2 workload on Open Plan. The available balance was 536 s before submission against a 98 s cap. IBM reported **21 s** of QPU use, with **515 s** remaining after collection.

## Primary result

The predeclared complex-harmonic criterion at $t=1.6$ **passed**. The measured $Z_4$ was -0.15430-0.19873i, compared with -0.15494-0.20311i from the exact model and -0.15276-0.20014i from calibrated Aer. The measured zero-outcome counts were 175, 948, 807, 134 in the fixed phase order $0,\pi/2,\pi,3\pi/2$.

| Component | Exact | Measured | Joint 95% counting interval | Interval with systematic allowance |
| --- | ---: | ---: | --- | --- |
| Real | -0.15494 | -0.15430 | [-0.17538, -0.13252] | [-0.18056, -0.12734] |
| Imag | -0.20311 | -0.19873 | [-0.21910, -0.17747] | [-0.22508, -0.17149] |

The directed phase estimates use the independently measured zero-target reference at the same time. The positive and reversed fixtures at the primary time recover their programmed signs. The intervals are conservative 95% circular bounds for each estimate.

| Signal arm | Programmed relative phase | Recovered relative phase | 95% interval |
| --- | ---: | ---: | --- |
| Forward at 0.8 | +41.83° | +41.38° | Unresolved at 95% |
| Forward at 1.2 | +41.83° | +63.25° | [-2.65°, +129.14°] |
| Forward at 1.6 | +41.83° | +38.90° | [+23.43°, +54.38°] |
| Reversed at 1.6 | −41.83° | -42.86° | [-58.46°, -27.26°] |

The tree control gave $Z_4=0.00317-0.00806i$. Its joint counting rectangle contains the origin. The matched-detuning control gave $Z_4=-0.16528-0.21558i$, compared with the exact prediction -0.17193-0.22543i. That control reports the harmonic directly because its diagonal differs from the phase-reference arm.

## Calibration and evidence

Fresh calibration was recorded at 2026-11-23 16:03:41 SGT. IBM reported that calibration at job start and at the last execution chunk. The runtime returned matching case identifiers for all 36 circuits in 1 chunk. The refreshed calibration selected exact synthesis under the original gates. Q3 remains simulation-only.

The portable calibration hash normalizes text line endings. The hardware manifest preserves the raw calibration hash verified before submission and the unchanged binary QPY hash.

- [Raw IBM counts](receipts/hardware_q2/hardware_counts.json) · [Execution evidence](receipts/hardware_q2/execution_evidence.json)
- [Phase estimates and intervals](receipts/hardware_q2/hardware_analysis.json) · [Matching Q2 simulations](receipts/hardware_q2/q2_protocol.json)
- [Fresh calibration](receipts/hardware_q2/calibration.json) · [Manifest](receipts/hardware_q2/manifest.json) · [ISA QPY](receipts/hardware_q2/q2_isa.qpy)
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#!/usr/bin/env python3
"""Offline-only reconstruction of IBM Q2 raw-count results; Python stdlib only."""
from __future__ import annotations
import cmath
import hashlib
import json
import math
from pathlib import Path

ROOT = Path(__file__).resolve().parent / "receipts" / "hardware_q2"
EXPECTED_JOB = "dc1vksqnj2vs73dfu0n0"

def read(name: str):
return json.loads((ROOT / name).read_text(encoding="utf-8"))

def harmonic(counts, arm: str, t: str = "1.6", shots: int = 2048) -> complex:
p = [counts[f"{arm}_t{t}_q{q}"].get("00", 0) / shots for q in range(4)]
return complex((p[0] - p[2]) / 2, (p[3] - p[1]) / 2)

def wrap_radians(x: float) -> float:
return (x + math.pi) % (2 * math.pi) - math.pi

def validate() -> dict:
result = read("hardware_counts.json")
manifest = read("manifest.json")
usage = read("post_run_allocation.json")
execution = read("execution_evidence.json")
analysis = read("hardware_analysis.json")
shots = result["shots_per_circuit"]
counts = result["counts"]

assert result["job_id"] == EXPECTED_JOB == execution["job_id"] == analysis["job_id"]
assert result["status"] == "DONE"
assert result["backend"] == manifest["backend"] == "ibm_fez"
assert manifest["physical_pair_xy"] == [9, 10]
assert shots == 2048 and len(counts) == len(manifest["case_order"]) == 36
assert len(set(manifest["case_order"])) == 36 and set(manifest["case_order"]) == set(counts)
for values in counts.values():
assert set(values) <= {"00", "01", "10", "11"}
assert sum(values.values()) == shots
assert all(isinstance(v, int) and v >= 0 for v in values.values())

total = len(counts) * shots
assert total == 73728
assert result["qpu_seconds"] == 21
assert result["free_balance_checked"]["remaining_qpu_seconds"] == 536
assert usage["remaining_qpu_seconds"] == 515
assert abs(536 - 21 - 515) < 1e-9
assert manifest["qpy_sha256"] == hashlib.sha256((ROOT / "q2_isa.qpy").read_bytes()).hexdigest()
cal = (ROOT / "calibration.json").read_text(encoding="utf-8")
assert manifest["calibration_sha256"] == hashlib.sha256(cal.encode("utf-8")).hexdigest()
assert execution["pub_metadata_matches_manifest"]
assert execution["calibration_at_job_start"] == execution["calibration_at_last_chunk"]
assert len(execution["chunks"]) == 1 and sorted(execution["chunks"][0]["pubs"]) == list(range(36))

signal = harmonic(counts, "signal")
reference = harmonic(counts, "reference")
reversed_signal = harmonic(counts, "reversed")
tree = harmonic(counts, "tree")
forward_deg = math.degrees(cmath.phase(signal / reference))
reverse_deg = math.degrees(cmath.phase(reversed_signal / reference))

assert abs(signal.real - (-0.154296875)) < 1e-12
assert abs(signal.imag - (-0.19873046875)) < 1e-12
assert abs(forward_deg - 38.903662164070035) < 1e-8
assert abs(reverse_deg - (-42.85997335229036)) < 1e-8
assert abs(tree) < 0.02
assert abs(wrap_radians(math.radians(forward_deg) - 0.73)) < 0.1
assert abs(wrap_radians(math.radians(reverse_deg) + 0.73)) < 0.1
assert analysis["tree_rectangle_contains_origin"]
assert analysis["primary_acceptance"]["passes"]

return {"job_id": EXPECTED_JOB, "backend": "ibm_fez", "physical_qubits": [9, 10],
"circuits": len(counts), "shots_per_circuit": shots, "total_shots": total,
"forward_deg": forward_deg, "reverse_deg": reverse_deg,
"signal_harmonic": [signal.real, signal.imag],
"tree_harmonic": [tree.real, tree.imag],
"free_qpu_seconds": 21, "remaining_seconds_as_reported": 515,
"status": "OFFLINE_REPLAY_PASS"}

if __name__ == "__main__":
print(json.dumps(validate(), indent=2))
Loading
Loading