{
  "id": "composite/steane/magic-t-prep",
  "version": 2,
  "kind": "composite",
  "name": "magic_T",
  "provenance": {
    "submitter": "ikim",
    "source": "adaptq builtins, exported by adaptq.store",
    "created": "2026-10-06",
    "notes": "re-export after adaptq c0fa4a4 (one-touch TICK split; [a-z][a-z0-9_]* bit/label encoding)"
  },
  "verification": {
    "status": "verified",
    "method": "bell-choi-exact-v1",
    "patterns_checked": 2,
    "tools": {
      "adaptq": "433813df312502c551d89f624375e0124f4cebbb",
      "xtim": "xtim-engine-9"
    },
    "date": "2026-10-07",
    "patterns_total": 2
  },
  "ports_in": [],
  "ports_out": [
    "B"
  ],
  "action": [
    {
      "type": "prep",
      "kind": "magic",
      "label": "T"
    }
  ],
  "steps": [
    {
      "apply": "gate/qrm15/magic-t-prep@1",
      "in": [],
      "out": [
        "Q"
      ],
      "label": "qrm_prep_magic__h0"
    },
    {
      "apply": "gate/steane/prep-zero@2",
      "in": [],
      "out": [
        "B"
      ],
      "label": "steane_prep_0__h0"
    },
    {
      "apply": "gate/qrm15/cnot-to-steane@1",
      "in": [
        "Q",
        "B"
      ],
      "out": [
        "Q",
        "B"
      ],
      "label": "cs_cnot__h0"
    },
    {
      "apply": "gate/qrm15/readout-x@1",
      "in": [
        "Q"
      ],
      "out": [],
      "label": "qrm_readout_x__h0"
    },
    {
      "if": "qrm_readout_x__h0.m_cs",
      "apply": {
        "apply": "gate/steane/z-transversal@1",
        "in": [
          "B"
        ],
        "out": [
          "B"
        ],
        "label": "steane_z__h0"
      }
    }
  ]
}
