Skip to content

feat(quantum): add bounded local kernels and legacy adapters - #77

Closed
AetherAI3 wants to merge 3 commits into
codex/quantum-operation-contractfrom
codex/quantum-local-adapters
Closed

AetherAI3 wants to merge 3 commits into
codex/quantum-operation-contractfrom
codex/quantum-local-adapters

Conversation

@AetherAI3

@AetherAI3 AetherAI3 commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Why does this change belong in Nano?

Known-bit preparation needs a native local circuit path without a fabricated QUBO or unused QAOA parameters. This follows the operations-v1 RFC in #72 and supplies the offline kernels and explicit compatibility adapters requested by #61.

What changed?

Direct X/measurement circuits, pinned Qiskit 2.3.1 ideal sampling in a bounded child process, strict complete-PUB decoding, caller-supplied evidence digest checks, and separate optimization/packet/authentication verdicts. Local resource caps and hard deadlines precede simulator work; forged plans, changed circuits, and implicit local-to-live effect changes are rejected.

Legacy job.v1 and request.v2 fixtures track PR #52 at b6ba6542b2c311d6354948e528bc64f147911178, preserve original payload/recipient metadata and round-trip through the existing job parser. The open bridge stack is not merged. No #62/#63 prepared-artifact or receipt-v3 identity is redefined.

At revised head 1d20022, source admission is separate from optional new-plan projection. Valid pinned Kingston/Marrakesh and zero-wall records remain readable with exact payloads/digests; unsupported projections return plan=None plus explicit diagnostics. No target stand-in, digest rewriting, execution-parser expansion or 0→1 budget widening is used. Packed negative seeds still fail source admission as required by the pinned schema.

Frozen final head b451a977b5ff91e7a9dee8d113ec0a53680d42ba changes only a test assertion: source reading must leave execution targets unchanged, rather than assume reviewed #52 target additions cannot already exist. Four final compatibility controls pass; runtime source is unchanged from 1d20022.

Compatibility boundary: known-bit/one-record/packed fixtures prove the new offline Qiskit preparation kernel and typed decoder. They do not claim that the legacy QSearch service wire accepts prepare/sample operations. Optimization maps to genuine existing jobs; no new local QAOA kernel or live path is promoted. That boundary and the separately owned #62/#63 activation contracts must be reviewed before full #61 closure.

Stack order: #72, this offline adapter, then #60's explicit command profile. Refs #61; issue remains open until integrated acceptance evidence is reviewed.

Validation

  • Exact revised adapter plus contract suite at 1d20022: 120 passed in 46.68s, including actual 400-recipient/1,200-PUB ideal-simulator round trip on Qiskit 2.3.1.
  • Complete integrated local suite at frozen stack tip 676440bbf80de7bc8c878dab7ef78d85f225f3a7 (includes final b451a97): 1,701 passed, 7 skipped in 167.87s.
  • Built wheel assets verified; installed-wheel phrase-to-result smoke passed outside the checkout; 55 contribution-shape checks passed.
  • Hosted checks have not run for this stacked base. Main-targeted feat(quantum): define typed operation RFC and conformance contract #72 at cc193ee is separately billing-locked, verified in run 41307477364 annotations. No hosted test success is claimed.
  • Tests cover known bits, one/packed records, ordered registers/variables, wrong width/register/PUB, changed bits, codecs, evidence digests and authentication failures.

Boundary check

  • No provider/model/IBM/paid calls, credential handling, scheduler or live executor.
  • Proposal validation is deterministic; actual classical simulator work is isolated in the host adapter.
  • Existing signed receipt schemas and legacy parsers remain unchanged; local records are unsealed fixture evidence.

The single merge captain owns authorized integration; this lane does not merge independently. Resolve the stated compatibility boundary and verify merged acceptance before issue closure.

Verified integration disposition

This exact source head b451a977b5ff91e7a9dee8d113ec0a53680d42ba 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