Marqov Labs / Quantum Chemistry Needs More Than Qubits — Phase 1 public evidence
Quantum chemistry workflow checkpoint
13 October 2026
Marqov has run an independently generated fragment-chemistry workflow on a hosted Qristal CPU simulator and carried its representative circuits onto IQM Garnet through Amazon Braket. This is a workflow validation inspired by the Quantum Brilliance and Oak Ridge preprint, not a reproduction of its embedded chemistry, diamond processors or parallel performance result.
Inputs and reference
The independent, unembedded four-helium adaptation contains four two-configuration monomer matrices and six four-configuration dimer matrices. We compare against exact diagonalization of those retained restricted matrices, with an assembled reference of −11.340870484155 Hartree. This is a restricted-space reference, not a claim of full chemical accuracy for the original paper's system.
The estimator combines measured computational-basis counts with classical soft-tanh fitting, which reweights amplitude magnitudes as well as signs. Its energies are combined measured-count/classical-fit estimates, not direct hardware energy measurements. Subtractive pairwise fragment assembly is not variational; a total below its restricted reference does not establish a ground-state-bound violation.
Completed hosted simulator workflows
| Workflow | Actual counted shots | Total energy (Ha) | Absolute reference error (Ha) |
|---|---|---|---|
| Serial | 600,000,000 | −11.340827959220 | 0.000042525 |
| Synchronous pooling | 600,000,000 | −11.340827747667 | 0.000042736 |
| Adaptive fragments | 99,999 | −11.341000349519 | 0.000129865 |
All three assembled point estimates meet the declared 0.0014-Hartree comparison threshold. Synchronous pooling took longer than serial in the retained hosted runs; no speedup was demonstrated. Adaptive sampling used known-reference stopping and first-accepted results. Its 99,999 counted shots include a 33,333-shot late tail. These unequal workloads do not establish an equal-budget adaptive speedup comparison or unbiased accuracy guarantee.
The published hosted-workflow article, public numerical appendix and replay script provide the restricted matrices, counts, fitted weights and numerical checks. Public replay checks consistency of supplied data; it does not independently authenticate cloud execution or regenerate the molecular integrals. The hosted job timeline includes orchestration and classical work and does not prove physical sampling overlap.
First completed hardware screen
Nine IQM tasks returned 1,400 shots: four 100-shot two-qubit basis probes, two 200-shot chemistry circuits, and three separate 200-shot one-qubit calibration/chemistry tasks. Source, submitted action, provider/device identity, shots, measurement labels and raw counts were correlated with retained provider captures. Private operational captures remain separate.
| Initial two-qubit circuit | 00 | 01 | 10 | 11 |
|---|---|---|---|---|
| Prepare 00, 100 shots | 98 | 2 | 0 | 0 |
| Prepare 01, 100 shots | 0 | 100 | 0 | 0 |
| Prepare 10, 100 shots | 3 | 0 | 96 | 1 |
| Prepare 11, 100 shots | 0 | 1 | 0 | 99 |
| Dimer, 200 shots | 196 | 3 | 1 | 0 |
The initial 200-shot monomer returned 194 zero and six one outcomes. One monomer distribution was reused across four monomer matrices, and one dimer distribution across six dimer matrices: two measured chemistry circuits, not ten independent hardware fragment experiments.
The first assembled estimate was −11.613834767193 Hartree, with absolute reference error 0.272964283038 Hartree. Every fragment missed its 0.0001-Hartree target, and the assembled result missed the 0.0014-Hartree benchmark. This establishes a working submission, count-collection and numerical-evaluation path; it does not qualify hardware chemistry accuracy.
Dedicated one-qubit calibration pilot
| Circuit, 200 shots each | Zero counts | One counts |
|---|---|---|
| Prepare zero | 198 | 2 |
| Prepare one | 6 | 194 |
| Fresh monomer | 198 | 2 |
The fresh raw monomer error was 0.00405483 Hartree. Under an assumed common stationary preparation/readout channel, constrained correction reached a boundary probability and worsened the error to 0.01498009 Hartree. Both miss the fragment target. The ideal monomer circuit has approximately 0.00432 rare-state probability, fewer than one expected rare-state count in 200 shots. A larger sampling/calibration budget is a diagnostic, not a promise of accuracy.
These are retained point estimates. Conditional bootstrap diagnostics omit drift, circuit error and calibration mismatch; they do not establish hardware confidence coverage. Sparse and absent outcomes limit plug-in resampling.
The physical mapping check
The retained IQM compiled programs showed differing physical assignments behind the tested virtual register convention:
| Captured circuit | Physical qubits in register order |
|---|---|
| Initial 00 probe | 2, 4 |
| Initial 01 probe | 2, 10 |
| Initial 10 probe | 10, 2 |
| Initial 11 probe | 2, 10 |
| Dimer | 16, 17 |
| Dedicated zero/one calibration and fresh monomer | 1 for each task |
The two-qubit probes still check logical register ordering, but do not establish one matched physical readout channel for the dimer. We therefore do not interpret correction using those rows as validated hardware mitigation. The one-qubit pilot shares a captured physical assignment; matching epochs, channel stationarity and preparation fidelity remain unproven. Future correction must check the compiled assignments again.
Next stages
The next hardware checkpoint uses a predeclared larger calibration and chemistry budget, retaining all outcomes and refusing correction on mismatched physical assignments. Subsequent work will qualify a second compatible gate provider, compare conserved equal and rate-weighted allocations, and execute adaptive monomer/dimer phases with submitted work drained and accounted.
Historical provider creation-to-end task rates include queueing and service overhead; they are planning heuristics, not sampling rates or certified future performance. Changing raw-count weights across differing device error channels can affect accuracy as well as timing. Actual cross-provider execution, measured orchestration benefit and running-task cancellation remain unproven.
Teams interested in trying the workflow can request access to Marqov. Researchers interested in calibration, embedded inputs or hardware collaboration can contact us.
This independent work does not imply participation or endorsement by Quantum Brilliance, Oak Ridge, IQM or Amazon.
Hardware results and error diagnosis — 19 October 2026
This dated update supersedes the earlier description of the larger-shot pair as future work. Both IQM Garnet chemistry tasks have completed through Marqov: one 5,000-shot monomer and one 5,000-shot dimer. The original monomer survived a worker deployment and monitoring resumed against the same provider task. Both API count receipts were retained, their hashes verified, and the fixed count-to-energy calculation independently replayed. The pair's hourly monitor is now paused after completion.
What the two jobs measured
| Circuit | Counts in q0-first order | Shots |
|---|---|---|
| Monomer | 0: 4,947; 1: 53 | 5,000 |
| Dimer | 00: 4,836; 01: 66; 10: 92; 11: 6 | 5,000 |
One representative monomer distribution is reused for four restricted monomer matrices, and one representative dimer distribution for six restricted dimer matrices. These are two measured chemistry circuits and 10,000 shots, not ten independent fragment measurements. Shared-sample covariance must be preserved in uncertainty calculations.
| Quantity | Fixed-estimator result (Hartree) | Absolute error (milli-Hartree) |
|---|---|---|
| Each monomer | −2.865359398062 | 4.7812 |
| Dimers | −5.697144177140 to −5.697011958864 | 19.8846–19.9281 |
| Assembled restricted He4 total | −11.259725441794 | 81.1450 |
The exact reference obtained by diagonalizing the retained restricted matrices is −11.340870484155 Hartree. The declared total target is 0.0014 Hartree (1.4 mHa); the fragment target is 0.0001 Hartree (0.1 mHa). Neither target was met. This is a completed hardware workflow with a negative chemistry-accuracy result, not a chemically accurate reproduction.
Why chemical accuracy was missed
The measured probabilities differ substantially from the ideal submitted circuits. At 5,000 ideal shots the monomer's 1 outcome has an expected count of 21.58, versus 53 measured. Dimer outcomes 01 and 10 have expected counts of 4.44 and 4.22, versus 66 and 92 measured. These differences are very unlikely under an IID ideal-circuit sampling model. That observation identifies a model-to-data mismatch; it does not determine whether readout, state preparation, gates, compilation, physical mapping or drift caused it. No fresh, matched SPAM correction was applied to this pair, and its fixed circuit angles were not optimized on this hardware.
Fragment assembly carries the dimer error into the total. For four fragments, E_total = sum(E_dimer) − 2 sum(E_monomer). The signed dimer errors contribute +119.3944 mHa; the monomer term contributes −38.2494 mHa, leaving +81.1450 mHa. The total is subtractive and is not itself a variational bound.
Finite shots and classical fitting also matter. Exact ideal circuit probabilities, passed through the same frozen 50-epoch fitter, give only 0.0425 mHa total error. However, in a seeded offline pilot with 128 independent ideal 5,000-shot pairs, only 53/128 meet the total target and 10/128 meet every fragment target. These are finite Monte Carlo frequencies under the ideal model, not forecasts for hardware. In a separate disclosed sensitivity check, refitting the existing hardware counts for 500 epochs lowers the total error to 22.4643 mHa, which still misses the target. This retrospective calculation does not replace the original 50-epoch result or establish optimizer convergence. The tanh model changes normalized amplitude magnitudes as well as signs.
Uncertainty and evidence boundaries
A 128-replicate plug-in multinomial bootstrap of the observed distributions, preserving shared monomer/dimer samples and refitting the frozen model, gives a conditional signed total-error percentile range of approximately 32.3–133.1 mHa and standard deviation 26.5 mHa. This is a coarse conditional sampling diagnostic. It excludes unknown readout bias, drift, calibration and physical-mapping uncertainty, and does not provide a hardware-accuracy coverage guarantee.
The new count receipts come from the authenticated Marqov API. Independent AWS raw-count parity, submitted action, compiled physical mapping and provider timing are not verified by those receipts. Prior short-run calibrations are not silently transferred to these jobs. The input package SHA-256 is 0a163841b6c6c98835e0c08fe06ffd736b799e50fa2e620f5c395c80d2243303.
What Rigetti adds
Four separate 100-shot Rigetti basis probes also completed through Marqov, with independently correlated provider receipts. Correct-state counts were 97, 98, 94 and 94. The original per-row Wilson lower-bound requirement of 0.90 failed on the last two probes (lower bounds 0.8752), so no Rigetti chemistry was admitted. That failed decision is retained. The 100-shot design has low power for this strict fidelity-confidence criterion; a future design must distinguish bit-order identification from fidelity characterization before collecting new qualifying data. This establishes real execution through a second provider, not a two-provider chemistry or speedup result.
Next experiment and contribution
- First characterize one channel with fresh prepare-0, prepare-1 and monomer circuits. Require evidence that calibration and chemistry use the same actual compiled physical qubit within a bounded window; report raw and corrected estimates with calibration uncertainty, retaining every outcome. If mapping custody or calibration validity fails, report that failure without applying correction or resampling until an energy passes.
- Once the one-qubit workflow is understood, extend to a matched physical pair with all four basis-state calibration rows and a fresh dimer. Predeclare circuit parameters, fitting settings, shot budgets and acceptance rules. Any hardware-specific parameter training must be separated from fresh evaluation data.
- Qualify the second provider under its prospective rule, then compare sequential and scheduled chemistry work at matched scientific scope and budgets. Measure useful completed work and end-to-end timing, separating queue delays from sampling. Publish either a measured improvement or an honest negative result.
The contribution we can substantiate today is a hosted Qristal baseline, completed IQM chemistry jobs, real Rigetti execution, preserved job continuity through deployment, and reproducible analysis of the accuracy failure. The next contribution is a calibrated and uncertainty-aware heterogeneous execution workflow. We do not yet claim chemical accuracy, multi-QPU sampling speedup, cancellation benefit or the paper's embedded chemistry reproduction.
The Quantum Brilliance/Oak Ridge paper used SPAM-corrected probabilities, device-specific or jointly optimized circuit parameters, and repeated fragment acceptance rounds. Its successful accuracy result is therefore not directly comparable to this single raw fixed-circuit pair. Paper and experimental methods.
Two gate providers and a reproducible chemistry checkpoint — 19 October 2026
Marqov has now carried representative circuits from our hosted Qristal baseline onto IQM Garnet and Rigetti Cepheus-1 through Amazon Braket, returning counts to the same restricted-space chemistry estimator. The new Rigetti screen completed six original slots: four 100-shot basis probes, then 200 shots each for one representative monomer and dimer circuit.
This is a concrete portability milestone inspired by the Quantum Brilliance and Oak Ridge preprint: a gated workflow reaches a second hardware provider and makes its numerical limitations inspectable. It is not yet a reproduction of the paper's multi-QPU experiment.
Orientation is different from fidelity
Before this new campaign collected counts, we froze an exact-binomial register-direction test. Both asymmetric probes must individually have p <= 0.005 and at least 50 informative outcomes; only canonical q0-first ordering proceeds. For prepared 01, 86 outcomes matched the expected direction and zero matched the reversed direction (p = 1.29247e-26). For prepared 10, the corresponding counts were 92 and zero (p = 2.01948e-28). Both tests passed.
Expected basis-state frequencies for prepared 00, 01, 10 and 11 were 100%, 86%, 92% and 80%, respectively. These characterize preparation, gates and readout together. They are not a readout-only calibration, physical-qubit mapping check, mitigation guarantee or chemistry-accuracy certification. The directionality test assumes independent, identically distributed categorical shots within each probe. Under the declared null, the family-error bound is <= 0.01; independence between the two probes is not required. This does not establish hardware stability.
An earlier Rigetti attempt failed its then-declared qualification gate and remains a failed historical observation. This fresh prospective screen did not relabel that earlier result as a success.
Measured counts, unequal sampling budgets
| Provider and representative circuit | Shots | Returned counts |
|---|---|---|
| IQM monomer | 5,000 | 0: 4,947; 1: 53 |
| IQM dimer | 5,000 | 00: 4,836; 01: 66; 10: 92; 11: 6 |
| Rigetti monomer | 200 | 0: 198; 1: 2 |
| Rigetti dimer | 200 | 00: 181; 01: 8; 10: 7; 11: 4 |
One monomer distribution is reused across four monomer matrices and one dimer distribution across six dimer matrices. These are two measured chemistry circuits per provider, not ten independent hardware fragment experiments. Rigetti used 400 chemistry shots plus 400 probe shots; the IQM pair used 10,000 chemistry shots.
The exact restricted-matrix assembled reference is -11.34087048415456 Hartree.
| Retained point estimate | Total energy (Hartree) | Signed deviation from reference (mHa) |
|---|---|---|
| IQM, 5,000 shots per template | -11.259725441794048 | +81.145042 |
| Rigetti, 200 shots per template | -10.450898746481258 | +889.971738 |
Both estimates miss the 1.4 mHa assembled benchmark. This is not a provider accuracy ranking. The budgets differ by a factor of 25, and acquisition conditions, device errors and compilation differ. The observations do not isolate the cause of the errors or show that more shots alone will meet the target. No readout mitigation was applied.
Replaying the estimator and its conditional uncertainty
Independent numerical review reproduced the retained counts, reference calculations, point estimates and the new comparison's 128 multinomial bootstrap draws per provider. IQM uses a new replay seed, 2026101901: conditional standard deviation 0.0254569345 Hartree and 95% percentile interval [-11.314838376873396, -11.208810346872655] Hartree. Rigetti uses seed 2026101902: standard deviation 0.4722671250 Hartree and interval [-11.360066545881011, -9.546251501471176] Hartree. These new draws do not replace the earlier IQM diagnostic.
The bootstrap resamples each representative distribution once per draw and shares it across its fragment matrices. It refits the classical soft-tanh estimator, which changes normalized amplitude magnitudes as well as signs. These are combined count-and-classical-fit energies, not direct hardware energy measurements.
The intervals are conditional sampling diagnostics, not hardware confidence coverage. Zero-count outcomes remain zero. Readout bias, drift, calibration mismatch, circuit error, parameter optimization and adaptive selection are excluded. An interval containing the reference does not demonstrate accuracy. Numerical replay is also separate from authenticating provider execution.
Execution boundary and next experiment
The reviewed scientific client coordinated qualification and classical fitting locally through the supported Marqov API. The QPU jobs ran through Marqov's hosted worker/provider path. This checkpoint is not fully hosted end-to-end hybrid orchestration; the earlier fully hosted Qristal workflow is a separate record.
Our inputs remain an independent, unembedded restricted four-helium adaptation. We have not reproduced the paper's embedded chemistry, diamond hardware, device-specific calibration or parallel efficiency. These campaigns establish neither simultaneous cross-provider sampling nor measured speedup or running-task cancellation.
This qualification checkpoint does not establish heterogeneous pooling, adaptive fragment scheduling or cross-provider performance. Those studies require their own retained per-provider counts, sampling budgets, phase boundaries and timing evidence. Platform turnaround and client overhead must remain distinct from isolated QPU queueing or physical sampling time.
The existing Phase 1 article and public numerical appendix document the simulator baseline. This hardware checkpoint supplies returned counts and explicit estimator results while keeping operational records separate.
This independent work does not imply participation or endorsement by Quantum Brilliance, Oak Ridge National Laboratory, IQM, Rigetti or Amazon.
Pooling chemistry counts from IQM and Rigetti
We have now pooled real IQM Garnet and Rigetti Cepheus-1 measurements through Marqov, using a fixed sampling budget and the same restricted-space chemistry calculation. Four completed cases preserve every treatment result, including a missing timing observation. All four miss the declared energy-accuracy benchmark. The result is an auditable cross-provider execution checkpoint and a concrete reason to improve device calibration before claiming a chemistry result.
The experiment
This extends our independent adaptation inspired by the Quantum Brilliance and Oak Ridge preprint. We use an unembedded four-helium square with 3 Å sides, RHF orbitals and the cc-pVDZ basis. Exact diagonalization of the ten restricted fragment matrices gives the assembled reference −11.34087048415456 Ha. This is our reference, not the paper's embedded reference.
Each case used 1,000 shots for a representative monomer circuit and 1,000 for a representative dimer circuit. One measured monomer distribution feeds four matrices; one dimer distribution feeds six. That reuse does not multiply the shots or produce ten independent measured fragments. Across four cases, the treatment budget was 8,000 shots in sixteen original provider jobs.
The predeclared order was equal → weighted → weighted → equal. Equal allocation used 500 IQM and 500 Rigetti shots in each phase. Weighted allocation used 684/316 for the monomer and 556/444 for the dimer. Weights were frozen before treatment results using pilot platform job creation-to-completion turnaround, including queue and platform overhead. These are routing proxies, not physical sampling rates.
The client waited for both original results in a phase, added integer raw counts, conserved the sampling budget, and passed the pooled distribution into the same 50-epoch classical fit. No readout correction or device-specific circuit optimization was applied. Mixing the counts therefore also mixes the devices' error channels.
Every completed result
| Case | Allocation | Absolute assembled error (mHa) | Client submit-to-audited-report time (s) |
|---|---|---|---|
| A1 | Equal | 279.511331 | Unavailable |
| B1 | Weighted | 83.195511 | 113.573132 |
| B2 | Weighted | 64.923689 | 103.460632 |
| A2 | Equal | 229.831610 | 120.041648 |
The assembled benchmark is 1.4 mHa. None of the forty fragment-evaluation instances meets the 0.1 mHa reference-guided fragment threshold either; those instances reuse shared samples and are not independent trials.
A1's numerical result is retained. Its observer process was interrupted, so its elapsed time remains unavailable rather than being replaced by a server timestamp or plotted as zero. The other durations include admission, polling, turnaround and local classical evaluation. They do not establish simultaneous physical sampling or parallel efficiency.
There are only two cases per allocation and one intact timing pair. We report point estimates, not established confidence coverage, a generalizable speedup or a provider ranking. Smaller weighted-case errors do not establish that weighting reduces noise: the allocations change the mixture of device errors, and FMO assembly can cancel fragment errors. The classical soft-tanh fit also reweights amplitudes as well as signs.
What this establishes and what comes next
The sampling tasks ran through Marqov's hosted worker/provider path. The scientific coordinator and fitting ran locally through the supported API. Retained counts, source bindings, phase boundaries and deterministic numerical replay make the heterogeneous pooling inspectable. API-returned receipts do not independently verify AWS raw-count parity, submitted actions, physical mappings or provider timing.
The next scientific step is matched physical-pair calibration and device-specific circuit/estimator qualification. The next platform step is hosted adaptive coordination with durable original child-job identities. Adaptive hardware scheduling, running-task cancellation, physical resource release and measured orchestration savings remain future milestones. No reproduction of QB/ORNL's full embedded experiment, reported efficiency, or endorsement is implied.
For context, see Taking Quantum Chemistry onto Real Hardware. To explore a workflow with your own team, request Marqov access.
Reproduce the pooled-count energy calculation
Save the two files in this closed capsule together, install NumPy, then run python -E replay.py without optimization flags. The replay checks the ten matrix references, allocations, integer counts, 8,000 conserved treatment shots and all four energies. It checks the consistency of this public projection; it does not independently authenticate provider execution.
{
"schema": "qb.public-matched-pooling-capsule/v1",
"requirements": [
"Python3",
"NumPy"
],
"files": {
"evidence.json": "{\n \"schema\": \"qb.public-matched-pooling-replay/v1\",\n \"reference_ha\": -11.34087048415456,\n \"fragments\": [\n {\n \"id\": \"M0\",\n \"hamiltonian\": [\n [\n -2.8551604772427397,\n 0.22750515843302105\n ],\n [\n 0.22750515843302105,\n 0.5850187335680355\n ]\n ],\n \"reference_energy\": -2.870140567191777\n },\n {\n \"id\": \"M1\",\n \"hamiltonian\": [\n [\n -2.8551604772427397,\n 0.22750515843302105\n ],\n [\n 0.22750515843302105,\n 0.5850187335680355\n ]\n ],\n \"reference_energy\": -2.870140567191777\n },\n {\n \"id\": \"M2\",\n \"hamiltonian\": [\n [\n -2.8551604772427397,\n 0.22750515843302105\n ],\n [\n 0.22750515843302105,\n 0.5850187335680355\n ]\n ],\n \"reference_energy\": -2.870140567191777\n },\n {\n \"id\": \"M3\",\n \"hamiltonian\": [\n [\n -2.8551604772427397,\n 0.22750515843302105\n ],\n [\n 0.22750515843302105,\n 0.5850187335680355\n ]\n ],\n \"reference_energy\": -2.870140567191777\n },\n {\n \"id\": \"D0_1\",\n \"hamiltonian\": [\n [\n -5.710320089101893,\n 0.11386356808876744,\n 0.11366198715890288,\n 0.0\n ],\n [\n 0.11386356808876744,\n -1.8990741252764622,\n 0.0,\n 0.11366198715890288\n ],\n [\n 0.11366198715890288,\n 0.0,\n -1.8096865086284177,\n 0.11386356808876744\n ],\n [\n 0.0,\n 0.11366198715890288,\n 0.11386356808876744,\n 1.171242106346153\n ]\n ],\n \"reference_energy\": -5.717028742088631\n },\n {\n \"id\": \"D0_2\",\n \"hamiltonian\": [\n [\n -5.7103200891018915,\n 0.11386356808876724,\n 0.11366198715890274,\n 0.0\n ],\n [\n 0.11386356808876724,\n -1.8990741252764618,\n 0.0,\n 0.11366198715890274\n ],\n [\n 0.11366198715890274,\n 0.0,\n -1.8096865086284204,\n 0.11386356808876724\n ],\n [\n 0.0,\n 0.11366198715890274,\n 0.11386356808876724,\n 1.1712421063461511\n ]\n ],\n \"reference_energy\": -5.717028742088631\n },\n {\n \"id\": \"D0_3\",\n \"hamiltonian\": [\n [\n -5.710320962359564,\n 0.11375483892022696,\n 0.1137503210790183,\n 0.0\n ],\n [\n 0.11375483892022696,\n -1.8040240551005613,\n 0.0,\n 0.1137503210790183\n ],\n [\n 0.1137503210790183,\n 0.0,\n -1.8027157343257951,\n 0.11375483892022696\n ],\n [\n 0.0,\n 0.1137503210790183,\n 0.11375483892022696,\n 1.1700376504786012\n ]\n ],\n \"reference_energy\": -5.716940026667125\n },\n {\n \"id\": \"D1_2\",\n \"hamiltonian\": [\n [\n -5.710320962359564,\n 0.11375483892022695,\n 0.11375032107901831,\n 0.0\n ],\n [\n 0.11375483892022695,\n -1.8040240551005626,\n 0.0,\n 0.11375032107901831\n ],\n [\n 0.11375032107901831,\n 0.0,\n -1.8027157343257951,\n 0.11375483892022695\n ],\n [\n 0.0,\n 0.11375032107901831,\n 0.11375483892022695,\n 1.1700376504785992\n ]\n ],\n \"reference_energy\": -5.716940026667125\n },\n {\n \"id\": \"D1_3\",\n \"hamiltonian\": [\n [\n -5.7103200891018915,\n 0.11386356808876724,\n 0.11366198715890274,\n 0.0\n ],\n [\n 0.11386356808876724,\n -1.8990741252764618,\n 0.0,\n 0.11366198715890274\n ],\n [\n 0.11366198715890274,\n 0.0,\n -1.8096865086284204,\n 0.11386356808876724\n ],\n [\n 0.0,\n 0.11366198715890274,\n 0.11386356808876724,\n 1.1712421063461511\n ]\n ],\n \"reference_energy\": -5.717028742088631\n },\n {\n \"id\": \"D2_3\",\n \"hamiltonian\": [\n [\n -5.710320089101893,\n 0.11386356808876744,\n 0.11366198715890288,\n 0.0\n ],\n [\n 0.11386356808876744,\n -1.8990741252764622,\n 0.0,\n 0.11366198715890288\n ],\n [\n 0.11366198715890288,\n 0.0,\n -1.8096865086284177,\n 0.11386356808876744\n ],\n [\n 0.0,\n 0.11366198715890288,\n 0.11386356808876744,\n 1.171242106346153\n ]\n ],\n \"reference_energy\": -5.717028742088631\n }\n ],\n \"fit\": {\n \"epochs\": 50,\n \"learning_rate\": 0.09,\n \"monomer_initial_weights\": [\n 0,\n -2\n ],\n \"dimer_initial_weights\": [\n -1,\n -1,\n -1\n ]\n },\n \"cases\": [\n {\n \"case\": \"A1_equal\",\n \"allocations\": {\n \"monomer\": {\n \"iqm-garnet\": 500,\n \"rigetti-cepheus-1\": 500\n },\n \"dimer\": {\n \"iqm-garnet\": 500,\n \"rigetti-cepheus-1\": 500\n }\n },\n \"counts\": {\n \"monomer\": {\n \"iqm-garnet\": {\n \"0\": 494,\n \"1\": 6\n },\n \"rigetti-cepheus-1\": {\n \"0\": 492,\n \"1\": 8\n }\n },\n \"dimer\": {\n \"iqm-garnet\": {\n \"00\": 478,\n \"01\": 4,\n \"10\": 18\n },\n \"rigetti-cepheus-1\": {\n \"00\": 468,\n \"01\": 18,\n \"10\": 7,\n \"11\": 7\n }\n }\n },\n \"pooled_counts\": {\n \"monomer\": {\n \"0\": 986,\n \"1\": 14\n },\n \"dimer\": {\n \"00\": 946,\n \"01\": 22,\n \"10\": 25,\n \"11\": 7\n }\n },\n \"energy_ha\": -11.06135915332927,\n \"absolute_error_mha\": 279.5113308252901,\n \"client_elapsed_seconds\": null\n },\n {\n \"case\": \"B1_rate_weighted\",\n \"allocations\": {\n \"monomer\": {\n \"iqm-garnet\": 684,\n \"rigetti-cepheus-1\": 316\n },\n \"dimer\": {\n \"iqm-garnet\": 556,\n \"rigetti-cepheus-1\": 444\n }\n },\n \"counts\": {\n \"monomer\": {\n \"iqm-garnet\": {\n \"0\": 673,\n \"1\": 11\n },\n \"rigetti-cepheus-1\": {\n \"0\": 313,\n \"1\": 3\n }\n },\n \"dimer\": {\n \"iqm-garnet\": {\n \"00\": 524,\n \"01\": 10,\n \"10\": 20,\n \"11\": 2\n },\n \"rigetti-cepheus-1\": {\n \"00\": 412,\n \"01\": 21,\n \"10\": 10,\n \"11\": 1\n }\n }\n },\n \"pooled_counts\": {\n \"monomer\": {\n \"0\": 986,\n \"1\": 14\n },\n \"dimer\": {\n \"00\": 936,\n \"01\": 31,\n \"10\": 30,\n \"11\": 3\n }\n },\n \"energy_ha\": -11.257674973596691,\n \"absolute_error_mha\": 83.19551055786967,\n \"client_elapsed_seconds\": 113.57313208305277\n },\n {\n \"case\": \"B2_rate_weighted\",\n \"allocations\": {\n \"monomer\": {\n \"iqm-garnet\": 684,\n \"rigetti-cepheus-1\": 316\n },\n \"dimer\": {\n \"iqm-garnet\": 556,\n \"rigetti-cepheus-1\": 444\n }\n },\n \"counts\": {\n \"monomer\": {\n \"iqm-garnet\": {\n \"0\": 671,\n \"1\": 13\n },\n \"rigetti-cepheus-1\": {\n \"0\": 313,\n \"1\": 3\n }\n },\n \"dimer\": {\n \"iqm-garnet\": {\n \"00\": 532,\n \"01\": 4,\n \"10\": 18,\n \"11\": 2\n },\n \"rigetti-cepheus-1\": {\n \"00\": 410,\n \"01\": 24,\n \"10\": 9,\n \"11\": 1\n }\n }\n },\n \"pooled_counts\": {\n \"monomer\": {\n \"0\": 984,\n \"1\": 16\n },\n \"dimer\": {\n \"00\": 942,\n \"01\": 28,\n \"10\": 27,\n \"11\": 3\n }\n },\n \"energy_ha\": -11.27594679518369,\n \"absolute_error_mha\": 64.92368897086997,\n \"client_elapsed_seconds\": 103.46063237497583\n },\n {\n \"case\": \"A2_equal\",\n \"allocations\": {\n \"monomer\": {\n \"iqm-garnet\": 500,\n \"rigetti-cepheus-1\": 500\n },\n \"dimer\": {\n \"iqm-garnet\": 500,\n \"rigetti-cepheus-1\": 500\n }\n },\n \"counts\": {\n \"monomer\": {\n \"iqm-garnet\": {\n \"0\": 495,\n \"1\": 5\n },\n \"rigetti-cepheus-1\": {\n \"0\": 493,\n \"1\": 7\n }\n },\n \"dimer\": {\n \"iqm-garnet\": {\n \"00\": 477,\n \"01\": 11,\n \"10\": 11,\n \"11\": 1\n },\n \"rigetti-cepheus-1\": {\n \"00\": 470,\n \"01\": 22,\n \"10\": 4,\n \"11\": 4\n }\n }\n },\n \"pooled_counts\": {\n \"monomer\": {\n \"0\": 988,\n \"1\": 12\n },\n \"dimer\": {\n \"00\": 947,\n \"01\": 33,\n \"10\": 15,\n \"11\": 5\n }\n },\n \"energy_ha\": -11.11103887401659,\n \"absolute_error_mha\": 229.83161013797115,\n \"client_elapsed_seconds\": 120.04164766706526\n }\n ],\n \"scope\": \"Retained platform-returned counts and deterministic classical numerical replay; independent unembedded restricted He4. No independent AWS authenticity, physical mapping/timing or full paper reproduction claimed. Local scientific coordinator, hosted QPU worker path.\",\n \"uncertainty\": \"Only two cases per allocation and one intact timing pair; these point estimates do not establish speedup, provider ranking, improved accuracy or interval coverage. Counts are reused across fragment matrices; no independent-fragment assumption.\"\n}\n",
"replay.py": "\"\"\"Offline NumPy replay of the public count projection. No network or QPU use.\"\"\"\nfrom pathlib import Path\nimport json\nimport math\nimport numpy as np\n\n\ndef fit(h,p,w):\n h=np.asarray(h,dtype=float);p=np.asarray(p,dtype=float);w=np.asarray(w,dtype=float)\n width=int(np.log2(len(p)))\n x=np.array([[1]+[2*int(b)-1 for b in format(i,f'0{width}b')]\n for i in range(len(p))],dtype=float)\n assert np.isfinite(h).all() and np.allclose(h,h.T,atol=1e-12,rtol=0)\n assert np.all(p>=0) and math.isclose(float(p.sum()),1,abs_tol=1e-12)\n def energy_gradient():\n s=np.tanh(x@w);c=s*np.sqrt(p);norm=c@c\n assert norm>1e-30\n e=float(c@h@c/norm)\n gradient=x.T@(2*(h@c-e*c)/norm*np.sqrt(p)*(1-s*s))\n return e,gradient\n for _ in range(50):\n _,gradient=energy_gradient();w-=.09*gradient\n return energy_gradient()[0]\n\n\ndef assemble(values):\n return sum(values[f'D{i}_{j}'] for i in range(4) for j in range(i+1,4))-2*sum(values[f'M{i}'] for i in range(4))\n\n\ndef main():\n data=json.loads((Path(__file__).parent/'evidence.json').read_text())\n assert data['schema']=='qb.public-matched-pooling-replay/v1'\n assert data['fit']=={'epochs':50,'learning_rate':.09,'monomer_initial_weights':[0,-2],'dimer_initial_weights':[-1,-1,-1]}\n assert [case['case'] for case in data['cases']]==['A1_equal','B1_rate_weighted','B2_rate_weighted','A2_equal']\n fragments=data['fragments']\n assert len(fragments)==10 and {f['id'] for f in fragments}==set(\n [f'M{i}' for i in range(4)]+[f'D{i}_{j}' for i in range(4) for j in range(i+1,4)])\n for f in fragments:\n assert math.isclose(float(np.linalg.eigvalsh(f['hamiltonian'])[0]),f['reference_energy'],abs_tol=1e-10,rel_tol=0)\n reference=assemble({f['id']:f['reference_energy'] for f in fragments})\n assert math.isclose(reference,data['reference_ha'],abs_tol=1e-11,rel_tol=0)\n total_shots=0\n for case in data['cases']:\n expected={'monomer':{'iqm-garnet':500,'rigetti-cepheus-1':500},\n 'dimer':{'iqm-garnet':500,'rigetti-cepheus-1':500}}\n if 'rate_weighted' in case['case']:\n expected={'monomer':{'iqm-garnet':684,'rigetti-cepheus-1':316},\n 'dimer':{'iqm-garnet':556,'rigetti-cepheus-1':444}}\n assert case['allocations']==expected\n pooled={}\n for phase,width in [('monomer',1),('dimer',2)]:\n labels=[format(i,f'0{width}b') for i in range(2**width)]\n counts={label:0 for label in labels}\n assert set(case['counts'][phase])=={'iqm-garnet','rigetti-cepheus-1'}\n for provider,group in case['counts'][phase].items():\n assert set(group)<=set(labels)\n assert all(type(n)is int and n>=0 for n in group.values())\n assert sum(group.values())==case['allocations'][phase][provider]\n for label,n in group.items():counts[label]+=n\n assert counts==case['pooled_counts'][phase] and sum(counts.values())==1000\n total_shots+=sum(counts.values())\n pooled[phase]=[counts[label]/1000 for label in labels]\n energies={}\n for f in fragments:\n mono=f['id'].startswith('M');phase='monomer' if mono else 'dimer'\n energies[f['id']]=fit(f['hamiltonian'],pooled[phase],[0,-2] if mono else [-1,-1,-1])\n total=assemble(energies);error=1000*abs(total-reference)\n assert math.isclose(total,case['energy_ha'],abs_tol=1e-11,rel_tol=0)\n assert math.isclose(error,case['absolute_error_mha'],abs_tol=1e-8,rel_tol=0)\n print(case['case'],f'{total:.12f} Ha',f'{error:.6f} mHa')\n assert total_shots==8000\n assert data['cases'][0]['client_elapsed_seconds'] is None\n print('PASS: four cases, ten matrix references, conserved 8000 treatment shots. Numerical consistency only; no independent provider authentication.')\n\n\nif __name__=='__main__':main()\n"
}
}