FAQ and troubleshooting#

My request was refused with a code. Is it wrong?#

A refusal for lack of evidence (an UNTESTED or FAILED code) means “not shown to be accurate”, not “wrong”. The message names the limit and, for the other kinds, the fix; every code is in Refusal codes. To run an UNTESTED or FAILED case anyway, for a study of your own, say so on the emulator: cq.Emulator(..., unverified="your reason"). The result then reports verified=False, and no accuracy claim applies to it (Unverified mode).

ConstraintError when I target a device#

The program breaks one of the device’s limits. The error names the parameter and prints a fix line with the numbers that would pass (Quickstart). To keep a trainable value inside a limit while training, use cq.bounded(..., mode="clamp") (Keeping a parameter inside the device’s limits).

The PennyLane, Qiskit or QEC extra won’t install on my Mac#

On an Intel Mac, PyTorch stops at 2.2, built against NumPy 1, and these extras need NumPy 2, so they install nothing there (Installation). On Apple silicon they install as usual.

Does cosmiq run on Windows?#

It has never been tested there, so nothing is claimed (Named limits).

Does cosmiq model a real quantum computer?#

No. cosmiq-ref-1 is a bundled reference device, and no claim is made about any real QPU. Accuracy figures compare cosmiq’s code with exact references and other simulators (Claims and limits).

Is a GPU run reproducible bit for bit?#

On the CPU, a resumed run continues bitwise identical to an uninterrupted one, on the same machine, thread count and versions, with the seeds set. On CUDA, nothing like that is claimed (The runtime).

How big can my register be?#

Each emulator has a tested size range; larger registers are refused by name (Named limits).

Does cosmiq show a quantum advantage?#

No such claim is made, for any method (Named limits).

Where do I report a bug or a security issue?#

Bugs: the repository’s issues. Security issues: privately, as Security says.