Qasmguard for OpenQASM lint, simulation, routing & FTQC

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

¿Debería usar esto?

Calidad y seguridad

A
Calidad de la descripción
90%
Integridad del esquema
99%
Calidad de los nombres
80%
Riesgo de envenenamiento
100%
Coincidencia de permisos
100%
Cumplimiento del protocolo
100%

Hallazgos (1)

  • LOWTool 'q_simulate' description lacks action verben q_simulate

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~1,874Tokens (definiciones de herramientas)
~1.9 KBTamaño de respuesta típico
Impacto moderado en la atención (1.46% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

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

Puntos de conexión remotos

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

Qué puede hacer

Inventario de herramientas

Herramientas (7)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟢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"}.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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.

Esquema de entrada

{
  "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
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada7 herramientas