
Quantum OpenQASM MCP
io.github.markusvankempen由 GitHub 账号 markusvankempen 发布v1.7.3更新于 Oct 24, 2026
IBM Quantum OpenQASM 2.0 MCP — list backends, submit QASM, poll jobs, get histograms.
概览
本地 MCP 服务器,让助手列出 IBM Quantum 后端、提交 OpenQASM 2.0 电路、轮询任务并读取测量直方图。
- 可以做什么
- 列出并查看 IBM Quantum 后端,包括所选后端的状态和队列信息。将 OpenQASM 2.0 电路作为任务提交到 IBM Quantum 硬件或模拟器。轮询任务状态并取消正在运行的任务。获取已完成任务的测量计数和直方图结果。
- 适用场景
- 适合希望助手在不离开对话或编辑器的情况下在 IBM Quantum 上运行量子电路的场景,例如测试 Bell 态或 GHZ 示例、比较后端,或查看已提交任务的结果。
- 运行要求
- 以 npm 包形式通过 stdio 在本地运行,需要 Node.js 18 或更高版本。需要具备 IBM Quantum 访问权限的 IBM Cloud 账户:IBM_API_KEY 中的 API 密钥和 IBM_SERVICE_CRN 中的服务实例 CRN。可选的 IBM_QUANTUM_BACKEND 和 IBM_QUANTUM_ENDPOINT 用于设置默认后端和 API 区域。需要能访问 IBM Quantum API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Quantum OpenQASM MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Quantum OpenQASM Assistant
[VS Code Extension] [npm MCP] [GitHub release] [Qiskit Ecosystem] [OpenQASM] [MCP] [IBM Quantum] [License]
[Quantum OpenQASM Assistant — atomic icon with cyan nucleus and purple orbits]
Quantum OpenQASM Assistant is a VS Code extension and Model Context Protocol (MCP) server for IBM Quantum — submit OpenQASM 2.0 circuits to real quantum hardware and simulators from Cursor, VS Code, IBM Bob, and Google Antigravity. Includes Quantum Lab (interactive circuit editor), live job polling, measurement histograms, Bell state / GHZ examples, SamplerV2 REST integration, and one-click MCP setup for AI coding assistants.
Search terms: quantum computing · openqasm · qasm · ibm quantum · qiskit · quantum circuit · quantum hardware · mcp server · model context protocol · cursor mcp · vscode quantum · ai quantum assistant · quantum programming · qubit · bell state
Author: Markus van Kempen
Email: [email protected] · [email protected]
Website: markusvankempen.github.io
No bug too small, no syntax too weird.
Overview
Quantum OpenQASM Assistant connects AI agents and developers to IBM Quantum through a pure TypeScript MCP server and VS Code extension. Submit OpenQASM 2.0 ISA circuits, poll job status, and view measurement histograms — locally via stdio or remotely via SSE on IBM Code Engine.
Source code is maintained in the private dev repo
quantum-openqasm-assistant-dev. Install the product via VS Code Marketplace or npm MCP — not by cloning this repo for extension source.
📖 Documentation hub → docs/README.md · Project structure → docs/PROJECT-STRUCTURE.md · OpenQASM Primer → docs/OPENQASM-PRIMER.md · Tips & Tricks → docs/TIPS-AND-TRICKS.md · Architecture → docs/ARCHITECTURE.md · Local MCP setup → docs/ide/LOCAL-MCP-SETUP.md · Qiskit Developer Pack → docs/ide/QISKIT-DEVELOPER-PACK.md · Deployment → docs/deployments/DEPLOYMENT-SCENARIOS.md · Extension → extension/README.md · Contributing → CONTRIBUTING.md
Repository policy: This public GitHub repo publishes overview and setup documentation. Extension source code, scripts, and examples live in the private dev repo (use
.gitignore.privatewhen setting it up).
Features
MCP tools
Quick start
Prerequisites
- Node.js 18+ (mise recommended — see
mise.toml) - IBM Cloud API key + Quantum Service CRN — cloud.ibm.com/iam/apikeys
Build (private dev repo)
Configure
Or use Quantum → Settings & Diagnostics in the extension.
Test
Install extension
Architecture at a glance
See docs/PROJECT-STRUCTURE.md for the complete file map.
Documentation
Qiskit Integration
Design circuits in Qiskit (or the built-in Qiskit Lab panel), export to OpenQASM 2.0, transpile with AI-powered qiskit-ibm-transpiler, and run on IBM Quantum hardware:
No Qiskit dependency at runtime — the MCP server speaks OpenQASM + IBM Quantum REST directly.
v1.9.2 Qiskit features:
-
Qiskit Lab — 12 templates (Bell, GHZ, Grover, teleportation, VQE ansatz, QAOA, …), local Aer sim, one-click export
-
AI transpilation —
qiskit-ibm-transpilerMCP integration for hardware-native optimization -
quantum-assistantMCP — streamlined MCP key for AI IDE setup -
Full guide: docs/QISKIT-INTEGRATION.md
-
Qiskit Developer Pack (Qiskit MCP + AI transpiler + OpenQASM): docs/ide/QISKIT-DEVELOPER-PACK.md
-
Example script: examples/qiskit-bell-export.py
Security
- API keys live in VS Code settings or
~/.quantum-openqasm-mcp/.env— never in git .env,Internal/, and IDEmcp.jsonfiles are gitignored- Report issues via GitHub Issues
Contributing
Contributions welcome! See CONTRIBUTING.md for the two-repo model, mise tasks, and PR process.
Please read our CODE_OF_CONDUCT.md.
License
Topics & keywords
quantum-computing · quantum-computer · openqasm · openqasm-2 · qasm · ibm-quantum · ibm-cloud · qiskit · quantum-circuit · quantum-hardware · quantum-lab · quantum-programming · quantum-physics · qubit · bell-state · quantum-job · quantum-backend · mcp · model-context-protocol · mcp-server · vscode-extension · cursor · ibm-bob · antigravity · copilot · ai-assistant · typescript · nodejs · histogram · sampler-v2 · code-engine · cloud-quantum
Author: Markus van Kempen
Email: [email protected] · [email protected]
Website: markusvankempen.github.io
No bug too small, no syntax too weird.
来源:README.md,提交 b62b3b9
工具
0版本历史
1- v1.7.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分