News

日本語 · English · 中文

[Contributed Article] Democratizing Quantum Computing with Server-Side MCP: Attempting to Build Quantum Circuits for AI Agents

blueqat's SDK has been API-ized, and the MCP server "blueqatMCP" was built by having it reside on the server side. Without any environment setup, AI agents can execute Bell states, GHZ states, and Grover's algorithm; in Grover's algorithm, the correct answer 11 is observed in all 1024 shots.

Introduction

Writing code for quantum computers or simulating circuits is often less intuitive compared to classical computing, leading to a significant increase in reliance on coding agents such as Claude Code and Codex.

However, it is not efficient to install the SDK in your local environment every time you run an agent, wasting time on setting up the environment.

Therefore, this time, we have API-ized the SDK of the quantum computing framework "blueqat" and launched an MCP (Model Context Protocol) server called "blueqatMCP," which resides on the server side.

We have created an environment where AI can execute quantum circuits by simply connecting various AI clients to a common interface without polluting your local PC environment. Here, we share the verification logs.
(※As of July 24, 2026, both free and paid accounts can try out the real hardware: https://mcp.blueqat.app/)


Why a "Server-Type" MCP?

While typical MCP servers are often run in local environments (such as Node.js), there are reasons why we deliberately placed ours on the server side this time.

  1. Zero Environment Setup: Clients (such as local Macs) do not need to depend on anything; AI can execute quantum calculations with the same ease as calling an API.
  2. Centralized Management of Authentication and Resources: Limits on the number of qubits and shots, as well as fees for hardware execution, can be securely handled on the server side.
  3. Extending the Agent's Brain Directly: Agents like Claude Code can behave as if they have natively acquired a "brain for quantum computing."

Verification: Having an AI Agent Execute Quantum Circuits

This time, using the permissions of the account's Paid tier (maximum 20 qubits / 4000 shots), we requested several quantum circuits from the AI and verified that they operated correctly.

1. Basic Verification: Bell State (Entanglement of 2 Qubits)

First, we instructed a circuit for the basic Bell state (\(\vert{}00\rangle + \vert{}11\rangle\)) (H gate → CNOT gate) with 1024 shots.

  • AI Behavior: The AI autonomously checked available tools via list_gates and sdk_info, then generated and executed the circuit.
  • Result: 00: 516 times, 11: 508 times (almost half-and-half). 01 and 10 did not appear, and the agent observed perfect quantum entanglement as expected.

2. Advanced: 3-Qubit GHZ State

We extended the 2-qubit Bell state further and requested a state where three qubits were entangled (\(\vert{}000\rangle + \vert{}111\rangle\)).

  • Result: 000: 511 times, 111: 513 times. No intermediate bit flips occurred, allowing us to correctly simulate a strong entangled state where all three bits were perfectly synchronized.

3. Production: 2-Qubit Grover's Search Algorithm

Finally, we challenged the AI to implement "Grover's algorithm," which searches for a specific state (\(\vert{}11\rangle\)) through amplitude amplification.

The circuit configuration was as follows:

  1. Uniform Superposition: Disperse states using \(H\), \(H\)
  2. Oracle: Reverse only the phase of the correct state \(\vert{}11\rangle\) using \(CZ\)
  3. Diffusion Operator: \(H, H \rightarrow X, X \rightarrow CZ \rightarrow X, X \rightarrow H, H\) (Amplitude amplification by inversion around the mean)

Execution Result

Out of 1024 shots, all 1024 outputs were 11!

In the case of 2 qubits (4 possibilities), Grover's iteration theoretically yields a 100% probability of finding the correct answer in exactly one iteration. While a classical brute-force approach would require an average of 2–3 attempts, the AI agent successfully reproduced the process of running quantum amplitude amplification via MCP, determining the result in a single query.


Future Prospects

This verification demonstrated that "by giving abstract instructions to an AI agent, it can autonomously construct, execute, and analyze complex quantum circuits (such as Grover's) via the server-side MCP."

Although currently limited release, we plan to proceed with external releases, including free and paid versions, so that more people can use it.

We will further expand the possibilities of AI × Quantum, including Grover's algorithm for 3 or more qubits, Quantum Fourier Transform (QFT), and even submitting jobs to actual quantum hardware (submit_hardware_job). Those interested, please look forward to future updates!

This article was translated from the Japanese original. 日本語で読む

← Latest articles