quantum-resource-estimator
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@quantum-resource-estimator Estimate physical qubits for Shor's algorithm on RSA-2048"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Quantum Resource Estimator MCP Server
An MCP (Model Context Protocol) server that makes quantum resource estimation accessible through natural language. Built on Microsoft's QDK resource estimator.
What It Does
Estimates physical quantum resources (qubit count, runtime) needed to run quantum algorithms on fault-tolerant hardware. Helps researchers answer questions like:
"How many qubits does it take to break RSA-2048 with Shor's algorithm?"
"How does a superconducting qubit hardware compare to trapped-ion for this chemistry simulation?"
"What's the tradeoff between qubit count and runtime for my algorithm?"
Related MCP server: qubitsok-mcp
Tools
Tool | Description |
| Run a single resource estimation with defaults or custom params |
| Side-by-side comparison across hardware architectures |
| Pareto frontier: qubit-count vs. runtime tradeoff |
| Reference data for all 6 predefined qubit models |
| Reference data for QEC schemes (surface_code, floquet_code) |
| Predefined algorithms with logical resource counts |
| Domain-specific guidance (cryptography, chemistry, optimization) |
| Estimation with fully custom qubit parameters |
Installation
Requires uv. The qsharp package bundles its own native runtime — no .NET SDK install needed.
Via PyPI (recommended)
No cloning needed. Configure your MCP client directly (see below) — uvx handles installation automatically on first run.
From source
git clone https://github.com/DeDuckProject/quantum-resource-estimator-mcp
cd quantum-resource-estimator-mcp
uv syncUsage
Configure in Claude Desktop
macOS — ~/Library/Application Support/Claude/claude_desktop_config.json
Windows — %APPDATA%\Claude\claude_desktop_config.json
Linux — ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"quantum-resource-estimator": {
"command": "/path/to/uvx",
"args": [
"--from",
"quantum-resource-estimator-mcp",
"qre-mcp"
]
}
}
}Replace /path/to/uvx with the output of which uvx.
Configure in Claude Code
claude mcp add quantum-resource-estimator -- /path/to/uvx --from quantum-resource-estimator-mcp qre-mcpReplace /path/to/uvx with the output of which uvx.
From source (development)
claude mcp add quantum-resource-estimator -- /path/to/uv run --directory /path/to/quantum-resource-estimator-mcp qre-mcpInspect with MCP dev tools
uv run mcp dev src/qre_mcp/server.pyAlgorithm Input Methods
Template (easiest):
algorithm_template="shor_2048"— uses predefined logical counts from published researchLogical counts:
logical_counts='{"numQubits": 100, "tCount": 200}'— provide your own circuit countsQ# code:
qsharp_code="..."— provide Q# source with a parameterless entry point
Example Queries
Via an LLM with this MCP server connected:
"Estimate the resources to break RSA-2048 on superconducting hardware"
"Compare all qubit technologies for the FeMo-cofactor chemistry simulation"
"Show me the qubit vs runtime tradeoff for Shor's algorithm on trapped-ion hardware"
"I have a circuit with 500 logical qubits and 10 million T gates — how many physical qubits do I need?"
Example Output

Predefined Algorithm Templates
ID | Algorithm | Category |
| Shor's factoring (RSA-2048) | Cryptography |
| Grover search (AES-128) | Cryptography |
| FeMo-cofactor simulation | Chemistry |
| Quantum phase estimation | General |
Note: Templates are provided for demonstration and system exploration only. Logical counts are sourced from published research but may not capture significant details. For research-grade estimates, provide your own
logical_countssourced directly from primary publications. When using a template,estimate_resources()will include atemplate_infofield in the response with the source citation and relevant caveats.
Logs
The server runs over stdio (MCP protocol), so stdout/stderr are not available for human-readable output. Logs are written to a file you can follow in a separate terminal:
tail -F ~/.local/share/qre-mcp/qre-mcp.log-F (capital F) handles log rotation — the file is capped at 5 MB with up to 3 backups.
To use a custom log path, set the QRE_MCP_LOG environment variable before starting the server.
Running Tests
uv run pytestTests cover validators, result formatting, reference data, and parameter building. Integration tests (requiring qsharp) are skipped if the package is not available.
Available Tools
8 toolscompare_configurationsA
Compare resource estimates across multiple hardware configurations.
Provide the algorithm as exactly one of algorithm_template, logical_counts, or qsharp_code.
Hardware selection (choose one approach):
compare_all_models=True: compare all compatible qubit models
qubit_models=['qubit_gate_ns_e3', 'qubit_gate_us_e3']: compare specific models
configurations: JSON string of full configs. Each config dict may include the standard qubit_model/qec_scheme/error_budget keys plus the new override keys: qubit_model_overrides (dict), qec_crossing_prefactor, qec_error_correction_threshold, qec_logical_cycle_time, qec_physical_qubits_per_logical. E.g.: '[{"qubit_model": "qubit_gate_ns_e3", "qec_logical_cycle_time": "1000 ns"}]'
Default (none specified): compare all 4 gate-based models
Returns a side-by-side comparison table showing physical qubits, runtime, code distance, and T-factory copies for each configuration.
Inputs: algorithm_template, logical_counts, qsharp_code, qubit_models, +4 more. Returns: object
custom_qubit_model_estimateA
Estimate resources using fully custom physical qubit parameters.
Use this when modeling novel hardware not covered by the 6 predefined qubit models. All gate times accept strings like '50 ns', '1 μs', '100 ms'. instruction_set: 'GateBased' (default) or 'Majorana'.
Provide algorithm as exactly one of algorithm_template, logical_counts, or qsharp_code.
Inputs: algorithm_template, logical_counts, qsharp_code, instruction_set, +10 more. Returns: object
estimate_resourcesA
Estimate the physical quantum resources needed to run a quantum algorithm.
Provide the algorithm as EXACTLY ONE of:
algorithm_template: ID of a predefined algorithm (e.g. 'shor_2048', 'grover_aes128', 'chemistry_femo', 'qpe_generic'). Use list_algorithm_templates() for the full list.
logical_counts: JSON string with algorithm counts, e.g.: '{"numQubits": 100, "tCount": 200, "rotationCount": 50}'
qsharp_code: Q# source code string with a parameterless entry point operation.
Hardware parameters:
qubit_model: Physical qubit technology. Default 'qubit_gate_ns_e3' (superconducting). Use list_qubit_models() for all options.
qec_scheme: Error correction scheme. 'surface_code' (default) or 'floquet_code' (Majorana qubits only).
error_budget: Acceptable failure probability (0-1). Default 0.001.
qubit_model_overrides: JSON string to override specific qubit parameters while keeping a named model as the base. E.g. '{"twoQubitGateTime": "10 ns"}'. Valid keys: oneQubitGateTime, twoQubitGateTime, oneQubitMeasurementTime, oneQubitGateErrorRate, twoQubitGateErrorRate, tGateErrorRate, readoutErrorRate, idleErrorRate.
Optional QEC scheme overrides (override individual parameters of the named qec_scheme):
qec_crossing_prefactor: float > 0. Error-suppression prefactor (default ~0.03).
qec_error_correction_threshold: float in (0,1). Error correction threshold (default ~0.01).
qec_logical_cycle_time: Formula string for logical cycle duration, e.g. '1000 ns' for a fixed 1 µs cycle (replicates Gidney-Ekerå assumption).
qec_physical_qubits_per_logical: Formula string for qubits per logical qubit.
Optional constraints (use at most one of max_duration or max_physical_qubits):
max_duration: e.g. '1 hour', '500 ms', '1 s'
max_physical_qubits: integer upper bound on qubit count
max_t_factories: limit T-factory copies (reduces qubits, increases runtime)
logical_depth_factor: multiplier on circuit depth (default 1.0)
Returns: summary (physical_qubits, runtime, logical_qubits, code_distance, t_factory_copies) plus full details breakdown.
Inputs: qsharp_code, algorithm_template, logical_counts, qubit_model, +14 more. Returns: object
explain_parametersA
Explain resource estimation parameters and recommend configurations for a use case.
If use_case is provided, gives targeted guidance. Valid values:
'cryptography': guidance for quantum attacks on RSA, ECC, AES
'chemistry': guidance for molecular simulation and drug discovery
'optimization': guidance for combinatorial optimization
'general': full parameter reference guide
Returns parameter descriptions, recommended starting configurations, and relevant templates.
Inputs: use_case. Returns: object
generate_frontierA
Generate the Pareto frontier: qubit-count vs. runtime tradeoff for an algorithm.
Provide the algorithm as exactly one of algorithm_template, logical_counts, or qsharp_code.
Returns a list of Pareto-optimal points. Each point represents a configuration where you cannot reduce qubit count without increasing runtime, or vice versa.
First point: minimum qubit count (longest runtime)
Last point: minimum runtime (most qubits)
Optional qubit/QEC overrides (same as estimate_resources):
qubit_model_overrides: JSON string to override specific qubit parameters.
qec_crossing_prefactor, qec_error_correction_threshold: float overrides.
qec_logical_cycle_time, qec_physical_qubits_per_logical: formula string overrides.
Useful for understanding hardware requirements at different time budgets.
Inputs: algorithm_template, logical_counts, qsharp_code, qubit_model, +7 more. Returns: object
list_algorithm_templatesA
List predefined quantum algorithm templates with logical resource counts.
Templates are sourced from published research papers and cover:
cryptography: shor_2048, grover_aes128
chemistry: chemistry_femo
general: qpe_generic
Each template can be passed directly to estimate_resources(algorithm_template=). Returns logical resource counts (numQubits, cczCount, etc.) and source citations.
Inputs: no named parameters. Returns: object
list_qec_schemesA
List available Quantum Error Correction (QEC) schemes with compatibility notes.
Returns details on:
surface_code: Works with all qubit models. The standard choice.
floquet_code: Majorana qubits only. Better overhead for topological hardware.
Use this to understand which qec_scheme to select for estimate_resources().
Inputs: no named parameters. Returns: object
list_qubit_modelsA
List all 6 predefined physical qubit models with gate times, error rates, and descriptions.
Returns information about:
qubit_gate_ns_e3/e4: Superconducting or spin qubits (nanosecond gates)
qubit_gate_us_e3/e4: Trapped-ion qubits (microsecond gates)
qubit_maj_ns_e4/e6: Majorana/topological qubits
Use this to understand which qubit_model to select for estimate_resources().
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose: listing, estimating, comparing, generating frontiers, explaining, and custom modeling. No overlapping functionality.
All tools follow a consistent verb_noun snake_case pattern (e.g., list_qubit_models, estimate_resources). No mixing of conventions.
8 tools is well within the ideal range for a specialized domain like quantum resource estimation. Each tool serves a clear role without being excessive.
The tool set covers the full lifecycle: exploration (list functions), estimation (main and custom), comparison, tradeoff analysis (frontier), and explanation. No obvious gaps.
Maintenance
Related MCP Connectors
Quantum computing jobs, arXiv papers & researcher profiles from qubitsok.com
AI triage for quantum computing POC proposals. Screens before budget is allocated.
Energy impact of LLM quantization, calibrated to measured GPU data. Every answer states its basis.
Quantum on IonQ/IBM/Braket: spending mandates, signed benchmarks, paid PQC CBOM, advantage receipts.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables quantum systems analysis and simulation including quantum circuits, open quantum systems, quantum chemistry calculations, many-body physics, quantum machine learning, and quantum field theory computations.1MIT
- AlicenseNot gradedqualityDmaintenanceSearch 500+ quantum computing jobs, daily arXiv papers, and 1000+ researcher profiles. 7 read-only MCP tools with AI-powered natural language search from qubitsok.com.MIT
- AlicenseNot gradedqualityDmaintenanceQuantum natural-language retrieval MCP server that ranks text passages by semantic relevance using DisCoCat tensor diagrams compiled to variational circuits.MIT
- FlicenseNot gradedqualityDmaintenanceEnables natural language quantum computing by converting English queries to quantum circuits via OpenAI and executing them on IBM Quantum backends or simulators.-