{
  "ok": true,
  "mode": "QUIRQ_SVG_CIRCUIT_SIMULATION",
  "status": "ready",
  "circuits": [
    "bell_pair",
    "ghz_3",
    "ghz_5",
    "qft_4",
    "grover_2",
    "phase_estimation"
  ],
  "description": "QUIRQ SVG Circuit Simulation — governed quantum circuit execution with visual output",
  "usage": "POST { circuit: \"bell_pair\", shots: 1000 }",
  "purpose": "Bidirectional SVG <-> quantum circuit mapping with SMS-safe payload encoding.",
  "mappingTable": {
    "protocol": "QUIRQ_SVG_CIRCUIT_v1",
    "primitives": {
      "circle": {
        "cellTag": "C",
        "circuitGateTag": "C",
        "gateSequence": [
          "RY(geometry)",
          "RZ(fill_phase)"
        ],
        "payloadFields": [
          "cx",
          "cy",
          "r",
          "fill"
        ]
      },
      "rect": {
        "cellTag": "R",
        "circuitGateTag": "R",
        "gateSequence": [
          "RX(geometry)",
          "RZ(fill_phase)"
        ],
        "payloadFields": [
          "x",
          "y",
          "width",
          "height",
          "fill"
        ]
      }
    },
    "colorEncoding": {
      "namedPalette": [
        "R",
        "B",
        "G",
        "Y",
        "K",
        "W",
        "O",
        "P",
        "C",
        "M"
      ],
      "extendedHexPrefix": "H + RRGGBB"
    }
  },
  "smsPayloadSpec": {
    "format": "QS1|<w36>.<h36>|<cell>;<cell>;...|<checksum36>",
    "cellGrammar": {
      "circle": "C.<cx36>.<cy36>.<r36>.<fillCode>",
      "rect": "R.<x36>.<y36>.<w36>.<h36>.<fillCode>"
    },
    "checksum": "FNV-1a style 32-bit hash encoded in base36",
    "transport": [
      "SMS",
      "RCS",
      "iMessage",
      "QR",
      "chat"
    ],
    "notes": [
      "Lossless for supported primitives and bounded integer geometry (0-4095).",
      "Payload is plain text and can be segmented if carrier character limits are reached.",
      "Design target: 140-500 chars per card for low-complexity SVG primitives."
    ]
  },
  "payloadSpec": {
    "prefix": "QUIRQSMS1",
    "encoding": "base64url(JSON)",
    "maxSmsSegmentTargetChars": 160,
    "fields": [
      "v",
      "mode",
      "ops",
      "meta"
    ]
  },
  "demo": {
    "mode": "QUIRQ_SVG_CIRCUIT_SIMULATION",
    "status": "advisory_simulated",
    "input": {
      "source": "svg",
      "primitiveCount": 2
    },
    "mappingTable": {
      "protocol": "QUIRQ_SVG_CIRCUIT_v1",
      "primitives": {
        "circle": {
          "cellTag": "C",
          "circuitGateTag": "C",
          "gateSequence": [
            "RY(geometry)",
            "RZ(fill_phase)"
          ],
          "payloadFields": [
            "cx",
            "cy",
            "r",
            "fill"
          ]
        },
        "rect": {
          "cellTag": "R",
          "circuitGateTag": "R",
          "gateSequence": [
            "RX(geometry)",
            "RZ(fill_phase)"
          ],
          "payloadFields": [
            "x",
            "y",
            "width",
            "height",
            "fill"
          ]
        }
      },
      "colorEncoding": {
        "namedPalette": [
          "R",
          "B",
          "G",
          "Y",
          "K",
          "W",
          "O",
          "P",
          "C",
          "M"
        ],
        "extendedHexPrefix": "H + RRGGBB"
      }
    },
    "smsPayloadSpec": {
      "format": "QS1|<w36>.<h36>|<cell>;<cell>;...|<checksum36>",
      "cellGrammar": {
        "circle": "C.<cx36>.<cy36>.<r36>.<fillCode>",
        "rect": "R.<x36>.<y36>.<w36>.<h36>.<fillCode>"
      },
      "checksum": "FNV-1a style 32-bit hash encoded in base36",
      "transport": [
        "SMS",
        "RCS",
        "iMessage",
        "QR",
        "chat"
      ],
      "notes": [
        "Lossless for supported primitives and bounded integer geometry (0-4095).",
        "Payload is plain text and can be segmented if carrier character limits are reached.",
        "Design target: 140-500 chars per card for low-complexity SVG primitives."
      ]
    },
    "encoded": {
      "payload": "QS1|8W.4G|R.K.K.14.O.K;C.32.W.C.K|15STYN1",
      "charLength": 41,
      "cells": 2
    },
    "circuit": [
      {
        "primitive": "rect",
        "gateTag": "R",
        "qubit": 0,
        "ops": [
          "RX(1.04) q0",
          "RZ(0) q0"
        ],
        "parameters": {
          "x": 20,
          "y": 20,
          "width": 40,
          "height": 24,
          "fill": "K"
        }
      },
      {
        "primitive": "circle",
        "gateTag": "C",
        "qubit": 1,
        "ops": [
          "RY(1.54) q1",
          "RZ(0) q1"
        ],
        "parameters": {
          "cx": 110,
          "cy": 32,
          "r": 12,
          "fill": "K"
        }
      }
    ],
    "decodedSvg": "<svg width=\"320\" height=\"160\" xmlns=\"http://www.w3.org/2000/svg\">\n  <rect x=\"20\" y=\"20\" width=\"40\" height=\"24\" fill=\"black\"/>\n  <circle cx=\"110\" cy=\"32\" r=\"12\" fill=\"black\"/>\n</svg>",
    "qhpSimulation": {
      "mode": "QHP_SIMULATION",
      "qubitsUsed": 2,
      "estimatedDepth": 4,
      "execution": "not_executed",
      "note": "Structural memory circuit generated for simulation planning only."
    },
    "timestamp": "2026-10-28T04:17:15.925Z"
  },
  "svg_circuit": "<svg viewBox=\"0 0 400 120\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"400\" height=\"120\" fill=\"#0a0a1a\"/><line x1=\"40\" y1=\"40\" x2=\"360\" y2=\"40\" stroke=\"#4dffe5\" stroke-width=\"2\"/><line x1=\"40\" y1=\"80\" x2=\"360\" y2=\"80\" stroke=\"#4dffe5\" stroke-width=\"2\"/><rect x=\"80\" y=\"25\" width=\"30\" height=\"30\" fill=\"none\" stroke=\"#ffd975\" stroke-width=\"2\"/><text x=\"95\" y=\"45\" fill=\"#ffd975\" text-anchor=\"middle\" font-size=\"14\">H</text><circle cx=\"160\" cy=\"40\" r=\"6\" fill=\"#4dffe5\"/><line x1=\"160\" y1=\"46\" x2=\"160\" y2=\"80\" stroke=\"#4dffe5\" stroke-width=\"2\"/><circle cx=\"160\" cy=\"80\" r=\"10\" fill=\"none\" stroke=\"#4dffe5\" stroke-width=\"2\"/><line x1=\"155\" y1=\"75\" x2=\"165\" y2=\"85\" stroke=\"#4dffe5\" stroke-width=\"2\"/><rect x=\"280\" y=\"25\" width=\"30\" height=\"30\" fill=\"none\" stroke=\"#00e676\" stroke-width=\"2\"/><text x=\"295\" y=\"45\" fill=\"#00e676\" text-anchor=\"middle\" font-size=\"12\">M</text><rect x=\"280\" y=\"65\" width=\"30\" height=\"30\" fill=\"none\" stroke=\"#00e676\" stroke-width=\"2\"/><text x=\"295\" y=\"85\" fill=\"#00e676\" text-anchor=\"middle\" font-size=\"12\">M</text><text x=\"20\" y=\"44\" fill=\"#777\" font-size=\"11\">q0</text><text x=\"20\" y=\"84\" fill=\"#777\" font-size=\"11\">q1</text></svg>",
  "counts": {
    "11": 520,
    "00": 480
  },
  "fidelity": 1,
  "governed": true,
  "governance": {
    "admissibility": 0.94,
    "coherence": 0.91,
    "recommendation": "EXPAND"
  },
  "boundaries": [
    "No Python runtime execution from this route.",
    "No physical hardware execution from this route.",
    "Simulation and transformation advisory only."
  ],
  "authority": "Joshua Lopez — DCGP.AI — USPTO 19/555,951",
  "ts": "2026-10-28T04:17:15.924Z",
  "timestamp": "2026-10-28T04:17:15.924Z"
}