シンプルなJSONエンドポイントPlain JSON endpoints
回路はすべてJSON形式のゲートリストとして記述します。詳細なスキーマは /docs のSwagger UIで確認できます。
Every circuit is a plain JSON gate list. Full request/response schemas are in the Swagger UI at /docs.
POST /v1/circuits/run
回路を実行します。ショット数によるカウント、単一の振幅、状態ベクトル全体、ハミルトニアンの期待値のいずれかを返します。 Run a circuit. Returns shot counts, a single amplitude, a full state vector, or a Hamiltonian expectation value.
POST /v1/qaoa/run
QUBO形式で記述した組合せ最適化問題をQAOAで解きます。パラメータ最適化からサンプリングまで一括実行します。 Solve a combinatorial-optimization problem written as a QUBO with QAOA — parameter optimization and sampling in one call.
POST /v1/vqe/run
パウリ・ハミルトニアンの基底状態エネルギーをVQEで求めます。固定のハードウェア効率アンザッツを使用します。 Find a Pauli Hamiltonian's ground-state energy with VQE, using a fixed hardware-efficient ansatz.
POST /v1/circuits/info
回路を実行せずに、深さとゲート数を確認します。 Depth and gate counts for a circuit, without running it.
GET /v1/gates
blueqatが対応する全ゲート名の一覧です — h、cx、rx、toffoliなど。 The full set of gate names blueqat accepts — h, cx, rx, toffoli, and everything in between.
GET /v1/me
現在のアクセストークンのティア(無料/有料)と利用上限を返します。 The tier (free/paid) and resource limits for your current access token.
組合せ最適化を、QAOAで。Combinatorial optimization with QAOA
最小化したい目的関数をQUBO(0/1変数の2次式)として渡すだけで、QAOAのパラメータ最適化からサンプリングまでを1回のAPIリクエストで実行します。MaxCut、数分割、スケジューリングなどの組合せ最適化問題に使えます。 Hand over the objective you want to minimize as a QUBO (a quadratic over 0/1 variables) and one API request runs QAOA parameter optimization through sampling. Works for MaxCut, number partitioning, scheduling, and other combinatorial problems.
QUBOを組み立てるBuild the QUBO
各項は coeff × q_i × q_j × … を表します。例: 三角形グラフのMaxCutは、各辺 (i, j) について −qi − qj + 2qiqj を足し合わせます。
Each term contributes coeff × q_i × q_j × …. Example: MaxCut on a triangle sums −qi − qj + 2qiqj over each edge (i, j).
POST /v1/qaoa/run を呼び出すCall POST /v1/qaoa/run
{"qubo": [
{"coeff": -2, "qubits": [0]}, {"coeff": -2, "qubits": [1]}, {"coeff": -2, "qubits": [2]},
{"coeff": 2, "qubits": [0,1]}, {"coeff": 2, "qubits": [1,2]}, {"coeff": 2, "qubits": [0,2]}
], "steps": 2, "shots": 256}
ソート済みの解を受け取るGet back sorted solutions
目的関数値の小さい順に並んだ解(q0起点のビット列・各ビットの値・目的関数値・出現回数)と、最適化されたQAOAパラメータが返ります。 Solutions come back sorted by objective value — each with a q0-first bitstring, its bits, its objective value, and its sample count — plus the optimized QAOA parameters.
{"best": {"bitstring": "101", "bits": [1,0,1], "value": -2.0, "count": 45}, ...}
シミュレータだけじゃない。実機にも。Not just a simulator. Real hardware, too.
実量子コンピュータに直接ジョブを投入できます。現在は32量子ビットの超伝導プロセッサ(東京リージョン)に接続しています。無料プランでも毎月10ジョブまでお試しいただけます。 Submit jobs directly to real quantum hardware — currently a 32-qubit superconducting processor in the Tokyo region. The free plan includes 10 hardware jobs a month.
GET /v1/hardware/qpus
利用可能なQPU(実機・シミュレータ)の一覧を取得します。 See which QPUs — real hardware and hosted emulators — are available.
GET /v1/hardware/qpus/next-window
実機の次回稼働時刻を確認します。実機は決まった時間帯にしか動きません。 Check when real hardware is next scheduled to run — real QPUs only run during scheduled windows.
POST /v1/hardware/jobs
回路を実機に投入します。誤投入防止のため confirm: true の明示指定が必須です。
Submit a circuit to real hardware. Requires an explicit confirm: true as a safeguard against accidental submission.
GET /v1/hardware/jobs/{id}/result
投入したジョブの結果を取得します(ステータス確認・キャンセル用のエンドポイントもあります)。 Fetch results for a submitted job (status-check and cancel endpoints are also available).
無料で試して、有料でさらに広げるFree to try, paid to push further
利用上限はログインアカウントごとにリクエスト単位で適用されます。MCP版と共通のアカウント・トークンです。 Limits are enforced per request based on your logged-in account. Accounts and tokens are shared with the MCP server.
- Qubit数(シミュレータ)Qubits (simulator)
- ≤ 10
- ショット数Shots
- ≤ 256
- 回路あたりのゲート数Gates per circuit
- ≤ 200
- 同時実行数Concurrent runs
- 1
- タイムアウトTimeout
- 10s
- 実機ジョブHardware jobs
- 10件/月10/mo
- Qubit数(実機)Qubits (hardware)
- ≤ 32
- Qubit数(シミュレータ)Qubits (simulator)
- ≤ 20
- ショット数Shots
- ≤ 4000
- 回路あたりのゲート数Gates per circuit
- ≤ 1000
- 同時実行数Concurrent runs
- 2
- タイムアウトTimeout
- 20s
- 実機ジョブHardware jobs
- 100件/月100/mo
- Qubit数(実機)Qubits (hardware)
- ≤ 32
JPYCでのお支払いに対応Pay with JPYC
月額プランのほかに、日本円ステーブルコイン JPYC で実機ジョブを都度払いできます。月額契約は不要で、使った分だけお支払いいただけます。シミュレータは引き続き無料で、課金対象は実機ジョブのみです。 Besides the monthly plan, you can pay per hardware job with JPYC, the Japanese-yen stablecoin — no subscription, just what you use. The simulator stays free; only real-hardware jobs are charged.
1 JPYC = 1円。ネットワークは Polygon。入金先アドレスと送金先トークンはアカウントページに表示されます。入金の反映は確認後となります。JPYCは資金決済法上の電子決済手段で、暗号資産とは異なります。 1 JPYC = 1 JPY, on Polygon. Your deposit address and the exact token contract are shown on your account page. Deposits are credited after confirmation.
3ステップで最初のリクエストThree steps to your first request
トークンを取得Get a token
https://mcp.blueqat.app/login にアクセスし、blueqatアカウントでログインします。約2時間有効なアクセストークンが発行されます(MCPサーバーと共通です)。サーバー間連携やスクリプトには、アカウントページで発行できる有効期限のないAPIキーが便利です。 Visit https://mcp.blueqat.app/login and sign in with your blueqat account. You'll get back an access token good for about 2 hours (the same token works on the MCP server). For server-to-server use or scripts, issue a no-expiry API key from your account page instead.
リクエストを送るMake a request
トークンを Authorization ヘッダーに付けて呼び出します:
Call it with the token in the Authorization header:
curl -X POST https://qapi.blueqat.app/v1/circuits/run \
-H "Authorization: Bearer <your token>" \
-H "Content-Type: application/json" \
-d '{"n_qubits":2,"gates":[{"gate":"h","qubits":[0]},{"gate":"cx","qubits":[0,1]}],"shots":200}'
スキーマを確認Explore the schema
Swagger UIで全エンドポイントのリクエスト/レスポンス形式を確認できます。 The Swagger UI documents the request/response shape for every endpoint.
openssl s_client -connect qapi.blueqat.app:443 -groups X25519MLKEM768 で確認できます。
Connections support post-quantum hybrid key agreement (X25519MLKEM768). For capable clients, session keys are protected against "harvest-now, decrypt-later" attacks. Verify with openssl s_client -connect qapi.blueqat.app:443 -groups X25519MLKEM768.