Skip to main content

Check a claim about a quantum program against classical computation.

Paste a claim about a quantum program's result, and get a sealed verdict: it agrees, it is excluded, or it is undecided within the budget.

Excluded by proof
A value computed here exactly, or a proven interval around it, lies outside what the claim states.
Undecided
Nothing computed within the budget settles it either way; an estimate never excludes.
Agrees
By proof where an exact value or a proven interval lies inside the claim; as evidence where only estimates do.
Paste your own

The engine is the browser build of commit 9888b97d5229; this page checks its file's SHA-256 before it runs. Nothing you check here is sent anywhere.

Paste a claim, or start from a worked one.

A claim (wai.quantum.claim/1) gives the program in OpenQASM and what is claimed of it: expectation values, a sampling fidelity with its samples, or the string the output peaks on, each with its uncertainty. The worked claims hold the programs and the values a device reported for them; the first sets out every kind of claim on three qubits.

Each method counts operations in its own unit: amplitude updates, term updates, units of work. At 10⁹ a check takes a few seconds in a browser; 10¹⁰ can take a minute. The state vector needs its amplitudes and room to work beside them, so it holds a small program at 512 MiB and not at 256.

The ladder, rung by rung, as it runs.

The referee plans its methods from the program's structure, in this order, and says for each whether it applies and why. It runs each rung that applies within the budget and stops once every claim is decided by proof. Each run states its value, how exact it is, and what it cost.

  1. Press Check it, or a worked claim, to see the plan.

The verdict, sealed and checked here.

Each claim is decided against what it states: excluded or agreeing by proof where an exact value or a proven interval decides it, agreeing as evidence where only estimates do, and undecided otherwise. The answer is sealed with a key made in this tab; Verify checks the seal, makes the plan and the cheapest runs again to the same numbers, and works every decision out again.

What each method gives.

The referee's methods, in the ladder's order
MethodWhen it appliesWhat a run gives
State vectorThe qubits fit the memory budget (twice them for an echo)Exact: every expectation, fidelity and probability in double precision
Stabilizer tableauThe program is CliffordExact: each expectation value in the state
Sparse Pauli dynamicsUp to 1,024 qubits, at any angleCertified: an interval that holds the exact value, every term of its half-width stated
Tensor networksGates on at most two qubits, a sparse coupling graphAn estimate with its discarded weight; this browser build has none, and its plan says so
Matrix product stateUp to 4,096 qubitsExact where nothing is truncated; otherwise an estimate with its discarded weight

An estimate never excludes a claim. The command line at the same commit carries the tensor networks, and the command below runs them; the method and its numbers are in the referee's guide.

Run the same check on your own machine.

The command line at the same commit referees the same claim. With Rust installed through rustup, this checks the charge on 120 qubits at this page's budget; its exit status is the verdict's (0 agrees, 1 excluded, 2 undecided).

git clone https://git.transaction.science/Transaction-Science/open-standards
cd open-standards
git checkout 9888b97d5229674f5038bad6da9d1fa7fb3d251c
cd wai/wai-quantum-cli
cargo run --release --bin wai-quantum -- referee ../wai-quantum/examples/claims/su2-charge-120q.claim.json --budget operations=1e9

The worked claims are in examples/claims. This page's engine was built with rustc 1.100.0 and wasm-pack 0.15.0; its file's SHA-256 is 12808555bc0d5084941e56acfba3a97efa0afd20cbb6a6c29d57403ed63bdd74.

Where to go from here