Estimate a quantum program's fault-tolerant resources
estimate_resourcesWhat a fault-tolerant quantum computer would need to run a program. First its logical counts: T gates, Toffolis, rotations (each costed at the T count of its own synthesised Clifford+T word, within its share of the budget), measurements, T depth and total depth, and logical qubits with the ancillas that gates under several controls need. Then, on a physical qubit, the planar model's code distance (the gate-based surface code's model fitted to this engine's own decoders), T factories, physical qubits and runtime, and the frontier of estimates trading qubits for time. Takes a program, or a logical-counts or routine document. Every estimate is sealed in the resource-estimate receipt family, binding the program's digest and the ε budget; the answer's notes state the model's assumptions. Quote the figures with the qubit and the budget, and call them an estimate. Sealed with the service's key; verify_quantum_receipt checks the seals and re-runs it. A program with more than 256 distinct rotation angles, or a budget too fine for its rotations, is refused with the local command.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The program's name in a routine document. | |
| qasm | No | The program, OpenQASM 3 or 2. Give this, counts or routine. | |
| qubit | No | The physical qubit: a reference qubit (ns-e4, the default: 50 ns gates, 1e-4 error; us-* are 100 µs gates, meas-* measurement-based), or one described. | |
| budget | No | The probability the run may fail, shared by logical errors, distillation and the rotations' synthesis (default 1e-3). | |
| counts | No | A logical-counts document instead of a program: numQubits, tCount, rotationCount, rotationDepth, cczCount, ccixCount, measurementCount. | |
| export | No | Also give the program's counts as a logical-counts or a routine document, under export. | |
| routine | No | A routine document instead of a program (version v1: routines with their ports, resources, children and connections). | |
| calibration | No | The gate-based surface code's model: fitted to this engine's exact-matching decoder (default) or its union-find decoder, or the planar model's assumed one. | |
| max_slowdown | No | The most the frontier slows the program by to need fewer factories (default 256). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||