{
  "id": "gate/steane/prep-zero-verified",
  "version": 1,
  "kind": "gate",
  "name": "steane_prep_zero_verified",
  "provenance": {
    "submitter": "ikim",
    "source": "Butt, Heu\u00dfen, Rispler & M\u00fcller, arXiv:2410.07327 Fig. 4 (encoder + verification); adaptq.gates_builtin.steane_prep_zero_verified; exported from adaptq 5c6e294",
    "created": "2026-10-08",
    "notes": "Steane |0> encoder followed by a verification: one |0> ancilla collects a weight-3 Z-bar parity and is measured; the DETECTOR is a postselection check (apply with \"postselect\": true / decoding.leaves: postselect). Fault distance 2 (tools/fault_distance.py), unlike gate/steane/prep-zero@2 (bare encoder: 1). Wires 0..6 are code columns; ancilla 7."
  },
  "verification": {
    "status": "verified",
    "method": "bell-choi-exact-v1",
    "patterns_checked": 1,
    "tools": {
      "adaptq": "d9d6c706fb46abdd44aa2e9083ec4894bfb15c80",
      "xtim": "xtim-engine-9"
    },
    "date": "2026-10-09",
    "patterns_total": 1
  },
  "fault_distance": {
    "upper": {
      "value": 2,
      "certificate": "certificates/gates/steane/prep-zero-verified@1.json"
    },
    "lower": {
      "value": 2,
      "kind": "exhaustive",
      "by": "tools/fault_distance.py (adaptq fc1fb45c209985518fb66b0773e7a9392be90d65)",
      "method": "adaptq.ft_certify exhaustive-faults-v1 on the entry's own circuit (its TICK moments): every nontrivial Pauli of every location the SD6 placement (spec 5.1) puts on it (1q/2q gates, resets, measurements, idles) and of the arXiv:2410.07327 V.A placement (no idling), every single fault and every pair; a fault set counts when no DETECTOR fires (postselection) and the ideal minimum-weight decoder of the output code does not return the ideal state (magic outputs: exact fidelity < 1). Both placements give this value. Value 2: every single fault enumerated, none harmful.",
      "date": "2026-10-10"
    }
  },
  "code_in": [],
  "code_out": [
    "code/steane@1"
  ],
  "qubit_map_in": [],
  "qubit_map_out": [
    [
      0,
      1,
      2,
      3,
      4,
      5,
      6
    ]
  ],
  "action": [
    {
      "type": "prep",
      "kind": "zero"
    }
  ],
  "records": {
    "internal": []
  },
  "circuit": "RX 0 2 6\nR 1 3 5 4\nR 7\nTICK\nCX 2 3\nTICK\nCX 2 1 6 3\nTICK\nCX 0 1 6 5\nCX 2 7\nTICK\nCX 1 4\nCX 0 5\nTICK\nCX 6 4\nTICK\nCX 4 7\nTICK\nCX 5 7\nTICK\nM 7\nDETECTOR rec[-1]\nTICK\n"
}
