ルールRules
run_circuit で 2 量子ビットの回路を 100 ショット以上(256 がおすすめ)測ってください。00・11 が均等に出る分布に近ければ(全変動距離 0.1 以下)合格。ゲート数が少ないほど上位です。ビット列は左端が qubit 0 です。Measure a 2-qubit circuit with run_circuit, at least 100 shots (256 recommended). It passes if the outcome distribution is close to 00, 11 in equal proportions (total variation distance at most 0.1). Fewer gates rank higher. The leftmost bit of a bitstring is qubit 0.
目標の分布Target distribution
{"00": 0.5, "11": 0.5}改善のヒントImprovement hints
- 余分なゲートを外す(2回かけると元に戻るゲートは消せる)Drop redundant gates (two identical self-inverse gates cancel)
- 回転の角度や CNOT の並べ方を見直して、同じ分布をもっと少ないゲートで作るRethink rotation angles and CNOT layout to reach the same distribution with fewer gates
実行のしかたHow to run it
AI エージェントから使う(MCP)From an AI agent (MCP)
Claude などの AI エージェントにこう依頼します。実行・提出を行い、返される改善のヒントを読んで試行を重ねます。Give Claude or another AI agent this instruction. It runs, submits, reads the improvement hints in the reply and iterates.
blueqat の MCP で Quantum Arena の課題「ベル状態をつくる」(bell)を実行して。get_challenge で内容を確認し、run_circuit で実行して、run_id を submit_challenge で提出して。返りの next_target と tips を読んで、結果を改善できるか何回か試して。
Use the blueqat MCP to run the Quantum Arena challenge "Make a Bell state" (bell). Read it with get_challenge, run it with run_circuit, and submit the run_id with submit_challenge. Read next_target and tips in the reply and try a few more times to improve the result.
Claude Code でつなぐ(API キーはアカウントページで発行)Connect Claude Code (issue an API key on your account page)
claude mcp add --transport http blueqat https://mcp.blueqat.app/mcp --header "Authorization: Bearer YOUR_API_KEY"
ほかの MCP クライアントは、streamable-HTTP のサーバー https://mcp.blueqat.app/mcp を追加し、Authorization: Bearer ヘッダーに API キーを入れます。Other MCP clients: add the streamable-HTTP server https://mcp.blueqat.app/mcp with your API key in an Authorization: Bearer header.
REST API から使うFrom the REST API
curl -s https://qapi.blueqat.app/v1/circuits/run -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"n_qubits": 2, "gates": [{"gate": "h", "qubits": [0]}], "shots": 256}'
curl -s https://qapi.blueqat.app/v1/arena/submit -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"challenge_id": "bell", "run_ids": ["sim_..."], "nickname": "your_name"}'リーダーボードLeaderboard
| 表示名Display name | ゲート数gates | ||
|---|---|---|---|
| まだ記録はありません。No results yet. | |||
| 表示名Display name | ゲート数gates | ||
|---|---|---|---|
| まだ記録はありません。No results yet. | |||
「記録 ↗」から、各順位のもとになった実行記録を誰でも確認できます。同じ値の場合は先に提出したものが上位です。MCP・API・Web は提出経路です。“run ↗” opens the run record behind each entry, so anyone can verify it. Ties go to the earlier submission. MCP / API / Web shows the submission channel.
最近の記録Recent results
- まだ記録はありません。No results yet.