Refusal codes#
A request cosmiq can’t stand behind is refused before it runs, with an error whose message
starts with its code: [BLK_SIZE] .... The table below lists every code, and is generated from
cosmiq’s own list of refusals each time this site is built, so it can’t drift from the code.
The kinds:
UNTESTED: the same code computes the whole request, but there’s no accuracy evidence.
FAILED: tested under rules written first, and it missed its rule; the table gives the measured value against the rule.
NOT_IMPLEMENTED: the code would drop, ignore or mangle part of the request.
INVALID: known to break, by measurement or by arithmetic.
LIMIT: memory or a hardware budget.
MISUSE: a wrong argument.
UNTESTED and FAILED codes marked “yes” can be bypassed with
cq.Emulator(..., unverified="your reason"): the result then reports verified=False, and no
accuracy claim applies to it (Unverified mode).
“no (v0.1)” marks the tensor space’s untested codes, which can’t be bypassed in v0.1. The other
kinds are never bypassed; their line names the fix.
The digital path’s, the library’s and QEC’s codes are listed in their guides too (digital, library, QEC).
Code |
Kind |
Bypassable |
Refuses |
Fix or note |
|---|---|---|---|---|
|
NOT_IMPLEMENTED |
no |
a register that isn’t a tested family at its tested spacing |
fix: space=’full’ (other registers would need a blockade-graph rule, which isn’t designed yet) |
|
NOT_IMPLEMENTED |
no |
a register whose nearest spacing is in 5.15-5.45 µm (but kings at 5.2) |
testing found its largest errors in this band, cause unknown |
|
UNTESTED |
yes |
a tested register shape at an untested size |
the tested sizes are listed in Claims and limits |
|
UNTESTED |
yes |
a register and program pair that wasn’t tested |
|
|
UNTESTED |
yes |
a case whose test wasn’t run (gradients on square 4x6) |
not run, so no evidence either way |
|
FAILED |
yes |
a case that failed its test (gradients on triangular 3x3) |
measured 0.0010022708198137997 against the rule 0.001; compared with the full space on the device’s 4 ns clock |
|
UNTESTED |
yes |
single precision outside its tested cases, or on the CPU |
|
|
UNTESTED |
yes |
a GPU run outside its tested cases |
|
|
UNTESTED |
yes |
anything but densities where densities alone were tested |
|
|
UNTESTED |
yes |
gradients of anything but densities |
|
|
UNTESTED |
yes |
gradients of a program outside the tested gradient layout |
|
|
UNTESTED |
yes |
gradient-layout values outside the tested ranges |
|
|
UNTESTED |
yes |
a dt other than 0.02 µs |
|
|
UNTESTED |
yes |
a device whose C6 isn’t cosmiq-ref-1’s |
|
|
UNTESTED |
yes |
readout errors on a GPU |
|
|
NOT_IMPLEMENTED |
no |
a program that isn’t one of the tested program shapes |
fix: space=’full’ (other programs would need rules nobody has designed or tested) |
|
NOT_IMPLEMENTED |
no |
more than one phase step, a step off 2 µs or above 0.3 rad, a step with gradients |
fix: space=’full’ |
|
NOT_IMPLEMENTED |
no |
a local detuning (feature programs) |
fix: space=’full’ (no cosmiq program matches a tested feature program) |
|
NOT_IMPLEMENTED |
no |
gradients with respect to the phase or local detuning (they’d be 0) |
fix: space=’full’ |
|
NOT_IMPLEMENTED |
no |
gradients with respect to the readout errors |
fix: detach the readout errors; kept refused until a test covers it |
|
NOT_IMPLEMENTED |
no |
complex64 with a gradient with respect to Ω |
fix: complex128 (precision=’double’) |
|
NOT_IMPLEMENTED |
no |
observables other than density, correlation, probabilities, projector |
fix: weight probabilities() yourself; kept refused until a test covers it |
|
NOT_IMPLEMENTED |
no |
samples-only mode |
|
|
NOT_IMPLEMENTED |
no |
method, backend, a gradient mode or tol= that blockade would ignore; max_memory= on a strict emulator |
fix: leave method and backend ‘auto’, gradient ‘auto’, ‘checkpoint’ or ‘none’, and tol None |
|
NOT_IMPLEMENTED |
no |
keep_state, initial= |
fix: ask for observables or shots, or use space=’full’ |
|
NOT_IMPLEMENTED |
no |
any noise but readout errors |
fix: NoiseModel.from_spec(spec, include=[‘spam’]) without spam.preparation_error, or noise=None |
|
NOT_IMPLEMENTED |
no |
Apple’s MPS device |
fix: device=’cpu’ or ‘cuda’ |
|
NOT_IMPLEMENTED |
no |
more than 63 atoms |
|
|
INVALID |
no |
a drive too strong for the blockade approximation (G/(Ω·w) below 10) |
fix: a lower Ω or Δ, or space=’full’; below κ, testing measured errors up to 0.44 |
|
INVALID |
no |
a phase step that would leak too much out of the blockade subspace |
fix: a smaller step, or space=’full’ |
|
INVALID |
no |
under unverified=, a dt that doesn’t divide 2 µs |
fix: a dt that divides 2 µs |
|
INVALID |
no |
a run whose frame series doesn’t converge |
fix: space=’full’ |
|
LIMIT |
no |
a bypassed run estimated above the memory budget |
fix: max_memory=, a smaller register or a bigger machine |
|
UNTESTED |
yes |
the density matrix above 12 atoms |
|
|
UNTESTED |
yes |
density-matrix gradients (or vjp) above 10 atoms |
|
|
UNTESTED |
yes |
the trajectory gradient above 6 atoms |
|
|
UNTESTED |
yes |
the trajectory gradient in single precision |
|
|
UNTESTED |
yes |
the density matrix or the trajectory gradient off the CPU |
fix: device=’cpu’ |
|
NOT_IMPLEMENTED |
no |
the density matrix in single precision |
fix: precision=’auto’ or ‘double’ |
|
NOT_IMPLEMENTED |
no |
the density matrix with triton, order 4, adjoint or checkpoint, keep_state |
|
|
NOT_IMPLEMENTED |
no |
order 4 with the trajectory gradient |
|
|
NOT_IMPLEMENTED |
no |
the trajectory gradient outside its method, backend and noise |
|
|
NOT_IMPLEMENTED |
no |
a trajectory gradient run that needs chunking |
|
|
NOT_IMPLEMENTED |
no |
a trajectory gradient run where a jump was due with no atom in r |
|
|
NOT_IMPLEMENTED |
no |
krylov gradients |
fix: method=’split’ |
|
NOT_IMPLEMENTED |
no |
noise=’hardware’ on krylov, dense or triton |
fix: method=’split’ (or ‘auto’) on backend ‘auto’, ‘torch-kron’ or ‘torch-ref’ |
|
NOT_IMPLEMENTED |
no |
gradients under noise=’hardware’ on the default simulator |
fix: one of those, or noise=’device’ |
|
NOT_IMPLEMENTED |
no |
keep_state or initial= with noise |
|
|
NOT_IMPLEMENTED |
no |
Apple’s MPS device |
fix: device=’cpu’ or ‘cuda’ |
|
INVALID |
no |
tol below the precision’s floor |
fix: a larger tol |
|
INVALID |
no |
krylov not converging |
fix: method=’split’ |
|
LIMIT |
no |
a run above the memory budget |
fix: raise max_memory=, take a smaller batch, or emulate fewer atoms |
|
LIMIT |
no |
more substeps per cell than the limit |
fix: a larger dt or tol |
|
LIMIT |
no |
CUDA asked for, none present |
fix: device=’cpu’, or install a CUDA build of torch on a machine with a GPU |
|
LIMIT |
no |
dense above 12 atoms |
fix: method=’split’ |
|
LIMIT |
no |
a very large probabilities() result |
fix: pass allow_large=True, or ask for density(), correlation() or projector(…) instead |
|
NOT_IMPLEMENTED |
no |
a register that isn’t a 4.8 µm chain, or a C6 that isn’t cosmiq-ref-1’s |
fix: space=’full’ |
|
UNTESTED |
no (v0.1) |
a chain length that wasn’t tested (8, 12 and 16 were) |
space=’tensor’ has no unverified= bypass in v0.1; the tested lengths are listed in Claims and limits |
|
NOT_IMPLEMENTED |
no |
a program that isn’t one of the tested program shapes at that length |
|
|
NOT_IMPLEMENTED |
no |
a local detuning, or φ ≠ 0 |
fix: space=’full’ |
|
NOT_IMPLEMENTED |
no |
shots, probabilities(), diagonal(), projector() |
fix: space=’full’ |
|
UNTESTED |
no (v0.1) |
gradients outside the tested cases, or of anything but densities |
space=’tensor’ has no unverified= bypass in v0.1 |
|
UNTESTED |
no (v0.1) |
a bond_dim other than the tested one (32 up to 12 atoms, 64 at 16) |
space=’tensor’ has no unverified= bypass in v0.1 |
|
UNTESTED |
no (v0.1) |
a dt other than 0.02 µs |
space=’tensor’ has no unverified= bypass in v0.1 |
|
NOT_IMPLEMENTED |
no |
any device but the CPU |
fix: device=’cpu’ |
|
NOT_IMPLEMENTED |
no |
precision=’single’ |
fix: precision=’auto’ or ‘double’ |
|
NOT_IMPLEMENTED |
no |
any noise, SPAM or readout; trajectories= |
fix: space=’full’ |
|
NOT_IMPLEMENTED |
no |
keep_state, initial=, samples_only, method=, backend=, tol=, max_memory=, a gradient mode but auto, checkpoint or none |
|
|
NOT_IMPLEMENTED |
no |
remote sessions, cq.remote.local(), the virtual QPU, PennyLane, vjp |
fix: run Emulator(space=’tensor’) here, or use space=’full’ |
|
INVALID |
no |
a time step whose Lanczos exponential doesn’t converge |
fix: space=’full’ |
|
INVALID |
no |
a run that discards too much weight in truncation (more than 1e-6 in all) |
fix: space=’full’ |
|
MISUSE |
no |
an unverified Emulator given to the PennyLane device |
|
|
MISUSE |
no |
an unverified Emulator given to cq.gradients.estimate |
|
|
LIMIT |
no |
a digital circuit or register of 17 or more qubits |
fix: a register of at most 16 atoms |
|
NOT_IMPLEMENTED |
no |
mid-circuit measurement, a second measurement, reset or control flow |
fix: measure each qubit once, after its last gate |
|
NOT_IMPLEMENTED |
no |
an instruction outside cz, r, rz, measure and barrier |
fix: transpile with cosmiq.qiskit.target(device, register) |
|
INVALID |
no |
a CZ out of range, a qubit outside the register, a duplicate operand |
fix: transpile with cosmiq.qiskit.target(device, register) |
|
NOT_IMPLEMENTED |
no |
a parameter expression that isn’t affine |
fix: write the angle as Σ aₖθₖ + b, or bind the parameters first |
|
NOT_IMPLEMENTED |
no |
a device with no digital profile, such as cosmiq-ref-1-future |
fix: device=’cosmiq-ref-1’ or ‘cosmiq-ref-1-ideal’ |
|
NOT_IMPLEMENTED |
no |
a remote digital job on an emu:* session |
fix: cq.remote.session(‘vqpu:cosmiq-ref-1’) or cq.remote.local() |
|
INVALID |
no |
a library graph whose edges or non-edges miss the 2.5 Ω / 0.5 Ω margins |
fix: a spacing where every edge has V >= 2.5 Ω and every non-edge V <= 0.5 Ω |
|
LIMIT |
no |
exact MIS sizes or set counts above 24 vertices |
fix: a graph of at most 24 vertices |
|
NOT_IMPLEMENTED |
no |
an IQP interaction outside the register’s CZ pairs |
fix: interactions on the register’s CZ pairs only |
|
NOT_IMPLEMENTED |
no |
a QEC code that isn’t built in or registered |
fix: code=’surface’ or ‘repetition’, or qec.register_code(name, factory) |
|
LIMIT |
no |
a built-in QEC code at d other than 3 or 5, or rounds other than d |
fix: d=3 or d=5, with rounds = d |
|
NOT_IMPLEMENTED |
no |
noise_from_device on a device missing a calibration key it maps |
fix: build qec.Noise(…) yourself |