Skip to content

Troubleshooting

TopologicalCompilationError on Rigetti / IQM

The circuit uses a qubit pair that is not coupled on the lattice. details.qubits and details.neighbors show which pair. Choose one of these fixes:

  • re-index the circuit along coupled qubits (rows of the grid are nearest-neighbour chains);
  • add "options": {"routing": {"method": "sabre"}};
  • run it on a trapped-ion backend.
ResourceLimitError: ... at most N simulated qubits fit

The dense state would not fit in the worker's free memory. In order of preference:

  • touch fewer qubits (only touched qubits are simulated);
  • use "precision": "complex64";
  • raise QPUTWIN_WORKER_MEM;
  • for noisy runs, let engine: "auto" choose trajectories instead of the density matrix.

details.max_feasible_qubits reflects the memory free on the host right now.

A noisy job is slow

Check result.noise.engine and telemetry.workload.simulated_qubits:

  • The density matrix costs \(4^n\), so prefer engine: "trajectory" beyond about 10 qubits (this is automatic under auto).
  • Trajectory cost is proportional to the trajectory count; lower noise.trajectories and accept exact_sampling: false.
BackendUnavailableError (503)

No worker replica accepted the connection. Check docker compose ps and curl localhost:8000/v1/backends (replica status). Workers may still be starting: /v1/backends fetches the device lazily once they come up.

QueueFullError (503)

More than QPUTWIN_ASYNC_MAX_QUEUED jobs are waiting. Back off, add worker replicas, or raise the limit.

JobNotFoundError when polling

The job expired (QPUTWIN_ASYNC_TTL_S, default 1 h), or, with API keys, it belongs to another client.

CalibrationProvenanceError (422)

The worker runs in strict provenance mode, and the job would use values tagged assumed. Load a published snapshot (Calibration data), override the listed parameters in options.noise, or disable the term that uses them.

Latency numbers vary between runs

Benchmarks are sensitive to host load. Check uptime and close heavy processes, keep OMP_NUM_THREADS=1, keep access logging off, warm up first, and report medians and percentiles, not single calls.

Statevectors differ between devices by a phase (QASM 2 rzz)

See OpenQASM support. Write phase-sensitive comparisons in OpenQASM 3 (stdgates.inc).

The orchestrator cannot write ./data

Set QPUTWIN_UID/QPUTWIN_GID in .env to the owner of the directory.