프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. Google로 로그인하면 리뷰를 쓸 수 있어요.프로토타입 · 30분마다 업데이트
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요

FlagQuantum MCP Server

제작자: FlagQuantum버전 0.3.2i★ 1 (저장소 전체의 별)i내 컴퓨터에서 실행
레지스트리 이름io.github.FlagQuantum/flagquantum-mcp-server

설치 방법

What it does

Build, compile, run and export FlagQuantum circuits locally. No credentials or outbound network.

  • Connects 내 컴퓨터에서 실행
  • Account or key No key needed
  • Category 기타

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

검사 3/3 통과 · 내 컴퓨터에서 실행돼요

먼저: 어떤 AI를 쓰시나요?

쓰는 앱을 고르면 아래에 단계가 나옵니다.

Claude에 연결할 수 있지만 먼저 준비가 필요해요

FlagQuantum MCP Server 키가 필요해요 (제작자 사이트에서 만들기) · 먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만) · 컴퓨터용 Claude 앱(Windows 또는 Mac)에서만 되고 웹이나 모바일은 안 돼요

  1. Python (uv) 설치

    한 번만 하면 Python (uv)가 필요한 모든 서버에 쓸 수 있어요

    Python (uv) 다운로드 페이지 열기 ↗

  2. FlagQuantum MCP Server에 가입하고 키 만들기

    제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 요금과 무료 요금제는 제작자 사이트에서 확인하세요.

    FlagQuantum MCP Server 사이트 열기 ↗

  3. 컴퓨터용 Claude 앱 설정 파일 열기

    SettingsDeveloperEdit Config

  4. 이 설정을 붙여 넣고 저장

    명령을 확인하는 중 · 확인을 통과하면 복사 버튼이 나타나요

    키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요

  5. Claude를 끄고 다시 열기

  6. 해 보기

    FlagQuantum MCP Server을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude가 FlagQuantum MCP Server을 쓰고 있다고 하거나 답에 FlagQuantum MCP Server 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

ChatGPT는 아직 FlagQuantum MCP Server에 연결할 수 없어요

FlagQuantum MCP Server는 내 컴퓨터에 설치해서 쓰지만 ChatGPT는 웹에서 도는 서버만 연결할 수 있어요

대신 이렇게 할 수 있어요

A · FlagQuantum MCP Server에 연결되는 앱 쓰기

  • FlagQuantum MCP Server 키가 필요해요 (제작자 사이트에서 만들기) · 먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만) · 컴퓨터용 Claude 앱(Windows 또는 Mac)에서만 되고 웹이나 모바일은 안 돼요
  • FlagQuantum MCP Server 키가 필요해요 (제작자 사이트에서 만들기) · 먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만)
  • FlagQuantum MCP Server 키가 필요해요 (제작자 사이트에서 만들기) · 먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만)
  • FlagQuantum MCP Server 키가 필요해요 (제작자 사이트에서 만들기) · 먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만)

B · 기타에서 ChatGPT에 연결되는 다른 서버

같은 분류에서 많이 쓰는 것 중 키 없이 주소만으로 연결되는 것을 골랐어요

Claude Code에 연결할 수 있지만 먼저 준비가 필요해요

FlagQuantum MCP Server 키가 필요해요 (제작자 사이트에서 만들기) · 먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만)

  1. Python (uv) 설치

    한 번만 하면 Python (uv)가 필요한 모든 서버에 쓸 수 있어요

    Python (uv) 다운로드 페이지 열기 ↗

  2. FlagQuantum MCP Server에 가입하고 키 만들기

    제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 요금과 무료 요금제는 제작자 사이트에서 확인하세요.

    FlagQuantum MCP Server 사이트 열기 ↗

  3. 터미널 열기

    Mac: Command+스페이스를 누르고 Terminal 입력 · Windows: PowerShell 열기

  4. 이 명령을 붙여 넣고 Enter

    명령을 확인하는 중 · 확인을 통과하면 복사 버튼이 나타나요

    Enter 전에 “your-value”를 내 키로 바꾸세요

    키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요

  5. Claude Code에서 /mcp 입력

    FlagQuantum MCP Server이 목록에 있고 연결됨으로 보이면 돼요

  6. 해 보기

    FlagQuantum MCP Server을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude Code가 FlagQuantum MCP Server을 쓰고 있다고 하거나 답에 FlagQuantum MCP Server 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Cursor에 연결할 수 있지만 먼저 준비가 필요해요

FlagQuantum MCP Server 키가 필요해요 (제작자 사이트에서 만들기) · 먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만)

  1. Python (uv) 설치

    한 번만 하면 Python (uv)가 필요한 모든 서버에 쓸 수 있어요

    Python (uv) 다운로드 페이지 열기 ↗

  2. FlagQuantum MCP Server에 가입하고 키 만들기

    제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 요금과 무료 요금제는 제작자 사이트에서 확인하세요.

    FlagQuantum MCP Server 사이트 열기 ↗

  3. 이 버튼으로 Cursor 열기

    명령을 확인하는 중 · 확인을 통과하면 복사 버튼이 나타나요

  4. 키 입력

    FlagQuantum MCP Server 설정에서 FLAGQUANTUM_MCP_MAX_QUBITS, FLAGQUANTUM_MCP_MAX_GATES, FLAGQUANTUM_MCP_MAX_IR_BYTES가 비어 있어요. 내 키를 넣고 저장하세요

    키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요

  5. Cursor에서 AI 채팅을 Agent 모드로 열기

  6. 해 보기

    FlagQuantum MCP Server을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Cursor가 FlagQuantum MCP Server을 쓰고 있다고 하거나 답에 FlagQuantum MCP Server 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Cursor 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

VS Code에 연결할 수 있지만 먼저 준비가 필요해요

FlagQuantum MCP Server 키가 필요해요 (제작자 사이트에서 만들기) · 먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만)

  1. Python (uv) 설치

    한 번만 하면 Python (uv)가 필요한 모든 서버에 쓸 수 있어요

    Python (uv) 다운로드 페이지 열기 ↗

  2. FlagQuantum MCP Server에 가입하고 키 만들기

    제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 요금과 무료 요금제는 제작자 사이트에서 확인하세요.

    FlagQuantum MCP Server 사이트 열기 ↗

  3. 이 버튼으로 VS Code 열기

    명령을 확인하는 중 · 확인을 통과하면 복사 버튼이 나타나요

  4. 키 입력

    FlagQuantum MCP Server 설정에서 FLAGQUANTUM_MCP_MAX_QUBITS, FLAGQUANTUM_MCP_MAX_GATES, FLAGQUANTUM_MCP_MAX_IR_BYTES가 비어 있어요. 내 키를 넣고 저장하세요

    키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요

  5. VS Code에서 AI 채팅을 Agent 모드로 열기

  6. 해 보기

    FlagQuantum MCP Server을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ VS Code가 FlagQuantum MCP Server을 쓰고 있다고 하거나 답에 FlagQuantum MCP Server 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 VS Code 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Windsurf, Zed, Gemini CLI 같은 다른 MCP 앱은 추가 방법이 저마다 달라요. 앱 목록에서 확인하세요

MCP를 쓰는 앱 모두 보기 →

JSON 설정은 아래 “개발자용”에 있어요

막혔나요? FlagQuantum MCP Server을 쓰는 사람에게 물어보세요💬 토론 →
개발자용: 터미널 명령과 JSON 설정

컴퓨터에 설치

Claude Code

명령을 확인하는 중 · 확인을 통과하면 복사 버튼이 나타나요

Claude Desktop (claude_desktop_config.json)

명령을 확인하는 중 · 확인을 통과하면 복사 버튼이 나타나요

Cursor (~/.cursor/mcp.json)

명령을 확인하는 중 · 확인을 통과하면 복사 버튼이 나타나요

VS Code (mcp.json)

명령을 확인하는 중 · 확인을 통과하면 복사 버튼이 나타나요

직접 입력할 값

  • FLAGQUANTUM_MCP_MAX_QUBITS env
    Largest circuit width the server will process. Defaults to 24.
  • FLAGQUANTUM_MCP_MAX_GATES env
    Largest instruction count the server will process. Defaults to 10000.
  • FLAGQUANTUM_MCP_MAX_IR_BYTES env
    Largest serialized circuit payload accepted, in bytes. Defaults to 262144.

이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.

한눈에 보기

GitHub 스타i
1 (저장소 전체의 별)
이 저장소에는 MCP 항목이 여러 개 있어 별은 순위에서 한 번만 세요
주간 다운로드i
136/주
라이선스i
Apache-2.0
연결 방식
내 컴퓨터에서 실행
최신 버전i
0.3.2
카테고리i
기타
레지스트리 공개i
2026년 10월 27일
코드 마지막 변경i
2026년 10월 27일
제작자
FlagQuantum
패키지
pypi: flagquantum-mcp-server
웹사이트
github.com
레지스트리 상태
활성

어떤 앱에서 쓸 수 있나요

이 서버의 연결 방식과 각 앱의 공식 문서를 바탕으로 했어요. 2026년 11월 10일 확인.

내 컴퓨터에서 실행하는 앱

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

모든 앱과 장단점 →

할 수 있는 일

내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 13일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 GitHub 계정 FlagQuantum 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요

  • ✓ 통과

    계속 관리되고 있음

    코드 마지막 변경: 17일 전

  • ✓ 통과

    라이선스 있음

    Apache-2.0 사용

  • – 해당 없음

    엔드포인트 응답

    내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요

  • – 해당 없음

    OAuth로 로그인

    내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요

  • … 아직 점검 안 함

    도구 설명에 숨겨진 지시 없음

    내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요

토론

질문하고, 팁을 나누고, 안 되는 점을 알려 주세요. "도움이 됨"이 많은 순서예요.

아직 글이 없어요. 처음으로 질문하거나 공유해 보세요.

이곳의 글은 사용자가 쓴 것으로, PopNx 팀의 글이 아니에요.

Google로 로그인하고 글쓰기

사용자 리뷰

아직 리뷰가 없어요

Google로 로그인하고 리뷰 쓰기

기타 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 19570개 중 0%보다 스타가 많아요
  • 이 카테고리의 다른 서버 19570개 중 70%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 19570개 중 100%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

FlagQuantum MCP Server, 안전한가요?

해당하는 기본 점검 3개 중 3개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 17일 전 변경됐고, 최신 버전(0.3.2)은 17일 전 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Python (uv)도 있어야 해요.

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: World Monitor, Claude Flow, Windmill

같은 카테고리의 다른 것

같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.

카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 102 tools.

제작자: koala73널리 사용됨★ 9.1만오늘 업데이트

클라우드에서 실행✓ 서비스 회사 · worldmonitor.app

Claude Flow

AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.

제작자: ruvnet널리 사용됨↓ 1.4만/주★ 8.2만14개월 전 업데이트

내 컴퓨터에서 실행

Windmill

Run Windmill scripts and flows and manage jobs, schedules, resources and variables.

제작자: windmill-labs널리 사용됨★ 1.9만어제 업데이트

클라우드에서 실행

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

FlagQuantum MCP Server

An MCP server that gives any MCP-compatible agent local access to the FlagQuantum SDK: build, compile, route, serialize and plan quantum circuits — and run them locally — with no credentials, no outbound network access and no hardware submission.

"Outbound" is the load-bearing word. Every tool here runs in this process and reaches nothing; the server never calls a provider, reads a token or submits a job. It can also *listen*, so a gateway that connects to its clients rather than launching them can reach it — see Serving over HTTP. An inbound listener is not egress.

Part of FlagQuantum/mcp-servers.

The mcp-name comment above is not decoration: the MCP Registry reads it from this README to verify that whoever publishes the registry entry also controls the PyPI package. Removing it breaks registry publishing.

What it does

Twenty-seven tools over stdio or Streamable HTTP. The research tools use the installed FlagQuantum service contract directly; the MCP layer does not reimplement request decoding, estimation, provider routing or scientific validation.

Build and inspect

ToolWhat it answers
describe_gate_set_toolWire count, parameter names and aliases for named gates — or every gate
analyze_circuit_toolGate counts, depth, wire usage, two-qubit gate count
describe_layers_toolWhich gates run concurrently, and therefore where the depth comes from
serialize_circuit_toolCanonical IR JSON plus its content hash
deserialize_circuit_toolIs this IR valid, and does it round-trip unchanged?

Parameters

ToolWhat it answers
inspect_parameters_toolIs this circuit parameterized, and where does each symbol sit?
bind_parameters_toolWhat does this ansatz look like once the symbols are numbers?

Compile and route

ToolWhat it answers
optimize_circuit_toolWhat did target-independent optimization change?
compile_circuit_toolWhat circuit does the complete optimize-and-route pipeline produce?
route_circuit_toolWhat does this circuit cost on a line / ring / grid / custom topology?
compare_topologies_toolWhich connectivity is cheapest for this circuit?
describe_topology_toolWhat is the connectivity, and how far apart are two wires?

Export and present

ToolWhat it answers
emit_openqasm_toolOpenQASM 2.0 or 3.0 text
import_openqasm_toolFlagQuantum IR from OpenQASM text — the inverse of emit_openqasm_tool
emit_qcis_toolQCIS text
draw_circuit_toolAn ASCII diagram of the circuit
plan_execution_toolHow would the SDK execute this — which mode, device, how much memory?
plan_evolution_toolValidate and size a continuous-time Lindblad evolution without running it

Run

ToolWhat it answers
simulate_circuit_toolCounts, samples, marginal probabilities or an expectation value from a local statevector run
evolve_dynamics_toolTime-resolved populations, observables and optional density matrices from local Lindblad evolution
train_parameters_toolThe angles that lower a circuit's energy against a Pauli-sum Hamiltonian

Research capability workflow

ToolWhat it answers
search_capabilities_toolWhich approved local research operations match structured filters?
describe_capability_toolWhat exact request, result, limitations and validators does one operation declare?
estimate_capability_toolIs this request supported locally, and what bounded resources does FlagQuantum estimate?
validate_capability_input_toolDoes the complete typed request pass upstream validation?
execute_local_capability_toolWhat Evidence Bundle results from explicit local provider execution?
validate_evidence_toolIs the returned Evidence Bundle intact and scientifically accepted by the named validator?

Four concrete resources include flagquantum://version, flagquantum://gate-set, flagquantum://ir-schema, and the installed research catalog at flagquantum://capabilities/index. Two resource templates expose exact upstream documents without copying them: flagquantum://capabilities/{capability_id}/{version} and flagquantum://schemas/{schema_id}.

Three prompts: build_and_analyze_circuit, compile_for_topology, export_circuit.

These are recipes for the clients that present them to a person — Claude Desktop, the MCP Inspector, a host that turns them into slash commands. An autonomous agent may receive none of them: several recorded sessions could not enumerate them at all, and reported that they could not tell whether prompts existed. So nothing an agent has to know lives only here. Every constraint the prompts state is also in a tool summary, or in the server instructions, or in a resource — the QCIS refusal and the "say what you assumed" rule were the two exceptions, and they are in emit_qcis_tool and bind_parameters_tool now. PROMPT_CONSTRAINTS in tests/test_server_contract.py keeps that true.

Install

pip install flagquantum-mcp-server

This pulls flagquantum, which depends on torch.

Claude Code
claude mcp add flagquantum -- uvx flagquantum-mcp-server
Claude Desktop / Cline
{

"mcpServers": { "flagquantum": { "command": "uvx", "args": ["flagquantum-mcp-server"] } } }

MCP Inspector
npx @modelcontextprotocol/inspector uvx flagquantum-mcp-server
Serving over HTTP

A client that launches a process — Claude Code, Claude Desktop, the Inspector — uses the default stdio transport and needs nothing below. A client that instead *connects* to servers, such as a gateway holding several of them, needs the server to listen:

flagquantum-mcp-server --transport http --host 0.0.0.0 --port 8105 \

--allowed-host quantum-mcp:8105

The endpoint is /mcp on that host and port, and it speaks Streamable HTTP.

FlagDefaultMeaning
--transportstdiostdio or http. The default is unchanged, so nothing that already works needs editing
--host127.0.0.1Interface to bind. Loopback by default: the server does not become reachable by accident
--port8105Port to bind
--allowed-hostnoneA Host header the server will answer, repeatable
--allowed-originnoneA browser Origin the server will answer, repeatable

Binding a non-loopback interface requires `--allowed-host`. Without it the server refuses to start rather than listen on every interface with nothing checking who reaches it:

$ flagquantum-mcp-server --transport http --host 0.0.0.0

usage: flagquantum-mcp-server [-h] ... flagquantum-mcp-server: error: --host 0.0.0.0 is not a loopback address, so the server would answer any Host header that reaches it. Name the hosts it should answer with --allowed-host HOST[:PORT], or bind 127.0.0.1.

Passing any --allowed-host or --allowed-origin turns host validation on; a request carrying an unlisted Host is answered 421 Misdirected Request. Loopback hosts are always answered, so enabling validation cannot lock out a local client.

Two things worth knowing if you are wiring this up:

  • Configure validation through the settings object, not `http_app( allowed_hosts=...)`. That keyword appends to a list which is only consulted once validation is on, so on its own it reads as a security setting and enforces nothing. Measured on fastmcp 3.4.7: a bogus Host is answered 200 with the keyword and 421 through the settings path.
  • `--transport http` adds an inbound socket, not an outbound one. No tool gains a network path; rule 4 in AGENTS.md is unchanged.

Circuit formats

Two input formats are accepted, both of them FlagQuantum's own serialization.

`ir` (canonical) — FlagQuantum IR JSON, as produced by CircuitIR.to_json(). Versioned, hashable, and rejected if it carries unknown fields:

{

"kind": "flagquantum.circuit_ir", "version": "1.0", "n_wires": 2, "dtype": "complex64", "shape": [4], "instructions": [ {"opcode": "h", "wires": [0], "params": {}, "matrix": null, "metadata": {}}, {"opcode": "cx", "wires": [0, 1], "params": {}, "matrix": null, "metadata": {}} ], "observables": [], "measurements": [], "metadata": {} }

`qir` (convenience) — the compact gate list from Circuit.to_qir(), easier to write by hand:

[{"name": "h", "index": [0]}, {"name": "cx", "index": [0, 1]}]

A gate carries its arguments under `parameters`, which the example above never shows because neither gate takes one:

[{"name": "rz", "index": [0], "parameters": {"theta": 0.5}}]

The two formats use different key names, and this is the most common mistake: the gate list calls a gate name and its wires index, while serialized IR calls them opcode and wires. Sending IR keys as qir is rejected with a message that says so by name. An empty gate list is also rejected, because the wire count is inferred from the highest index — an empty list describes no circuit. A bare integer is accepted for a single-wire gate ("index": 0 means "index": [0]).

Either format can be passed to any tool; serialize_circuit_tool converts qir into canonical ir.

One more naming trap: an IR payload's version field is spelled `version`, and sending ir_version instead is rejected as an unknown key — but tool results report that same field as ir_version. The payload key and the reported key are not spelled the same way.

circuit_format is a closed set — the JSON schema publishes "enum": ["ir", "qir"], so a wrong value is rejected before any tool body runs. OpenQASM text is not a supported input. FlagQuantum ships emitters but no QASM parser, so there is nothing to convert it with; a caller holding OpenQASM has to load it into FlagQuantum itself and send the resulting IR.

On parameters

A gate parameter is either a number or a symbol, and a symbol is written as a one-key object naming it:

{"name": "ry", "index": [0], "parameters": {"theta": {"$parameter": "theta"}}}

This works in both input formats. A symbol is what makes a circuit an ansatz: inspect_parameters_tool reports it, and bind_parameters_tool substitutes a number for it.

A bare string is not a symbol. {"theta": "theta"} is a value, not a reference; the SDK stores it as one, so the circuit reports itself as unparameterized. Nothing else complains: draw_circuit_tool prints the value it was handed, and a string prints as RY(theta) — indistinguishable from a real symbol — while plan_execution_tool plans the circuit for execution. So the input boundary rejects it, along with a misspelled marker ({"$unknown": ...}) and a non-string symbol name, naming the gate and the parameter. The other encodings a parameter may carry are $expression, $complex and $tensor; a mapping carrying none of those four keys is rejected for the same reason. The flagquantum://ir-schema resource carries a worked parameter_example.

One rough edge, inherited from the SDK: a *real* symbol is rendered as the SDK's repr of it, so RY(theta) appears as RY(Parameter(name='theta')). FlagQu

앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요