
Qiskit Gym MCP Server
io.github.Qiskit由 GitHub 帳號 Qiskit 發布v0.4.2更新於 Oct 24, 2026
MCP server for qiskit-gym reinforcement learning quantum circuit synthesis
概覽
本機 MCP 伺服器,讓助理用 qiskit-gym 訓練強化學習代理並合成量子電路。
- 可以做什麼
- 建立、檢視與刪除用於置換、線性函數與 Clifford 合成的強化學習環境
- 啟動、批次訓練、查詢進度、等待與停止 PPO 或 AlphaZero 訓練工作階段,支援背景執行
- 以已訓練模型合成最佳 SWAP、CNOT 與 Clifford 電路
- 儲存、載入、列出、檢視與刪除磁碟或記憶體中的模型
- 建立耦合圖、擷取 N 量子位元子拓撲,並從離線 IBM 模擬後端取得精確拓撲
- 產生隨機測試輸入,並在 QPY 與 QASM3 之間轉換電路
- 適用情境
- 適合量子計算研究或實驗:需要助理架設 qiskit-gym 環境、執行訓練工作,並在網格、線性或 IBM 硬體拓撲上產生用於路由、CNOT 或 Clifford 合成的最佳化電路。
- 執行需求
- 以 Python 套件(qiskit-gym-mcp-server,可用 uvx 或 pip 安裝)透過 stdio 在本機執行,面向桌面用戶端。不需要任何憑證,包含取得 IBM 模擬後端拓撲。選用環境變數可設定模型與 TensorBoard 目錄及 QISKIT_GYM_MAX_QUBITS 等訓練上限。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Qiskit Gym MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Qiskit Gym MCP Server
A Model Context Protocol (MCP) server that provides reinforcement learning-based quantum circuit synthesis capabilities using qiskit-gym.
Features
- Train RL Models: Train reinforcement learning agents to synthesize optimal quantum circuits
- Background Training: Run long training sessions in background threads with polling support
- Three Synthesis Types:
- Permutation: Qubit routing with minimal SWAP gates
- Linear Function: CNOT synthesis for linear Boolean functions
- Clifford: Optimal Clifford circuit synthesis with custom gate sets
- Hardware Support: Presets for IBM Heron, Nighthawk, and common grid/linear topologies
- Exact IBM Topologies: Access exact coupling maps from IBM Quantum fake backends (offline, no credentials needed)
- Subtopology Extraction: Extract connected subgraphs from hardware coupling maps for targeted training
- Model Persistence: Save, load, and manage trained models
- TensorBoard Integration: Monitor training progress with TensorBoard
Installation
Or install from source:
Quick Start
Claude Desktop Configuration
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
Example Workflow
Tools Reference
Environment Management
Training
Synthesis
Model Management
Coupling Maps
Utility Tools
Hardware Presets
Resources
Configuration
Environment variables:
Development
Dependencies
- qiskit-gym - RL environments for quantum circuit synthesis
- FastMCP - MCP server framework
- Qiskit - Quantum computing framework
- qiskit-ibm-runtime - IBM Quantum access and fake backends
License
Apache 2.0 - See LICENSE for details.
Contributing
See CONTRIBUTING.md for contribution guidelines.
來源:qiskit-gym-mcp-server/README.md,提交 373be19
工具
0版本歷史
2- v0.4.2最新Oct 8, 2026
- v0.4.1Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分