Skip to main content
Glama

Quantum Expectations

Compute Quantum Expectation

compute_expectation
Read-onlyIdempotent

Given a quantum circuit (2-qubit error rate p, qubit count n, depth d), compute the effective error rate, success probability, and optional surface-code or qLDPC overhead. The response is self-describing (formulas, assumptions, caveats, glossary, SOTA hardware, historic series with source URLs) so an agent can reason from one call. For the inverse ("what hardware do I need?") use compute_required_error_rate; to rank multiple platforms in one call use compare_hardware_scenarios.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
verboseNoWhen false, omits hardwareContext, formulas, assumptions, caveats, glossary, examples, and exampleProblems from the response — leaving only modelVersion, scenario, and result. Use for parameter sweeps where that context would repeat unchanged.
compDepthYes
numQubitsYes
hardwareIdNoAlias for qubitErrorRate: resolves to the 2-qubit error rate of the given SOTA hardware entry from list_current_quantum_computers. Supply exactly one of qubitErrorRate or hardwareId.
qubitErrorRateNoPer-gate 2-qubit error rate p, in (0, 0.1]. Supply exactly one of qubitErrorRate or hardwareId.
useErrorCorrectionNo
distanceSurfaceCodeNo
errorCorrectionCodeNoEither "surface" (default when useErrorCorrection=true) or a qLDPC code id from list_qldpc_codes. "surface-code" is accepted as an alias for "surface".

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so no contradiction exists. The description adds meaningful behavioral context beyond annotations, such as the response being self-describing with formulas, assumptions, caveats, glossary, SOTA hardware, and historic series with source URLs.

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

Conciseness5/5

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

Three sentences deliver the tool's purpose, key inputs and outputs, response characteristics, and sibling alternatives with no filler. The structure is front-loaded and every sentence contributes necessary decision-making information.

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, the description covers inputs, outputs, response framing, and alternatives well despite the absence of an output schema. It could be slightly more explicit about parameter selection rules such as hardwareId vs qubitErrorRate, but the schema descriptions already handle that gap.

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

Parameters4/5

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

The description maps the core input variables to their roles: '2-qubit error rate p, qubit count n, depth d' and mentions 'optional surface-code or qLDPC overhead.' This compensates for the 50% schema description coverage by clarifying the mathematical meaning of numQubits and compDepth, though it does not elaborate on all optional parameters like distanceSurfaceCode or useErrorCorrection.

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

Purpose5/5

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

The description opens with a specific action and resource: 'Given a quantum circuit ..., compute the effective error rate, success probability, and optional surface-code or qLDPC overhead.' It clearly names what the tool computes and is explicitly differentiated from siblings by directing inverse questions to compute_required_error_rate and multi-platform ranking to compare_hardware_scenarios.

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

Usage Guidelines5/5

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

The tool's main use is stated as processing circuit parameters, and it explicitly gives alternatives for other intents: 'For the inverse ... use compute_required_error_rate; to rank multiple platforms in one call use compare_hardware_scenarios.' This provides clear when-to-use and when-not-to-use guidance.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Every tool has a clearly distinct role: compute_expectation and compute_required_error_rate are forward/inverse pairs, compare_hardware_scenarios is a batch wrapper for compute_expectation, and the list_* and get_* tools each target a different data category (hardware, timing, historic, examples, codes). The fit_historic_series tool is distinct from get_historic_series (analysis vs. retrieval). No two tools appear ambiguous.

Naming Consistency5/5

All tool names follow a strict lower_snake_case verb_noun pattern: compute_*, get_*, list_*, fit_*, compare_*. The verbs precisely indicate the action (computation, retrieval, fitting, comparison) and are used consistently across the set.

Tool Count5/5

With 12 tools, the server is well within the ideal 3-15 range. Each tool serves a distinct purpose in the quantum resource estimation workflow: data listing, forward/inverse expectation calculations, fault-tolerant resource estimation, rate computation, historic analysis, and context retrieval. No tool feels redundant or unnecessary.

Completeness5/5

The tool surface comprehensively covers the domain: current hardware data (list_current_quantum_computers, list_hardware_timings), historical trends (get_historic_series, fit_historic_series), algorithm resource examples (list_example_algorithms), error correction codes (list_qldpc_codes), forward and inverse error calculations (compute_expectation, compute_required_error_rate), batch comparison (compare_hardware_scenarios), deep resource estimation (compute_fault_tolerant_resources), a throughput metric (compute_quantum_volume_rate), and the agent brief. There are no obvious missing operations for the stated purpose.

Resources