Qasmguard for OpenQASM lint, simulation, routing & FTQC

Free OpenQASM lint, profile, sim & Pauli grouping. Metered equiv, routing & FTQC.

使うべきか

品質と安全性

A
説明の品質
90%
スキーマの完全性
99%
命名の品質
80%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

検出事項(1)

  • LOWTool 'q_simulate' description lacks action verbq_simulate 内

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~1,874トークン数(ツール定義)
~1.9 KB一般的なレスポンスサイズ
注意への影響は中程度(128k コンテキストの 1.46%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

{
  "mcpServers": {
    "qasmguard": {
      "url": "https://qasmguard-mcp.raymond-deoliveira.workers.dev/mcp"
    }
  }
}

リモートエンドポイント

https://qasmguard-mcp.raymond-deoliveira.workers.dev/mcpstreamable-http

できること

ツール一覧

ツール(7)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
🟢q_lint_qasm(qasm, strict)

Free tier: OpenQASM 2.0/3.0 lexer, AST parser, and 15 static preflight checks (bounds, arity, q0_lsb endianness). Example: {"qasm":"OPENQASM 2.0;\nqreg q[2];\nh q[0];\ncx q[0],q[1];\n"}.

入力スキーマ

{
  "type": "object",
  "properties": {
    "qasm": {
      "type": "string",
      "minLength": 1,
      "description": "OpenQASM 2.0 or 3.0 source string (<= 262,144 bytes)."
    },
    "strict": {
      "type": "boolean",
      "description": "When true, warnings mark valid=false (default false)."
    }
  },
  "required": [
    "qasm"
  ],
  "additionalProperties": false
}
🟢q_profile_circuit(qasm, hardwarePreset)

Free tier: Circuit DAG depth, gate histogram, Clifford+T counts, and NISQ survival fidelity for willow-105, sycamore-54, ibm-heron-133, or ionq-forte.

入力スキーマ

{
  "type": "object",
  "properties": {
    "qasm": {
      "type": "string",
      "minLength": 1,
      "description": "OpenQASM 2.0 or 3.0 source string."
    },
    "hardwarePreset": {
      "type": "string",
      "enum": [
        "willow-105",
        "sycamore-54",
        "ibm-heron-133",
        "ionq-forte"
      ],
      "description": "Target QPU noise and capacity preset (default willow-105)."
    }
  },
  "required": [
    "qasm"
  ],
  "additionalProperties": false
}
🟢q_simulate(qasm, mode, shots, seed, observables)

Free tier: Exact dense statevector (<=12Q) and bit-packed Clifford stabilizer (<=256Q) simulator with seeded shots and q0_lsb Pauli expectations.

入力スキーマ

{
  "type": "object",
  "properties": {
    "qasm": {
      "type": "string",
      "minLength": 1,
      "description": "OpenQASM 2.0 or 3.0 source string."
    },
    "mode": {
      "type": "string",
      "enum": [
        "auto",
        "statevector",
        "stabilizer"
      ],
      "description": "Simulation backend: auto (<=12Q statevector or <=256Q Clifford), statevector, or stabilizer."
    },
    "shots": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000,
      "description": "Shot samples in [0, 100000] (default 1024)."
    },
    "seed": {
      "type": "integer",
      "description": "Deterministic Mulberry32 PRNG seed (default 42)."
    },
    "observables": {
      "type": "array",
      "maxItems": 64,
      "items": {
        "type": "string",
        "minLength": 1
      },
      "description": "Up to 64 Pauli observable strings over {I,X,Y,Z} in q0_lsb order."
    }
  },
  "required": [
    "qasm"
  ],
  "additionalProperties": false
}
🟢q_pauli_group(terms, strategy, totalShots)

Free tier: Symplectic Pauli Hamiltonian grouping (QWC and General Commuting) with Neyman variance-optimal shot allocation.

入力スキーマ

{
  "type": "object",
  "properties": {
    "terms": {
      "type": "array",
      "minItems": 1,
      "maxItems": 2048,
      "description": "Pauli Hamiltonian terms (1..2048).",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "pauli",
          "coeff"
        ],
        "properties": {
          "pauli": {
            "type": "string",
            "minLength": 1,
            "description": "Pauli string over I, X, Y, Z."
          },
          "coeff": {
            "type": "number",
            "description": "Real Hamiltonian coefficient."
          }
        }
      }
    },
    "strategy": {
      "type": "string",
      "enum": [
        "qwc",
        "gc"
      ],
      "description": "Grouping strategy: qwc or gc (default qwc)."
    },
    "totalShots": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10000000,
      "description": "Neyman shot budget (default 10000)."
    }
  },
  "required": [
    "terms"
  ],
  "additionalProperties": false
}
🟢q_equivalence_check(qasmA, qasmB, seed, tolerance, checkEndianness)

Metered ($0.005): Exact unitary (<=6Q), multi-probe statevector (<=12Q), and Clifford Heisenberg (<=256Q) circuit equivalence checker with global-phase and endianness-reversal diagnostics.

入力スキーマ

{
  "type": "object",
  "properties": {
    "qasmA": {
      "type": "string",
      "minLength": 1,
      "description": "Reference OpenQASM 2.0/3.0 circuit."
    },
    "qasmB": {
      "type": "string",
      "minLength": 1,
      "description": "Candidate OpenQASM 2.0/3.0 circuit."
    },
    "seed": {
      "type": "integer",
      "description": "PRNG seed for 7-12Q multi-probe checks (default 42)."
    },
    "tolerance": {
      "type": "number",
      "exclusiveMinimum": 0,
      "exclusiveMaximum": 1,
      "description": "Amplitude error tolerance in (0, 1) (default 1e-9)."
    },
    "checkEndianness": {
      "type": "boolean",
      "description": "Detect q[k]<->q[n-1-k] endianness reversal (default true)."
    }
  },
  "required": [
    "qasmA",
    "qasmB"
  ],
  "additionalProperties": false
}
🟢q_transpile_route(qasm, preset, customEdges, maxIterations)

Metered ($0.010): Deterministic bidirectional SABRE SWAP router onto willow-105, sycamore-54, ibm-heron-133, ionq-forte, line, ring, or customEdges.

入力スキーマ

{
  "type": "object",
  "properties": {
    "qasm": {
      "type": "string",
      "minLength": 1,
      "description": "OpenQASM 2.0/3.0 circuit to route."
    },
    "preset": {
      "type": "string",
      "enum": [
        "willow-105",
        "sycamore-54",
        "ibm-heron-133",
        "ionq-forte",
        "line",
        "ring"
      ],
      "description": "Target coupling map preset (default willow-105)."
    },
    "customEdges": {
      "type": "array",
      "description": "Optional custom undirected coupling edges [[u, v], ...].",
      "items": {
        "type": "array",
        "minItems": 2,
        "maxItems": 2,
        "items": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "maxIterations": {
      "type": "integer",
      "minimum": 1,
      "description": "Bidirectional SABRE pass count >= 1 (default 3)."
    }
  },
  "required": [
    "qasm"
  ],
  "additionalProperties": false
}
🟢q_ftqc_estimate(qasm, logicalQubits, tCount, tDepth, measurementCount, ...)

Metered ($0.020): Qualtran/Willow-calibrated surface-code distance, distillation/cultivation factory sizing, runtime, and Pareto trade-off estimator.

入力スキーマ

{
  "type": "object",
  "properties": {
    "qasm": {
      "type": "string",
      "minLength": 1,
      "description": "Optional OpenQASM circuit to auto-extract logicalQubits, tCount, tDepth."
    },
    "logicalQubits": {
      "type": "integer",
      "minimum": 1,
      "description": "Logical qubit count (>= 1) if qasm omitted or overridden."
    },
    "tCount": {
      "type": "integer",
      "minimum": 0,
      "description": "Total T-gate count (>= 0)."
    },
    "tDepth": {
      "type": "integer",
      "minimum": 0,
      "description": "Critical-path T-depth (<= tCount)."
    },
    "measurementCount": {
      "type": "integer",
      "minimum": 0,
      "description": "Logical measurement count (>= 0)."
    },
    "targetTotalError": {
      "type": "number",
      "exclusiveMinimum": 0,
      "exclusiveMaximum": 1,
      "description": "Target total algorithm failure probability in (0, 1) (default 0.01)."
    },
    "hardwareProfile": {
      "type": "string",
      "enum": [
        "willow-superconducting",
        "optimistic-superconducting",
        "trapped-ion",
        "neutral-atom"
      ],
      "description": "Physical fault-tolerant architecture profile (default willow-superconducting)."
    },
    "factoryType": {
      "type": "string",
      "enum": [
        "15-to-1-distillation",
        "cultivation"
      ],
      "description": "Magic-state factory architecture (default 15-to-1-distillation)."
    }
  },
  "additionalProperties": false
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 7 件