{
  "name": "Quantum Expectations",
  "description": "Quantum computing feasibility calculator. The pages listed below register these tools with the in-page model-context API; the same math is also served by the remote MCP server and REST endpoints for non-browser contexts.",
  "pages": [
    "https://www.quantum-expectations.com/",
    "https://www.quantum-expectations.com/guided",
    "https://www.quantum-expectations.com/s"
  ],
  "tools": [
    {
      "name": "compute_expectation",
      "description": "Given a quantum circuit (2-qubit error rate p, qubit count n, depth d), compute the effective error rate, success probability, and optional surface-code or qLDPC overhead. The response is self-describing (formulas, assumptions, caveats, glossary, SOTA hardware, historic series with source URLs) so an agent can reason from one call. For the inverse (\"what hardware do I need?\") use compute_required_error_rate; to rank multiple platforms in one call use compare_hardware_scenarios.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "qubitErrorRate": {
            "description": "Per-gate 2-qubit error rate p, in (0, 0.1]. Supply exactly one of qubitErrorRate or hardwareId.",
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 0.1
          },
          "hardwareId": {
            "description": "Alias for qubitErrorRate: resolves to the 2-qubit error rate of the given SOTA hardware entry from list_current_quantum_computers. Supply exactly one of qubitErrorRate or hardwareId.",
            "type": "string",
            "enum": [
              "trapped-ion",
              "superconducting",
              "neutral-atom"
            ]
          },
          "numQubits": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000000
          },
          "compDepth": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000000000000
          },
          "useErrorCorrection": {
            "default": false,
            "type": "boolean"
          },
          "errorCorrectionCode": {
            "description": "Either \"surface\" (default when useErrorCorrection=true) or a qLDPC code id from list_qldpc_codes. \"surface-code\" is accepted as an alias for \"surface\".",
            "type": "string"
          },
          "distanceSurfaceCode": {
            "type": "integer",
            "minimum": 3,
            "maximum": 31
          },
          "verbose": {
            "default": true,
            "description": "When false, omits hardwareContext, formulas, assumptions, caveats, glossary, examples, and exampleProblems from the response — leaving only modelVersion, scenario, and result. Use for parameter sweeps where that context would repeat unchanged.",
            "type": "boolean"
          }
        },
        "required": [
          "numQubits",
          "compDepth",
          "useErrorCorrection",
          "verbose"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "compute_required_error_rate",
      "description": "Inverse of compute_expectation. Given a circuit (numQubits, compDepth) and an acceptable effective error rate, return the required per-gate logical error rate and, for every EC option (no-EC, surface-code per distance, every qLDPC code), the required physical error rate plus the subset of current SOTA hardware that already qualifies. Answers \"what hardware do I need to run this algorithm?\".",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "numQubits": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000000,
            "description": "Number of logical qubits n in the circuit."
          },
          "compDepth": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000000000000,
            "description": "Circuit depth d (sequential 2-qubit gate layers). Accepts values up to 1e13."
          },
          "acceptableErrorRatePercent": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 100,
            "description": "Upper bound on the effective error rate, as a percent. Default website convention is 33 (i.e. ≤33% effective error is \"acceptable\")."
          }
        },
        "required": [
          "numQubits",
          "compDepth",
          "acceptableErrorRatePercent"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "compare_hardware_scenarios",
      "description": "Run the same circuit against multiple current SOTA hardware entries in one call so an agent can rank platforms without N sequential compute_expectation calls. Defaults to every entry in list_current_quantum_computers when hardwareIds is omitted.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "numQubits": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000000
          },
          "compDepth": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000000000000
          },
          "useErrorCorrection": {
            "default": false,
            "type": "boolean"
          },
          "errorCorrectionCode": {
            "description": "Either \"surface\" (default when useErrorCorrection=true) or a qLDPC code id. \"surface-code\" is accepted as an alias for \"surface\".",
            "type": "string",
            "enum": [
              "surface",
              "bb-144-12-12",
              "surface-code"
            ]
          },
          "distanceSurfaceCode": {
            "description": "Required when useErrorCorrection=true and errorCorrectionCode=\"surface\" (odd integer).",
            "type": "integer",
            "minimum": 3,
            "maximum": 31
          },
          "hardwareIds": {
            "description": "Subset of QUANTUM_COMPUTERS ids to compare. Omit to compare every entry.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "numQubits",
          "compDepth",
          "useErrorCorrection"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "list_current_quantum_computers",
      "description": "Return the representative-entry table of current SOTA quantum computers (id, hardware type, physical qubit count, 2-qubit error rate). Same data that powers the website's \"Current Quantum Computers\" table.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {},
        "additionalProperties": false
      }
    }
  ],
  "related": {
    "mcpEndpoint": "https://www.quantum-expectations.com/api/mcp",
    "agentBrief": "https://www.quantum-expectations.com/agent.txt"
  }
}