Documentation
QRosetta
QRosetta takes one quantum circuit and runs it on many different quantum simulators. It then compares the results and shows where the simulators agree and where they differ.
Overview
You provide one circuit, written in OpenQASM 2.0. QRosetta sends that circuit to a set
of simulator backends: Qiskit (via Aer), Cirq, qsim, qibo, PennyLane (lightning and
default.qubit), Qulacs, QuEST, quimb, myQLM, PyQuil, Qrisp, cuQuantum and TorchQuantum.
GET /runners lists the ones the server has enabled. Several runners parse
the QASM with pytket's parser. The Qiskit runner is one of them: it parses with
pytket and converts the result with tk_to_qiskit. The cuQuantum runner,
also built on Qiskit Aer, parses with Qiskit's own
QuantumCircuit.from_qasm_str, so the two can read the same QASM
differently; the Qiskit result's preprocessing_applied records the pytket parse. Every backend receives the circuit in the
same request format and returns its result in the same response format, so the results
can be compared directly.
QRosetta then compares the backends pairwise. For each pair, it checks whether their outputs agree and, if they don't, whether a known cause explains the difference. See Agreement classification for how that works.
QRosetta compares outputs against each other; it has no independent way to check whether any of them is mathematically correct. When two backends disagree, the report does not say which one is wrong: check the circuit against an independent reference, such as an exact simulation you write yourself. Known backend issues lists the disagreements testers have traced to a specific backend.
Quickstart: your first run
On a local install started with ./qrosetta start (or scripts/safe_boot.sh, which builds the images and then runs it), the page is at http://localhost:8080, reachable from this machine only; QROSETTA_HTTP_BIND (in .env or the environment, default 127.0.0.1:8080) sets the address and port nginx is published on, for example 0.0.0.0:8080 for every interface. Publish it beyond this machine only on a trusted network: in local mode any client may skip the circuit-size, gate-count and experiment-size limits.
The page opens with a three-qubit GHZ circuit in the editor, Statevector ticked and every backend the server offers selected.
- Press Run Editor Code, at the bottom of the left column, where Run, Mode, Run Name and the settings chips always stay in view. The button label says what will run, for example "Run Editor Code · Statevector · 14 backends", or "40 runs on 14 backends" in multi-run mode. While the run is in progress, the results area shows the table the result will fill, with each backend's state in its Status column.
- Read the Summary tab. Its first line says how many backends returned a result; the next line names any backend that differs from the others, for example "Qrisp differs from all 13 other backends", and says whether the rest agree with each other. A GHZ circuit should read "Every comparable pair of backends agrees". The Backends table gives one row per backend: its status, how many others it differs from, its bit order, precision, time and peak memory. Below it, Evidence lists the pairs grouped by verdict.
- For a measured run, choose Sampler bias, 16 qubits in the Examples group of the Quantum Algorithms menu and press Load. This ticks Measured. Open the Seed chip above the run button and set a Sampling seed (for example 42) so a rerun draws the same shots, then press Run Editor Code. Expect the full-distribution test to call most pairs inconclusive (16 qubits have 65,536 outcomes, far more than 8,200 shots cover; the Summary gives the shots the test would need) and the single-bit marginal test to name Qrisp, whose sampler is biased on this circuit (see Known backend issues).
- Open the other tabs when you need them: Agreement (a heatmap of every pair, the evidence per pair, and the raw matrices), Performance (times and memory), Circuits (what each backend executed), Exports (figures and tables you set up, the RO-Crate and the report files).
Inputs are checked before a run is submitted. When something blocks the run (a shot count, timeout, seed or threshold out of range, a Run Name with an invisible character, too many circuits for the server), the run is not sent and a red Not submitted box above the Run button lists every problem; the field concerned is outlined in red inside its chip. The box is checked again whenever the workspace changes, so it lists only what still blocks the run. Requests the server rejects are shown with the server's message.
Stop waiting, beside the elapsed time of a run in progress, stops the page from waiting; the job keeps running on the server. The results area then says Stopped waiting, gives the job ID and has a Show results button that waits for it again. This browser records every job it submitted: when the page is opened again (after a reload, Back and Forward, or in a new tab), Earlier runs from this browser above the results lists the jobs whose results were not shown, and finished jobs whose results the server still keeps (its retention time after they finish), each with Show results and Dismiss. A job the server no longer has (it answers 404 for the job, for example after a restart) is dropped from the list when the list is shown. The list follows jobs started or dismissed in another tab. Logging out forgets the jobs submitted while signed in and clears their results from the screen.
When the server stops answering while the page waits for a job (the API is restarting, or the proxy in front of it reports it unreachable), the page says it is waiting for the server and checks again after 3, 6, 12 and 24 seconds, then every 30 seconds, for up to 5 minutes. A restart loses every job in progress: when the server answers again without the job, the page says so and the run has to be submitted again. After 5 minutes without an answer the page stops waiting; the job stays in this browser's list, so reloading the page once the server is back offers it again.
The page opens any job by its ID from a link of the form /#job=<job ID>,
which the qrosetta command prints after run, wait
and selftest: it waits for the job as Show results does and shows its results,
without adding it to this browser's list or saving it to the account. When the server no
longer has the job, the results area says so.
While a run is in progress the Status column shows each backend's state: QUEUED (not
started yet; no time is shown), SENT, then DONE, ERROR, TIMEOUT or OFFLINE with the
seconds it took. While the server compares the results of the circuit (the job's
phase is analysing), the progress line says analysing
results and a playlist's running circuit reads ANALYSING; for measured runs with
many outcomes this can take tens of seconds.
Each browser tab keeps its own editor circuit, ticked modes (Statevector, Measured) and Run Name across reloads; a new tab starts from the last ones used. The playlist, the backend choice and the export preset are shared by all tabs. Other settings (preprocessing, Bypass API Safety Limits, timeout, thresholds, seed) start from their defaults when the page loads. On a screen narrower than 1024 pixels (phones and tablets) the workspace, the Run footer and the results follow each other in one scrolling column. A table wider than the results panel scrolls sideways, with a shadow at the edge that has more columns.
Circuit sources
Each panel on the left has one job: Generate Circuits chooses a ready-made circuit, the Editor holds the circuit you are working on, and the Playlist holds circuits to run together.
- Generate Circuits. The Quantum Algorithms menu holds every ready-made circuit in four groups: the generated algorithms (GHZ, Bell, QFT, Bernstein–Vazirani, Grover, VQE ansatz, random, bit-order probe), bundled Examples (
GET /examples), MQT Bench algorithms and QASMBench circuits. Type in it to search all four. For an algorithm or an MQT Bench algorithm, Qubits sets the size (an MQT Bench size moves to the nearest one the suite has); examples and QASMBench circuits have a fixed size. The line under the menu describes the selection; for an example it names the mode it is meant for. Load puts the selection in the editor (asking first when that replaces your edits; loading an example ticks its mode); + Add adds it to the playlist. - Editor. Paste or type OpenQASM 2.0; Import QASM reads a file into it and Export QASM saves it; + Add to Playlist adds the editor's circuit to the playlist under the name above the editor.
- Playlist. Quick Load fills it with a ready-made set (one of each algorithm, a GHZ scaling series, or the largest statevector circuits; the sets come from
GET /quickload); Auto-Gen adds circuits of chosen algorithms at random qubit counts, up to the qubit limit of the ticked modes (the statevector limit while Statevector is ticked) and each algorithm's own maximum, and says when it lowered a count; Clear asks before emptying the playlist; Bench opens a list of MQT Bench or QASMBench circuits beside the button, with a name filter and a qubit cap, where you tick circuits and add them, or add every circuit the list shows (with no filter and no cap, the whole suite). Escape or a click elsewhere closes it.
In the run section at the bottom of the left column, Run switches between Editor code and Playlist; a warning appears there when a circuit has more qubits than a ticked mode allows, and when a measured circuit has more than 22 qubits, where several backends are likely to reach the timeout (at 24 qubits about half of them did not finish within 300 s). Loading a circuit into the editor selects the editor; adding to the playlist selects the playlist. The playlist can be exported to and imported from a JSON file.
Run modes
| Mode | What each backend returns | How QRosetta compares |
|---|---|---|
| Statevector | The full output state amplitudes (no sampling). | Fidelity and global phase offset arg⟨a|b⟩ between normalised state pairs. No seed is used. |
| Measured | A histogram of measurement outcomes over a chosen number of shots. | Jensen–Shannon divergence (in nats) and Hellinger distance between the count distributions, each normalised by its observed total, plus a shot-noise statistical test. |
Before a run starts, the API rejects with HTTP 400, naming the line: text that does not
start with OPENQASM 2.0; (the short form OPENQASM 2; included);
a character outside ASCII outside comments (with its column and Unicode name, such as a
non-breaking space) or a control character other than tab and line break, such as a
vertical tab; a semicolon with no statement before it; a name declared twice among
registers, gates and opaque gates, which share one set of names (with
include "qelib1.inc"; the qelib1 gates are in that set too, so
qreg x[1]; or creg h[1]; is rejected); an index outside
its register; an operand that is not a declared register, or a classical register given
to a gate; a call of a gate that neither the circuit nor an included
qelib1.inc defines (gate names are case-sensitive: H and
cnot are not qelib1 gates); a call with the wrong number of parameters or
qubits, such as cx q[0]; or rx q[0];; a call that names one
qubit twice, such as cx q[0],q[0]; or cx q,q[0];; a broadcast
over registers of different sizes, such as cx a,b; with a[2]
and b[3]; a measure whose two sides differ in size, such as
measure a[0] -> c; with c[2]; a register name that does
not start with a lowercase letter, such as qreg Q[1]; (OpenQASM 2.0
identifiers start with a lowercase letter); a gate or register used before its
declaration; a name in a parameter inside a gate definition that is not one of that
gate's parameters, such as gate g a { rz(t) a; }; a
/* ... */ comment, which OpenQASM 2.0 does not have (write
// comments); and a top-level call that reaches an opaque
gate, directly or through gate definitions. An opaque gate has no definition, so no
simulator can apply it; declare the gate with gate and a body instead. An
opaque declaration, or a definition that uses one, is accepted while no
top-level call reaches it (the pytket round-trip drops it). Spaces between a register
and its index (q [0], q[ 0 ]) are legal; with SDK
preprocessing on the API removes them before the pytket round-trip, which does not
accept them, and lists that as an API: entry. Gate parameters may have any
name, including lambda, as in qelib1.inc.
In statevector mode the API removes measurements at the end of the circuit before
dispatch and lists that as an API: entry in
preprocessing_applied. A circuit with a measurement followed by further
operations, a reset, or an if is rejected with HTTP 400 in
statevector mode, because it has no single output statevector; run it in measured mode.
A compile-only run accepts such a circuit and records each requested compile as
skipped.
In measured mode these operations are passed to every backend; adapters that cannot
simulate them return an error for that backend. Qiskit and cuQuantum (Aer) run
mid-circuit measurement, reset and if; Qrisp runs mid-circuit
measurement and if; Cirq and qsim run mid-circuit measurement; the other
backends refuse all three.
Statevector runs are limited to 18 qubits and measured runs to 24 (the server reports
its limits at GET /config), because a full
statevector grows as 2n. A compile-only run builds no statevector and has
its own limit of 24 qubits. Each backend's run ends with one of four dispatch
statuses: ok, error (the backend rejected the circuit or
crashed), timeout (the run exceeded the timeout, or never left the runner's queue; see
Resources, queueing and timeouts) or offline
(the runner could not be reached). A failed run's timing and memory fields are
null, not 0. Any pair involving a failed run is reported as
not comparable.
Each result can also report device (CPU or GPU),
simulator_backend (the library that executed the circuit) and
simulation_method. The Summary's per-backend details and the
Performance tables show them as tags. Qiskit runs on qiskit-aer's
AerSimulator with method="statevector". The cuQuantum runner is
qiskit-aer-gpu 0.15.1 with cuStateVec enabled, running on an NVIDIA GPU; its results
also carry gpu_name and custatevec_enabled. On a server without
an NVIDIA GPU it is listed as unavailable in the Backends chip's list, with the reason the server
gives, and it is not dispatched; it never falls back to the CPU. Its kernels run on the
GPU, while its host-side work (parsing, launching kernels, copying results back,
sampling) runs under the same CPU quota as the other runners (see
Resources, queueing and timeouts). A time comparison between
cuQuantum and a CPU backend therefore compares different hardware.
Each backend reports the amplitude precision it simulated in. Most use
complex128; qsim, Qrisp, TorchQuantum and Cirq's measured path use
complex64, and cuQuantum reports the precision its simulator was configured
with. The report tabs show a precision badge per backend; a complex64 backend's fidelity
against a complex128 one carries single-precision rounding error.
Circuit preprocessing
Changes to the circuit happen in two places, and both are recorded in each backend's
preprocessing_applied list.
- API-side (entries starting
API:, tagged API in the UI). The API prepares one circuit per dispatch group. With Apply SDK Preprocessing on:- Statevector mode: terminal measurements are removed, several quantum registers are merged into one in declaration order, and the circuit is parsed and re-emitted with pytket with barriers removed.
- Measured mode, both groups (
measured_native, backends that sample with their own sampler, andmeasured_sampled, backends that sample a statevector): register merge, then the pytket round-trip with barriers removed.
gatedefinitions, rewrites gates into pytket's QASM gate set, with angles as multiples of π, and expands register broadcasts. pytket 1.33 writesuasu3andpasu1andu0asu3(0,0,0); it decomposescpinto threeu3and twocx,cuinto fiveu3and twocx, andrccx,rc3xandc3sqrtxintou3andcx; it keepscu1,crz,crx,cry,cu3,ch,cy,csx,rxx,rzz,ccx,cswap,c3xandc4xas written. tket sets a parameter within 1e-11 half-turns of a multiple of π/4 to that multiple; when that happens theAPI:entries list each moved parameter (see Known backend issues). In measured mode the native group also receives a measure-all when the circuit has no measurements; this happens with preprocessing off too. With preprocessing off there is no register merge and no pytket round-trip in any group; statevector mode still removes terminal measurements. The report'sdispatched_circuitslists which runners were in which group. - Runner-side. Each backend's own passes (gate rebasing, barrier
stripping, the backend's default compilation pass at every optimization level).
Passes the adapter needs regardless of the setting say so in their text. The qibo and
quimb parsers lack some
qelib1.incgates (ch,cswap,c3x,c4x,rccx,rc3x,c3sqrtx,u0for qibo;u,p,ch,csx,cp,cu,rccx,c3x,c3sqrtx,rc3x,c4xfor quimb); with preprocessing on, their adapters insert Qiskit 2.5.2'sqelib1.incdefinitions of the ones a circuit uses (for quimb with the builtinUwritten asu3, whichqelib1.incdefines asU) and list them. With preprocessing off those gates are rejected.
The RO-Crate stores the original circuit (circuit.qasm), the circuit the API
dispatched to each runner (dispatched_circuits/<runner>.qasm, one file per
runner; <circuit>/<runner>.qasm in a batch crate) and the circuit each
backend executed (transpiled_circuits/). A crate of a playlist, or an experiment
bundle, that includes bundled MQT Bench or QASMBench circuits also holds that suite's
licence under licenses/.
Run options
These controls sit in the settings chips above the run button (Backends, Execution, SDK Preprocessing, Compile-only services, Agreement Thresholds, Seed); each chip shows its current value, is highlighted when that differs from the default, and opens its controls beside it. They apply to single runs, runs of the playlist and
experiments alike. Each has an API field of the same meaning, listed in the Swagger UI
at /docs.
- Timing repeats (
timing_repeats, 1–10, default 1). All repetitions run in one process and give one result per backend; to compare separate runs of a backend with each other, use Multi-run mode (below). The number of timed runs per backend after the one discarded warm-up run. With more than one, each result carriescompilation_time_samplesandsimulation_time_samples, their mean, median and standard deviation,timing_samples(the number of timed runs) andtiming_statistic: "median"; the Performance tab shows the median ± the sample standard deviation with n. All repeats and the warm-up share one timeout. - Exclusive timing run (
exclusive, default off). Every backend runs in its own phase, one after another, and the job runs only while no other run is in flight on this server: it waits for running jobs, and jobs submitted meanwhile wait for it. Results recordexclusiveandexclusive_wait_sec; every result recordsgate_wait_sec, so a job held back by another user's exclusive run shows how long it waited, and its runners show as queued meanwhile. When an exclusive run ends, the jobs it held start together and overlap each other (server_overlapping_runs). Whenrunner_phasesgives every backend a different phase, that order is kept; otherwise backends run in id order. Reports record the phases used aseffective_runner_phases. It cannot hold back other programs on the host, and in Kubernetes mode it covers only this server's runner Jobs. Each client may have one unfinished exclusive job (another returns 429). An exclusive circuit that cannot start within the server's wait cap (exclusive.max_wait_secinGET /config, default 600 s) fails with that reason;GET /configalso shows whether an exclusive run is running or waiting. Operators can turn the option off (QROSETTA_EXCLUSIVE_ENABLED=false). - Shots (
n_shots, measured mode, default 8200): enough for the power model to reach 0.8 on circuits with up to 16 outcomes and 14 backends (8199 needed). Circuits with more outcomes need more; the Summary recommends a count when it can. - Multi-run mode (self-comparison), under Backends. Runs one backend several times, each in its own process,
at the same or different optimization levels, and compares the runs with each other
like separate backends. In the API, a list in
runner_configruns that backend once per element, for example{"qiskit": [0, 0, 1]}. Each run gets the key<runner>~opt<L>~run<N>, and the key is part of its seed derivation. A request may ask for at most 16 runs of one backend and 48 runs in total; more is rejected with HTTP 422. In the Backends chip each count must be a whole number; while a count is not, or the counts exceed these limits, the chip and the Run footer say which, and the run button is disabled. - Custom ordering (phases) (
runner_phases), under Backends. Assigns each backend a phase number: backends with the same number run at the same time, and phases run in ascending order. In measured mode the order covers both groups of backends (sampled statevector and native sampling): phase 2 of either group starts only after phase 1 of both has finished. Without phases every backend runs at once. Phases change which backends compete for the host at the same moment, not the per-runner CPU quota. - Bypass API Safety Limits (
bypass_limits). Skips the playlist length limit and, for an experiment, the limit on circuits × preprocessing settings; on a local server it also skips the QASM size limit and the statement-count limit. The request-body limit, the qubit limits, the expanded-gate and nested-gate-call limits (which protect the runners' memory), the circuit preparation limits, the syntax checks and the measurement checks still apply, and outside local mode so do the QASM size and statement-count limits. On a local server anyone may set it. On any other server only a signed-in account may (bypass_limits_requires_accountinGET /config): a request that sets it without a valid sign-in is refused with HTTP 401, and while you are signed out the page disables the option and says so. The report records it. - Apply SDK Preprocessing: on or off (
apply_preprocessing), or both, which runs an experiment (Several circuits, several runs, and experiments); see Circuit preprocessing.
Presets worth knowing
The Bit-order probe preset (at least 2 qubits) applies x
to qubit 0 and a different ry angle to every other qubit, so the output is
not symmetric under any qubit permutation. It shows each backend's declared bit order
directly: an lsb backend and an msb backend agree on it only
after the bit reversal their declarations imply.
Input limits
- At most 18 qubits in statevector mode, 24 in measured mode and 24 in a compile-only
run, counted over every
qregdeclaration. - The QASM text may hold at most 1,000,000 characters (HTTP 413 above that). This is
separate from the request-body limit of 1,048,576 bytes (1 MiB,
limits.max_request_bytes) that applies to every request, includingPOST /export. The limit counts the JSON as sent, where every line break and quote in a circuit takes two bytes, and a playlist sends every circuit from the editor or from a file in one request. The page checks both limits before it sends a run and says which circuit or request is too large; split a large playlist and run the parts one after another. - Run, circuit, task and author names hold at most 200 characters
(
limits.max_label_length) without control characters, invisible formatting characters or line separators; the page removes those characters and shortens longer names before it sends them. - At most 10,000 operation statements (gates,
measure,reset,barrier,if;max_qasm_gatesinGET /config), at top level and inside gate definitions; a definition with an empty body counts as one. The header, theincludeline and register declarations are not counted. - At most 1,024 classical bits over all
cregdeclarations (limits.max_classical_bits). Every register holds at least one qubit or bit, a gate parameter has at most 1,000 characters, and OpenQASM keywords (gate,measure,pi,sin, ...) cannot name a register or gate. A//comment that holds/*needs a*/after it on the same line. - At most 200,000 gate applications after expanding user gate definitions and register
broadcasts (
limits.max_expanded_gates), so a short circuit of nested gate definitions cannot expand to millions of gates, and at most 4,096 applications of user-defined gates made from inside gate definitions in that expansion (limits.max_nested_gate_calls; top-level calls are not counted): several parsers keep a copy of a nested definition for each application. Eleven levels of definitions that each call the one below twice (4,094 nested applications) peak at about 710 MiB in the PennyLane runners and twelve levels at about 1,090 MiB, while 8,192 top-level calls of one definition take about 340 MiB. The bundled benchmark circuits are exempt. - With
apply_preprocessingon, the API prepares each circuit (the pytket round-trip) in a separate process limited to 1,024 MiB and 120 s (limits.prep_max_mibandlimits.prep_timeout_sec; server settingsQROSETTA_PREP_MAX_MIBandQROSETTA_PREP_TIMEOUT_SEC). A preparation that exceeds either is stopped, and the run fails with a message naming the limit and its value; withapply_preprocessing=falsethe circuit text is dispatched without the round-trip. How much memory a preparation takes cannot be told from the circuit text, so only circuits whose preparation has been measured are refused before they run. Among the bundled circuits, the MQT Bench Grover circuits (grover-noancillaandgrover-v-chain) from 15 qubits exceed the memory limit: their nested multi-controlled gates expand in pytket to about 1.5 GiB (grover-noancilla) and 1.2 GiB (grover-v-chain) at 15 qubits, and more than 2 GiB from 16 and 17 qubits; every other bundled circuit stays under 400 MiB.GET /configlists the bundled circuits over the server's limit asbundled_over_prep_limit. A run that includes one with preprocessing on is refused with HTTP 400 naming the circuit, and the page says so before sending it. Written versions of these circuits are refused earlier, by the expanded-gate and nested-gate-call limits. - A playlist run holds at most 400 circuits (
limits.max_batch_tasks), enough for both bundled suites (269 MQT Bench and 55 QASMBench circuits) in one playlist; a longer one is refused with HTTP 400, and the page says so before sending it. Split it and run the parts one after another. - A custom
gatedefinition with a name pytket's QASM parser treats specially is rejected with HTTP 400, and the message names the gate. pytket turns some names (sleep,order2…order20,group2…group20) into barriers and replaces others with its own built-in operation (for examplefsim,yyphase,iswap,eswap,phasediswap,xxphase3,tk2) whatever the definition says. Every pytket-parsed backend would then run a different circuit from the one written and agree with the others on it. Names that the Qiskit, myQLM, Qibo or quimb parsers treat as their own built-in gates are rejected the same way. The check applies whichever backends are selected, so that every backend receives the same circuit, and the message gives the line of the definition. Rename the gate.
Quirk visualizer
The editor's Visualize button converts the circuit in the editor to Quirk's JSON format
(POST /visualize/quirk) and opens it in Craig Gidney's Quirk, an external
web page, in a frame that covers the whole window, with Open in Quirk
(the same page in a new tab) and Close (or Escape) above it. While the
keyboard is inside the Quirk frame, Quirk receives Escape; Tab out of the frame or use Close. Quirk's
page is wider than a phone or tablet screen and scrolls sideways inside the frame.
The circuit is checked as for a run, its registers are merged into one in declaration
order, and pytket parses it. Gates Quirk has a symbol for keep it (H, X, Y, Z, S and T
as Z^½ and Z^¼ and their inverses, sx as X^½, rx/ry/rz/u1/p as X^t/Y^t/Z^t with the
angle in half-turns, cx/cy/cz/ch/ccx/c3x/c4x as controls, swap and cswap); every other
gate is drawn as cx and single-qubit Z^t and Y^t rotations with the same matrix up to a
global phase, and the response's notes name those gates. Final
measurements are drawn in a last column; barriers are not drawn. The visualizer opens
at most 16 qubits (Quirk's own limit) and 1,000 columns, and refuses
reset, if and a gate after a measurement of the same qubit,
naming the reason.
Several circuits, several runs, and experiments
One press of the run button can start more than one job:
| Choice under Run and Mode | Request |
|---|---|
| Editor code, Statevector or Measured | POST /compare or POST /compare_measured |
| The playlist | POST /run_batch_suite, one job for every circuit |
| Statevector and Measured both ticked | Two jobs, run one after the other; compile-only services go with the first |
| Compile-only services chosen in their chip, with neither Statevector nor Measured ticked | The same endpoint with simulate: false: only the compile-only services run, and the report records simulated: false |
| SDK Preprocessing chip → Both | POST /experiments, below |
When there are two jobs, a row above the tabs switches between their results. A batch
shares one master seed, and because a backend's runner_seed is derived from
the master seed and its runner key only, each backend receives the same
runner_seed in every task. Each task is named after its circuit
(name in the request, else the preset or file name) and qubit count; a
bundled benchmark circuit adds its suite, as in ghz (4q) [MQT Bench], so it
is not confused with a preset of the same name.
Experiments: preprocessing on and off
With Both selected, the circuits run once with each backend's preprocessing on and once with it off, and the result is one ZIP bundle containing:
- The input QASM for every circuit, frozen at run time.
- A conformance matrix recording whether each circuit ran on each
backend. Every error carries an
untriagedmarker for you to classify as an adapter issue, an SDK issue, by-design behaviour, or a resource limit. The software does not classify errors itself. - An agreement-prevalence table: how many backend pairs fell in each
class, by
measured_assessmentin measured mode and by label in statevector mode. - A manifest recording the git commit, executed SDK versions, the seeds used and the
effective configuration.
config_sha256andeffective_config_sha256are the sha256 ofjson.dumps(config, sort_keys=True, default=str)in Python, encoded as UTF-8 (separators", "and": ", non-ASCII characters escaped). - Each runner's pinned environment as
runners/<runner>/requirements.lock, as in an RO-Crate.
Everything sits in one top-level folder named like the download
(experiment_<label>, or experiment_<job id> without a
label).
In the API the experiment is POST /experiments with a list of
circuits and preprocessing_modes ([true],
[false] or [true, false]); the bundle is
GET /experiments/{job_id}/bundle. The bundle is written to the API's local
disk as the cells finish and deleted with the job after its retention time;
experiments are not saved to the run history.
One experiment runs at most 200 circuit × preprocessing combinations
(limits.max_experiment_cells in GET /config), so Both
takes at most 100 circuits; a larger request is rejected with HTTP 400 before it starts,
and the page says so before sending it. Compile-only levels chosen together with
Both run with the first experiment of the press of Run (the statevector
one when both modes are ticked), once per circuit and setting; that experiment's panel
lists them, its bundle holds the outputs under
compiled_circuits/<setting>/<circuit>/ and in
compiled_circuits.csv, and the other experiment's panel says where they are.
Agreement classification
Two simulators can produce different-looking outputs because of a different qubit-ordering convention (endianness) or an unobservable global phase. For each backend pair, QRosetta checks a fixed list of transforms in order and reports the first one under which the two outputs agree, with the metric before and after it.
A statevector pair agrees when its fidelity, computed on normalised vectors and stored
unrounded, is at least 1 − fidelity_tolerance. The default tolerances are
fidelity_tolerance = 1e-5, phase_tolerance = 1e-6 rad,
norm_tolerance = 1e-4, js_threshold = 0.01 nats and
hellinger_threshold = 0.1 (the server reports its defaults at
GET /config). They can be changed in the Agreement Thresholds chip; the
values sent are recorded in the report's run configuration and in every pair record, and
the pair record's values are the ones the label was computed with. The phase tolerance
of 1e-6 rad sits above single-precision rounding (about 1e-8 rad for
complex64), so a complex64 backend is not reported as carrying a global
phase because of rounding alone.
Statevector labels
A statevector pair is labelled in the basis its two declared qubit orderings imply
(metrics.label_aligned_basis): the bit-reversed basis for an
lsb backend against an msb backend, the direct basis otherwise.
A one-qubit pair, or a pair where a backend declares no ordering, uses the direct basis
(metrics.basis_source says which rule applied). The labels fall into three
groups.
| Group | Label | Meaning |
|---|---|---|
| Agree | agree_directly | Same orderings; outputs match with no transform. |
agree_up_to_global_phase | Same orderings; outputs match after removing an overall (unobservable) global phase. | |
agree_after_bit_reversal | One lsb and one msb backend; outputs match after the bit reversal the declarations imply. transform_effect.global_phase_aligned marks a global phase offset, and metrics.label_aligned_relative_phase_rad gives it. | |
| Disagree | residual_disagreement | No registered transform explains the difference. |
residual_disagreement with metrics.unaligned_basis_match | The outputs match only in the basis the declared orderings do not imply: directly although the orderings differ, or after bit reversal although they are the same. unaligned_basis_match names that basis. Either a declared ordering is wrong, or a gate defect happens to mimic a bit reversal (see Known backend issues). | |
agree_after_qubit_permutation | The outputs match only after a qubit permutation that neither declared ordering implies (searched up to 7 qubits). A permutation is not a convention either backend declares, so this is a disagreement. | |
| Note | agree_after_normalization | An agreement with a note: at least one input statevector has a norm differing from 1 by more than norm_tolerance, and the normalised vectors agree. metrics.normalized_agreement holds the label the normalised pair receives (for example agree_directly), and the UI groups the pair by that label. |
| — | not_comparable | At least one side lacks usable output; the pair cannot be compared. metrics.reason names the cause (see the glossary). |
Measured labels
| Label | Meaning |
|---|---|
distance_within_threshold | Same declared bit orders, or keys of one classical bit (metrics.basis_source: "single_bit", where bit reversal changes nothing); distributions within the JS-divergence and Hellinger thresholds (descriptive; the statistical test gives the significance verdict). |
agree_after_bit_reversal | One lsb and one msb backend, with keys of two or more classical bits; within the thresholds after the bit reversal the declarations imply. |
agree_after_qubit_permutation | Within the thresholds after a bounded qubit permutation (≤ 7 qubits). |
distance_exceeds_threshold | Distributions exceed the thresholds in the basis the declared bit orders imply. With metrics.unaligned_basis_match they are within the thresholds only in the other basis (after bit reversal although the orders are the same, or directly although they differ), as in statevector mode; without it no qubit permutation brings them within. |
not_comparable | At least one side lacks usable output; metrics.reason names the cause. |
The measured labels are descriptive distance checks, and at small shot counts two
samples of the same distribution routinely exceed them. Whether a measured pair
disagrees is decided by its measured_assessment, derived from the
shot-noise test:
measured_assessment | Meaning |
|---|---|
consistent_within_shot_noise | Neither test is significant after Benjamini–Yekutieli (BY) correction, and the power to detect a total-variation gap of 0.05, computed at α/(m·c_m), is at least 0.8. This holds even when the label is distance_exceeds_threshold. It is a failure to find a difference at that power, not a demonstration that the distributions are equal. |
inconclusive_low_shots | Either some expected counts are below 5 after rare outcomes are pooled on a table larger than 2 × 2 (inconclusive_reason: low_expected_counts; a 2 × 2 table is then tested exactly), or neither test is significant but the power to detect the target gap, computed at α/(m·c_m), is below 0.8 (low_power). resolvable_by_more_shots records whether more shots can resolve the pair; it is false when the outcomes are too rare for the test at any practical shot count. The pair is neither consistent nor in disagreement; the Summary tab groups these pairs by cause and gives the shot count the power model recommends when it exceeds the shots used. |
distinguishable | Both tests are significant after BY correction. Together with a differing single-bit marginal, this is what the Summary counts as a measured disagreement. |
ambiguous | Exactly one of the two tests is significant. Treated as inconclusive, not as a disagreement. |
not_comparable | The pair has no usable counts on at least one side. |
For a report without measured_assessment, the UI reads
metrics.statistical_test.verdict instead
(consistent, inconclusive_low_shots,
distinguishable, ambiguous).
A measured pair whose observed shot totals differ from the requested n_shots
records both in metrics.shot_total_mismatch.
Metric formulas
Statevectors
Each backend's statevector a is normalised first:
â = a / ‖a‖₂. The norm ‖a‖₂ is recorded in
metrics.norms; if |‖a‖₂ − 1| > norm_tolerance for either
side, the pair is flagged unnormalized_input.
- Direct fidelity:
F = |⟨â|b̂⟩|² = |Σₖ conj(âₖ) b̂ₖ|², clamped to [0, 1] and stored unrounded. - Global phase offset:
φ = arg⟨â|b̂⟩in radians, in (−π, π]. A value with|φ| ≤ phase_toleranceis reported as 0. This is the overall phase between the two states; a relative phase between components of a superposition shows up as reduced fidelity instead. The JSON field isdirect_relative_phase_radand the matrix isrelative_phase_matrix. - Bit-reversed fidelity:
F_rev = |⟨â|R b̂⟩|², where(R b)ₖ = b_rev(k)andrev(k)reverses the n-bit binary representation of the indexk. - Permutation fidelity: the largest
|⟨â|P_π b̂⟩|²over every permutationπof the n bit positions other than the identity and the reversal;P_πreshapes the vector to n axes of size 2 and transposes them byπ. Ties keep the lexicographically first permutation. The search runs for n ≤ 7 qubits; above that the pair recordstoo_many_qubits.
Labels are assigned in this order, with ε = fidelity_tolerance and the
label-aligned fidelity F_al (F in the direct basis, F_rev in the bit-reversed basis;
recorded as metrics.label_aligned_fidelity): in the direct basis,
agree_directly if F ≥ 1 − ε and |φ| ≤ phase_tolerance, and
agree_up_to_global_phase if F ≥ 1 − ε; in the bit-reversed basis,
agree_after_bit_reversal if F_rev ≥ 1 − ε. Otherwise, if the fidelity in
the other basis is ≥ 1 − ε, residual_disagreement with
unaligned_basis_match; else agree_after_qubit_permutation if
the permutation fidelity is ≥ 1 − ε; else residual_disagreement. An
agreeing pair with unnormalized_input is relabelled
agree_after_normalization. The Summary quotes the fidelity under the
transform the label names, with the direct fidelity beside it.
Counts
Each backend's counts c(x) are normalised by its own observed total:
p(x) = c(x) / Σₓ c(x), over the union of outcomes of the two backends.
- Jensen–Shannon divergence:
JS(p, q) = ½ Σ p ln(p/m) + ½ Σ q ln(q/m)withm = (p + q)/2, natural logarithm, so it is in nats and lies in [0, ln 2 ≈ 0.693]. - Hellinger distance:
H(p, q) = (1/√2) ‖√p − √q‖₂ = √(1 − Σ √(p q)), in [0, 1]. - Total variation distance:
TV(p, q) = ½ Σ |p − q|, in [0, 1]; recorded asstatistical_test.effect_size.total_variation.
A measured pair is distance_within_threshold when
JS ≤ js_threshold and H ≤ hellinger_threshold; the
bit-reversed and permuted counts are tried next, as for statevectors.
Shot-noise tests
The two backends' counts form a 2 × K contingency table O over the K
outcomes observed by either backend (outcomes with zero counts on both sides are
dropped). The table is built in the label-aligned basis: when the two backends declare
different bit orders (lsb against msb), the second backend's
keys are bit-reversed first; otherwise the keys are compared directly. The basis comes
from the declared orderings, not from which basis gives the smaller distance, and is
recorded as statistical_test.basis. When the keys have one classical bit,
bit reversal changes nothing and the keys are compared directly
(basis_source: "single_bit"), whatever the number of qubits. Outcomes whose
expected count is below 5 are pooled into one bin, which holds only these rare outcomes;
pooled_outcomes records how many when the bin holds two or more (a bin of one
outcome is an ordinary column and records 0). The bin is tested as its own column when its
expected count is at least 5, when the table meets Cochran's rule (no expected count below 1,
at most 20% below 5), or, with two or more common outcomes, when its expected count is at
least 1. Below 1 it is left out of the table (untested_outcomes). A common outcome is never merged into
the bin: on a table of three or four outcomes that would hide a gap as large as the common
outcome's probability (see the power model below). When the table is 2 × 2 and still fails the
expected-count rule (one common outcome beside an undersized bin, as for a near-deterministic
circuit whose rare outcome has probability 10−4, or exactly two observed outcomes,
both rare), the chi-square approximation does not hold and both statistics get exact conditional
p-values instead (test_method: "exact_conditional", chi2.method,
g_test.method): with the shots and the column totals fixed, the first backend's count in
the second column is hypergeometric, and each p-value is the probability of a table whose statistic
is at least the observed one. When both backends used the same number of shots this ordering gives
the same p-value as Fisher's exact test; with unequal shot totals they can differ (rows of 100 and 37
shots, [[99, 1], [36, 1]]: p = 1.0 here, 0.469 by Fisher's test, which orders tables by
their probability). With three or more observed outcomes, all rare,
the pair is inconclusive (low_expected_counts). When both backends returned the same
single outcome there is nothing to test: the statistics are 0, the p-values 1 and
test_method is "degenerate" ("not_tested" when pooling leaves
one column, which is also a low-count case). The Summary headline says how many pairs have exact
conditional p-values and how many were degenerate, and each pair's details give its method.
With row totals Rᵢ, column
totals Cⱼ and N = Σ O, the expected counts are
Eᵢⱼ = Rᵢ Cⱼ / N.
- Pearson chi-square:
χ² = Σ (O − E)² / E, no continuity correction,df = K − 1. - G-test:
G = 2 Σ O ln(O / E)divided by Williams' correctionq = 1 + (N Σ 1/Rᵢ − 1)(N Σ 1/Cⱼ − 1) / (6 N (rows − 1)(K − 1)), same df (g_test.statistic; the uncorrected value isstatistic_uncorrectedand q iswilliams_q). Without it the G-test rejects far too often on tables with many bins of small expected counts: in simulation with no real difference, 95% of 65,536-bin tables at 106 shots were rejected at α = 0.05, 15% with the correction. - Cramér's V:
√(χ² / N). - Multiple comparisons, over the m tested pairs of the run, separately
for each test. Benjamini–Yekutieli (
correction: "BY"): with p-values sortedp₍₁₎ ≤ … ≤ p₍ₘ₎andc_m = Σᵢ₌₁..ₘ 1/i,p̃₍ₖ₎ = min over j ≥ k of min(1, m c_m p₍ⱼ₎ / j), recorded asp_value_by. A test is significant (significant_by) when its BY-adjusted p-value is below α = 0.05. BY controls the false discovery rate at q = α under any dependence between the tests, which matters here because pairs that share a backend share that backend's sample. Among the pairs it flags, up to a fraction q are expected to be flagged by chance, so a few flagged pairs in a run with many can be false discoveries, and one unusual sample of one backend can flag several of its pairs at once. The Benjamini–Hochberg (p_value_bh) and Bonferroni (min(1, m p),p_value_bonferroni) adjusted p-values are recorded for reference, and so are Holm's step-down adjusted p-values (p_value_holm,significant_holm), which control the family-wise error rate. A distinguishable pair carriessignificant_fwer: true when both tests also pass Holm. Under BY, genuine discoveries in other pairs lower the bar for every pair, so with one grossly wrong backend among 14 (2- and 3-qubit circuits at 8,200 shots), at least one pair of two correct backends is flagged in 6–7% of runs, and in 3% of runs by a flag that also passes Holm (0.8–1% of runs when every backend is correct); the Summary marks a distinguishable pair that fails Holm as significant under BY only. A p-value that underflows to 0 is shown as<1e-300, and values below 1e-3 in scientific notation. - Verdict:
inconclusive_low_shots(low_expected_counts) if no pooling gives adequate expected counts and the table is larger than 2 × 2; elsedistinguishableif both tests are significant,ambiguousif exactly one is, and, if neither is,consistentwhen the power at the observed shots, computed at α/(m·c_m), is at least 0.8 andinconclusive_low_shots(low_power) otherwise.resolvable_by_more_shots, besideinconclusive_reason, says whether more shots can turn an inconclusive pair into a verdict. It is null, and no shot count is recommended, when the sample does not show the outcome distribution:unseen_mass_good_turing, the share of shots in outcomes seen exactly once (the Good–Turing estimate of the probability of outcomes not yet seen), exceeds 0.5 for either backend (support_characterised: false). That happens when the circuit spreads its outcomes over far more basis states than the shots cover, for example a 22-qubit dense state at 8,200 shots; measuring only the qubits of interest gives the test a distribution it can resolve. When the unseen mass is between δ/2 and 0.5, the recommendation is given as a lower bound (recommendation_is_lower_bound): new outcomes appear with more shots and can raise it. It is also a lower bound when the recommendation comes from pooling rare outcomes and some outcomes were seen once: outcomes seen once in n shots stop being pooled at 10n shots per backend, so the recommendation often lands exactly there (82,000 for a 12-qubit circuit at 8,200 shots), and the outcomes not yet seen are not in the calculation. For a 12-qubit QFT at 8,200 shots it recommended 84,838, and at 100,000 shots every pair was consistent. - Power model: the effect size is Cohen's
w = δtested, the smallest w any distribution pair at total variation δ = 0.05 can have on the table the test sees (w ≥ TV). Pooling two or more rare outcomes into one bin can hide up to min(P, Q) of the total variation, where P and Q are the two backends' probabilities in the pooled bin, soδtested = δ − min(P, Q); leaving a bin out can hide up to max(P, Q), soδtested = δ − max(P, Q)(recorded aspower.delta_tv_testedandpower.pooled_probability). Because the bin holds only rare outcomes, P and Q are small whenever the table has common outcomes. When δtested ≤ 0 a gap of δ could sit entirely inside the pooled bin, the power is α′ and the pair is inconclusive, however small its p-values. The chi-square statistic then follows a noncentral χ² withdf = K − 1and noncentralityλ = 4·ni·nj/(ni + nj) · w², where ni and nj are the two backends' shot totals. With equal totals this isN w²(N = ni + nj); with unequal totals the smaller sample limits it, so 8,200 shots against 50 has the power of about 200 shots split evenly. The single-bit marginal tests use the same noncentrality.power_to_detect_delta_at_observed_shots = 1 − F(χ²₁₋α′,df ; df, λ)with α′ = α/(m·c_m), the level BY applies to a single discovery among the m tested pairs of the run (recorded aspower.alpha_used,power.m_pairsandpower.c_m). It is the smallest level BY applies to any pair, so the power figure does not overstate the chance that the corrected test flags a gap of size δ. It is still the power of the chi-square test alone; the verdict needs both tests to be significant. Pairs tested with exact conditional p-values use the same model: at the alternatives it describes the counts are large and the asymptotic test applies. In simulation (P(rare) = p₀ against p₀ + δ, 2,000 pairs each, m = 91), the test detected δ = 0.05 at 4,444 shots per backend in 100% of pairs for p₀ ≤ 0.01 and in 80.4% for p₀ = 0.475, against a model power of 0.800. The shots needed therefore grow with the number of outcomes (df) and with the number of backends (m); the report computes the power for each pair rather than assuming the default shot count is enough.shots_per_backend_for_target_poweris ⌈N*/2⌉, where N* is the total giving power 0.8 at α/(m·c_m); when outcomes were pooled, it is the smallest count at which the observed proportions, scaled to that count, pool into a table with that power.recommended_shots_per_backendis that minimum times 1.1 (recommendation_margin), rounded up to two significant figures and capped at the platform maximum. A rerun estimates the power again from its own table, whose outcome bins change with the shot count, so a rerun at exactly the minimum lands near 0.8: in simulation (5-qubit product state, 14 backends, 8 runs advised from 1,000 shots), 67 of 728 pairs stayed inconclusive at the minimum (about 10,000 shots) and none at the advised 11,000.recommended_exceeds_actualsays whether the recommendation is more than the shots either backend used; the Summary recommends more shots only then. Because df uses the observed outcomes, the recommendation can be too small when the true support is larger.
Bit order per backend
Each result declares qubit_ordering: msb when qubit 0 is the
most significant bit of the statevector index or counts bitstring, lsb when it
is the least significant. The labels below are what each runner declares;
tests/integration/test_runner_contract_asymmetric.py checks them against an
asymmetric circuit on the live stack. Statevector and counts pairs are compared in the
basis these declarations imply. A pair that matches only in the other basis (after bit
reversal although both declare the same ordering, or directly although they differ) is a
disagreement with unaligned_basis_match: either a label below is wrong or a
gate defect mimics a reversal.
| Backend | Statevector | Measured |
|---|---|---|
| Qiskit (Aer) | lsb | lsb |
| cuQuantum | lsb | lsb |
| Qrisp | msb | lsb |
| Cirq, qsim, Qulacs, QuEST, PennyLane (both), Qibo, myQLM, PyQuil, TorchQuantum, quimb | msb | msb |
| Braket, ProjectQ (disabled) | msb | msb |
Counts keys
A counts key is a bitstring over every classical bit the circuit declares, including
bits no measure statement writes; those read 0. Classical bits get one flat index in
creg declaration order: with creg c[2]; creg d[3];,
c[0], c[1] are bits 0 and 1 and d[0]…d[2]
are bits 2–4. In an lsb key, classical bit 0 is the rightmost character; in an
msb key it is the leftmost. A circuit without measurements, in measured mode,
gets a measure-all appended for backends that sample natively (see
Circuit preprocessing): a new register named
meas (meas0, meas1, … if the name is taken),
declared after the circuit's own, with qubit k read into meas[k].
Backends that sample a final statevector read out the same register, so every key
holds the declared classical bits (all 0) followed by meas.
The shot-noise statistical test
In measured mode a fixed distance threshold is descriptive. With few shots, two samples of the same distribution can still differ noticeably. Alongside the JS/Hellinger label, QRosetta reports for every comparable pair:
- A Pearson chi-square test (no continuity correction) and a G-test of homogeneity between the two count vectors, in the basis the two backends' declared bit orders select, with rare outcomes pooled;
- Benjamini–Yekutieli (FDR under any dependence) adjusted p-values across all pairs of the run, which decide significance, with Benjamini–Hochberg and Bonferroni adjusted values recorded beside them;
- Effect size (total variation, Cramér’s V) and a power estimate at α/(m·c_m) that
uses the observed degrees of freedom (
power.df).
The verdict is consistent, distinguishable,
inconclusive_low_shots or ambiguous, from the BY-adjusted
p-values at α = 0.05; Metric formulas gives the
statistics, the corrections and the power model. Each backend samples with its own derived seed, so two
backends never draw the same shot sequence; shared_seed records whether a
pair's runner seeds were equal.
Single-bit marginals. A circuit with many outcomes (256 or more) often
gets inconclusive_low_shots at the default shots, because most outcomes are
seen a few times. As a second, separate analysis every pair whose keys have two or more
bits is also compared bit by bit: for each classical bit, the two backends' counts of
that bit being 0 and 1 form a 2×2 table, tested with the same chi-square and G-test.
All bit tests of all pairs form one family under Holm's correction at α = 0.05,
so the chance of any false flag in a report is at most α however many backends really
differ, and a bit differs when both tests are significant. A bit with an expected count
below 5, or constant in both samples, is not tested. Equal distributions have equal
marginals, so a differing bit shows that the two distributions differ; marginals that do
not differ do not show that they agree. The full-distribution tests and the marginal tests
are two families, each at α. Each pair records marginal_assessment
(marginal_distinguishable, no_marginal_difference_detected,
not_tested or not_applicable) and
metrics.marginal_test (each bit's P(1) on both sides, raw and Holm-adjusted
p-values); measured_assessment is not changed by it, so a pair can be
consistent_within_shot_noise (no total-variation gap of 0.05 found) and still
have a differing marginal. The Summary lists such pairs in their own block, the Agreement
tab marks them "marginal differs", batch badges count them as an anomaly, and crates and
experiment bundles count them by marginal_assessment. In a simulation with 14
backends over 16 independent bits at 8,200 shots, 1 of 40 runs had a false flag when all
backends sampled the same distribution, 1 of 40 had one on a pair of correct backends when
one backend was off by 0.05 in P(1) on four bits, and every pair with the wrong backend
was flagged.
Reproducibility
- Seeds. Every measured run has a master seed: the one you set in the
the Seed chip, or one the API generates and records at
seed. Each backend receivesrunner_seed= the first 4 bytes ofsha256("<master seed>:<runner key>"), read big-endian, top bit cleared; the runner key includes any~opt<L>~run<N>suffix. The formula is recorded atseed_derivation.seed_honouredis false for a backend whose sampler ignores the seed (Braket, which is disabled on this server). In a batch every task uses the same master seed, so each backend receives the samerunner_seedin every task. - Executed SDK versions are captured by each backend and written into the provenance.
- Which image each backend ran from. Every runner and
compiler result carries
image_identity, which the runner's serving process reads at startup from a file in the image and adds after the run returns: thesourceits image recorded at build (releasefor an image built by the release pipeline,built_locallyfor a local build, "not recorded" for images built before images recorded it), the release, the commit, what the container runtime shows the process (Apptainer's image path and sha256; a podman container's image and id only when privileged), whether the host CPU reports thehypervisorflag, andemulation: the machine the image's Python interpreter is built for (its ELF header), the host's OS and machine asqrosetta startpassed them, andemulated, true when the two machines differ and null when the stack was started withoutqrosetta start.build_filesholds the sha256 of the Dockerfile andrequirements.lockthe image copied.runner_imageis the image the API created a Kubernetes Job with, else the image the runtime showed the runner (runner_image_basissays which). Each result that ran gets aspecimenand the report aspecimensroll-up:all_published(one release),all_built_locally,mixedorunknown, with each backend's detail and the image commits; differing commits mean the measurement code may differ between backends. An RO-Crate includes a runner'srequirements.lockfrom the server's source tree only when its sha256 equals the hash every result of that runner reports, and otherwise says why it is absent. The crate root statesspecimens,timing_caveatsandrun_completeness(complete,partial,failed,not_recordedfor older reports, ornot_checkedfor a report the server did not produce, such as the browser's copy exported after the server's copy expired). - Run configuration. Reports record the agreement thresholds sent, the
timeout and its scope, the optimization levels,
apply_preprocessing, the API-side preprocessing, the dispatched circuits,started_at/finished_atand the git commit the API image was built from (git_sha; a "-dirty" suffix marks uncommitted changes). The divergence report recordsanalysis_version, the version of the classification and test rules. Runner image digests are recorded only when the deployment setsQROSETTA_IMAGE_DIGESTS; in local mode the report says "not recorded". Each result carriesimage_git_sha, the commit its runner or compiler image was built from, andrunner_code_sha256(for compilerscompiler_code_sha256): sha256 over the bytes of the image'smain.pyfollowed by the bytes of every.pyfile of the installedqrosetta_commonspackage, in order of relative path. It identifies the adapter that produced the result; recompute it from a checkout with the same concatenation, not frommain.pyalone. - Statevector hashes. A report stored or exported without
statevectors (history, RO-Crates with
include_statevectorsfalse, experiment bundles) keepsstatevector_sha256andstatevector_length(amplitude count) for every backend. The hash is over the bytes the runner sent: little-endiancomplex128amplitudes for every backend. A backend that computes incomplex64(itsprecisionfield says so) has its amplitudes widened tocomplex128before encoding, so the hash covers the widened values. An older report may carrystatevector_leninstead; exports and bundles write it asstatevector_length. The hash is not stable across replays for every backend: Cirq, for example, can differ in the last bits of some amplitudes between two runs of the same circuit. Compare replayed statevectors by fidelity. - RO-Crate export. A run exports as an RO-Crate conforming to the
Process Run Crate profile, with the inputs, dispatched and executed circuits, per-backend
results (counts, or statevector hashes unless statevectors are included), agreement
evidence and provenance.
README.txtat the crate's root explains it to a reader without this manual: the report source, completeness, which images ran (specimens), the timing caveats, where each kind of file is, the software version and commit, and a command that checks every file's hash; it is written fromro-crate-metadata.json. Every file inro-crate-metadata.jsonhas itssha256andcontentSize(bytes); the agreement thresholds and, in measured mode, the test's α, target power and total-variation gap are PropertyValues of#agreement-analysis. Links to the source code point at the commit the API was built from in the repository the server is configured with (QROSETTA_REPOSITORY_URL); they resolve only when that commit has been published there, and a commit marked "-dirty" or unknown gets a link to the repository root.
Replaying a run
- Take the circuit from the crate's
circuit.qasm(circuits/for a batch) or the experiment bundle'sinputs/*.qasm, which hold the text as submitted; for a bundle, check each file against the manifest'sqasm_sha256. Submit it as literal QASM; do not regenerate a preset. - Send the effective values rather than the requested ones: the seed from
results.seed(for an experiment,effective_seeds_per_axis); the thresholds from the report'sagreement_thresholds, sent explicitly, because defaults can change between versions; an explicit runner list taken fromraw_results[].simulator, because an empty list means every runner enabled at the time; andn_shots,apply_preprocessing,optimization_level,runner_config,runner_phases,timing_repeats,timeout_secondsand, when the run used compile-only services,compilersfrom the report'scompilers_requested. The experiment manifest'seffective_configrecords presets by name; replay them from theinputs/*.qasmfiles as literal QASM, as in step 1. - Compare in this order:
runner_seedper backend; the dispatched and transpiled circuits, andcompile_input.qasmandcompiled_circuits/; counts, byte for byte; statevectors by fidelity (this needs the statevectors, so export withinclude_statevectorsor useGET /jobs/{job_id}/report; from hashes alone only a bit-identical replay can be confirmed); then the verdicts. - If
git_sha,analysis_versionor a backend'srunner_code_sha256differs between the two reports, verdicts can differ even when the counts are identical, and a changed adapter can change that backend's output. Re-derive the verdicts on the new version rather than comparing labels.
Self-test
The self-test checks an installation against known answers: each backend's result is
compared with an expected answer computed without any backend, so it fails even when
every backend returns the same wrong state. GET /selftest returns the plan;
the qrosetta selftest command runs it, and a script can run it the same way.
- Read
GET /selftest. Itsjobshold two request bodies forPOST /run_batch_suite, a statevector playlist and a measured playlist, with every field set: optimization level 0, preprocessing on, one timed run, 8,200 shots, master seed 20261027 and the agreement thresholds written out. Addtarget_simulators, the backends to test, and change nothing else; the plan does not follow the server's request defaults. - Submit both, wait for each job to finish, and read
GET /jobs/{job_id}/selftest-resultfor each. It evaluates the server's own copy of the report (report_sourceserver_job), 120 requests a minute. 404 if the job is unknown or expired; 409 if it has not finished, failed before any runner ran, is an experiment, or is not a playlist of the plan.
The statevector playlist has three 3-qubit circuits: x q[0] with two idle
qubits; ry(0.3), ry(0.7), ry(1.1), cx
q[0],q[1], cx q[1],q[2], rz(0.5) q[2], whose eight
amplitudes all differ in magnitude; and GHZ-3. The expected states come from a small
numpy simulator that builds each gate from its qelib1.inc matrix
(services/selftest/reference.py); they are committed in
circuits/selftest/expected.json, whose sha256 the plan reports as
expected_sha256. A backend passes a circuit when its result is
ok, declares lsb or msb (and the order the runner
registry records, when it records one), has 2n finite amplitudes, a norm
within 10-4 of 1, and fidelity at least 1 − 10-5 with the expected
state in its declared order, both vectors normalised. For the second circuit the
fidelity of the expected state with a wrong one is at most 0.834 under any qubit
permutation, 0.559 under bit reversal, 0.874 with either cx reversed and
0.795 with the rz sign flipped; with one gate deleted it is at most 0.984.
Rounding the expected state to complex64 changes the fidelity by less than
10-7. GHZ-3 does not change under any qubit permutation, so it checks
support and amplitudes, not bit order.
The measured playlist runs five classical-bit probes, whose circuits put every shot on
one counts key, and GHZ-3. A probe passes only when the counts are exactly
{key: 8200} for the backend's declared order; the probes check the
counts-key rules of Bit order per backend through the API's own
circuit preparation. GHZ-3 passes with only the all-0 and all-1 keys, 8,200 shots in
total, and p(all-0) within 6σ of 0.5 (± 0.0331).
Each result is also checked for the environment it records: CPU quota 1.0 core (FAIL
otherwise), every thread variable 1 (FAIL), the VmHWM memory method (WARN for the
sampling fallback), a 1,024 MiB memory limit (WARN), precision and
qubit_ordering as the runner registry records them for the job's mode
(FAIL; SKIP where the registry records null, as for cuQuantum's precision), a hypervisor flag (WARN: timings are not comparable with
bare-metal runs), emulation (FAIL), and the image source (release PASS; built locally
or pulled from another release WARN; unknown or a -dirty commit FAIL).
A field the runners do not record gives SKIP. The job's circuits and recorded settings
must equal the plan's, and every backend named in target_simulators must
return a result for every circuit.
status is FAIL when any row fails, else WARN when any row warns, else
PASS; backends gives each backend's worst row. The circuits use only
x, h, ry, rz, cx and
measure, so a PASS says nothing about gates with
known backend issues (cu3, cu1,
csx, QubitUnitary), mid-circuit measurement, larger circuits,
other optimization levels or preprocessing off.
Timing and memory methodology
- Timing caveats. The server records with every
result, and for the report, the conditions that limit how far its timings compare
across backends (
timing_caveats, rules versioned bytiming_caveats_version, separate fromanalysis_versionbecause they change no agreement label). Each entry has a code, a sentence and the fields it was read from:shared_dispatch(not exclusive, other runs in the same phase),overlapping_runs,server_overlapping_runs,host_load(a host-load notice of theqrosettacommand was open during the run; see the next item),throttledandcompilation_throttled(the CPU quota held the runner for at least 1% of the window),unstable_repeats(samples spread above 1.3×),mixed_cores,outside_process(container CPU at least 5 ms and 10% above the process's),single_timed_run,no_cpu_quota,virtualised_host,emulated_cpu,emulated_image(the image's architecture differs from the host's),non_x86_64, and across backendscross_backend_core_speeds,cross_backend_cpu_quotaandcross_backend_image_commits. The page's "throttled", "outside process", "unstable" and "mixed cores" tags and its "Before comparing times" list show these records; for a report stored before they were recorded the page asks the server (POST /timing-caveats). - Host load from the
qrosettacommand. On a local stack theqrosettacommand tells the API when it loads the host:start,stop,removeandbuild(andpulland image probes when present) open a host-load notice, sent with the local lifecycle token and kept alive by a heartbeat every 10 s. An open notice holds the run gate like a run, so an exclusive run waits until it ends; it ends with the command, or 30 s after its last heartbeat. Every local result recordsserver_overlapping_host_load, the notices open at some time the run was in flight, and the "host load" tag marks it. A notice begun while an exclusive run holds the gate does not wait for it; that run records the overlap. Astoporremovenotice marks its services: a run that then loses its connection to one of them recordsstopped_by_user: trueand an error starting "STOPPED BY USER". - Runs that end without a result. When a runner's isolated
process ends without returning one, the error gives its exit code or the signal that
ended it (
process_exit_code,process_exit_signal). The kernel sends SIGKILL when a container runs out of memory, and a forced stop sends it too, so the signal alone does not identify the cause, and the server records none. When the API loses its connection to a runner or compiler, the error lists the possible causes (the container was stopped, the process crashed or ran out of memory, a time limit near the deadline, the network) without choosing one, unless a stop notice covers the service (above). In Kubernetes mode the error names the cause Kubernetes recorded for the pod (OOMKilled, DeadlineExceeded) when there is one. - One warm-up, then the timed runs. Each backend runs the circuit once
and discards the result, then runs it
timing_repeatstimes (default 1) for the reported numbers. With one timed run every timing is a single sample (timing_samples = 1) and run-to-run variation is not measured. With more,compilation_time_secandsimulation_time_secare medians (timing_statistic: "median"), and the per-run samples, mean and standard deviation are recorded beside them.execution_time_secis the median compilation time plus the median simulation time; its IQR and standard deviation are those of the per-run totals. The statevector or counts and the memory fields come from the first timed run. In measured mode every timed run uses the same runner seed, so on a backend that honours the seed the repeats draw the same shots and only the timings differ.cpu_time_secandprocess_peak_rss_mbcover every run, so they grow with the number of repeats. - Timing windows.
compilation_time_secis wall clock from t0 to t1 (parse, transpile and, where the SDK allows, build the native circuit; see "Where circuit conversion falls");simulation_time_secis wall clock from t2 to t3 (execute, return the statevector or draw the shots). Building a counts histogram from drawn shots is outside the window. - cuQuantum's timed window. cuQuantum's
simulation_time_seccovers Aer's native execution of the assembled circuit: GPU memory allocation, the cuStateVec kernels and the copy of the result from device to host (Aer's conversion of the circuit is in compilation; see the next items). CUDA context initialisation happens in the warm-up run, outside the window; it shows up incpu_time_sec, which covers the whole process. - myQLM's timed window. myQLM returns a statevector as one Python
object per non-zero amplitude (
SAMPLE nbshots=0), and building that result is inside itssimulation_time_secand memory window, so its time and memory grow with the number of non-zero amplitudes rather than with 2N alone: a GHZ state is fast, a dense state slow. - Where circuit conversion falls. Compilation covers parsing, rebasing and
optimisation passes, and building the executable object where the SDK lets the adapter build it
separately (the PennyLane tape and device preprocessing, the myQLM and qibo circuit objects).
For Qulacs, QuEST, qsim, Qiskit and cuQuantum the SDK's own call would convert the circuit
inside the simulation (pytket's
process_circuits, qsimcirq'ssimulateandrun, Aer'srun), so their adapters split that call at the native routine: the conversion (tk_to_qulacs,tk_to_quest,translate_cirq_to_qsim, Aer'sassemble_circuitsand run configuration) is incompilation_time_sec, and the timed run applies the converted circuit with the same routine, options and seeds as the SDK call. Old and new paths gave identical statevector bytes, identical counts under the same seed and identical executed texts in every case compared (scripts/adapter_paths/compare_paths.py): 1,080 to 2,200 cases per backend (a case is one circuit at one optimization level, with preprocessing on or off; a refusal counts only when both versions refused it the same way) from about 350 random circuits of up to 40 gates and 10 qubits, plus 24 statevector and 16 measured cases per backend from circuits of 500–3,000 gates on up to 16 qubits. On a 4-qubit, 2,200-gate circuit, simulation time fell from 28–37 ms to 1.3–2.3 ms in statevector mode (Qulacs, QuEST, qsim, Qiskit; cuQuantum 50 to 13 ms) and from 30–103 ms to 1.9–8.6 ms in measured mode (cuQuantum 47 to 18 ms), with totals within 3%. Two measured totals fell further: qsim's by up to 24%, because assembling its per-shot records from qsim's raw samples now follows the timed run, and Qulacs's by 17% on QFT-16, because the old call also copied and phase-corrected the whole statevector, which sampling does not use. Each adapter refuses to load with another version of the SDK whose call it reproduces. The disabled Braket and ProjectQ runners still convert inside the call. - Different gate counts for the same circuit. Each backend executes the circuit after its own rebase, so the gate counts differ: at 18 qubits one circuit ran as 318, 750 or 1,158 gates depending on the backend. Simulation times compare those workloads; the Gate count column shows each one.
- Measured mode, statevector sampling. Backends that sample from a
statevector (
sampling_method: "sv_sample") read the state from the SDK and draw the shots insidesimulation_time_sec, because the shots need the state; in statevector mode, converting the SDK's result object into the reported array is outside the window. - Gate fusion. Qiskit Aer (qiskit and cuQuantum) and qsim fuse neighbouring
gates inside their simulation at every optimization level: Aer above its qubit threshold
(recorded per run as
gate_fusion), qsim into gates on up to two qubits. The reported gate counts are those of the circuit before fusion. This is part of how those simulators run and is listed in theirpreprocessing_applied. - quimb's timed window. quimb's
simulation_time_secincludes the search for a contraction path (cotengra'sauto-hqoptimiser, repeated each run with its caches cleared) as well as the contraction. The search is randomised, so quimb's times vary between timed runs more than a state-vector backend's. It runs in the simulating process, with cotengra's worker pool turned off. - CPU time.
simulation_cpu_time_secis process CPU time (all threads) over t2..t3 only.cpu_time_seccovers the whole isolated runner process: interpreter start, SDK import, warm-up and every timed run. - What wall clock includes. Timings are wall clock, so they include
time the process was not running: waits imposed by the CPU quota (recorded per window
as
simulation_throttled_secandcompilation_throttled_sec), preemption by other processes (counted insimulation_involuntary_switches_samples), and contention with the other backends of the same comparison, which run at the same time unless runner phases or the Sequential ordering stage them (each result recordsconcurrent_runs, the number of runs dispatched in its phase or in a phase in flight beside it, such as the sampled and native groups of a measured run;dispatch_phase;dispatch_wave, its phase's start, end and run count; andoverlapping_runs, the number of other runs of the same job that were in their runner process at some time this one was, from the times the runner recorded (process_started_at,process_finished_at); other users' runs on a shared server are not counted). Concurrent runs share cores, hyperthreads and memory bandwidth: on a 20-qubit measured QFT testers saw 2.3–3.3× longer times than with the Sequential ordering, and the order of backends changed. For timings meant for a performance comparison, follow this protocol, which testers found repeatable on this host (medians within 0–3% between jobs for 13 of 14 backends, quimb excepted): run the comparison as at least three separate exclusive jobs, spaced apart, each withtiming_repeatsof at least 5; report the median of the job medians and the range between jobs; treat backends within about 3% of each other as tied; report quimb with its full range. The ≈ mark next to a rank (overlaps_next) means this backend's slowest timed run took at least as long as the next backend's fastest in the same job; it reflects the spread within one job only, so ranks without it can still swap between jobs. The "unstable" tag marks a run whose slowest timed run took more than 1.3× its fastest, from competing load or the backend's own variation. Use an exclusive run (the "Exclusive timing run" box, API fieldexclusive): the backends run one at a time and only while no other run is in flight on this server, and each result recordsexclusiveand the wait (exclusive_wait_sec). Otherwise every local result recordsserver_overlapping_runs, the runs of other jobs that were in flight (dispatched, including waiting in a runner's queue) at some time it was. On a host with hyperthreads, a run whose sibling thread is busy can be 1.5–2× slower with every other check passing, so a non-exclusive comparison is not reliable. Also use at least threetiming_repeats(qibo's first timed run at 18 qubits was 14–17% slower in some jobs), stage the backends one at a time, and check thatsimulation_throttled_secis zero andcpu_max_mhznames the same kind of core for every backend. - Threads. Every runner is started with five thread variables set to
1:
OMP_NUM_THREADS,MKL_NUM_THREADS,OPENBLAS_NUM_THREADS,NUMEXPR_NUM_THREADSandNUMBA_NUM_THREADS; the values each run saw are inthread_env.RUNNER_MAX_CONCURRENT(default 1) sets how many runs one runner executes at once; further runs queue. - Memory the warm-up left behind. The warm-up run allocates and frees the
same memory the timed run needs, and the allocator usually keeps it. The timed run can
then reuse it without raising the high-water mark, so
memory_usage_mbcan read near 0 for a statevector of a few MiB (seen for PennyLane at 16 qubits and qibo at 18). Read it as the memory the simulation window added, not as the memory the simulation used. PennyLane-Lightning allocates its statevector when the device is created, during compilation, so its memory window holds only the copy read out at the end. A fixed allocator threshold that would expose every allocation slowed some backends by more than 3×, so it is not used. - Memory. Memory is read from the kernel high-water mark
(
VmHWM).memory_usage_mb(Sim-window RSS delta) is the peak RSS minus the baseline RSS over the simulation window (pre-execute setup plus t2..t3; the high-water mark is reset when the window opens).process_peak_mb(Sim-window peak RSS) is the absolute peak over the same window.process_peak_rss_mbis the peak RSS of the simulating process over its whole life; Resources are ranked by it.memory_methodandprocess_peak_rss_methodrecord the method; where VmHWM is unavailable they readsampled_10ms(RSS polled every 10 ms, which can miss short peaks) andgetrusage(ru_maxrss), and the UI shows a badge. - Host memory only. Every memory field is host RSS. GPU device memory
is not measured, so a GPU run's memory fields do not include its statevector on the
GPU. GPU runs are not ranked by memory; they are listed under
unrankedwith reasongpu_memory_not_measured, and the Performance tab says so. - RSS and the container limit. RSS counts the shared libraries a process
has mapped, such as the CUDA runtime, so
process_peak_rss_mbcan exceed the container'smemory_limit_mib(cuQuantum and quimb read about 545 and 610 MiB under what was then a 512 MiB limit) without the process being out of memory. - Units. Every memory field ending in
_mbis in MiB (220 bytes). - What dominates memory. For small circuits,
process_peak_rss_mbis dominated by the Python interpreter and the SDK's import footprint, and is far larger than the statevector; compare it withtheoretical_statevector_mb, the size of a dense statevector at the backend's precision: 2N × 16 bytes forcomplex128, 2N × 8 bytes forcomplex64(theoretical_statevector_basisstates which). quimb, a tensor-network backend, holds no dense statevector; its value is computed the same way from the precision it reports, for comparison. Differences between backends at small n reflect their libraries, not their simulation algorithms. - Benchmark circuits and structure. The
qftpreset applies the QFT, with q[0] the most significant bit of the input and output index, to |0…0⟩, so every controlled phase has its control in |0⟩ and the output is a uniform product state. Backends that exploit structure (tensor networks such as quimb, Qrisp's factorised state and gate grouping, sparse or decision-diagram methods) run it much faster than a dense statevector would suggest. For scaling studies, include circuits whose state is entangled and dense, such asrandom. - Gate count and depth come from the circuit each backend executed: by default the
top-level gate statements of its
transpiled_qasm(a statement on whole registers, such ash q;, once per index), with depth by greedy layering. The PennyLane runners count the operations of the tape the device executes instead, because theirtranspiled_qasmtext decomposes operations such asQubitUnitaryinto gates that were not executed as such (aQubitUnitaryon three or more wires is written as anopaquegate with its matrix in comments).gate_metrics_basisstates which. - Rankings include only successful runs. Failed runs, and GPU runs in
the memory ranking, are listed under
unrankedwith a reason, and the UI shows them after the ranked rows. The Performance tab's tables have a Device column, and the batch summary tags the device of the backend in its "Fastest (total time)" and "Lowest process peak RSS" columns.
Resources, queueing and timeouts
- CPU and memory quota. Each runner is limited to 1 CPU (a cgroup CPU
quota), and its math libraries run one thread. Memory limits: 1 GiB per runner container in local
mode (the
docker-compose.ymllimits) and per runner Job in Kubernetes mode; each result records the limit that applied asmemory_limit_mib. A process that uses more than one core (an SDK thread pool the thread variables do not control) is throttled by the quota: the kernel stops it until the next 100 ms period, and that wait falls inside the timed window. Every result records the throttled time assimulation_throttled_secandcompilation_throttled_sec(read from the cgroup'scpu.statjust outside each window; null when the file is unreadable), and the Performance table tags runs held for at least 1% of the window "throttled". The cuQuantum runner's container has the same quota: its kernels run on the GPU, but its host-side work (circuit conversion, kernel launches, synchronisation, the device-to-host copy and sampling) is throttled like any other runner's. - CPU context. Each result carries
cpu_environment: the host CPU model, the quota in cores (cpu_quota_cores, null for none), the process's CPU affinity, andcpu_max_mhzfor the logical CPUs the process was on at the start and end of each simulation window (simulation_cpus). On a host with cores of different speeds (for example Intel P- and E-cores) the same run can take different times depending on the core the operating system chose;cpu_max_mhzshows which kind it was. A server operator can restrict every runner process to chosen CPUs with theQROSETTA_CPU_AFFINITYenvironment variable (for example0-15), recorded ascpu_environment.cpu_affinity_setting;memory_limit_mibrecords the runner container's memory limit.simulation_involuntary_switches_samplescounts how often the process was preempted during each simulation window.simulation_cgroup_cpu_time_secis the CPU time of every process in the runner's container over the simulation window; when it exceedssimulation_cpu_time_sec, part of the work ran outside the simulating process (for example in a worker pool), so the CPU time and memory fields leave that work out. The Performance table tags such runs "outside process". - One run at a time per runner. A runner executes one run at a time.
When several jobs, yours or other users', target the same runner, later runs wait for
it. The wait is recorded as
queue_wait_secand is not part of any timing. Waits of 0.5 s or more are shown in the per-backend details and as a "queued" tag in the Performance tables; shorter values are dispatch overhead. In local mode a run may wait at most the server-wide capRUNNER_QUEUE_MAX_WAIT_SEC(default 1800 s, recorded in the report asqueue_max_wait_sec); a run still queued at the cap is not started. It ends with statustimeout,timeout_kind: "queue"andnever_started: true, and the Summary tab says it never started. On the Kubernetes deployment the queue is server-wide: at mostk8s_job_slotsrunner Jobs exist at a time (set byQROSETTA_K8S_MAX_CONCURRENT_JOBSto fit the project's CPU quota), a run waits for a free slot under the same cap, and the wait is recorded asqueue_wait_sec. A run whose pod the cluster's quota did not admit, or that the scheduler did not place, before its timeout also ends withnever_started: true. A pod still pulling its image or creating its container at the timeout is atimeoutwhose message says so (pod_waiting_reason); a pod whose image cannot be pulled isoffline. Each result'srunner_imagenames the image by digest (registry/name@sha256:<digest>) when the deployment records digests; the report'simage_digestssays, per image, whether the deployment pushed it or kept an earlier build. - Timeout scope. The timeout set in the Execution chip (the server's
allowed range is shown under the field) applies to each backend separately and covers
starting the isolated runner process, importing the SDK, the warm-up run and the timed
run. In local mode the budget starts when the run leaves the runner's queue, so time
spent waiting for a busy runner does not count against it; the queue wait has its own
cap, independent of the timeout (see the previous item). In Kubernetes mode it runs
from Job creation and also covers pod scheduling, image pull and the result upload.
The report records the scope that applied. A backend that exceeds it ends with status
timeoutandtimeout_kind: "run"; its process and every process it started (such as a compiler binary) are killed. A queue timeout (previous item) hastimeout_kind: "queue". The value in the field is sent with every run from the page; API calls that omittimeout_secondsuse the schema default shown in the Swagger UI (60 s for every run type). The field on the page starts at the same default. - Timing samples. With the default of one timed run, a difference between two backends smaller than the run-to-run variation of either cannot be read from one report. Set Timing repeats above 1 to get a median and a standard deviation per backend, or use multi-run mode to compare separate runs.
Compile-only services
A compile-only service turns the run's circuit into another circuit and records the
text. Its output is never simulated, has no timings, and is not part of the agreement
comparison: compiled circuits are kept in the report's compiled_circuits,
apart from raw_results. Tick levels in the Compile-only
services chip's popover, or send compilers (compiler id → list of distinct levels,
at most 15 compiles per circuit) with /compare, /compare_measured
or /run_batch_suite; GET /compilers lists them with the versions each
running compiler image reports (versions: pip SDK versions, native components
built from source, build-file sha256 and image commit; null in Kubernetes mode, where no
compiler runs between jobs). The config panel shows them under each compiler.
Every compiler receives the same circuit, recorded as compile_input: the
submitted circuit as the API prepares it for statevector runners (terminal measurements
removed, then the run's API preprocessing), so compiled circuits carry no measurements,
also for a measured-mode circuit. In statevector mode this is the dispatched
statevector circuit. A measured-mode circuit with mid-circuit measurement, reset or
classical control is not compiled; each requested compile is then recorded with
dispatch_status skipped and the reason. Compilers run after the
run's simulators have finished, through the same queue and timeout as runners, so a
compile never overlaps a timed run of its own job. They always run as a shared, not an
exclusive, dispatch (they are not timed): an exclusive run of another client waits for
them, and other jobs count a running compile in server_overlapping_runs.
The report is complete only when every compile has finished or timed out, so a slow
compile (BQSKit level 3 beyond a few qubits) delays it. Each compiler service runs two
compiles at a time (each single-threaded, with its own CPU; BQSKit one, since its runtime
binds fixed ports); a third waits in that
service's queue, so a busy service can delay another client's compile; the live status grid lists each compile while it runs. A compile
that fails or times out is recorded with its status and reason and does not affect the
simulator results. In a compile-only run (simulate: false), where no
simulator runs, a circuit whose every compile failed, was refused or was skipped is
reported like a run whose every runner failed: the job is failed with
"all N compiles failed" (a playlist: every circuit) and keeps its report. A compile the adapter refuses (an input it cannot compile correctly,
such as a cu3 Cirq would import wrongly) or whose output fails the adapter's
check has refusal (the reason) and refusal_kind
(input or output_check), also as columns of
tables/compiled_circuits.csv in a crate (empty for other errors). Its
reason column gives the reason for every compile without output: the
refusal, else the recorded error (the skip reason, "TIMEOUT (N s)" with the time, or
the compiler's error text, which the crate's provenance.json also holds).
The Summary lists every compile with its gate counts or reason, the compiles without
output first and one line per distinct reason, and a share link shows refusal reasons
but no other error text.
The report records the request as compilers_requested. Each record's key is
<compiler>~opt<level>~run1. It holds the
output text (transpiled_qasm), the passes that produced it
(passes_applied), gate count and depth counted from that text, the pip SDK
versions (sdk_versions), the programs the image built from source
(native_components: staq, Quartz and Synthetiq, with the source archive's URL and
sha256, compiler flags or patches, and Quartz's ECC set hash), the sha256 of the image's
build files (build_files) and the compiler's code hash. The Circuits tab shows the compiler input and each
output; the RO-Crate holds them as compile_input.qasm and
compiled_circuits/<key>.qasm, in a batch as
compile_inputs/<task>.qasm and
compiled_circuits/<task>/<key>.qasm. Each compile is a
CreateAction from the compile input to its output in
ro-crate-metadata.json, provenance.json lists every compile
record under compile_only_services, and each native component is a
SoftwareApplication of its own. For a compiler that produced output, its build files
are included under compilers/<name>/ when the server's copy has the
sha256 the image reported: the Dockerfile, requirements.lock, and for
Quartz shift10-normalise.patch, the ECC generator
gen_nam_ecc.cpp, the driver quartz_greedy.cpp and the ECC set
Nam_complete_ECC_set.json. A file whose hash differs (the image was built
from another commit) is left out. Records from images that report no build files get
the lock file when its pins match the recorded SDK versions. Every crate's
provenance.json records report_source: server_job
for the server's copy of a job, upload or not_recorded for a
saved run by how it was saved, and client_supplied for
POST /export, whose contents (git commit, versions, circuit texts) are as the
requester sent them. A field in the report cannot change it. The same value is
report_source in results.json and the
#report-source PropertyValue of the crate and of its agreement analysis.
For any source other than server_job, ro-crate-metadata.json
asserts no completed or failed status for the backend runs and compiles, says that their
records are as supplied, gives SDK versions and the platform version only as supplied
text, and the crate carries no runner or compiler lock files and no links to a
commit. A run uploaded to history keeps the uploaded job_id as
source_job_id.
Outputs are deterministic on a given image: the same circuit, level and image give the
same text in every job. BQSKit's numerical resynthesis is not portable beyond the image:
on another Python or BLAS build its angles can differ in the last digits, while gate
counts and two-qubit counts match. Each record keeps the image's
runtime_environment, image_git_sha and
compiler_code_sha256; cite the record's text rather than a regenerated text.
gate_count is the number of top-level gate statements in the output text (a statement on whole registers once per index) and
circuit_depth its greedy layering, one statement per layer slot whatever the
gate; barriers are neither counted nor treated as aligning the wires, so the depth can be
lower than Qiskit's depth() of the same text. The compilers write different
gate sets: staq keeps ccx, cu1 and swap as single
statements, Quartz writes h, x, rz and
cx, Cirq cz and single-qubit gates. A smaller
gate_count therefore does not mean a smaller circuit across compilers. Each
record also has multi_qubit_gate_count (statements on two or more qubits) and
gate_counts (statements per gate name); to compare compilers, translate the
outputs to one gate set and count there. Compile-only services also run in
experiments (compilers on POST /experiments). GUOQ (wisq) is not
offered: its search stops on wall-clock time only (its seed covers resynthesis
partitions), so its output would depend on machine load rather than on the circuit
and settings.
| Compiler | Levels | What runs |
|---|---|---|
| BQSKit 1.2.1 | 1, 2, 3 | bqskit.compile at that
optimization level with max_synthesis_size=3,
synthesis_epsilon=1e-8, seed=0, one worker and no machine
model (all-to-all connectivity, BQSKit's default gate set). Each resynthesised block
is accepted within synthesis_epsilon of the block it replaces and the
errors of the blocks add up, so the output approximates the input unitary. Up to 10
qubits every output is checked with Qiskit: its process infidelity to the input must
be at most 1e-6, and the measured value is in the passes; above 10 qubits the passes
say the output is not checked. BQSKit's blocks hold at most 3 qubits and its parser
reads c3x, c4x, rc3x and c3sqrtx as
single gates on 4 or 5 qubits and u0 without its parameter, so Qiskit's
qelib1.inc definitions of those the circuit uses are added under new names
(qelib1_c3x and so on) and the calls renamed, and a gate defined in the
circuit on more than 3 qubits is replaced by its body; both are listed in the passes.
A circuit BQSKit's parser does not read is refused.
Level 4 is not offered: it took 195 s on a 4-qubit, 6-gate circuit with one
worker. |
| PyZX 0.10.6 | 1, 2 | creg declarations are removed first
(PyZX would read each classical bit as an extra qubit). Level 1: full_reduce of the
ZX-diagram, then extract_circuit. Level 2: level 1, then
basic_optimization of the extracted circuit. PyZX's
basic_optimization on the input itself is not offered (see the known
issue below). Numbers in scientific notation are rewritten as plain decimals first, and
the passes give the largest angle change from PyZX's rational phases (see the known
issues). PyZX's parser lacks c3x, c3sqrtx, c4x,
rccx, rc3x and u0; Qiskit's
qelib1.inc definitions of those the circuit uses are added to the circuit
given to PyZX and listed in the passes. Up to 10 qubits every output is checked with
Qiskit: its process infidelity to the input must be at most 1e-8, and the measured
value is in the passes. |
| MQT QMAP 3.10.0 | 0, 1 | Qiskit 2.5.2 translates the circuit to
u3 and cx (optimization_level=0, basis
translation only), then QMAP maps it onto a linear chain of the circuit's qubit
count, qubit i coupled to i + 1 in both directions: heuristic (A*) at level 0, exact
(SAT) at level 1, with QMAP's default pre- and post-mapping optimizations. Level 1
is offered up to 7 qubits and refuses wider circuits: exact mapping took more than
200 s on an 8-qubit GHZ circuit already laid out as a chain (50 s at 7 qubits). The
output's // i and // o lines give the physical qubit of each
logical qubit at input and output. A circuit with a qubit that has no gates other than
barriers and identities (id, or a rotation by 0 such as
rz(0), which QMAP removes) is not mapped (see the known issue below). Every output is checked when it is produced:
both layout lines must be permutations of all the qubits, and up to 10 qubits the
output read through them must have the input's unitary (Qiskit operator equality
up to global phase); a compile that fails either check is recorded as an error,
never as output. QMAP's post-mapping optimizations can rewrite
single-qubit sequences, so the output can contain gates such as h. |
| Cirq (cirq-core 1.7.0) | 0, 1 | Cirq's own OpenQASM 2.0 parser
(circuit_from_qasm), then optimize_for_target_gateset to the CZ
target gate set (CZ and PhasedXZ gates, neighbouring operations merged); level 1 adds
eject_phased_paulis, eject_z and the cleanups that drop
negligible operations and empty moments. Written back with
to_qasm(precision=16) as one register q in declaration
order. This is Cirq's optimiser; the Cirq runner compiles through pytket instead. A
cu3 that Cirq would import wrongly is refused, at top level or inside a
gate definition and at any qubit count (see the known issue below), and up to 10
qubits every output is checked against the input with Qiskit and refused when it
differs. Cirq imports rc3x as a 4-qubit matrix that its CZ gate set does
not decompose, so Qiskit's qelib1.inc definition of rc3x is
added to the circuit given to Cirq (listed in the passes). The image fixes PYTHONHASHSEED, without which Cirq writes the
gates of a moment in a different order in each process. The sqrt-iSWAP target gate set is not offered: OpenQASM
2.0 has no such gate, so the text would show only its cx
decomposition. |
| staq 3.5 (softwareQ) | 1, 2, 3 | The staq command-line compiler,
built from the checksum-pinned v3.5 source with USE_OPENQASM2_SPECS=false:
-O1 (rotation folding, simplification), -O2 (inlines every
gate except x, y, z, h,
s, sdg, t, tdg, rx,
ry, rz, cz, cy,
swap, cx and u1, then the same),
-O3 (adds CNOT resynthesis, which can raise the CNOT count); no device
mapping. Registers, creg declarations and gate definitions are kept.
staq's gate library is the OpenQASM 2.0 qelib1.inc plus r
and cswap; for any other gate of Qiskit's qelib1.inc the
circuit uses (sx, p, u, cp,
rzz, c3x and so on), Qiskit's definition is added to the
circuit given to staq and listed in the passes. A register or gate named
r or cswap is refused, because staq rejects it. staq reads
numbers in single precision (see the known issue below); a literal that would change
by more than 1e-6 is refused before staq runs, and the passes give the largest
change single-precision reading makes to a constant angle of the circuit. Up to 10
qubits every output is checked with Qiskit: its process infidelity to the input must
be at most 1e-8, and the measured value is in the passes. Process infidelity grows
with the square of an angle change, so it does not show a change of 1e-8 rad; the
angle line does. |
| Q-Synth 5.1 (Aarhus University) | 0, 1 | Qiskit translates the
circuit to u3 and cx, the gate set Q-Synth takes; then
peephole_synthesis(slicing='cnot') resynthesises each CNOT slice
exactly with a SAT solver (CaDiCaL 1.9 through python-sat): the fewest CNOTs at
level 0, the smallest CNOT depth at level 1. Q-Synth is given the qubits as one
register q; the output is composed back onto the circuit's registers. Q-Synth splits its 240 s solver budget over the slices
and keeps a slice's original gates when its solver call times out; a compile in which
any slice was still timed out at the end, or the budget ran out, is recorded as an
error, because the result would depend on machine speed. The job's timeout (at most
300 s, including process start) ends a compile first when it is shorter. Q-Synth 5.1 pins
python-sat 1.8.dev13, which PyPI no longer offers, so the image uses 1.8.dev14 and
installs its lock without dependency resolution. Up to 10 qubits every output is
checked against the input with Qiskit. |
| Quartz 0.3.2 | 0 | Qiskit translates the circuit to
h, x, rz and cx (Nam's gate set);
then Graph::greedy_optimize applies every rewrite from Quartz's ECC set
that lowers the gate count, until none applies. It does not move gates past each other
first, so a merge that needs such a move is missed: rz(a) q[0]; cx q[0],q[1];
rz(b) q[0]; stays three gates. The ECC set (equivalent
subcircuits on 3 qubits with 2 symbolic parameters, up to 3 gates) is generated and
verified by Quartz when the image is built, and the build fails unless its sha256
matches the recorded one; the 4-gate set took 15 minutes on 32 cores and removed no
more gates on eight test circuits. Quartz's search (Graph::optimize) is
not offered, because it stops on wall-clock time, nor is its rotation merging (see
the known issue below). Angles go to Quartz as exact fractions of π and come back
the same way, so an angle such as 0.3 appears as
pi*238732414637843/2500000000000000; the output keeps Quartz's gate lines
with the input's registers and declarations. Barriers are
removed first, since Quartz
rewrites across them; mid-circuit measurement, reset and
if are refused, since Quartz drops measurements. The library is built
with one fix to its big-integer code (see the known issue below). Compile time grows
about with the square of the gate count after translation: 8 s for a 16-qubit QFT (3361
gates), about 50 s for 8000 gates; a compile past the job's timeout is recorded as
a timeout. Up to 10 qubits every output is checked against the input with
Qiskit. |
| Synthetiq (commit 59a0cc6) | 0, 1 | For Clifford+T circuits of up to 3
qubits. Qiskit translates the circuit exactly to h, rz and
cx; a circuit is refused unless every rz angle is a multiple of
π/4 to within 1e-12 in units of π/4 (a circuit whose other angles cancel is refused too; any
angle change is listed). Synthetiq then searches by simulated annealing for a new
Clifford+T circuit with the circuit's unitary (the annealing minimises the distance to
the unitary) and simplifies what it finds with its resynthesis pass. Level 0 returns
the first circuit found within 1,000 annealing runs; it does not minimise the T-count
and can return more T gates than the input. Level 1 returns the lowest-cost circuit
(T and T† 1, CX 0.1, H, S, S† 0.01) of up to 5 found within 2,000 runs. On one thread
Synthetiq draws the whole search from one random stream seeded with 0, so the output,
or the failure to find a circuit within the runs, depends only on the input; the image
adds a --max-runs option (max-runs.patch) for that, since
Synthetiq itself stops on wall-clock time. A 3-qubit run takes about 80 ms, so a level 1
search can take nearly 3 minutes; the error then says whether the runs, the 280 s cap or
the job's timeout ended it (only the run limit gives the same outcome on any machine).
A circuit with no gates after translation is returned empty without running
Synthetiq. Barriers are removed (listed). Built without -march=native or
-ffast-math. Every output is checked against the input with Qiskit. |
Each compiler image has a self-test (python main.py --self-test) that compiles
five probe circuits at every level (six for QMAP, Q-Synth and Quartz, which also compile
a c3x followed by a qubit first used after it) and checks the output unitary
against the input (Qiskit's process infidelity within each compiler's tolerance for
BQSKit, PyZX and staq; Qiskit's operator equality for the others, with the circuit
rebuilt from QMAP's // i and // o lines), and that the output
declares as many qubits as the input. The same check runs on every output up to 10
qubits when it is produced. The
probes include the circuits of the known issues below and a circuit with a
creg.
With preprocessing on, compilers receive the pytket-rewritten circuit (see
Circuit preprocessing); to see how a compiler treats your own
text, run with preprocessing off. Several compilers then reject some valid OpenQASM 2.0,
each recorded as that compile's error: BQSKit rejects register broadcasts (h q;), Cirq
rejects barrier and the 4-parameter cu, and
Cirq, Q-Synth and Quartz reject u0, which Qiskit's reader does not take.
Qiskit's translation for QMAP, Q-Synth and Quartz runs with
qubits_initially_zero=False, so a multi-controlled gate is never decomposed
with an unused qubit as a clean ancilla.
Reading the results
With the keyboard: the first Tab stop is Skip to the workspace. Login, History, Auto-Gen and the Quirk view open as dialogs that keep the keyboard inside them until they close (Escape or their Close or Cancel button), after which focus returns to the button that opened them. When a run finishes, focus moves to the heading of its results and a screen reader hears the first lines of the headline, or the error. Badges and labels that carry a tooltip take one Tab stop per table row; Left and Right arrows move between them, and the tooltip stays open while the pointer is on it. The Backends table and the tables of this manual take a Tab stop of their own; when one is wider than its box, Left and Right arrows scroll it.
| Tab | What it shows |
|---|---|
| Summary | A headline, then a Backends table, then the evidence. The headline says how many backends returned a result, names failed ones as Offline, Error or Timeout, and names the backends that differ from the others. It is built from the pairs that differ; an inconclusive pair counts as neither agreement nor difference. When one set of at most four backends, fewer than half of those with a result, is the only set of that size that appears in every pair that differs, those backends are named with how many backends they differ from ("Qibo differs from all 13 other backends"; "Qrisp differs from 7 of 13 other backends"; backends in that set that agree with each other are named together: "PL Default and PL Lightning agree with each other and differ from every other backend (12)"), followed by a sentence about the other backends, among which no pair differs. Otherwise, when the backends that differ from at least one other split into two to four groups, at least two of them with two or more members, with no differing pair inside a group and every compared pair between groups differing, the groups are listed as differing from each other; a backend that differs from none is named apart. Otherwise up to four differing pairs are listed by name, and in measured mode, when each backend of these pairs differs from no other, the headline suggests rerunning with another seed, since a single flagged pair can be a chance result. Otherwise the backends that differ from more than half of those they were compared with are named: those that agree with each other together, the groups with the largest difference from the other backends first, up to four backends, and the rest of them in a sentence of their own ("Qrisp and TorchQuantum also differ from more than half of the backends they were compared with"); then the differing pairs among the others. Each named backend or group carries the size of its difference, measured against the backends the headline does not name, so that a pair of two named backends does not set it: the lowest label-aligned fidelity (statevector), or the median and range of the total variation (measured; the largest of several noisy values overstates the difference). When groups differ from each other, the size is taken over the pairs between groups. In measured mode, a named backend that differs from fewer than half of the others and is consistent with all the rest gets a caveat: with many pairs tested, one backend's unusual sample can differ from a few others by chance (in simulation with every backend correct, a pair was flagged in 0.7–1% of 14-backend runs at 100 and 8,200 shots), so rerun with another seed to confirm. In a multi-run report the same sentences count runs ("all 4 PL Default runs"). Red in the Backends table marks exactly the backends the headline names as differing. A measured pair that is distinguishable under Benjamini–Yekutieli but not under Holm's family-wise correction, and has no differing single-bit marginal, is listed on its own line as significant under BY only and does not shape the headline; when one backend is in every such pair (two or more), the headline names it as distinguishable under Benjamini–Yekutieli but not under Holm. "No single-bit marginal differs" is said only when the marginal test ran (it needs keys of two or more bits). It uses the same rule as the pair badges: a statevector pair differs when it disagrees (Agreement classification); a measured pair differs when it is distinguishable beyond shot noise or a single-bit marginal differs. In measured mode the full-distribution and marginal counts are given apart, and the number of inconclusive pairs with the shots the power model asks for ("at least" when the recommendation is a lower bound, see recommendation_is_lower_bound). When backends timed out, the next step suggests raising the timeout unless the run already used the server maximum. A pair that differs shows that one of the two is wrong; the report does not decide which. The Backends table gives per backend its status, how many backends it differs from (hover for the names and the size of its difference, against the backends the headline does not name for a named backend and over its differing pairs otherwise; red for the backends the headline names, gray for the others, with pairs significant under BY only added as "+N BY only"), in measured mode how many it is inconclusive with, its declared bit order, precision, total time and peak memory. Evidence follows, with a legend for the mode: statevector pairs in the three label groups; measured pairs grouped only by measured_assessment, each pair once with its JS/Hellinger distance label as detail; pairs whose single-bit marginals differ in their own block; inconclusive pairs split by cause; not comparable pairs with the reason. A block of differing pairs that involves a backend listed under Known backend issues links that section, naming those backends; whether the documented behaviour explains a given circuit is left to the reader. Lists of differing pairs are never folded and are ordered by the backend they share; lists of agreeing pairs over twelve items are folded. Power is shown to three decimals with the α/(m·c_m), m and c_m it was computed at. A collapsible section lists the analysis version and git commit, then per-backend run details. A compile-only run (simulated: false) shows a headline naming the compiles that were refused, rejected by their output check, not run, timed out or failed, then its compile records; a compile-only Playlist run shows one row per circuit with the compiles that returned a circuit and those that did not. |
| Performance | Times, then memory: ranked successful runs, then the unranked runs with their status and reason. A run on a GPU carries a GPU tag under its name (hover for the GPU); the header says when every run was on a CPU. Each column uses one number format: fixed decimals chosen so its smallest value shows three significant digits, or scientific notation throughout when a value is below 1e-6. The header names conditions in this run that can bias a comparison (backends ran at the same time, other jobs on the server, throttling, unstable repetitions, CPUs of different speeds, one timed run per backend); "How these times are measured" gives the details. With Timing repeats above 1, each time cell shows the median with ± the sample standard deviation below it; the header gives the number of timed runs when every backend had the same, and each cell gives n when they differ. Process Peak RSS includes interpreter start, SDK imports and the warm-up run, so for small circuits it is mostly the SDK footprint. Tooltips on each column give the measurement window; they open on hover, keyboard focus or tap. |
| Agreement | Counts per label, a heatmap with one cell per pair (coloured by the same verdict as the Summary, with a symbol per class that the key below repeats: = agree or consistent within shot noise, φ agree up to a global phase, ↺ agree after the declared bit reversal, P agree only after a qubit permutation, N agree after normalisation, ≠ disagree or distinguishable, ? inconclusive, – not comparable; click a cell to open its evidence), and the evidence per pair: label, metrics, tolerances, statistical test and provenance (seeds, ordering, SDK versions, preprocessing). Labels are shown in words with the recorded code in the tooltip; the pair list can be filtered by verdict and by backend. Each statevector row shows the fidelity under the transform its label names; for a pair that disagrees it is the fidelity in the basis the declared orderings imply (F(bit-rev) for an lsb×msb pair), with the other basis' value added when the pair matches only there, and a pair that agrees up to a global phase shows that phase, also after the declared bit reversal. Agreement after the declared bit reversal is blue on badges, legends, heatmap and export charts. A measured row leads with its shot-noise assessment; its JS/Hellinger distance label follows in gray after "distance:", which describes the distance and does not decide agreement. Divergence matrices (collapsed) hold the N×N fidelity, global phase offset arg⟨a|b⟩, JS-divergence (nats) and Hellinger values. Each number is the direct value, before any bit reversal; for a pair compared after the bit reversal its declared orderings imply, the value in that basis is shown below it with ↺. Cells are coloured by the pair's verdict, not by the number, so an lsb×msb pair that agrees after the declared reversal is coloured as agreeing although its direct fidelity is low. OFF, ERR and T/O mark failed runs, n/c a pair that is not comparable. Cells are rounded for display: four decimals, more for a fidelity that would otherwise round to 1, and three significant digits in scientific notation below 1e-3. Hover a cell for the unrounded value. |
| Circuits | A table of the circuit texts the run recorded, one row per distinct text: rows that list several backends are byte-for-byte the same text with the same recorded gate count and depth. Each row gives the lines, gates, depth and the lines added and removed against the text it was derived from; View shows that text below the table, with its notes, and sets the diff to match the Change column: side A is the text it was derived from and side B the text itself; for the submitted circuit, which has no source, A is the submitted circuit and B the first text derived from it. The view opens on the first row with the diff set the same way. Gates and depth of the submitted circuit, the dispatched circuits and the compiler input are counted in the browser the same way as for compiled circuits (top-level gate statements; barriers and measurements not counted), so a compiler's reduction can be read against the compiler input. The texts are: the circuit as submitted, the circuit the API sent to each dispatch group (with the API's changes) and the circuit each backend executed (its transpiled_qasm, with the backend's transforms, SDK versions, gate count and depth). Each executed pane says where its gate count and depth come from (gate_metrics_basis): counted from that text for most backends, from the executed tape for PennyLane, whose recorded text decomposes QubitUnitary although the tape does not. A line diff compares any two texts, raw or with whitespace and line breaks, comments, or the OPENQASM and include lines ignored; the raw text stays in the panes. The diff stops at about 4,000 changed lines. pytket rewrites angles as multiples of π, so the same angle can be written pi/4, 0.25*pi or 0.7853981633974483; Compare angles by value evaluates every gate parameter without variables and compares it in radians to 12 significant digits, so those read the same (parameters with variables, as in gate bodies, are compared as written). The Cirq pane holds pytket's serialisation of the circuit the Cirq adapter built: include "hqslib1.inc" and U1q come from pytket's gate set, not from Cirq. Texts written with Qiskit (the Qiskit, cuQuantum and TorchQuantum panes, QMAP's input and Q-Synth's output) give every angle as the shortest literal that reads back as the same double; Qiskit's own qasm2.dumps would write an angle below 1e-12 as 0 and one within 1e-12 of a simple multiple of π as that multiple. The qsim pane is Cirq's to_qasm with angles as multiples of π to 16 decimal places. The tab shows text only and draws no conclusion from a difference: two texts can differ line by line and describe the same unitary. When the run used compile-only services, the compiler input and each compiled circuit are panes too (see Compile-only services). A saved run opened from history also offers a read-only link (see Accounts, history & autosave). |
| Exports | Three parts. On the left, the views of the run, grouped as Agreement, Statistical, Divergence, Performance, Resources, Metadata, Circuits and Reference; a narrow results column shows them as a menu above the view. In the middle, the selected view: its preview (Chart, Table and Data tabs; Data holds the CSV of the numbers and, for a figure, the spec saved beside it), its caption, which states every choice that shapes the figure (outcomes shown, what is summed into 'other', key order, reference, shot-noise band), and its settings, with the less used ones under More. On the right, the Export panel: what the RO-Crate will contain. The report (results.json), circuits and provenance are always included; Add to export adds the view with its settings, each with its own formats, and the pencil reloads an added view to change it. One export holds at most 60 items (limits.max_export_items); at 60, remove an item before adding another. Presets (Paper figures, Data for analysis, Everything, Nothing extra) fill the list; the preset and the author and affiliation under Credits are remembered in this browser. Files from your selection lists the paths the crate will hold.
Every figure view takes Backends (any subset; with two selected the count comparison is a one-against-one histogram), a Figure size (automatic, single column 3.5 in, double column 7 in, slide) and a title on or off. The automatic and column sizes are cropped to what is drawn; a slide figure keeps its 13.33 × 7.5 in (16:9) canvas. Measured runs add views that stay readable at many qubits: Count comparison (overlay, small multiples, difference from a reference backend with a ±2σ shot-noise band, or an outcome × backend heatmap; the top n outcomes, those above a probability, or the marginal distribution over up to 6 chosen classical bits; sorted by probability, bitstring or Hamming weight; keys in msb or lsb order), Single-bit marginals P(c[j] = 1), the quantities the single-bit marginal tests compare, Hamming weight (n + 1 bins) and Rank–probability. Highlight disagreeing colours the backends whose pair with the reference is a disagreement and greys the rest. Figures are drawn on the server: from its copy of a run made in this session while the copy is kept, otherwise from the fields of the browser copy that figures read (subject to the 1 MiB request-body limit). Titles and captions name the circuit as the caption on screen does (the circuit's name, else the playlist entry's, else the run name); the browser sends that name with each request, since the server's copy of a run records none. Figure legends, axis labels and captions name backends as the Backends table does ("Qiskit (IBM)", "qsim (Google)"); tables keep the runner ids used in results.json. Tables are built in the browser as LaTeX, CSV, Markdown or HTML, and on the server as XLSX. A LaTeX table needs \usepackage{booktabs,adjustbox,longtable}: it is scaled down to the line width when it is wider, set as a longtable above 40 rows so it breaks across pages, and carries its explanation as a note below the table; LaTeX document downloads a complete document that compiles as it is. Report JSON only downloads the full report from the server, the browser copy, or copies it. |
A run of the playlist shows a suite summary and the Exports tab. The suite summary
gives each circuit an agreement badge plus one badge per failed-run status, and the
fastest and lightest successful backends, each tagged with its device. A measured task
is badged by measured_assessment: Differs, naming the backends, when any pair is distinguishable or a single-bit marginal differs,
All pairs consistent when every pair is consistent within shot noise, otherwise
Inconclusive. A statevector task is badged by label group: Differs when any pair
disagrees (Differs, naming the backends), All pairs agree, or All pairs agree (bit order as declared) when some pairs
agree after the declared bit reversal. Not compared means fewer than two backends
returned a result; Compile only marks a task of a compile-only run. An experiment shows
its pair counts, by assessment in measured mode and by label group in statevector mode,
and the bundle download.
Reports and exports
The report sent to the browser replaces statevectors longer than 214
amplitudes (circuits over 14 qubits) with a placeholder and sets
statevector_omitted_for_display. The server keeps a finished job, with its
untruncated report, for its retention time (limits.job_ttl_sec in
GET /config; server setting QROSETTA_JOB_TTL_SEC): 30 minutes by
default, and 24 hours on a local stack started from the repository's compose file. Jobs
past it are removed by a sweep that runs every 10 minutes, so a job can stay up to 10
minutes longer.
These reports are kept on the API's local disk, within a budget of 10,240 MiB
(limits.job_storage_max_mib; server setting
QROSETTA_JOB_SPILL_MAX_MIB), and the server keeps at least 1,024 MiB of that
disk free (limits.job_storage_min_free_mib;
QROSETTA_JOB_SPILL_MIN_FREE_MIB). One 18-qubit statevector circuit run on 14
backends takes about 78 MB. While either limit is crossed, a new run is refused with HTTP 503
and a Retry-After header, and the message says which limit. A playlist or
experiment that is already running checks before it writes each circuit's result; when the
storage is full it stops, and the job fails with a message naming the circuit it stopped at
and the limit. A single-circuit run always keeps its report, so reports of runs already in
progress can take the storage past its budget. Before a run is refused, and before a
running playlist or experiment stops, the server deletes finished jobs that finished more
than 30 minutes ago (limits.job_evictable_after_sec), oldest first, until
the storage is back within both limits.
| Endpoint | Returns |
|---|---|
GET /jobs/{job_id} | Job status, progress and the browser copy of the report. |
GET /jobs/{job_id}/report | The untruncated report as JSON (the Download full report button): the report object itself, without the job envelope. 404 if the job is unknown or expired, 409 if it has not completed. With ?gated=true (a gated save, used by the qrosetta command on a local stack) the report is written and sent only while no run is in flight on the server: otherwise the answer is 409 with a detail starting gate_busy and Retry-After. While a gated save is sent, runs submitted meanwhile wait for it, and their gate_wait_sec records the wait. GET /jobs/{job_id} lists the job's save requests under saves (per report and crate: gated refusals, when one was admitted, deferred_sec from the first refusal to admission, and the ungated requests, with how many started while a run was in flight). |
GET /jobs/{job_id}/summary | Each pair's verdict (pair_verdicts, in pairwise_agreement order) and the per-backend counts with the headline model (backend_verdicts); a playlist has one such entry per circuit in benchmark_summary. analysis_version names the rule applied, report_analysis_version the analysis that produced the pair records. GET /history/runs/{run_id}/summary does the same for a saved run and POST /summary (body {"results": report}, 120 requests a minute) for a report in the body. The verdicts are always computed from the pair records, so for a report produced under the same analysis_version they equal the recorded pair_verdict and backend_verdicts. Same 404 and 409 cases. |
GET /jobs/{job_id}/circuit-texts | The circuits the Circuits tab shows, per circuit (circuits; ?task= picks one circuit of a playlist): its panes in the tab's order with their ids (input, dispatched:<group>, executed:<result key>, compile-input, compiled:<compile key>), each with its text and the fields a share link serves (transforms, gate metrics, status, SDK versions; no error text, timings or outputs). Same 404 and 409 cases; 400 for task on a single-circuit job. 120 requests a minute. |
GET /jobs/{job_id}/publication/artifacts | The figures and tables the server copy offers: each one's id (the artifact_id to render), label, group, formats and caption at default parameters; ?task= picks a playlist circuit. POST /publication/artifacts does the same for a report in the body. Rendering an id the report does not offer is a 404 whose detail lists the ids it does. |
GET /publication/views | Every export view of the Exports tab, in its order: the artifact ids it renders with the formats the render routes take, the formats an export item of the view takes, and its parameters (type, allowed values or range, default; a null default is worked out from the report, as default_when_null says). Which views a report offers is GET /jobs/{job_id}/publication/artifacts. 120 requests a minute. |
POST /jobs/{job_id}/export | An RO-Crate ZIP built from the server copy; body (optional; every field has a default): include_statevectors, author_name, author_affiliation, publication_artifacts. Same 404 and 409 cases. publication_artifacts.items lists views as {"view", "params", "formats"}: each figure is written to figures/<name>.<format> with figures/<name>.spec.json (the view, its parameters, the caption and the analysis version), each table to tables/<name>.<ext>, the glossary to reference/; the name is the view id followed by every parameter that differs from its default. A playlist crate draws each view for every circuit under figures/<circuit>/. An unknown view, parameter or format is a 400. ?gated=true builds and sends the crate as a gated save, as for the report. |
POST /jobs/{job_id}/publication/render | One figure or table drawn from the server copy (body: artifact_id, format, scale, params, and task, the circuit's index, for a playlist job). Same 404 and 409 cases; 400 for a parameter or format the view does not take. POST /publication/render takes a report in the body instead. |
POST /history/runs/from_job/{job_id} | Saves a finished single or batch job to the signed-in user's history from the server copy (body, optional: {"run_name": "..."}). 201 with the saved run; saving the same job again returns that run with 200, also after the job has expired. GET /history/runs lists each run's job_id (null for a report uploaded with POST /history/runs). 404 if the job is unknown or expired and this account has not saved it; 409 if it has not finished or is an experiment; 403 if another signed-in account started it. A job submitted with a sign-in belongs to that account; one submitted without a sign-in can be saved by any account that holds its id. |
GET /runners | The backends: id, enabled and available state with the reason when unavailable, device, the description of each optimization level, and per endpoint (statevector, measured) the precision and qubit_ordering the backend's adapter declares; null where the adapter sets the value at run time, as cuQuantum does for its precision (each result records the value used). default_selected is true for a backend that a run naming no backends uses when it is available (every enabled backend); profiles lists the built-in profiles it belongs to: minimal (Qiskit, Qulacs, Cirq), cpu (enabled backends that need no GPU), gpu and full. backend and version are null. Availability comes from a probe of each backend that is reused for 60 seconds. ?fresh=true (also on GET /compilers) probes now instead, and only with a sign-in or the local lifecycle token as the bearer token, at most 6 times a minute per account (requests with the lifecycle token count as one client); a round less than 5 seconds old is served again. A backend with a run in flight is not probed and reads available with reason busy; while an exclusive run holds the server nothing is probed and the last values come back with fresh: false and reason exclusive_run. The probe round counts as a shared dispatch, so an exclusive run waits for it, as for any other run. Each row then carries fresh, reason, probed_at and error_kind: dns (the server cannot resolve the backend's name), connect (not accepting connections, for example while it starts), timeout (no answer within 5 seconds) or http (it answered with an error). |
GET /compilers | The compile-only services: id, name, enabled and available state, and a description of each optimization level; default_selected is false (a compiler runs only when a request names it), profiles is compilers and full for an enabled one. |
GET /health | {"status": "ok"} while the API process serves requests; it reads nothing else, so it stays 200 while the database or the job storage is down. The compose healthcheck and the Kubernetes liveness and startup probes call it. Runner and compiler images answer GET /health the same way, also while a run holds their execution slot. |
GET /ready | 200 with {"status": "ready", "checks": {"database": "ok", "job_storage": "ok"}} when the database answers SELECT 1 and the job storage directory takes a new file; otherwise 503 with detail naming the failed checks and each check as ok, failed or timeout (no answer within 2 seconds). A result less than a second old is served again. The Kubernetes readiness probe and qrosetta start -d and qrosetta doctor call it. Neither route needs a sign-in or is rate-limited, and neither names hosts, paths or error text. |
GET /quickload | The playlist's Quick Load sets: id, label and items, playlist items (algorithm, qubits, name) that the server generates when the playlist runs. |
POST /history/runs/{run_id}/share-links | Creates a read-only link to one of the signed-in user's saved runs (body, optional: {"expires_in_days": 1..90, "label": "..."}, default 30 days; the label is at most 100 characters and is shown only to the owner). 201 with the link's id, expiry and token; the token appears only in this response. 404 if the run is not yours; 409 when the run already has 10 active links. |
GET /history/runs/{run_id}/share-links | The links to one of your saved runs, with creation, expiry and revocation times, without tokens. |
DELETE /history/share-links/{link_id} | Revokes one of your links; it stops working at once. |
POST /shared/circuits | The circuit texts a link reads (body: {"token": "..."}), with the run's name, save time, the link's expiry and report_source (server_job, upload or not_recorded); no sign-in. 404 for a token that is unknown, expired or revoked, whose owner's account is deactivated, or whose run was deleted. Limited to 30 requests a minute per client address. |
POST /export | An RO-Crate ZIP built from a report in the request body, limited by the 1,048,576-byte request-body limit. Used for runs loaded from history and when the server copy has expired; it cannot include statevectors the browser copy does not hold. |
Export RO-Crate uses /jobs/{job_id}/export for a job run in this
session (or the saved run, for a run opened from history) unless Browser copy is
chosen in the Export panel, and offers the browser copy when the server copy has expired.
Using the API from a script
/openapi.json describes every route, its request fields, the status codes
it can return and the shape of the reports (/docs and /redoc show it).
A run is a POST that returns a job envelope {job_id, status, ...}; poll
GET /jobs/{job_id} until status is completed or
failed. Its results is one of three shapes:
GET /config publishes request_defaults, the value the server
uses for every request field a run omits, read from the request schemas. The page
starts its controls from these values, so a script that omits a field gets what an
unchanged page sends. request_defaults.requests has one entry per run
endpoint (compare, compare_measured,
run_batch_suite, experiments), each with
fields and, for playlists and experiments, items (the fields
of one task or circuit). A field with server_fills: false must be sent;
any other field has a default, and where that default stands for a
decision the server makes, when_omitted says which: an omitted
seed (null) means the server generates a master seed and
records it in the report, an empty target_simulators means every enabled
backend that is available, and an omitted thresholds means the values in
request_defaults.agreement_thresholds. The defaults are the same for every
endpoint except mode, which a playlist must send and which an experiment
takes as measured when omitted. request_defaults.compile_only
says what makes /compare or /run_batch_suite compile-only
(simulate: false, at least one entry in compilers, and empty
runner_config, runner_phases and
target_simulators).
- a single-circuit report (
/compare,/compare_measured):raw_resultsis a list with one entry per run, keyed bysimulator;divergence_report.pairwise_agreementholds one record per pair;n_shotsis present only in measured mode; - a playlist report (
/run_batch_suite):modeandbenchmark_summary, one single-circuit report per task in task order, each withtask_name(the display label, the name followed by "(nq)"),task_qubitsandtask_request(the task as sent, including itsname); a task that failed before dispatch is{task_name, task_qubits, task_request, error}; - an experiment:
{experiment_summary}only; the per-circuit data is in the bundle.
GET /config starts with server, which a script reads before
anything else: platform_version, api_levels ([min, max],
the API levels this server serves; a change that removes or renames a route or field raises
the maximum, and the previous level stays served), analysis_version (the
comparison code that labels new reports), git_sha (the commit of the API
image) and features, a map from feature name to version that only grows.
status_labels gives the word and tooltip ({label, hint}) the
page shows for each live status: runs for the values of
runner_statuses, tasks for a playlist circuit, and
phases for the job's phase.
POST /plan turns a workspace into the run requests the Run button would send,
without running anything; the page plans every press of Run through it. Its body has source (single or
playlist), circuits (playlist items: algorithm,
qubits, name, qasm_string, source; one
{qasm_string, name} for a single circuit), modes,
preprocessing (on, off or both),
compilers, name and settings, each request field
given as {value, source} with source flag, set or
replay. A field left out of settings stays out of the planned
requests, so the run route applies its default. The answer lists runs
(endpoint, kind, mode, title, the
payload to send unchanged, and each payload field's sources)
and problems, each with a code, params, a
message and, where they apply, run_index,
circuit_index and line: playlist_empty,
editor_empty, no_mode,
compile_only_needs_one_setting, playlist_too_long,
bundled_over_prep_limit, experiment_too_many_cells,
circuit_too_large, request_too_large,
invalid_request, bypass_needs_account, and with
check_circuits: true circuit_refused for every literal circuit
the run route's checks refuse. Its body may be up to 4 MiB
(limits.max_plan_request_bytes), so it can report a request over the 1 MiB
run limit, and it takes 120 requests a minute per client
(limits.plan_rate_limit).
In measured mode the verdict of a pair is measured_assessment
(distinguishable is the disagreement), together with
marginal_assessment. The pair's agreement field compares the
JS and Hellinger distances with their thresholds and ignores shot noise, so a check
that reads only agreement can pass a distinguishable pair or fail a
consistent one. In statevector mode agreement is the verdict.
Each pair also records pair_verdict, the verdict every view of the page
shows: verdict is not_comparable, differs_by_only
(measured: significant under Benjamini–Yekutieli only, not under Holm, and no single-bit
marginal differs), differs, inconclusive, agrees,
bit_order (agrees after the bit reversal the declared orderings imply) or
unassessed, beside the flags differs (the badge),
differs_by_only, agrees and inconclusive.
divergence_report.backend_verdicts holds the per-backend counts of the
Backends table and headline_model, the backends the Summary headline names.
Reports from analysis versions before divergence-2026.10.27.1 lack these
fields; GET /jobs/{job_id}/summary,
GET /history/runs/{run_id}/summary and POST /summary compute them
for any report with this server's rule, and the page uses them for such reports.
Live statuses in runner_statuses use the same keys as the results: a
backend at one level is its id, several runs are
<id>~opt<L>~run<N>, and a compile is always
<id>~opt<L>~run1, as in compiled_circuits.
progress (playlists and experiments) stays on the job after it finishes.
phase says what the job is doing: queued (accepted, not
started), dispatching (preparing circuits, waiting for the run gate, runs
and compiles), analysing (the pairwise comparison and the report; the
running view shows ANALYSING), exporting (writing the job's results to the
server's job store) and done; a playlist moves between dispatching and
analysing once per circuit.
Errors have the body {"detail": ...}. A 422 means the request does not match
its schema, whatever the server offers (a wrong type, a value out of range such as a
level above 3, an unknown field); its detail is a list of
{loc, msg, type}. A 400 means the request is well formed but this server
cannot run it (a circuit that does not parse, an unknown or undeployed backend or
compiler, a level a compiler does not offer, a circuit or playlist task over the qubit
limit; a playlist error names the task as tasks[i], counted from 0). A 413
is a body over the request limit; one over the proxy's 5 MB limit gets the same JSON
shape. 409 is a job in the wrong state or of the wrong kind (for example asking an
ordinary job for an experiment bundle). A 415 is a body sent to a JSON route without
a JSON Content-Type (application/json or a
+json type). A 403 with the detail "Requests from other sites are
refused." is a POST, PUT, PATCH or DELETE whose Origin header names
another site; a script that sends no Origin header is not affected.
Run, export, render, lookup and account routes are rate-limited. A request whose
bearer token this server signed and that has not expired is counted against its
account; any other request, including one with an expired or foreign token, against
its client address; requests with the local lifecycle token share one count of their
own. Each route has its own count, whatever the job or run id in its path. The limits:
limits.run_rate_limit in GET /config for runs, exports and
circuit lookups, 10 a minute by default; rendering a figure or table,
limits.render_rate_limit, 120 a minute; full-report and bundle downloads
30 a minute; creating a share link 20 a minute; saving, renaming or deleting saved
circuits and runs, limits.history_write_rate_limit, 60 a minute (240 a
minute per client address, limits.history_write_rate_limit_per_address);
exporting a saved run counts as an export. An account keeps at most 1,000 saved runs
and 1,000 saved circuits (limits.max_saved_runs,
limits.max_saved_circuits); a save beyond them is refused with 409 until
some are deleted. Runs, exports, circuit lookups and
rendering also have a limit per client address whatever the accounts
(limits.run_rate_limit_per_address, 60 a minute by default, and
limits.render_rate_limit_per_address, 240 a minute), so several accounts
behind one address (one NAT) each get their own limit up to that total. Signing in
(POST /auth/token, limits.login_rate_limit, 10 a minute by
default, counting failed attempts), registering (POST /auth/register,
limits.register_rate_limit, 5 a minute by default) and share-link reads
(30 a minute) are counted per client address only. Each
response of a limited route carries X-RateLimit-Limit,
X-RateLimit-Remaining and X-RateLimit-Reset (Unix time) for
the limit with the fewest requests left; a 429
adds Retry-After in seconds. The exclusive-run 429 sends
Retry-After: 10.
POST /auth/token returns expires_in: the token is valid for
that many seconds (1800 by default), with no refresh token; after that, authenticated
routes return 401 and the script signs in again. POST /auth/logout signs
the account out everywhere: every token issued to it until then, in any browser or
script, gets 401 from then on. POST /auth/password with
current_password and new_password changes the password, does
the same to every earlier token, and answers with a new token. Saved circuits can be listed, created
(the text must parse as OpenQASM 2.0), renamed (PATCH
/history/circuits/{id}) and deleted (DELETE /history/circuits/{id};
runs linked to it are kept). DELETE /history/runs answers with the ids it
deleted and those it did not find, and 404 when it found none.
Accounts, history & autosave
An account is optional. Signing in (or registering with an email and password, via
the Login / Register button) enables automatic run
history for single runs and batches started from this page: each is saved to
your account when it completes, under its run name. Experiments are never saved; their
result is the bundle you download. Runs started through the API are not saved
automatically; save one with POST /history/runs/from_job/{job_id} (see
Reports and exports) while the server still holds it.
Open Your Run History to browse past runs, rename them, download
their stored reports (statevectors are removed before storage; their
statevector_sha256 and statevector_length are kept), or
delete them (singly or in bulk). While a run is in progress, past runs can be
renamed, downloaded and deleted but not opened, because opening one would replace the
view of the run. Without an account, results exist only in your
browser for that session.
The Circuits tab's Save and share box saves the run on
screen to your history (also a run you started before signing in, while the server
still holds it) and creates read-only links: Create link gives a
/share.html#<token> address that expires after 1, 7, 30 or 90 days. An
optional label names the link in your own list and is never shown to its recipients.
A link created from a batch task's view opens on that task.
Anyone with the address sees the run's name and save time and its circuit texts: the
submitted circuit, the dispatched circuits and each backend's executed circuit with
its transforms, SDK versions, gate count and depth, plus the compiler input and compiled circuits when the run had any. A report that its owner uploaded (POST /history/runs) instead of saving it from this server's job is marked as uploaded on the page. The page shows no results,
timings, error messages or account details. The token is shown once; the server
stores only its SHA-256, and the token sits after #, so browsers do not
send it in requests or referrers. Revoke a link in the same tab. Deleting the run or
the account deletes its links, and a deactivated account's links stop working.
A session lasts 30 minutes. When it expires, the page signs you out and says that runs
started from then on are not saved; pressing Run with an expired session asks first. If
it expires before a run finishes, the page says the run was not saved and offers
Sign in and save, which saves the run after you sign in again, as long
as the server still holds the job. When one press of Run starts a statevector and a
measured run with a Run Name, History saves them as "name (Statevector)" and
"name (Measured)". Run names may contain any emoji (with skin tones, variation
selectors and joiners, such as 👩🔬) and the zero-width joiner and non-joiner that
Persian and Indic scripts use. They may not contain control characters, line or
paragraph separators, direction marks, overrides or isolates (U+200E, U+200F, U+061C,
U+202A–U+202E, U+2066–U+2069), or the invisible characters soft hyphen, zero-width space,
word joiner, invisible operators (U+2060–U+2064), byte-order mark, Hangul fillers and
interlinear annotation marks; the message names the character and its position. The
browser and the server check the same fixed list of characters, so a name the page
accepts is accepted when the run is saved. A saved run or circuit name needs at least one
visible character: spaces, joiners, variation selectors, combining marks on their own
(such as U+0301), format characters, the braille blank U+2800 and the object
replacement character U+FFFC do not count. A name saved before these checks covered it
is shown and exported with the refused characters removed.
A saved run opened from
History has the same heading as when it ran, with its mode and shot count. A run that was
uploaded (POST /history/runs) instead of saved from this server's job is
tagged Uploaded in the Viewing Past Run banner, and one saved before
the server recorded the source is tagged Source not recorded. The
History list itself does not show the source. The session's expiry is measured on the
server's clock (from the sign-in token's issue time), so a computer clock that is
fast or slow does not end it early. Logout, Change Password and
Delete Account are in the menu under your email address in the header.
Logout ends every session of the account, in this browser, other browsers and
qrosetta alike, because the server refuses every token issued before it, and
clears this browser's list of the account's recent jobs (a session that expires keeps
the list, so a pending job can be resumed after signing in again). Change Password asks
for the current and the new password (POST /auth/password) and ends every
other session of the account; this browser stays signed in. Delete Account asks for the account's
password (DELETE /auth/me takes it in the body, with the sign-in rate
limit) and then removes the account with its saved runs and circuits, and a session
token issued before the deletion stops working. The sign-in token is kept in this
browser's local storage; the page is served with a Content-Security-Policy that runs
only scripts from this server and cannot be framed by another site.
Separately, and independent of an account, the Execution chip offers autosave to a local folder: each completed run is written as a JSON file directly to a folder on your computer, with nothing uploaded anywhere. This needs the File System Access API (Chromium-based browsers such as Chrome and Edge) and degrades gracefully elsewhere.
Limitations
- Agreement between backends is not correctness. Backends agreeing does not show they are all right, and a backend differing from the others does not show it is wrong. QRosetta has no independent reference to check against.
- Measured-mode thresholds are descriptive. The JS/Hellinger cut-offs
are configurable and depend on the shot count;
measured_assessment, from the statistical test, decides whether a pair disagrees. - Permutation search is bounded. Exhaustive qubit-permutation matching is
capped at 7 qubits. Larger cases report
too_many_qubitsinstead of searching. - Default timings are not a benchmark. By default each backend has one timed run and all backends run at the same time, competing for the host. Use the protocol in "Timing and memory methodology" (exclusive runs, several repeats and jobs) for comparisons. Results hold for one host, a 1-CPU quota and one thread.
- Pairwise flags can concentrate on one backend. Every pair that shares a backend reuses its sample, so one unusual sample can make several of that backend's pairs distinguishable at once. When all the flags of a run involve one backend at modest p-values, rerun with another seed or more shots before concluding.
- A residual disagreement is a starting point for investigation. None of the registered transforms explained the difference. The cause could be an unregistered convention, an environment limit, or a defect in a backend or its adapter.
Known backend issues
The discrepancies below come from the SDKs or their QASM importers, not from QRosetta.
For simulators, the report shows them as disagreements (statevector) or distinguishable
pairs (measured). For compile-only services, the rows say what the compiler's adapter
does instead: refuse the circuit, avoid the defective call, or apply a recorded fix. QRosetta does not decide which side of a disagreement is wrong. Testers
checked each case below against an independent exact simulator written from the
qelib1.inc gate definitions; the table names the backend that differed from
it. Check your own circuits the same way before attributing a disagreement. Every
circuit starts with OPENQASM 2.0; include "qelib1.inc";.
| Backend | Behaviour | Circuit to reproduce |
|---|---|---|
| Qrisp (measured mode) | Qrisp 0.5's QuantumCircuit.run() returns every shot as |0…0⟩ on
circuits of 12 or more qubits whose outcome spreads over many basis states, while
statevector_array() of the same circuit is correct. Seen on the circuit
to the right from n = 12 (correct up to n = 11) and on chains of controlled
rotations from 12–13 qubits. The measured report marks Qrisp distinguishable from
every other backend. Cause: run() drops every outcome whose
probability is below 5e-4 times the largest one
(qrisp.simulator.numerics_config.cutoff_ratio) and renormalises the
rest. In the circuit to the right |0…0⟩ has probability 0.5 and each of the other
2048 outcomes 0.5/2048 ≈ 2.4e-4, below the cutoff of 2.5e-4; with the cutoff set
to 0, Qrisp gives 0.504. |
qreg q[12]; creg c[12]; h q[0]; then ch q[0],q[k]; for
k = 1…11, then measure q[i] -> c[i]; for every i. Expected: |0…0⟩ with
probability 0.5; Qrisp: 1.0. |
| PennyLane (lightning and default.qubit) | pennylane-qiskit's from_qasm converts some gates to a
QubitUnitary of Qiskit's matrix, which lists the first operand as least
significant, and applies it to the wires in written order, where PennyLane treats
the first wire as most significant: the gate acts with its operand order reversed
(for a two-qubit gate, control and target swapped). Affected: cu3,
cu, csx, c3x, c4x,
c3sqrtx, rccx, rc3x and custom gates.
cu1, cp, crz, ch, cy,
cz, crx, cry, swap,
rxx, rzz, cswap and ccx are
correct. A QubitUnitary on three or more wires appears in the executed
text as an opaque gate with its matrix in comments, so the reversal
can be read there. Happens with
preprocessing on and off for the gates the pytket round-trip keeps
(cu3, csx, c3x, c4x); with preprocessing
on, the round-trip decomposes cu, rccx, rc3x and
c3sqrtx, and those then agree. On some
circuits the swapped output equals the bit-reversed correct one, and the pair is
then a disagreement with unaligned_basis_match. |
Statevector: qreg q[2]; x q[0]; cu3(0.7,0.3,0.1) q[0],q[1];. The
other backends put about 12% of the probability on |q0=1, q1=1⟩; both
PennyLane runners return |q0=1, q1=0⟩ exactly, as if q[1] were the control. |
| qibo | cu3(θ,φ,λ) acts as controlled(e−i(φ+λ)/2·U3(θ,φ,λ)):
a relative phase on the control's |1⟩ branch that qelib1.inc's
cu3 does not have. |
Statevector: qreg q[2]; h q[0]; cu3(0.7,0.3,0.1) q[0],q[1];. In
measured mode add h q[0]; before measuring so the phase becomes
visible in the counts. |
| qibo 0.3.1, optimization levels 1 and 2 | Circuit.from_qasm stores each call of a gate the circuit defines as a
FusedGate, and Circuit.fuse(), Qibo's optimization at
levels 1 and 2, drops it, so the gate would not be executed. This includes the
qelib1.inc definitions the adapter inserts with preprocessing on for
gates Qibo's parser lacks (ch, cswap, c3x,
c4x). The adapter therefore leaves such a circuit unfused
and says so in preprocessing_applied; circuits without defined gates are
fused as before. |
Statevector, level 2: gate g a,b { h b; cx a,b; } qreg q[2]; x q[0];
g q[0],q[1];. Expected: q[0] = 1 and q[1] in (|0⟩ + |1⟩)/√2; Qibo returns
|q0=1, q1=0⟩, fidelity 0.5. |
| Qrisp | cu1(λ) has the matrix of crz(λ), which differs from
qelib1.inc's cu1 by a phase on the control's |1⟩ branch,
and statevector_array() applies that matrix. The pytket round-trip keeps
cu1, so this happens with preprocessing on and off. cp is
correct in Qrisp, and the round-trip writes it as u3 and
cx. In measured mode cu1 gives a third result (see the
row on gate definitions below). |
Statevector: qreg q[2]; h q[0]; x q[1]; cu1(0.9) q[0],q[1];. |
| Qrisp 0.5, measured mode: gate definitions | QuantumCircuit.run() first rewrites each gate into its definition
(QuantumCircuit.transpile()), while statevector_array()
applies each gate's matrix. For three qelib1.inc gates the two differ,
so Qrisp's counts disagree with Qrisp's own statevector:
cu1(λ)'s definition is p(3λ/8) on the control, then
p(λ), cx, p(−λ/2), cx,
p(−λ/2) on the target, which matches neither cu1 nor
crz; cu3(θ,φ,λ)'s
definition applies the transposed target matrix, U3(−θ,λ,φ), where the matrix is
correct; c3sqrtx's definition and matrix differ from each other and
from qelib1.inc. With preprocessing on, the round-trip decomposes
c3sqrtx and keeps cu1 and cu3. A random
5-qubit, 40-gate circuit with two cu1 gates gave total variation 0.19
between Qrisp's exact run() distribution and its statevector with
preprocessing on (0.08 off); written with cp or crz
instead, 0. |
Measured, 200,000 shots, preprocessing off: qreg q[2]; creg c[2]; h q[0];
h q[1]; cu1(0.6) q[0],q[1]; h q[0]; h q[1]; measure q -> c;. P(c[0] = 1,
c[1] = 0) is 0.0218 for qelib1.inc's cu1, 0.0005 in
Qrisp's statevector (its crz), 0.0125 in Qrisp's counts. For
cu3: qreg q[2]; creg c[2]; x q[0]; h q[1];
cu3(0.7,0.3,0.1) q[0],q[1]; measure q -> c;; exact P(q[1] = 1) 0.8205,
Qrisp's statevector 0.8205, Qrisp's counts 0.192. |
Qrisp 0.5: csx |
csx acts as crx(π/2): Qrisp's controlled gate leaves out
the eiπ/4 phase of sx on the control's |1⟩ branch, in both
modes. The pytket round-trip keeps csx, so this happens with
preprocessing on and off. |
Statevector: qreg q[2]; h q[0]; csx q[0],q[1]; h q[0];. Exact
P(|00⟩) 0.625; Qrisp 0.7286 (the value for crx(pi/2)). |
| Qrisp 0.5, statevector mode, 15 or more qubits | Qrisp's simulator sets matrix entries below 1e-5 in magnitude to 0
(numerics_config.float_tresh) and drops tensor entries below 5e-4 times
the largest (cutoff_ratio). On wide, dense states this loses norm:
infidelities up to 3e-4 against Qiskit in the circuits tested at 15–17 qubits,
where the other complex64 backends (qsim, TorchQuantum) stay near 1e-12, so the
pair can fall outside the default fidelity tolerance of 1e-5. At 14 qubits the
loss stayed below 1e-5. With both thresholds set to 0 the same circuits give about
1e-7, the complex64 level. The adapter only reads
statevector_array() and converts it to complex128. |
Statevector, 16 qubits: four layers of ry with random angles on
every qubit, with cx q[i],q[j] for every i < j between layers
(424 gates). MQT Bench twolocalrandom at 16 qubits: norm 0.99998,
1 − F = 4.5e-5. |
| Qrisp 0.5, measured mode, wider circuits | On a 16-qubit circuit of h, ry, rz,
rx and cx only, Qrisp's sampled single-bit frequencies differ
from the circuit's exact marginals by up to 0.02 (|z| up to 12.7 at 30,000 shots),
while Qrisp's statevector for the same circuit is right (fidelity 1 − 1e-13 with
Qiskit). The full-distribution test is often inconclusive on such circuits; the
single-bit marginal test flags Qrisp's pairs. The outcome cutoff described in the
first Qrisp row explains part of it: run() keeps 4,091 of the 65,536
outcomes, and with the cutoff and float_tresh set to 0 P(clbit 13 = 1)
moves from 0.0405 to 0.0505 of the exact 0.0572. The rest is not explained. |
rosetta-api/circuits/qrisp_measured_bias_16q.qasm in the source
(h on every qubit, then fixed-angle ry, cx,
rz and rx layers, measure q -> c), 30,000 shots:
P(clbit 13 = 1) 0.040 from Qrisp, 0.0579 from Qiskit's samples, 0.0572 exact. |
| quimb 1.13.0 | The QASM parser substitutes a gate definition's parameters with plain text
replacement, so a parameter whose name starts with another parameter's name
(t and t2) receives a wrong value, without an error. |
Statevector: qreg q[1]; gate g(t, t2) a { rz(t2) a; } h q[0]; g(0.1, 0.7) q[0];.
quimb applies rz(0.12) instead of rz(0.7). With preprocessing on,
the pytket round-trip inlines the definition first and quimb agrees. |
| PyZX 0.10.6 (compile-only) | basic_optimization(circuit.to_basic_gates()) changes the unitary when
an X, S or swap is followed by an X- or Y-rotation on the same qubit. In random
3-qubit circuits of 10 gates (150 for each of three gate sets) it changed the
unitary of 31% to 90%, depending on the gate set; full_reduce with extract_circuit, with or
without a final basic_optimization, changed none of 450. The PyZX
compiler therefore never applies basic_optimization to its input. |
qreg q[1]; x q[0]; rx(0.7) q[0]; through
pyzx.basic_optimization(pyzx.Circuit.from_qasm(text).to_basic_gates())
returns h; rz(0.777…π); h, which is not X·RX(0.7). |
| MQT QMAP 3.10.0 (compile-only) | mqt.qmap.sc.map_ maps singly-controlled gates other than
cx (cu3, cp) as plain cx without
an error, also with pre- and post-mapping optimizations off; gates with two
controls and swap are rejected with an error asking for a decomposed
circuit. The QMAP compiler therefore decomposes to u3 and
cx first. |
qreg q[3]; h q[0]; cu3(0.3,0.2,0.1) q[0],q[1]; cu1(pi/4) q[1],q[2];
mapped onto a 3-qubit line: the output holds h, cx q[0],q[1]
and cx q[1],q[2] only. |
| MQT QMAP 3.10.0 (compile-only), idle qubits | When a qubit has no gates, map_ reuses its wire and still writes the
identity layout in // i and // o (and in
initial_layout), so the layout lines do not describe the output. QMAP
removes id and rotations by 0 before mapping, so a qubit with only
those is idle too. The QMAP compiler therefore does not map such circuits. |
qreg q[3]; h q[0]; cx q[0],q[2]; on a 3-qubit line: output
cx q[0],q[1] with // i 0 1 2 and
// o 0 1; the same with rz(0) q[1]; added. |
| BQSKit 1.2.1 (compile-only) | Circuit.unfold(point) of a gate defined in the circuit
(CircuitGate) that is not in the first cycle places some of its
body's gates before gates that preceded it, so the circuit's unitary changes;
Circuit.unfold_all() keeps it. The BQSKit compiler replaces wide
definitions by rebuilding the circuit in operation order, as
unfold_all does. |
gate g a,b { h b; cx a,b; t b; cx a,b; h b; } qreg q[2]; h q[0]; g
q[0],q[1]; decoded with BQSKit's OpenQASM 2.0 parser: after
unfold((1, 0)) the last h comes first and the process
infidelity to the decoded circuit is 0.146; after unfold_all(), 0. |
| Cirq 1.7.0 (compile-only) | circuit_from_qasm imports cu3(θ,φ,λ) with the wrong
unitary when θ mod 4π lies in [2π, 4π), for example any small negative θ: the
controlled operation gets a phase of −1 on the control's |1⟩ branch. Every other
qelib1 gate and parameter range tested imports correctly. The Cirq compiler
refuses such a cu3; the Cirq and qsim runners are not affected,
since they build their circuits through pytket. |
qreg q[2]; cu3(-0.4,0.4,-1.1) q[0],q[1]; imported by
cirq.contrib.qasm_import.circuit_from_qasm and compared with
Qiskit's operator: not equal; θ = 0.4 or θ = −0.4 + 4π: equal. |
| staq 3.5 (compile-only) | The lexer reads every real literal with std::stof, so each angle
is rounded to single precision before any pass runs. Outputs stay equivalent
(infidelity below 1e-14 on 360 random 3–4 qubit outputs), but their angles
differ from the input after about the eighth significant digit. The staq
compiler's passes give the largest such change for the circuit (2.09e-08 rad
for rz(0.7853981643974483), read as 0.785398185253143). |
qreg q[1]; rz(0.3) q[0]; with staq -O1 prints
rz(0.300000011920929) q[0];. |
| pytket 1.33.0 (tket), angles | When tket builds a circuit it sets every gate parameter within 1e-11 half-turns
(about 3.1e-11 rad) of a multiple of π/4 to that multiple, so an angle below
about 3.1e-11 rad becomes 0. This happens in the pytket round-trip (preprocessing
on) and in the runners that build their circuit with tket (Qiskit, Cirq, Qulacs,
QuEST, qsim, PyQuil) with preprocessing on or off. When it moves a parameter the
result lists which, by how much, and where (an API: entry for the
round-trip, otherwise an entry on each of those runners), for parameters as
written and inside called gate definitions with each call's values. Parameters tket
derives itself while rebasing, such as the half-angles of cu1 or
crz, are rounded the same way and not listed: cu1(4e-11)
runs as a cu1 whose half-angle rotations are 0. |
qreg q[1]; rz(1.3e-13) q[0]; and rz(3.14159265359) q[0];
through circuit_from_qasm_str: the parameters are 0 and exactly 1
half-turn. |
| qibo 0.3.1, two-qubit gate definitions with parameters | Circuit.from_qasm accepts a user gate definition on two
or more qubits whose body uses its parameters, but executing the circuit raises
TypeError: can't multiply sequence by non-int of type 'complex'.
One-qubit definitions and definitions without parameters run. With preprocessing
on the API inlines every definition first, so only runs with preprocessing off
are affected. |
gate g(t) a,b { rz(t) a; rz(t) b; } qreg q[2]; g(0.3) q[0],q[1];,
then circuit(). |
| PyZX 0.10.6 (compile-only), angles | The QASM parser reads a number in scientific notation (1.25e-1) as an
expression with a variable e and rejects it, and pytket writes small
angles that way (3.18e-06*pi). The PyZX compiler rewrites such numbers
as plain decimals with the same value and lists the rewrite. PyZX keeps every
phase as a fraction of π with denominator at most 1,048,576, which moves a generic
angle by up to about 3e-8 rad; each compile's passes give the largest change for
its circuit. |
qreg q[1]; rz(0.123456789012345678) q[0];: PyZX stores 40942/1041847
half-turns, 1.1e-9 rad from the literal. |
| pytket 1.33.0 (API preprocessing) | circuit_to_qasm_str writes every multi-controlled X as
c4x, whatever its number of qubits, so a c3x came back as
a c4x with four operands, which is not valid OpenQASM 2.0 and which 8 of
14 simulators and every compiler rejected. The API renames each such call by its
operand count (cx, ccx, c3x, c4x)
and records it as an API: change. |
qreg q[4]; h q[0]; c3x q[0],q[1],q[2],q[3]; through
circuit_from_qasm_str and circuit_to_qasm_str gives
c4x q[0],q[1],q[2],q[3];. |
| Q-Synth 5.1 (compile-only), time-outs | peephole_synthesis gives each CNOT slice a share of the time budget,
retries timed-out slices with the time left, and keeps a slice's original gates
when the retry also times out; the result's timed_out stays false.
The Q-Synth compiler records every slice's last solver call and reports such a
compile as an error. |
A 9-qubit circuit of 80 CNOTs with the 240 s budget returned the 80 CNOTs
reordered, with timed_out false. |
| staq 3.5 (compile-only), names | With USE_OPENQASM2_SPECS=false staq's library adds r and
cswap to qelib1.inc, and OpenQASM 2.0 gates and registers
share one namespace, so staq rejects a register or gate declared under either
name. The staq compiler refuses such circuits with that reason. |
qreg q[1]; qreg r[1]; h r[0];: staq reports
Identifier "r" previously declared. |
| Quartz 0.3.2 (compile-only), big integers | Angles are exact rationals (multiples of π) held in Quartz's own big-integer
type. Shifting a zero by a whole number of 9-digit limbs left a leading zero
limb, so the zero was not recognised and gcd recursed until the
stack overflowed (segmentation fault, 6 of 400 random circuits). The image
applies a one-line fix (shift10-normalise.patch: normalise after
every shift); with it, 0 of 400 crashed or changed the unitary. |
quartz::Unsigned: 1250000000000 % 625000000000 returns
a zero stored as two limbs, and gcd(1875000000000, 1250000000000)
never ends. |
| Quartz 0.3.2 (compile-only), rotation merging | Graph::rotation_merging(rz) moves an rz past an
x without negating its angle, which changes the unitary. 79 of 303
random circuits changed when it ran before greedy rewriting. The Quartz compiler
does not use it. |
qreg q[2]; rz(pi/2) q[1]; x q[1]; rz(-pi/4) q[1]; cx q[0],q[1];
becomes x q[1]; rz(pi/4) q[1]; cx q[0],q[1];; the angle should be
−3π/4. |
| Quartz 0.3.2 (compile-only), measurements and barriers | Quartz's QASM reader drops measure statements and rewrites across
barriers, both without a message. The Quartz compiler removes final measurements
and barriers itself, adds the measurements back after rewriting and refuses
mid-circuit measurement. |
qreg q[1]; creg c[1]; h q[0]; measure q[0] -> c[0]; comes back
as h q[0];; h q[0]; barrier q[0]; h q[0]; comes back
empty. |
| TorchQuantum | Rejects a circuit with more than one qreg when preprocessing is
off (an Error, not a wrong result). With preprocessing on the API merges the
registers first. |
Either mode, preprocessing off: qreg a[1]; qreg b[1]; h a[0];
cx a[0],b[0];. |
Adding a simulator
Every runner implements the same contract: process_run (statevector) and
process_run_measured (counts), built on the shared measurement instrument
that does the timing, memory measurement, qubit-limit check and result assembly, so all
backends are measured the same way. The step-by-step guide, including how to determine
a backend's qubit ordering and how to register it, is
CONTRIBUTING.md
in the repository.
Glossary
Agreement classes
See the label tables in Agreement classification.
Not-comparable reasons (metrics.reason)
| Reason | Meaning |
|---|---|
missing_statevector | A run returned no statevector. |
statevector_parse_error | A returned statevector could not be decoded. |
empty_statevector | A statevector has no amplitudes. |
nonfinite_statevector | A statevector contains NaN or infinite amplitudes. |
zero_norm_statevector | A statevector has norm 0. |
shape_mismatch | The two statevectors have different lengths. |
missing_counts | A run returned no counts. |
empty_counts | A counts dictionary is empty. |
invalid_bitstring_key | A counts key is not a non-empty string. |
non_numeric_counts | A count value is not a real number (strings and booleans included). |
nonfinite_counts | A count value is NaN or infinite. |
negative_counts | A count value is negative. |
zero_total_counts | A counts dictionary sums to 0. |
nonfinite_metric | A distance metric evaluated to NaN or infinity. |
comparison_error | The comparison raised an exception; metrics.details.error holds the message. |
Statistical verdicts (measured mode)
| Verdict | Meaning |
|---|---|
consistent | Neither the chi-square test nor the G-test is significant after Benjamini–Yekutieli (BY) correction, and the power to detect a total-variation gap of 0.05, computed at α/(m·c_m), is at least 0.8. |
distinguishable | Both tests are significant after BY correction. |
inconclusive_low_shots | Expected counts below 5 after pooling rare outcomes on a table larger than 2 × 2 (inconclusive_reason: low_expected_counts), or neither test significant with power below 0.8 at α/(m·c_m) (low_power). resolvable_by_more_shots is false when the outcomes are too rare for the test at any practical shot count. |
ambiguous | Exactly one of the chi-square test and the G-test is significant after BY correction. |
Unranked reasons (Performance / Resources)
| Reason | Meaning |
|---|---|
runner_error | The run returned an error. |
missing_timing | The run returned no execution_time_sec. |
missing_process_peak_rss | The run returned no process_peak_rss_mb. |
gpu_memory_not_measured | The run simulated on a GPU; its device memory is not measured, so it is not ranked by memory. |
Run statuses
| Status | Meaning |
|---|---|
| Offline | The runner could not be reached (infrastructure). |
| Error | The backend rejected the circuit or crashed. |
| Timeout | The run exceeded the timeout (timeout_kind: "run"), or it stayed queued behind other runs until the queue cap and never started (timeout_kind: "queue", never_started: true). |
| Anomaly | Results exist, but a statevector pair disagrees (residual_disagreement, with or without unaligned_basis_match, or agree_after_qubit_permutation), or a measured pair is distinguishable beyond shot noise. |
FAQ
Why would two correct simulators disagree?
Usually because of a convention: a different declared qubit ordering or an unobservable global phase. The agreement classification accounts for these so that a convention difference is reported as agreement. A difference that no declared convention explains is reported as a disagreement; Known backend issues lists the ones testers have traced.
Is a "distance exceeds threshold" pair a bug?
Not by itself. It means the distances stayed above the descriptive thresholds after
every registered transform. Check the pair's measured_assessment: if it is
consistent_within_shot_noise, the difference is what sampling alone
produces at this shot count; if inconclusive_low_shots, rerun with more
shots when resolvable_by_more_shots is true; only distinguishable indicates a real difference, whose cause could
be an unregistered convention, a resource limit, or a defect in a backend or its adapter.
Does QRosetta modify a backend's output?
No. Outputs are stored as each backend returned them. Bit reversal, phase alignment and
permutation matching are analysis steps reported with their numerical effect. The
input circuit can be changed before dispatch; every such change is listed in
preprocessing_applied (see Circuit
preprocessing).