What is tested#

One row per claim, with the test behind it and its numbers as recorded, unrounded, next to their rule. Test paths are in cosmiq’s repository. Every test under tests/ runs on Linux before each change is merged; rows marked “run once” were run once, outside that suite, with pass rules written before they ran. The linked pages give the details; the measurements, with the machine, the versions and the date, are in the repository’s evidence/ folder.

Programs, devices and the docs#

Programs are checked against the device as you build them, and every example in these docs runs as written.

Claim

Test

Result

Details

A program is checked against a device’s limits; a value outside one raises ConstraintError, naming the parameter behind it

tests/test_check.py, tests/test_program.py, tests/test_fix_lines.py

passes at every merge

Quickstart

The quickstart runs as written, and its first example fits in 25 lines on the 4 ns grid

tests/test_quickstart.py

passes at every merge

Quickstart

Every tutorial and the README’s examples run as written

tests/test_tutorials.py (each in a fresh interpreter, warnings as errors, quick version); this site runs each tutorial in full at every build

passes at every merge and build

Tutorials

The emulator: the full space#

The full-space emulator’s gradients are exact, and its noise methods agree with exact references at the sizes tested.

Claim

Test

Result

Details

Exact gradients from a reversible adjoint whose memory doesn’t grow with the pulse length; above its certificate (1e-8 in complex128, 1e-4 in complex64) it recomputes by \(\sqrt{n_t}\) checkpointing, and the report says so

tests/emulator/test_adjoint.py

passes at every merge

Gradients

method="density_matrix" solves the cell model’s Lindblad equation: against a dense Lindblad solver at \(N \le 4\), tol=1e-11 gives \(\rho\) within 1e-10. Tested up to 12 atoms forward and 10 with a gradient, complex128, on the CPU

tests/emulator/test_density.py

passes at every merge

density_matrix

gradient="trajectory" (experimental) is unbiased within its standard error against the scheme’s exact expectation for one atom; its gradients are tested up to 6 atoms against method="density_matrix"’s, for T2, loss and both

tests/emulator/test_trajectory.py

passes at every merge

The trajectory gradient

Above the tested sizes, the memory estimate held against torch’s measured allocator peak (one thread, 2 cells, batch 1) at three cells, so DM_SIZE, DM_GRAD_SIZE and TRAJ_SIZE can be bypassed. It is not claimed as a bound for other sizes, batches or cell counts

tests/emulator/test_density.py, tests/emulator/test_trajectory.py (the largest cells opt in with COSMIQ_EXIT_M=1, set at every merge)

density \(N = 13\) forward: 6,442,618,144 bytes measured, 6,979,555,104 estimated; density \(N = 11\) with a gradient: 1,677,800,536 measured, 1,677,941,952 estimated; trajectory gradient \(N = 10\), \(K = 4{,}096\): 1,425,015,102 measured, 1,572,032,512 estimated

Unverified mode

The emulator: space="blockade"#

On its allowed cells, the blockade space agrees with the full space; elsewhere it’s refused.

Claim

Test

Result

Details

On its allowed cells, the blockade subspace agrees with the full space on the same 20 ns cells (exact at \(N \le 12\)). Rules: density and nearest-neighbour correlation within 1e-3, TVD within 1e-2, shots beyond the sampling SE within 1e-2, complex64 within 1e-4 of complex128

run once, before the space was built; the allowed cells are enforced by tests/emulator/test_blockade_api.py and tests/emulator/test_blockade_envelope.py

93 cells pass, 1 fails (the error estimate as a bound: so no error estimate is shown), 7 weren’t run (refused)

The evidence

The 20 ns step’s own error, against space="full" on the device’s 4 ns clock, at \(N \le 12\) on every allowed cell

73 programs, run once

density 3.604039731986697e-4, nearest-neighbour correlation 7.809280759994136e-5, TVD 2.0558870159661847e-3 (rules 1e-3, 1e-3, 1e-2). One \(3 \times 3\) triangular case missed at 1.0022708198137997e-3 and is refused

The 20 ns step

The same at \(N = 16\) (18 programs) and \(N = 20\) (one program)

run once, on the CPU

\(N = 16\): density 2.1106001409872122e-4, correlation 5.234678398454806e-5, TVD 1.4524851149723063e-3; \(N = 20\) (one kings program): density 2.6837698148257237e-6, correlation 1.334908216277759e-10, TVD 4.846753031658949e-5. Every other \(N\) and program: not measured

The 20 ns step

complex128 on CUDA reproduces the CPU at its cells; complex64 on CUDA stays near complex128 at its cells

run once, on one GPU

complex128: within 2.5979218776228663e-14 of the CPU’s stored numbers (rule 1e-8); complex64: within 3.985911299797529e-6 of complex128, drift at most 8.681856605778543e-6 (rules 1e-4)

The GPU validation

A bypassed call’s memory estimate is at least its measured peak RSS

14 cells, and 5 held-out cells, run once

all 14 hold: forward 1.94 to 9.79 times the peak, gradient 3.59 to 6.97 times; held-out: all 5 hold, at 4.53 to 10.20 times

Checked against the measured peak

The emulator: space="tensor"#

On 4.8 µm chains up to 16 atoms, the tensor space agrees with the full space; nothing larger is claimed.

Claim

Test

Result

Details

On its cells (4.8 µm chains: \(N = 8\) and 12 at \(\chi = 32\), \(N = 16\) at \(\chi = 64\)), the tensor space agrees with cosmiq’s full-space emulator; nothing beyond \(N = 16\) is claimed

run once; every TN_* refusal is tested where it’s raised: tests/emulator/test_tensor_api.py

\(N = 8\) (rule 1e-6): 1.4378858381736137e-09 or below. Against the full space (rule 1e-4): \(N = 12\) worst 1.7815916200092374e-06 (densities; correlations 2.0687627320936652e-06), \(N = 16\) worst 7.161967560675997e-07 (densities; correlations 1.6369877079425166e-06). Against the 4 ns clock (rule 1e-3): \(N = 8\) worst 0.00035695272168354, \(N = 12\) worst 0.0003037261527227275, \(N = 16\) worst 0.0003037291525843644

The evidence

Its gradients of \(L = \sum w_i \langle n_i \rangle\) with respect to the six knots agree with the full space’s

run once, on two programs (a sweep and a second program)

\(N = 8\) (rule 1e-6): 5.2472809151590805e-08 and 1.1354353377651671e-08; \(N = 12\) (rule 1e-3): 7.38792385155014e-08 and 1.484336730438185e-08; \(N = 16\) (rule 1e-3): 5.714325378787695e-07 and 1.288231992330191e-07

The evidence

The digital path and Qiskit#

Circuits on the digital path match Qiskit’s own simulators, with and without noise.

Claim

Test

Result

Details

Native circuits match Qiskit’s Statevector for every \(N\) from 1 to 16

tests/qiskit_tests/test_ideal.py

320/320; worst fidelity 0.99999999999999 (rule \(\ge 1 - 10^{-10}\))

What was tested

Standard-gate circuits transpile to Target-legal ops, equivalent with the layout

tests/qiskit_tests/test_target.py

720/720

What was tested

The primitives’ shapes are Qiskit’s; noise-free values match StatevectorEstimator

tests/qiskit_tests/test_ideal.py

30/30; worst |evs - StatevectorEstimator| 2.220446049250313e-16 (rule 1e-10)

What was tested

The sampler’s counts match Qiskit’s probabilities

tests/qiskit_tests/test_ideal.py

12/12 \(\mathrm{TVD} \le 0.01\), worst 0.004613468386647469; 20/20 basis states exact

What was tested

The noise matches a density matrix written from the channel definitions, and each \(\times 1.5\) control fails

tests/qiskit_tests/test_noise.py, run once

12/12, worst TVD 0.00609258301391892 (rule 0.01); the controls fail on 7, 6, 3 and 12 circuits

What was tested

Clifford circuits’ noise agrees with Stim’s

tests/qiskit_tests/test_noise.py, run once

152 comparisons, none beyond \(4\sigma\); worst \(2.589380058594636\sigma\)

What was tested

The noisy estimator is within 4 stds of the density-matrix reference

tests/qiskit_tests/test_noise.py, run once

10/10; worst 0.8949139832526929 stds; largest stds 0.0034541375765527477 (rule 0.005); the CZ \(\times 1.5\) control fails on 8

What was tested

The same seed gives identical counts whatever the chunking; another seed differs

tests/qiskit_tests/test_noise.py

10/10

What was tested

Remote digital jobs give the local primitives’ results, bitwise

tests/remote/test_digital.py

10/10 pubs bitwise equal across execute(job), the vQPU session on a simulated site, local() and the local SamplerV2

Remote

The algorithm library#

The library’s methods give valid answers and match exact references; no quantum benefit is claimed.

Claim

Test

Result

Details

postprocess turns any bitstring into a valid, maximal independent set

tests/library/test_mis.py

20/20 graphs, every one of \(10^4\) random bitstrings

The evidence

The exact MIS (brute force) is right

tests/library/test_mis.py

50/50 against networkx’s maximum clique of the complement

The evidence

Without noise, the MIS sweep beats a random control and an exact baseline

tests/library/test_mis_emulator.py

8 of 8 testable graphs each (2 untestable: \(p_0 = 1\)); \(p_\mathrm{emu}\) 0.949-0.981

The evidence

The reservoir’s features beat ridge on the raw window on NARMA2 (one seed). The polynomial baselines beat the reservoir, so no quantum benefit is claimed

tests/library/test_reservoir.py, on its second attempt (the first draw failed, and is on record)

test NMSE 0.11769537756622175 against 0.22886985194364656; degree-2 polynomials 0.031847004791233695, degree-3 0.027530105189449205

The evidence

IQP circuits and the fidelity kernel

tests/library/test_iqp.py

10/10 maps with no SWAPs; smallest eigenvalue 0.646695619117164, diagonal within 5.773159728050814e-15; probabilities within 4.996003610813204e-16 of Qiskit’s Statevector; sampled kernel’s largest off-diagonal \(z\) 2.39665070833417 (rule \(4\sigma\))

The evidence

QEC with atom loss#

The matching decoder is exact, and reading the loss signal makes it measurably better.

Claim

Test

Result

Details

The matching is exact

tests/qec/test_exits.py (COSMIQ_QEC_EXITS=1), run once

total matching weight equals the exhaustive (\(d = 3\)) or milp (\(d = 5\)) reference’s within 1e-9 relative on every shot of all 24 cells

The evidence

Loss-aware decoding beats loss-blind decoding, at \(p = 10^{-3}\)

tests/qec/test_exits.py (one-sided exact McNemar test at 99%), run once

8 of 8 graded cells pass

The evidence

Erasures up to the code’s distance decode right (code capacity)

tests/qec/test_exits.py, run once

every case decoded right: 613 cases at surface \(d = 3\), \(10^4\) sampled patterns at \(d = 5\), 61 and 2,101 cases on the repetition code

The evidence

The same seed gives identical detection events and decisions on the same Stim version, machine architecture and SIMD width; nothing across machines

tests/qec/test_experiment.py

passes

The evidence

Exports to Braket and Pulser#

On 12 small programs, the exports give cosmiq’s results on Braket’s and Pulser’s own simulators.

Claim

Test

Result

Details

On 12 programs (no noise, \(N \le 6\)), the Braket export run on Braket’s local AHS simulator gives cosmiq’s statistics

tests_upstream/test_conformance_braket.py

12/12; smallest \(p\) 0.02499035061307077 (rule \(p \ge 10^{-4}\))

The evidence

The same for the Pulser export on Pulser’s QuTiP emulator

tests_upstream/test_conformance_pulser.py

12/12; largest TVD 1.7463814183816377e-05 (rule 1e-3)

The evidence

Corrupted exports fail the same rules

both files above

the global detuning \(\times 1.02\): Braket 8/11, Pulser 11/11 (\(\ge 6\) required); the phase sign flipped: 2/2 each; the local pattern reversed: 5/5 each

The evidence

Runs, rehearsals and remote runs#

A run resumed on the CPU ends exactly where an uninterrupted one would, and a practice run’s totals match the virtual QPU’s.

Claim

Test

Result

Details

On the CPU, a resumed run continues bitwise identical to an uninterrupted one started with the same seeds (Python, NumPy, torch), on the same machine, thread count and versions

tests/runtime/test_steps_exits.py

two fresh 200-step runs and one stopped at step 99 and resumed, all bitwise equal; 2,000-step runs stopped (SIGINT at steps 963, 608 and 1108) and killed (SIGKILL after the commits at 699, 899 and 999, after a failed commit at 1099, and with a byte flipped in the newest checkpoint), every continued run bitwise equal

The evidence

Remote runs on emu:gpu: resume is bitwise on the CPU after a stop, a killed process, a corrupted checkpoint, or the loss of the whole box with a resume on a fresh one

run once, on GPU boxes

passes (graded twice from one run, after a fault in the first grading script was fixed)

The evidence

A site outage of up to 10 minutes loses no remote run

run once

passes at 45 s, 60 s and 600 s

The evidence

No remote run starts twice, and none is orphaned; a lost box is detected within 160 s

run once

50 of 50 (earlier attempts failed only on faults in the test harness, each recorded); a lost box detected in 124 s

The evidence

A practice run’s totals equal the virtual QPU pool’s stored totals for the same loop

run once, 15 Nov 2026, against a local copy of the site

18 jobs, 636 shots and \(\sum\) projected_seconds 354.0 both ways: a relative difference of 0.0 (bound 1e-9)

The evidence

The same practice run again (seed, snapshot, single-threaded order) gives a byte-identical job log on the CPU

tests/runtime/test_rehearse.py

two runs with seed 11; a third with seed 12 gives other lease seeds

The evidence

Sweeps: points on several boxes, the plan’s jobs at once, a 429, a rerun with the same key, a failing point and Ctrl+C

tests/runtime/test_sweep.py

pass, against simulated sites in the same process; not run on real boxes

The evidence