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

BLK_REGISTER

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)

BLK_BAND

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

BLK_SIZE

UNTESTED

yes

a tested register shape at an untested size

the tested sizes are listed in Claims and limits

BLK_CELL

UNTESTED

yes

a register and program pair that wasn’t tested

BLK_UNRUN

UNTESTED

yes

a case whose test wasn’t run (gradients on square 4x6)

not run, so no evidence either way

BLK_FAILED

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

BLK_C64

UNTESTED

yes

single precision outside its tested cases, or on the CPU

BLK_CUDA

UNTESTED

yes

a GPU run outside its tested cases

BLK_LEVEL

UNTESTED

yes

anything but densities where densities alone were tested

BLK_GRAD_OBS

UNTESTED

yes

gradients of anything but densities

BLK_GRAD_CLASS

UNTESTED

yes

gradients of a program outside the tested gradient layout

BLK_GRAD_KNOTS

UNTESTED

yes

gradient-layout values outside the tested ranges

BLK_DT

UNTESTED

yes

a dt other than 0.02 µs

BLK_C6

UNTESTED

yes

a device whose C6 isn’t cosmiq-ref-1’s

BLK_READOUT_CUDA

UNTESTED

yes

readout errors on a GPU

BLK_PROGRAM

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)

BLK_STEP

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’

BLK_FEATURES

NOT_IMPLEMENTED

no

a local detuning (feature programs)

fix: space=’full’ (no cosmiq program matches a tested feature program)

BLK_GRAD_PHASE

NOT_IMPLEMENTED

no

gradients with respect to the phase or local detuning (they’d be 0)

fix: space=’full’

BLK_GRAD_READOUT

NOT_IMPLEMENTED

no

gradients with respect to the readout errors

fix: detach the readout errors; kept refused until a test covers it

BLK_C64_OMEGA_GRAD

NOT_IMPLEMENTED

no

complex64 with a gradient with respect to Ω

fix: complex128 (precision=’double’)

BLK_OBSERVABLE

NOT_IMPLEMENTED

no

observables other than density, correlation, probabilities, projector

fix: weight probabilities() yourself; kept refused until a test covers it

BLK_SAMPLES_ONLY

NOT_IMPLEMENTED

no

samples-only mode

BLK_OPTIONS

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

BLK_STATE

NOT_IMPLEMENTED

no

keep_state, initial=

fix: ask for observables or shots, or use space=’full’

BLK_NOISE

NOT_IMPLEMENTED

no

any noise but readout errors

fix: NoiseModel.from_spec(spec, include=[‘spam’]) without spam.preparation_error, or noise=None

BLK_MPS

NOT_IMPLEMENTED

no

Apple’s MPS device

fix: device=’cpu’ or ‘cuda’

BLK_ATOMS_63

NOT_IMPLEMENTED

no

more than 63 atoms

BLK_REGIME

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

BLK_JUMP

INVALID

no

a phase step that would leak too much out of the blockade subspace

fix: a smaller step, or space=’full’

BLK_DT_GRID

INVALID

no

under unverified=, a dt that doesn’t divide 2 µs

fix: a dt that divides 2 µs

BLK_FRAME

INVALID

no

a run whose frame series doesn’t converge

fix: space=’full’

BLK_MEMORY

LIMIT

no

a bypassed run estimated above the memory budget

fix: max_memory=, a smaller register or a bigger machine

DM_SIZE

UNTESTED

yes

the density matrix above 12 atoms

DM_GRAD_SIZE

UNTESTED

yes

density-matrix gradients (or vjp) above 10 atoms

TRAJ_SIZE

UNTESTED

yes

the trajectory gradient above 6 atoms

TRAJ_C64

UNTESTED

yes

the trajectory gradient in single precision

ENG_CPU

UNTESTED

yes

the density matrix or the trajectory gradient off the CPU

fix: device=’cpu’

DM_C64

NOT_IMPLEMENTED

no

the density matrix in single precision

fix: precision=’auto’ or ‘double’

DM_OPTIONS

NOT_IMPLEMENTED

no

the density matrix with triton, order 4, adjoint or checkpoint, keep_state

TRAJ_ORDER4

NOT_IMPLEMENTED

no

order 4 with the trajectory gradient

TRAJ_SCOPE

NOT_IMPLEMENTED

no

the trajectory gradient outside its method, backend and noise

TRAJ_CHUNK

NOT_IMPLEMENTED

no

a trajectory gradient run that needs chunking

TRAJ_DEFERRAL

NOT_IMPLEMENTED

no

a trajectory gradient run where a jump was due with no atom in r

ENG_KRYLOV_GRAD

NOT_IMPLEMENTED

no

krylov gradients

fix: method=’split’

ENG_OPEN

NOT_IMPLEMENTED

no

noise=’hardware’ on krylov, dense or triton

fix: method=’split’ (or ‘auto’) on backend ‘auto’, ‘torch-kron’ or ‘torch-ref’

NOISE_HW_GRAD

NOT_IMPLEMENTED

no

gradients under noise=’hardware’ on the default simulator

fix: one of those, or noise=’device’

API_STATE_NOISE

NOT_IMPLEMENTED

no

keep_state or initial= with noise

API_MPS

NOT_IMPLEMENTED

no

Apple’s MPS device

fix: device=’cpu’ or ‘cuda’

ENG_TOL_FLOOR

INVALID

no

tol below the precision’s floor

fix: a larger tol

ENG_CONVERGE

INVALID

no

krylov not converging

fix: method=’split’

ENG_MEMORY

LIMIT

no

a run above the memory budget

fix: raise max_memory=, take a smaller batch, or emulate fewer atoms

ENG_NSUB

LIMIT

no

more substeps per cell than the limit

fix: a larger dt or tol

API_NO_CUDA

LIMIT

no

CUDA asked for, none present

fix: device=’cpu’, or install a CUDA build of torch on a machine with a GPU

DENSE_SIZE

LIMIT

no

dense above 12 atoms

fix: method=’split’

PROBS_LARGE

LIMIT

no

a very large probabilities() result

fix: pass allow_large=True, or ask for density(), correlation() or projector(…) instead

TN_REGISTER

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’

TN_SIZE

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

TN_PROGRAM

NOT_IMPLEMENTED

no

a program that isn’t one of the tested program shapes at that length

TN_DRIVE

NOT_IMPLEMENTED

no

a local detuning, or φ ≠ 0

fix: space=’full’

TN_LEVEL

NOT_IMPLEMENTED

no

shots, probabilities(), diagonal(), projector()

fix: space=’full’

TN_GRAD

UNTESTED

no (v0.1)

gradients outside the tested cases, or of anything but densities

space=’tensor’ has no unverified= bypass in v0.1

TN_BOND

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

TN_DT

UNTESTED

no (v0.1)

a dt other than 0.02 µs

space=’tensor’ has no unverified= bypass in v0.1

TN_DEVICE

NOT_IMPLEMENTED

no

any device but the CPU

fix: device=’cpu’

TN_PRECISION

NOT_IMPLEMENTED

no

precision=’single’

fix: precision=’auto’ or ‘double’

TN_NOISE

NOT_IMPLEMENTED

no

any noise, SPAM or readout; trajectories=

fix: space=’full’

TN_OPTIONS

NOT_IMPLEMENTED

no

keep_state, initial=, samples_only, method=, backend=, tol=, max_memory=, a gradient mode but auto, checkpoint or none

TN_PATH

NOT_IMPLEMENTED

no

remote sessions, cq.remote.local(), the virtual QPU, PennyLane, vjp

fix: run Emulator(space=’tensor’) here, or use space=’full’

TN_LANCZOS

INVALID

no

a time step whose Lanczos exponential doesn’t converge

fix: space=’full’

TN_TRUNCATION

INVALID

no

a run that discards too much weight in truncation (more than 1e-6 in all)

fix: space=’full’

PL_UNVERIFIED

MISUSE

no

an unverified Emulator given to the PennyLane device

GE_UNVERIFIED

MISUSE

no

an unverified Emulator given to cq.gradients.estimate

DIGITAL_SIZE

LIMIT

no

a digital circuit or register of 17 or more qubits

fix: a register of at most 16 atoms

DIGITAL_MIDCIRCUIT

NOT_IMPLEMENTED

no

mid-circuit measurement, a second measurement, reset or control flow

fix: measure each qubit once, after its last gate

DIGITAL_GATE

NOT_IMPLEMENTED

no

an instruction outside cz, r, rz, measure and barrier

fix: transpile with cosmiq.qiskit.target(device, register)

DIGITAL_RANGE

INVALID

no

a CZ out of range, a qubit outside the register, a duplicate operand

fix: transpile with cosmiq.qiskit.target(device, register)

DIGITAL_PARAM_EXPR

NOT_IMPLEMENTED

no

a parameter expression that isn’t affine

fix: write the angle as Σ aₖθₖ + b, or bind the parameters first

DIGITAL_DEVICE

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’

DIGITAL_TARGET

NOT_IMPLEMENTED

no

a remote digital job on an emu:* session

fix: cq.remote.session(‘vqpu:cosmiq-ref-1’) or cq.remote.local()

LIB_MARGIN

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 Ω

LIB_SIZE

LIMIT

no

exact MIS sizes or set counts above 24 vertices

fix: a graph of at most 24 vertices

LIB_CZ_GRAPH

NOT_IMPLEMENTED

no

an IQP interaction outside the register’s CZ pairs

fix: interactions on the register’s CZ pairs only

QEC_CODE

NOT_IMPLEMENTED

no

a QEC code that isn’t built in or registered

fix: code=’surface’ or ‘repetition’, or qec.register_code(name, factory)

QEC_DISTANCE

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

QEC_CALIBRATION

NOT_IMPLEMENTED

no

noise_from_device on a device missing a calibration key it maps

fix: build qec.Noise(…) yourself