Skip to content
Open
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
4 changes: 4 additions & 0 deletions research/arithmetic_holonomy_rotor/ibm_qpu_01/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__pycache__/
.pytest_cache/
.venv/
runs/
29 changes: 29 additions & 0 deletions research/arithmetic_holonomy_rotor/ibm_qpu_01/HARDWARE_GATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# AHR-QPU-01 · Hardware gate

**The approved Q2 pilot completed.** IBM job dc1vksqnj2vs73dfu0n0 executed 36 circuits at 2,048 shots per setting. It used 21 Open Plan seconds and left 515 seconds in the account. A further QPU job requires its own explicit authorization and a fresh resource check. Q3 remains simulation-only. [Q2 hardware results](Q2_HARDWARE_RESULTS.md)

## Original planning snapshot

The read-only IBM check on 23 November 2026 at 14:21 Singapore time returned **536 free QPU seconds**. It found an operational **ibm_fez** backend and an adjacent CZ pair with **$x\mapsto9$ and $y\mapsto10$**. The recorded backend calibration was from 13:57:23 Singapore time. The saved Qiskit account file was empty. Authentication succeeded through the SDK token-file path with an existing IBM Cloud credential. The receipts contain no account identifier or credential value.

| Plan | Settings | Shots per setting | Total shots | Gates, measurement and delay allowance | Free time reserved |
| --- | ---: | ---: | ---: | ---: | ---: |
| Initial Q2 | 36 | 2,048 | 73,728 | 37.14 s | **98 s** |
| Higher-shot Q2 | 36 | 8,192 | 294,912 | 148.56 s | **209 s** |

The resource model sums calibrated native instruction durations, adds 500 μs per shot for reset and delays, and adds a 60 s job-level reserve. It estimates usage rather than queue time. The Q2 circuit manifest, compact target and physical QPY share a checked order and calibration. The code uses Qiskit 2.6.2, Aer 0.18.4, and the client-side IBM Runtime 0.52.1 SamplerV2. [IBM work usage](https://quantum.cloud.ibm.com/docs/en/ibm-quantum-compute/estimate-job-run-time)

After explicit approval for a new run, refresh the calibration and rerun simulation if the live snapshot has changed. Submit only to an existing verified Open Plan instance. The submit command rechecks the free balance, calibration and file digests. It writes a unique job checkpoint before requesting execution and caps QPU time at the reserved amount. If a submission outcome is ambiguous, use the checkpoint tag through the collect command instead of resubmitting.

~~~shell
python experiment.py submit --out runs/current --shots 2048 --confirm-free-qpu --token-file PATH_TO_KEY
python experiment.py collect --out runs/current --token-file PATH_TO_KEY
~~~

The primary hardware decision compares both components of the measured $Z_4$ with the exact target using a simultaneous 95% counting rectangle expanded by the precomputed component-specific systematic allowances. Phase direction, the reference and the tree contrast are reported separately. A fresh calibration check must pass even if the original quota remains available.

## Q3 budget · simulation only

At 2,048 shots per setting the shared single-time schedule uses 23 measured circuits and 47,104 shots. The two-time Richardson schedule uses 46 measured circuits and 94,208 shots. With an assumed 520 μs per shot and a 60 s reserve, the nominal usage estimates are 84.5 s and 109.0 s. These are planning values without a Q3 device calibration.

At $t=0.4$, a 10° phase standard-deviation target needs about **1.73 million shots per face** even under the leading-order conditional Fisher model. Six such estimates budget about **5,461 s** under the timing assumption. The 2,048-shot simulations give around 88° phase RMSE at a single time and 102° for equal-shot Richardson extrapolation. Keep Q3 hardware deferred. The compatibility projection helps local stochastic phase errors after the angle branch can be resolved.
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)
59 changes: 59 additions & 0 deletions research/arithmetic_holonomy_rotor/ibm_qpu_01/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# AHR-QPU-01 · Signed arithmetic-square holonomy

This package implements a two-qubit IBM pilot to recover a phase relative to a calibrated reference. It records exact predictions, independently simulated compiled circuits, Aer noise forecasts, finite-shot intervals and a simulation-only extension to the three-prime cube. The approved 36-circuit IBM run has its own counts, fresh calibration and analysis receipts. [Simulation results](RESULTS.md) · [Q2 hardware results](Q2_HARDWARE_RESULTS.md) · [Hardware gate](HARDWARE_GATE.md)

## Square and four-phase readout

Qiskit uses $x=q_0$ and $y=q_1$. The string order $|yx\rangle$ gives sites $1,2,3,6$ for $00,01,10,11$. The diagonal is $x\log 2+y\log 3$, and the four hoppings have magnitude one. The forward matrix element from site 2 to site 6 is $e^{i\phi}$. This fixes the positive orientation as $1\to2\to6\to3\to1$.

Prepare $|00\rangle$, evolve under the square Hamiltonian and measure $P_{00}$. Take four return measurements with phase offsets $\delta_j=j\pi/2$ and compute

$$
Z_4=\tfrac12\sum_j P_{00}(t,\theta+\delta_j)e^{-i\delta_j}
=\tfrac12\big[(P_0-P_\pi)+i(P_{3\pi/2}-P_{\pi/2})\big].
$$

For the fixed cycle the return probability is even in the total phase, with cosine coefficients $a_k(t)$. Discrete orthogonality gives $Z_4=a_1e^{i\theta}+a_3e^{-3i\theta}+a_5e^{5i\theta}+\cdots$. The second harmonic cancels. A calibrated independent zero-phase arm removes the shared phase offset and the sign of the real first harmonic. The estimator uses $\arg(Z_{\rm signal}\overline{Z_{\rm reference}})$ and exposes the remaining alias bias through 8-, 16- and 64-phase simulations.

The fixed schedule uses $t=0.8,1.2,1.6$, with the primary complex harmonic at $t=1.6$. The programmed validation targets are $\theta=+0.73$ and $\theta=-0.73$ radians and the shared programmed offset is $0.19$ radians. The zero target gets its own four samples at each time. The phase estimator uses the reference counts to infer the relative angle. At the primary time, extra arms reverse the signed target, cut the top edge to form a tree, and substitute the generic diagonal $(0,\log 6,\log 3,\log 2)$, which preserves the energy multiset. Case order is fixed by a saved seed.

For an isolated cycle each proper edge mask puts the phase on a forest. Its offset-dependent Fourier sum vanishes. Summing all 16 masks gives exactly the same complex quadrature expectation as the intact square. On the intact Q3 cube overlapping faces can keep the probe edge in a loop after a different face edge is removed. The simulator tests this failure and checks the AHR-08 local starting-corner selection at fourth order.

## Synthesis and estimation

The compiler uses a compact target built from the calibrated adjacent physical pair. It compares a full exact unitary with second-order Suzuki–Trotter using 2, 4 and 8 steps. It chooses the shallowest suite among those with worst-case ideal probability error and primary complex harmonic error both at most 0.005. A product-formula circuit is decomposed before the independent statevector comparison. The exported QPY embeds the selected circuits onto the verified physical qubits with unchanged classical bit labels.

The readout calibration defines a joint assignment vector over the two compact bits. The Aer density-matrix run applies the calibrated gate channels, then uses the assignment vector to obtain the predicted return probability. One-at-a-time sensitivity cases halve or remove the readout error or mix the calibrated two-qubit error channel with identity. The statistical benchmark uses 2,500 binomial replicates at both shot levels. The exhaustive comparison has the same **total** signal-plus-reference shots as the intact four-phase comparison.

Clopper–Pearson intervals propagated through the two complex components yield a simultaneous primary rectangle. The declared systematics are the largest absolute modeled residual in each component plus a 0.003 fixed allowance. For angles, the calibration and signal rectangles are each 97.5% before propagation. If either rectangle is too close to the origin for the enclosing-disc angle bound, phase identification remains unresolved. The Fisher bound uses the exact phase derivative of each Bernoulli probability and includes the uncertainty of the independently measured shared reference offset. Its scope is the specified basis-return readout.

## Reproduce

Run from this directory in a Python 3.12 virtual environment. The committed snapshot contains the public two-qubit device calibration and a reduced Aer noise model. Simulation can run offline.

~~~shell
python -m pip install -r requirements.txt
python experiment.py simulate --out runs/reproduced
python -m pytest -q
~~~

To refresh the calibration before an approved run, first create the runs directory and pass the path to a local IBM credential, or use the default Qiskit account or supported environment variable. Keep credentials outside the repository.

~~~shell
python experiment.py capture --backend ibm_fez --output runs/current-calibration.json --token-file PATH_TO_KEY
python experiment.py simulate --snapshot runs/current-calibration.json --out runs/current
~~~

Submission is gated separately by explicit approval and a free-allocation, calibration and receipt check. The approved run used 2,048 shots per setting. The local simulation and calibration-capture commands use zero QPU execution time. [Hardware gate](HARDWARE_GATE.md) · [IBM client-side Sampler](https://quantum.cloud.ibm.com/docs/en/api/qiskit-ibm-runtime/executor-sampler-sampler)

Reproduce the analysis of the recorded IBM counts offline.

~~~shell
python hardware_analysis.py receipts/hardware_q2
~~~

## Audit baseline

The branch started at MathCan main commit **cdbbc3100a20ea61036b78ef049306ba507280b8**. All seven requested merge commits are ancestors. The audit uses [AHR-01](../ahr01/AHR01_math_note.md) for the square, [AHR-02](../ahr02/AHR02_mathematics.md) for graph gauge covariance, [AHR-03](../ahr03/AHR03_symplectic_holonomy.md) for local fourth moments, [AHR-04](../ahr04/AHR04_spectral_rigidity_tomography.md), [AHR-05](../ahr05/AHR05_six_cycle_wilson_loops.md) and [AHR-06](../ahr06/AHR06_local_return_probability.md) for mixed edge toggles, and [AHR-07](../ahr07/AHR07_four_phase_holonomy_tomography.md), [AHR-08](../ahr08/AHR08_addressable_plaquette_curvature.md) and [AHR-09](../ahr09/AHR09_gauge_reconstruction.md) for the estimators and cubical reconstruction.

Diagonal vertex rephasing preserves all site probabilities. It can change bipartite concurrence because a graph gauge need not factor into local qubit operations. The package reproduces this counterexample. The experimental claims concern signed phase recovery in the specified finite model and readout.
Loading