Skip to content

feat(quantum): add offline compile approval and prepared ISA execution - #80

Closed
AetherAI3 wants to merge 3 commits into
codex/quantum-receipt-provenancefrom
codex/quantum-offline-prepare
Closed

AetherAI3 wants to merge 3 commits into
codex/quantum-receipt-provenancefrom
codex/quantum-offline-prepare

Conversation

@AetherAI3

@AetherAI3 AetherAI3 commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Agents can now inspect and approve a complete quantum compilation from local JSON before execution. This adds explicit immutable profiles, pinned target snapshots and content-addressed prepared ISA artifacts, plus nano quantum check and nano quantum prepare. The opt-in host adapter requires the retained artifact digest, revalidates the permitted target, loads the saved circuits without recompiling, and binds the exact frozen ATLAS identity into #62's v3 manifest. Refs #63.

Stacked on #74 at fc64bfbc973e41700341129a97d0cdb3a6288c9d, itself based on #52. The independent Predator consumer is AetherAI3/AETHER-PREDATOR-M#458, based on #450. Do not activate production or close either issue merely because these PRs exist. Review/merge and closure remain owner gates, with #62 preceding #63.

The adapter binds nano.quantum.operations.v1 / optimize_qubo, as specified by #60/#61 and #72 at 45ea683915ad1b74b19310229df5428981ff8e03. It consumes existing v2 QUBO requests; new operation kernels and the language frontend remain with their owners. Unsupported operations are explicit diagnostics. The only changes to runtime_ibm.py are an explicit opt-in method and an optional exact frozen-identity submission argument, leaving concurrent #58/#59 paths and existing routes unchanged.

Profiles declare rewrites, seed, optimization, compiler and Qiskit 2.3.1, with optional ATLAS logical-source digests. Snapshots bind instruction topology/error/duration, qubit properties and timing. Fixed-angle or custom gates cannot silently broaden into standard parameterized operations. No environment variable selects the new profile; missing targets never substitute FakeFez. Core checking imports no SDK or IBM service. Structural artifact checks label their scope; QPY loadability is checked with the pinned SDK at load. Estimated, observed and settled usage are separate.

Validation:

  • Pinned Python 3.12.14 / Qiskit 2.3.1, focused provenance/prepare/runtime/legacy command: 220 passed, 1 skipped (optional ATLAS).
  • Real mixed-width 4/3 PUB compilation repeats deterministically; saved QPY reloads and executes through stand-in submission without recompiling.
  • Independent review executed the actual ATLAS #182 identity helper code at ad06bb20ac46fb6366bfe7320dd5b92edfb36739 against pinned prepared circuits, then verified the v3 receipt. No ATLAS runtime or IBM service imports.
  • Wrong expected digests, target/calibration/timing drift, malformed/reordered/duplicated/partial PUBs, explicit bit-order fixtures, fixed-angle capability widening, malformed ATLAS fingerprints/child mappings, ledger-cap reduction and ignored approval flags are covered.
  • Existing CLI suites: 55 passed. Shared Nano/Predator golden bytes unchanged: SHA-256 9fc311445b06c342e8db2bc68b4f66da63b5aafc7424389a7a38cf37543e8855.
  • Exact final source head d4fb3dbba909855ec0128ea7c04f338ce327fe01: PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python -m pytest -q -ra in a clean worktree on Python 3.12.14/Qiskit 2.3.1: 1,745 passed, 17 skipped, zero failures. Skips cover optional ATLAS/Aer/IBM/Predator/Protocol-C integrations and the removed README test-count claim; no hardware path was enabled.
  • Final prepare suite: 59 passed; prepared-runtime suite: 29 passed; independent Predator v2/v3 suite: 265 passed. The full run includes all these Nano tests.
  • python scripts/check_contribution.py --all: 55 entries pass. pip wheel --no-deps --no-build-isolation: succeeds. Final wheel SHA-256 1381e61e6f69f97093b0edd77bac05b7d6fdb392c7caac7f8a7943cae49d80aa; packaged adapters/schemas and isolated installed-wheel CLI imports verified.
  • Review fixes include a complete sorted ATLAS qcompiler source-tree manifest (nano.qsearch.atlas-source-manifest.v1), so transitive helper edits change the profile pin without executing package initializers. The import guard now permits only the exact first-party CLI entry import; negative core/module/alias/third-party controls and independent review verify the boundary remains intact.
  • Hosted workflow https://github.com/AetherAI3/Nano/actions/runs/41309127141 failed before test startup: GitHub reports the account is locked due to billing. It is not green CI. The sole [P1] Add a bounded quantum job lifecycle with explicit status, queue deadlines and cancellation #59 merge captain is verifying existing self-hosted capacity; repo inventory returns zero runners and no selector was changed. No independent queueing/merging.
  • Source and local validation are ready for the captain's dependency review. Merge and issue closure remain separate; close [P1] Bind packed quantum receipts to compiled plans and ATLAS child identities #62 before [P1] Add explicit quantum compile profiles and an offline prepare/check interface #63 only after merged acceptance is verified. The workflow supports Python 3.10 core-only and Python 3.12 with pinned Qiskit when authorized runner capacity is available.

No hardware, paid inference, credentials, live mission, deployment or production activation was changed. A held None result after submission is not permission to resubmit; durable admission, recovery and authority remain host responsibilities.

Verified integration disposition

This exact source head d4fb3dbba909855ec0128ea7c04f338ce327fe01 is an ancestor of actual integration commit cb6ea884d63dcaa8cc0e7c0b952bb88784e8219f, delivered by #82 to main. The source is included; no duplicate patch or separate source-PR merge is needed.

The human explicitly authorized the three integration PRs Nano82/ATLAS188/Predator460 to use reviewed passing LOCAL evidence in place of the earlier self-hosted gate. The waiver is recorded verbatim in those merged integration PR bodies; it is not a passing CI claim or a separate waiver-based admin merge of this source PR. Cloud41322926091 remains FAILED STARTUP with zero jobs/check runs. Local source pins, commands, counts, skips, review limitations, merged trees and actual target branches are recorded there and in the captain evidence bundle.

This source PR is retired as included/superseded by that actual integration. Issue #61 remains open for incomplete service-wire acceptance; other issue closure requires its own acceptance audit. Branches are preserved. No formal GitHub approval, production activation, runner/security/credential change or provider execution occurred.

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