Skip to main content
Glama

WAI Quantum job service

Estimate a quantum program's fault-tolerant resources

estimate_resources
Read-only

What 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

NameRequiredDescriptionDefault
nameNoThe program's name in a routine document.
qasmNoThe program, OpenQASM 3 or 2. Give this, counts or routine.
qubitNoThe 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.
budgetNoThe probability the run may fail, shared by logical errors, distillation and the rotations' synthesis (default 1e-3).
countsNoA logical-counts document instead of a program: numQubits, tCount, rotationCount, rotationDepth, cczCount, ccixCount, measurementCount.
exportNoAlso give the program's counts as a logical-counts or a routine document, under export.
routineNoA routine document instead of a program (version v1: routines with their ports, resources, children and connections).
calibrationNoThe 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_slowdownNoThe most the frontier slows the program by to need fewer factories (default 256).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The readOnlyHint annotation already signals a safe read operation, and the description adds substantial behavioral context: receipt sealing, digest and budget binding, assumption notes, verification via verify_quantum_receipt, and refusal thresholds for excessive rotation angles or too-fine budgets. It does not contradict the annotation, though 'sealed' leaves slight ambiguity about whether a persistent artifact is created.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the tool's purpose, but it is dense and includes detailed output enumeration despite an output schema already existing. Several clauses are wordy and could be tightened without losing actionable information for the agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity, nine parameters, nested inputs, and existing output schema, the description covers input alternatives, refusal conditions, receipt sealing, and verification sufficiently. It is largely complete, though it could mention when to choose this over related estimation or execution siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage, the schema already documents all nine parameters in detail. The description reinforces the input alternatives and some defaults, but adds little semantic meaning beyond what the schema provides, so the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the tool as producing fault-tolerant resource estimates for a quantum program, including logical counts and physical-resource projections. It distinguishes itself from verification via verify_quantum_receipt, but does not explicitly contrast with siblings like compile_qasm or run_quantum_circuit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the accepted input forms (program, counts document, routine document) and gives refusal conditions, which implies when the tool is applicable. However, it does not explicitly say when to use this instead of related siblings such as run_on_target, qec_code, or compile_qasm, leaving the agent to infer the appropriate context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources