Skip to content

Research review 1 paper

IBM Quantum Generative AI Coding: Skills, MCP Servers, and Validation

IBM Quantum has moved past a standalone hosted code model toward a grounded agent stack: five open-source Qiskit AI Skills, five FastMCP servers, and multi-stage local verification before code touches real QPU time.

By AgentsPulse Editorial Team 16 min read Published December 3, 2026 Updated December 3, 2026
Review scope IBM Quantum Blog (Dec 2, 2026) · Qiskit/skills & Qiskit/mcp-servers Source Inspection · Qiskit HumanEval Benchmarks · IBM Research OpenEvolve QEC (arXiv:2606.02418)

Primary papers, system diagrams, benchmarks, and stated limitations.

IBM Quantum illustration pairing neural network nodes with a quantum circuit grid

IBM Quantum generative AI coding now runs on a two-layer grounding stack—five open-source SKILL.md playbooks in Qiskit/skills and five FastMCP tool servers in Qiskit/mcp-servers—that lets Claude Code, Codex CLI, Cursor, and IBM Bob write and validate current Qiskit code locally before touching billable hardware. In its December 2, 2026 engineering post, IBM Quantum outlined this workflow alongside internal developer reports of roughly 10x speedups on narrow, well-scoped tasks (self-reported internal feedback, not a controlled benchmark).

Source inspection across IBM’s repositories reveals the pivot behind that post. IBM discontinued the hosted Qiskit Code Assistant service and deleted qiskit-code-assistant-mcp-server in commit 0610fd0 (-6,938 lines), keeping open-weight Qiskit checkpoints on Hugging Face while moving active tooling to inference-time grounding. Comparing IBM’s Qiskit HumanEval-Hard scores, the select-error-mitigation and migrate-qiskit-ibm-runtime skill pipelines, and IBM Research’s OpenEvolve QEC cascade explains how this architecture guards against API drift and runaway QPU usage.

IBM Quantum generative AI coding vs Qiskit Code Assistant

IBM shifted IBM Quantum generative AI coding away from the hosted Qiskit Code Assistant service because static fine-tuned model weights age out faster than the Qiskit SDK and runtime interfaces evolve. Instead of retraining and hosting a dedicated model every time primitives change, IBM now injects current API rules at runtime through Qiskit/skills and live documentation/hardware queries through Qiskit/mcp-servers.

Three-layer architecture diagram of the late-2026 IBM Quantum generative AI coding stack showing General Coding Agents connected to Qiskit AI Skills and Qiskit FastMCP Servers, gated by Local Verification before IBM Quantum Platform execution, with Hosted Code Assistant marked discontinued

Late-2026 IBM Quantum AI coding stack: portable SKILL.md playbooks and FastMCP tool servers replace the discontinued hosted Code Assistant service, gating cloud QPU jobs behind local ISA and NEAT verification. Based on IBM Quantum blog (Dec 2, 2026), Qiskit/skills, and Qiskit/mcp-servers.

The numbers on IBM’s own Hugging Face model card for Qiskit/mistral-small-3.2-24b-qiskit quantify the problem. IBM evaluated its open-weight fine-tuned models on two execution-based suites of roughly 150 Qiskit tasks each: QiskitHumanEval (where imports are given) and QiskitHumanEval-Hard (where import lines are stripped, forcing the model to recall exact modern module paths and class names).

Model (IBM Qiskit Open Weights) QiskitHumanEval (%) QiskitHumanEval-Hard (%) Drop Without Imports Standard HumanEval (%)
mistral-small-3.2-24b-qiskit 47.02 32.45 -14.57 pts 77.49
qwen2.5-coder-14b-qiskit 49.01 25.17 -23.84 pts 91.46
granite-3.3-8b-qiskit 27.15 14.57 -12.58 pts 62.80
granite-3.2-8b-qiskit 24.50 9.93 -14.57 pts 57.32

Source: IBM vendor-reported scores on the Qiskit/mistral-small-3.2-24b-qiskit model card (Apache 2.0, trained against Qiskit 2.1, 128K context).

Even specialized checkpoints tuned specifically on Qiskit code lose 12.6 to 23.8 percentage points the moment import hints disappear—and mistral-small-3.2-24b-qiskit was trained on Qiskit 2.1. By late 2026, Qiskit had reached v2.6.2, IBM Quantum Compute Service had dropped support for QPY versions older than 13, and qiskit-ibm-runtime 0.50.0 had deprecated server-side EstimatorV2 and SamplerV2 in favor of client-side Executor-backed primitives. Fine-tuning alone cannot keep pace with breaking runtime transitions.

Commit 0610fd0 in Qiskit/mcp-servers confirms the operational result: IBM removed qiskit-code-assistant-mcp-server completely (37 files changed, 6,938 lines deleted), citing the discontinuation of the hosted IBM Qiskit Code Assistant service (the archived sunset announcement URL referenced in the commit currently returns HTTP 404, while the repository README explicitly marks the PyPI package archived and unmaintained). Developers who want local open weights can still pull Qiskit/mistral-small-3.2-24b-qiskit from Hugging Face, but IBM’s maintained workflow now assumes you bring your own general coding agent and ground it at inference time.

Routing general coding agents across models. Because IBM's current stack decouples Qiskit grounding from any single hosted model, teams can pair the same Qiskit/skills and FastMCP servers with whichever frontier coding model fits their codebase—and if you prefer managing multiple model APIs under one endpoint rather than juggling separate vendor accounts, a unified gateway such as PackyAPI is an option alongside local or direct provider keys.

Qiskit AI skills architecture and grounding

Qiskit AI skills (Qiskit/skills, Apache 2.0) are structured SKILL.md instruction packages paired with machine-readable YAML registries and helper scripts that force a coding agent through deterministic decision phases instead of letting it improvise from stale pretraining weights. This mirrors the broader split across modern agent harnesses—examined in our breakdown of Claude Plugins vs Skills and Connectors and why production harnesses separate rules from runtimes—where skills supply procedural decision trees and MCP servers supply live execution tools.

As of December 2026, Qiskit/skills ships five official skills, all auto-loaded when a user’s prompt matches their trigger descriptions:

Skill Target Problem Grounding Assets Inside the Skill
select-error-mitigation Choosing and configuring Estimator, Sampler, or Executor mitigation 6-phase prompt, 13-capability registry.yaml, per-method docs, inspect_isa.py, verification.md
migrate-qiskit-ibm-runtime Upgrading legacy qiskit-ibm-runtime workloads Change-agnostic registry.yaml, version-window grep rules, live release-note URLs, Hop A → Hop B path
managed-workflows-quickstart Moving local AQC-Tensor, QAOA, SQD, or VQE code to cloud workers Client-side size calculator, compute_profiles(), 24-hour execution limit rules
select-sqd-eigensolver Picking SCI solvers for Sample-based Quantum Diagonalization Solver capability matrix covering PySCF, Dice, SBD, and Fulqrum (paired with scipy or PRIMME)
simulate-fermionic-systems Mapping fermionic Hamiltonians onto qubits via qiskit-fermions Jordan-Wigner / ternary-tree encodings, Trotter depth optimization, ffsim verification

Two architectural properties separate these skills from generic system prompts. First, every major skill anchors its reasoning in a local registry.yaml manifest rather than inline prose lists, explicitly instructing the agent to ignore its prior knowledge whenever a capability’s use_when, avoid_when, or prerequisites frontmatter disagrees. Second, the skills separate mechanical, result-preserving edits (which the agent can apply directly) from result-changing choices (such as changing mitigation bias or dropping fractional gates), which must be flagged for human approval before modifying files.

IBM also publishes a non-contractual roadmap in the repository: problem-aware layout selection is slated for Q4 2026, followed in 2027 by hardware circuit optimization, general Qiskit SDK migration, hardware performance optimization, and domain-specific problem mapping.

Select-error-mitigation and runtime migration workflows

select-error-mitigation runs a six-phase local simulator and QPU-time audit across 13 mitigation capabilities, while migrate-qiskit-ibm-runtime executes a two-hop state machine from legacy APIs to qiskit-ibm-runtime 0.50.0 client-side primitives. Both skills enforce verification before editing user code.

Qiskit select-error-mitigation workflow: accuracy vs QPU time

select-error-mitigation/SKILL.md prevents coding agents from guessing Zero-Noise Extrapolation (ZNE) or Probabilistic Error Cancellation (PEC) from a chat prompt by running six sequential phases:

  1. Phase 0 (Runtime version check): Runs importlib.metadata.version("qiskit-ibm-runtime") to branch between >= 0.50.0 (client-side executor_estimator / executor_sampler primitives and explicit NoiseLearnerV3 jobs) and < 0.50.0 (deprecated server-side primitives).
  2. Phase 1 & 1.5 (Context & transpiled ISA audit): Runs scripts/inspect_isa.py locally on the transpiled (isa_circuit, isa_observable) tuples—checking two-qubit gate depth against connectivity minimums (flagging serialized commuting terms that should be edge-colored before paying for mitigation), detecting rx vs rzz fractional gates, measuring idle windows against T2, and counting unique entangling layers.
  3. Phase 2–3 (Registry coarse filter & contraindications): Filters the 13 capabilities in registry.yaml—spanning baseline (resilience_level=0), Dynamical Decoupling, Pauli Twirling, TREX (resilience_level=1), gate-folding ZNE (resilience_level=2), ZNE-PEA, PEC, M3 (mthree), plus Executor/addon methods (PEC+SLC via qiskit-addon-slc, OBP, PNA, non-Markovian post-selection, and SQD)—eliminating any option tripped by avoid_when.
  4. Phase 4.5 (Local empirical verification): Runs simulator checks in a background command or subagent via four methods documented in verification.md: Method A (hand-modeled emulation over NEAT Clifford surrogates), Method B (density-matrix patch), Method C (local testing mode with C1 statevector or C2 stabilizer), and Method D (local Executor with qiskit-mitigation).
  5. Phase 5 (Structured trade-off report): Summarizes accuracy gains versus estimated QPU time—reported strictly in seconds/minutes or Resource Units (1 RU = 1 minute of standard QPU time), never guessed dollar prices—and updates code only after user approval.

The skill bakes in hard operational caveats that unguided LLMs routinely miss. Under NoiseLearnerV3 defaults (32 randomizations × 128 shots), noise learning costs roughly 1 minute of QPU time per unique entangling layer. Inside variational optimization loops, high-overhead methods (ZNE, PEA, PEC) multiply by every iteration, so the skill restricts loop mitigation to rl0, trex, or trex_twirl and reserves ZNE/PEC for the single final evaluation. Its own verification.md also warns that Method A’s per-gate depolarizing noise model favors gate-folding over PEA, and recommends IBM Quantum’s zero-charge dry_run=True job option (available on Flex, Premium, and On-Prem plans since November 2026) whenever exact RU usage decides the choice. That emphasis on non-gameable local checks echoes the broader pattern in hardening Claude Code verification loops.

Qiskit migrate-qiskit-ibm-runtime workflow: two-hop API upgrades

migrate-qiskit-ibm-runtime/SKILL.md splits legacy upgrades into a two-hop state machine so agents do not mix incompatible runtime versions:

  • Hop A (Legacy to latest documented API): Detects historical breakages via primary and secondary grep triggers—ranging from IBMSampler/IBMEstimator (pre-0.5), IBMRuntimeService (pre-0.6), and V1 quasi_dists/.values (pre-0.28) to backend.run( (pre-0.35) and channel="ibm_quantum" (pre-0.42)—and grounds every rewrite in each change’s guide or live release-note URL.
  • Hop B (Server-side V2 to client-side primitives): Executes only when the locally installed qiskit-ibm-runtime is >= 0.50.0, migrating deprecated server-side SamplerV2/EstimatorV2 calls to Executor-backed client-side primitives (executor_sampler / executor_estimator), then verifying that all imports and option paths resolve locally.

OpenEvolve LLM verification cascade for quantum research

IBM Research’s OpenEvolve framework (qiskit-community/qcode-discovery, arXiv:2606.02418) discovered 465 candidate bivariate bicycle quantum error correction codes by pairing LLM-proposed Python diffs with a deterministic three-stage filter: fast k-only screening, BP-OSD decoding, and exact MILP distance verification. Beyond day-to-day SDK coding, this June 2026 project—highlighted in IBM Quantum’s December 2 blog—shows how researchers use generative AI to expand mathematical search spaces while delegating acceptance strictly to solvers.

IBM Research OpenEvolve three-stage verification flowchart: Seed ansatz to LLM diff to Stage 1 k-only screening (~2s, ~30% filtered), Stage 2 BP-OSD top-10 across 8 lattices (~30-60s), Stage 3 MILP exact distance, MAP-Elites archive feedback loop, and post-campaign verification into Verified code catalog

IBM Research’s OpenEvolve cascade filters LLM-proposed algebraic code generators through fast k-only screening (~2s), BP-OSD decoding (~30–60s), and exact MILP distance verification before feeding winners back to the archive. Source: IBM Research.

In OpenEvolve, the LLM proposes code diffs to a Python generator generate_candidates(ell, m) that outputs polynomial pairs defining BB codes. Every mutated generator passes through a cascading funnel:

  1. Stage 1 (k-only screening, ~2 seconds): Runs quick logical-qubit checks on (6,6) and (12,6) lattices, discarding roughly 30% of weak candidates immediately.
  2. Stage 2 (BP-OSD decoding, ~30–60 seconds): Evaluates the top-10 surviving codes across 8 lattices with Belief Propagation and Ordered Statistics Decoding—fast enough for evolutionary loops, though approximate.
  3. Stage 3 (Exact MILP distance, Campaigns 4–5): Applies computationally expensive mixed-integer linear programming to verify exact code distance on top candidates, followed by post-campaign MILP, BLISS graph deduplication, Tanner-graph decomposability, and local-Clifford equivalence checks.

Log-scale plot of block logical error rate versus physical error rate p from 0.00 to 0.08 comparing IBM Gross [[144,12,12]] code against OpenEvolve candidates including [[288,50,8]], [[288,16,12]], PBB [[72,4,8]], and PBB [[360,12,<=24]] under code-capacity noise

Code-capacity block logical error rates for selected OpenEvolve candidates alongside IBM’s [[144,12,12]] Gross code. Source: IBM Research.

Across its initial evolutionary campaigns, the framework surfaced 465 distinct candidate QEC codes. The headline outlier encodes 50 logical qubits ([[288,50,8]], up from a prior 16-qubit mark for the corresponding family), though IBM explicitly notes its low distance limits practical utility. Other candidates include a compact 72-physical-qubit PBB code ([[72,4,8]]) and balanced options such as [[288,16,12]] and [[360,12,≤24]] that compare competitively with IBM’s planned [[144,12,12]] Gross code under idealized code-capacity noise. IBM’s researchers emphasize that real-world circuit-level hardware implementation remains unverified—underscoring the same engineering rule behind IBM’s coding skills: generative AI expands the search front, while deterministic solvers and human domain checks decide what is actually valid.

How to connect Qiskit MCP servers and skills to AI coding tools

You can wire IBM’s grounding stack into existing AI coding tools in under five minutes by installing Qiskit/skills for procedural playbooks and Qiskit/mcp-servers (Python 3.10+, FastMCP, Apache 2.0) for live docs, local circuit synthesis, and IBM Quantum cloud access.

Step 1: Install Qiskit AI skills for Claude Code, Codex, Cursor, or IBM Bob

The skills repository supports native plugin marketplaces, the generic skills CLI, and direct directory cloning:

Coding Agent Installation Command / Path
Any Agent (CLI) npx skills add Qiskit/skills (update via npx skills update)
Claude Code /plugin marketplace add Qiskit/skills then /plugin install qiskit-ai-skills@qiskit
Codex CLI codex plugin marketplace add Qiskit/skills then codex plugin add qiskit-ai-skills@qiskit
Cursor Cursor marketplace or npx skills add Qiskit/skills --agent cursor
IBM Bob Clone Qiskit/skills (.bob/skills/<name> symlinks auto-load) or npx skills add Qiskit/skills --agent bob

Step 2: Configure local vs cloud Qiskit MCP servers

Qiskit/mcp-servers packages four core FastMCP servers plus one community server (pip install "qiskit-mcp-servers[all]" or zero-install execution via uvx). Keep local, token-free servers separate from cloud servers that hold your QISKIT_IBM_TOKEN:

MCP Server (uvx command) Scope Requires QISKIT_IBM_TOKEN? Primary Use
qiskit-mcp-server Core (local) No Circuit creation, local transpilation, OpenQASM 3 / QPY serialization
qiskit-docs-mcp-server Core (local/docs) No Live search across current Qiskit SDK docs, guides, and API references
qiskit-gym-mcp-server Community (local) No RL-based circuit synthesis (permutation routing, linear functions, Clifford circuits)
qiskit-ibm-runtime-mcp-server Core (cloud) Yes Inspect backends/calibrations, run EstimatorV2/SamplerV2 jobs, monitor queues
qiskit-ibm-transpiler-mcp-server Core (cloud) Yes AI-powered circuit routing and transpilation via IBM Transpiler service

For Claude Code, start with the local, read-only documentation and simulator servers before attaching a live cloud token:

# No IBM Quantum token required (safe default for local dev & docs grounding)
claude mcp add qiskit -- uvx qiskit-mcp-server
claude mcp add qiskit-docs -- uvx qiskit-docs-mcp-server

# Optional: connect live IBM Quantum cloud backends (guard with dry_run=True and approval gates)
claude mcp add qiskit-ibm-runtime -e QISKIT_IBM_TOKEN=$QISKIT_IBM_TOKEN -- uvx qiskit-ibm-runtime-mcp-server

Attaching qiskit-ibm-runtime-mcp-server gives an agent live API access to billable QPU allocations—including high-throughput 120-qubit Nighthawk r2 backends like ibm_phoenix and ibm_chicago. Treat that credential with the same operational controls outlined in our guides on agent internal access security boundaries, writing human approval policies for Claude Code, and tracking cost per successful agent task, alongside multi-agent router and worker isolation: keep requirements in spec files rather than ad hoc chat prompts, run inspect_isa.py and dry_run=True before submitting hardware jobs, and inspect diffs file by file before merging generated quantum code.

References

  1. Catherine Dundon, Steven Hergenrother, and Robert Davis, Writing quantum code with generative AI, IBM Quantum Computing Blog, December 2, 2026.
  2. Qiskit / IBM Quantum, Qiskit/skills — Official Agent Skills for Qiskit (select-error-mitigation/SKILL.md, registry.yaml, verification.md, and migrate-qiskit-ibm-runtime/SKILL.md, inspected December 3, 2026).
  3. Qiskit / IBM Quantum, Qiskit/mcp-servers — FastMCP Servers for Qiskit and IBM Quantum (including commit 0610fd0 removing qiskit-code-assistant-mcp-server, inspected December 3, 2026).
  4. Qiskit / IBM Quantum, Qiskit/mistral-small-3.2-24b-qiskit Model Card & QiskitHumanEval Benchmarks, Hugging Face (Apache 2.0, Qiskit 2.1).
  5. Matthew Marwick, Can LLMs discover quantum error correction codes?, IBM Research Blog, June 11, 2026 (covering arXiv:2606.02418 and qiskit-community/qcode-discovery).