Skip to content

AHR-QPU-01R: recover the original IBM Q2 execution, collection, and interval analysis - #266

Draft
patrickdugan wants to merge 1 commit into
mainfrom
research/ahr-qpu-01r-legacy-recovery-20261123
Draft

patrickdugan wants to merge 1 commit into
mainfrom
research/ahr-qpu-01r-legacy-recovery-20261123

Conversation

@patrickdugan

Copy link
Copy Markdown
Owner

Source recovery from PR #254

Preserve the historical full IBM Fez Q2 execution implementation on current main in research/arithmetic_holonomy_rotor/ibm_qpu_01/recovered_q2/, isolated from the later AHR-QPU-01 simulator and the already merged immutable Q2 hardware receipts (#262).

Original source commit: 981b07b6d555b268ce0f28add39176bf3f39beb4.

The original compiler, exact Hamiltonian oracle, shot Fisher/interval analysis, live Open Plan calibration guard, job-tag checkpoint/recovery, Q3 prototype, and 10 original tests were copied using their original Git blobs. experiment.py has a single additional authorization gate requiring an exact planned-manifest SHA256 and three explicit YES environmental confirmations, in addition to the original operator confirmation, free allocation and current calibration checks. The former approved Q2 job is not an authorization for further hardware submissions.

New independent offline gates

  • offline_replay.py re-runs the original hardware-only summary on the archived 36-case raw counts from ../receipts/hardware_q2/ and requires exact equality to its stored analysis, including the signed phase estimates and tree control.
  • tests/test_recovery.py checks the added authorization lock, record-identical replay, and recovery of an interrupted job ID from a fake IBM service (with no network).
  • Pinned Python 3.12 / Qiskit / SciPy / NumPy workflow performs original + new tests, syntax verification, and independently executes ../hardware_q2_replay.py.

No QPU is accessed during these tests. Q3 hardware remains HOLD. This PR intends to retire #254 as superseded only after its own CI passes and the recovered code has been reviewed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant