Skip to content
Draft
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
40 changes: 40 additions & 0 deletions .github/workflows/ahr-qpu-03.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: AHR-QPU-03 offline calibration and Qiskit checks

on:
pull_request:
paths:
- 'research/arithmetic_holonomy_rotor/ibm_qpu_03/**'
- 'research/arithmetic_holonomy_rotor/ibm_qpu_01/**'
- '.github/workflows/ahr-qpu-03.yml'
push:
branches: [main]
paths:
- 'research/arithmetic_holonomy_rotor/ibm_qpu_03/**'
- '.github/workflows/ahr-qpu-03.yml'

permissions:
contents: read

jobs:
offline-qiskit:
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
working-directory: research/arithmetic_holonomy_rotor/ibm_qpu_03
env:
OPENBLAS_NUM_THREADS: '1'
OMP_NUM_THREADS: '1'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip
cache-dependency-path: research/arithmetic_holonomy_rotor/ibm_qpu_03/requirements.txt
- name: Install pinned experiment dependencies
run: python -m pip install -r requirements.txt
- name: Check mathematics, archived counts, and native compilation
run: python -m pytest -q tests
- name: Exercise simulator and regenerate a smoke-test manifest
run: python run_study.py --quick --snapshot receipts/calibration.json --out /tmp/ahr-qpu-03-ci
5 changes: 5 additions & 0 deletions research/arithmetic_holonomy_rotor/ibm_qpu_03/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
__pycache__/
.pytest_cache/
reproduced/
refreshed/
live.json
18 changes: 18 additions & 0 deletions research/arithmetic_holonomy_rotor/ibm_qpu_03/HARDWARE_GATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# IBM resource gate

**The authorized Q3 pilot completed. Further QPU execution is on HOLD.** IBM job `dc25sdmq4uuc73a4pbl0` ran the 48 approved circuits at 4,096 shots each on `ibm_kingston`, qubits 67, 68, and 69. The job used 54 free seconds under its 106-second cap, leaving 461 Open Plan seconds when checked. [Hardware results](Q3_HARDWARE_RESULTS.md) · [Job receipt](receipts/hardware/hardware_job.json) · [Post-run allocation](receipts/hardware/post_run_allocation.json)

The original execution preflights held the job when IBM advanced the calibration timestamp. The user then explicitly approved a timestamp-only change for this byte-identical QPY under the same physical model and budget. Immediately before submission, the live target, compact noise, layout, and budget checks matched that authorization. The execution receipt records the selected calibration at submission. [Approved manifest](receipts/execution_refresh/q3_candidate_manifest.json) · [Final preflight](receipts/hardware/preflight.json) · [Underlying simulation](LIVE_CALIBRATION_RESULTS.md)

The manifest binds the exact case IDs, QPY digest, calibration digest, transpiler seed, ordered physical layout, per-case readout map, shot allocation, and estimated return probabilities. The cap adds the registered 20-second fixed overhead, a 1.5× margin, and a 60-second floor to the shot-weighted native critical path with IBM's repetition delay. These are engineering estimates. IBM Open Plan does not expose the server-side dry-run feature used for provider estimates on some other plans. [IBM workload usage](https://quantum.cloud.ibm.com/docs/en/ibm-quantum-compute/estimate-job-run-time) · [IBM dry-run eligibility](https://quantum.cloud.ibm.com/docs/en/ibm-quantum-compute/dry-run-jobs)

The historical FakeFez baseline and the earlier 515-second post-Q2 balance remain separate receipts. The read-only inventory verifies a uniquely selected free Open Plan instance. It ranks connected triples by native edge errors and durations, readout error, and prior calibration changes when available. The scope excludes paid plans, job submission, and credential logging.

```sh
python backend_snapshot.py --credential-file /path/to/approved-ibm-key.json --output live.json
python backend_snapshot.py --credential-file /path/to/approved-ibm-key.json --previous live.json --include-historical-drift --output recheck.json
python run_study.py --snapshot live.json --out reproduced/live
python refresh_proposal.py --prior receipts/live --snapshot recheck.json --output reproduced/refresh
```

Any later execution requires separate approval, a current balance and calibration check against its manifest, and capacity at least equal to its cap. The timestamp-only approval applied to the completed job. The launcher requires an explicit command and manifest digest. [Execution source](hardware_execution.py)
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# AHR-QPU-03 live-calibration simulation

**Simulation design GO.** The simulation passed the preregistered native compilation, precision, coverage, and convergence gates on the 22:34:13 `ibm_kingston` snapshot. The proposed 48 circuits at 4,096 shots each had an estimated 70.27-second QPU usage and a 106-second cap. Later preflights found new calibration timestamps with equivalent model inputs on the selected qubits. The authorized hardware pilot is reported separately. [Q3 hardware results](Q3_HARDWARE_RESULTS.md) · [Original manifest](receipts/live/q3_candidate_manifest.json) · [Original allocation receipt](receipts/live/calibration_recheck.json)

## Target and compilation

- IBM exposed operational connected triples on `ibm_fez`, `ibm_kingston`, and `ibm_marrakesh`. After accounting for native gate errors, edge duration, readout error, and the most recent prior coupler calibration, Kingston qubits 67, 68, and 69 ranked first. The best Fez extension of the Q2 pair was 8, 9, and 10. [IBM calibration snapshot](receipts/live/calibration.json) · [Drift recheck](receipts/live/calibration_recheck.json)
- Kingston's current calibration was timestamped 22:34:13 Singapore time and its prior calibration was 22:03:26. The reported CZ error estimates were unchanged at 0.0991% and 0.1355%. Both CZ durations were 68 ns. Readout errors were 0.525%, 0.476%, and 0.757% on physical qubits 67, 68, and 69, respectively. The repeated read returned the same compact target and noise channels.
- Exact synthesis with SABRE used at most 29 CZ gates, depth 127, and a 5.72 µs critical path in both the 72-setting bakeoff and the proposed workload. Its maximum noiseless return error was below 10⁻¹⁴ in the bakeoff. Mean noisy binary fidelity was 0.99929 in Aer. Each product-formula method exceeded the native gate-count limit. [Compilation comparison](receipts/live/compilation.json)
- All 48 circuits use the same three physical qubits. The classical-bit map is `[68, 69, 67]` for 47 circuits. The zero-field, zero-offset reference uses `[67, 68, 69]`. Reconstruction and the asymmetric Aer readout model use the recorded per-case map. [Case records](receipts/live/q3_candidate_manifest.json)

## Simulated precision

The training sweep selected 1.225 for four-phase Fourier and Richardson, 1.200 for eight-phase Fourier, and 2.000 for exact-response likelihood. At 4,096 shots per setting, the 1,000 held-out likelihood trials gave a **2.08°** worst-face RMSE, **93.9%** lowest marginal face coverage, and **94.9%** joint chord coverage at nominal 95%. The median marginal half-widths ranged from 1.97° to 4.08°. All fits converged under the registered score tolerance.

| Estimator at 98,304 inference shots | Worst face RMSE | Lowest face coverage | Joint chord coverage |
|---|---:|---:|---:|
| Four-phase Fourier | 25.93° | 88.0% | 90.6% |
| Eight-phase Fourier | 20.65° | 90.0% | 92.0% |
| Richardson | 125.84° | 54.5% | 15.3% |
| Exact-response likelihood, equal shots | 2.08° | 93.9% | 94.9% |
| Exact-response likelihood, Fisher allocation | 1.72° | 93.9% | 95.1% |

The equal-shot likelihood worst-face RMSE was 3.01° at 2,048 shots per setting and 1.52° at 8,192. Doubling the shared perturbation scales gave 2.03° worst-face RMSE and 92.0% joint chord coverage in the separate seeded stress test. These estimates are conditional on the calibrated Aer model and the registered local chart. [Training grid](receipts/live/time_grid.json) · [Monte Carlo results](receipts/live/statistics.json) · [Controls](receipts/live/controls.json)

The proposed workload uses equal shots and budgets another 98,304 shots for zero field, orientation reversal, a tree, a gauge copy, matched detuning, and balanced excitation. The modeled shot schedule uses a 250 µs repetition delay. The estimated shot-weighted time is 50.27 seconds before the overhead and cap margin. IBM's actual Q3 usage appears in the hardware report.

The exact proposal's QPY SHA-256 is `ae9ee11b45b73c6f2ad0bac94d2796661b62f4301c342569e762944d041ea7c8`. The later pilot used these same circuit bytes. [Compiled circuits](receipts/live/q3_candidate_isa.qpy) · [Completed execution and approval scope](HARDWARE_GATE.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# AHR-QPU-03 IBM hardware results

IBM job `dc25sdmq4uuc73a4pbl0` completed on `ibm_kingston`, physical qubits 67, 68, and 69, on 23 November 2026 Singapore time. IBM returned every one of the 48 approved circuits at 4,096 shots per circuit, for 196,608 shots. The provider reported 54 free QPU seconds of usage under the 106-second cap. The verified allocation went from 515 to 461 seconds. IBM's returned PUB metadata matched all 48 case IDs in order. [Job and count receipts](receipts/hardware/) · [Approved circuit manifest](receipts/execution_refresh/q3_candidate_manifest.json)

The authorized timestamp-only refresh retained the byte-identical approved QPY, physical layout, readout maps, and calibrated model at the submission check. The approved manifest named the 22:46:22 calibration, and the matched live model at submission was timestamped 23:20:48. The separate calibration timestamps IBM returned for the job's start and completion are discussed below. [Preflight receipt](receipts/hardware/preflight.json) · [Timestamp refresh comparison](receipts/hardware/timestamp_refresh.json)

## Measured phase recovery

The frozen exact-response likelihood converged at $t=2.0$. The six estimated faces have the correct programmed signs. The maximum absolute face error was 6.62° and the programmed five-chord field fell outside the model's local joint 95% region. The joint score was 29.75 versus the 95% reference value 11.07 for five dimensions.

| Face | Programmed angle | QPU fit | Local 95% half-width |
|---|---:|---:|---:|
| xy, z=0 | −18.33° | −21.09° | 2.64° |
| xy, z=1 | −84.80° | −86.61° | 1.89° |
| xz, y=0 | +20.63° | +24.08° | 2.91° |
| xz, y=1 | −12.03° | −14.51° | 3.46° |
| yz, x=0 | −16.04° | −9.42° | 4.39° |
| yz, x=1 | +17.76° | +17.49° | 3.33° |

In AHR-09 order, the fitted chord angles were 21.09°, −24.08°, 9.42°, −17.49°, and 35.60°. The fitted Bianchi residual is zero by construction of the five-chord model. Independent hardware closure remains unmeasured at this operating point. The local intervals use the frozen model's Fisher covariance, including its shared nuisance terms. [Hardware replay and uncertainty](receipts/hardware/hardware_analysis.json) · [Frozen simulator statistics](receipts/live/statistics.json)

## Controls and return probabilities

The tree control gave $Z_4=0.00330-0.00598i$. Its simultaneous binomial counting rectangle was [−0.01282, 0.01940] for the real part and [−0.02171, 0.00977] for the imaginary part, containing the origin. The four gauge-copy minus target return differences were +0.01685, −0.01587, −0.00244, and +0.01172. These are raw paired-setting contrasts. The controls and per-case probability intervals are in the replay receipt.

For the 24 target settings, the hardware return RMSE was 0.01707 against the exact matrix, 0.01707 against noiseless compilation, and 0.01298 against calibrated Aer. The largest probability discrepancy with calibrated Aer was 0.02967. These discrepancies motivate caution in interpreting the simulated coverage as hardware coverage. [Case-level observations](receipts/hardware/hardware_analysis.json)

## Execution calibration

IBM identified the job-start calibration as 23:20:48, matching the submission snapshot. Its historical lookup at the reported completion time returned 23:28:44. All 109 selected gate and qubit property values agreed across those two snapshots. The result did not expose execution spans, so this checks the job endpoints. [Execution metadata](receipts/hardware/execution_evidence.json) · [Property comparison](receipts/hardware/boundary_calibration.json)

## Reproduce the hardware analysis

```sh
python hardware_analysis.py --manifest receipts/execution_refresh/q3_candidate_manifest.json --statistics receipts/live/statistics.json --hardware receipts/hardware --output reproduced/hardware_analysis.json
```

This is one finite-dimensional hardware pilot. It demonstrates signed phase recovery at the point-estimate level and exposes a joint precision shortfall on the current calibration model.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Three-prime arithmetic cube

Let the vertex index be $v=x+2y+4z$. The site is $2^x3^y5^z$ with $x,y,z\in\{0,1\}$. Qiskit orders statevectors as $|zyx\rangle$ with $x=q_0$. The site energy is $E_v=x\log2+y\log3+z\log5$.

For each sorted edge $e=(u,v)$ in the cube set $H_{uv}=J_e e^{iA_e}$ and $H_{vu}=\overline{H_{uv}}$. Use $J_e=1$ for the standard protocol. Broken-cycle controls may remove edges. A vertex rephasing $D=\operatorname{diag}(e^{ig_u})$ sends $A\mapsto A-d_0g$ and $H\mapsto DHD^\dagger$, leaving every site return invariant. The merged QPU-01 code stores the forward phase in $H_{vu}$, so a sign conversion is required to compare matrices.

## Integer cochains

Orient edges from lower to higher vertex. Orient a face in axes $i<j$ as $u\to u\oplus 2^i\to u\oplus 2^i\oplus 2^j\to u\oplus 2^j\to u$. Face order is $xy_{z=0},xy_{z=1},xz_{y=0},xz_{y=1},yz_{x=0},yz_{x=1}$. With coboundaries $d_0,d_1,d_2$, the entries of $d_1$ are signed edge incidences and $d_2=b^T$ for $b=(-1,1,1,-1,-1,1)^T$.

Products $d_1d_0$ and $d_2d_1$ vanish over the integers. A rooted tree incidence minor has determinant ±1 and the constant vertex field is a null vector, so $\operatorname{rank}d_0=7$. The first five faces and the five chord columns form a square identity after multiplication by the implemented integer inverse. This unit minor, together with the Bianchi relation, proves rank 5 and fixes all five nonzero Smith factors to 1. The nonzero row $d_2$ has rank 1.

The tree uses $(0,1),(0,2),(0,4),(1,3),(1,5),(2,6),(3,7)$. In its gauge the remaining chords are $(2,3),(4,5),(4,6),(5,7),(6,7)$. Set the seven tree phases to zero and invert the first five oriented faces with the integer inverse stored in the provenance receipt. All angle comparisons are modulo $2\pi$.

## Local response and aliasing

For a marked face start at a vertex on that face away from the programmable edge. This vertex belongs to only one of the two squares incident on that edge. Add the offset $\delta$ with the sign of the marked edge in the oriented face. Take $P_x=|\langle x|e^{-itH}|x\rangle|^2$ and $Z_f=\frac12\sum_{j=0}^3P_x(\delta_j)e^{-i\delta_j}$ with $\delta_j=j\pi/2$.

The first marked-edge term in the site return comes from the two oriented four-step paths in $\langle x|H^4|x\rangle$. They contribute $2W_f\cos(F_f+\delta)$, where $W_f=\prod_{e\in\partial f}J_e$. The amplitude coefficient is $t^4/4!$ and taking the squared modulus doubles it, giving $W_ft^4\cos(F_f+\delta)/6$ in the probability. Since the probability is even in time, the next correction starts at order $t^6$. The stated Fourier normalization yields $Z_f=W_ft^4e^{iF_f}/6+O(t^6)$. A wrong start on the marked edge sees both incident face paths at leading order.

For a real periodic probability scan, the discrete four-phase coefficient aliases the negative-frequency third harmonic into the positive first harmonic. Eight phases remove this particular alias. Longer walks can still move the true first harmonic away from the target curvature. Richardson combines the two calibrated complex ratios $2R(t/\sqrt2)-R(t)$ under the local even expansion $R(t)=e^{iF}+O(t^2)$. Its small-time bias benefit can be offset by shot noise at the smaller time.

## Projection and likelihood

Local wrapped projection uses $r=\operatorname{wrap}(b^TF)\$ and $F'=\operatorname{wrap}(F-\Sigma b r/(b^T\Sigma b))$. Propagate $\Sigma'=\Sigma-\Sigma b b^T\Sigma/(b^T\Sigma b)$ and apply the integer chord inverse to the appropriate five entries. When the latent Bianchi residual can cross ±π, the nearest wrapped hypothesis can select a different branch. A zero projected residual follows algebraically. The raw residual and the controls provide compatibility diagnostics.

The likelihood fits five chord phases directly and therefore lives in the Bianchi-compatible subspace. It models each return as binomial about the exact eight-state response after the trained Aer transfer and shared nuisance perturbations. The spectral divided difference gives analytic derivatives through near-degenerate eigenvalues. The reported Fisher matrix includes the shared nuisance parameters and their Gaussian prior information. Numerical fit coverage is conditional on the prepared local chart and the held-out calibration stress model.
Loading
Loading