{
  "id": "family/surface-rot/s-corner-twist",
  "version": 1,
  "kind": "family",
  "name": "2D-NN corner-twist / domain-wall logical S",
  "provenance": {
    "submitter": "ikim",
    "source": "Brown et al., PRX 7, 021029 (2017); Litinski & von Oppen, Quantum 2, 62 (2018)",
    "created": "2026-11-26",
    "notes": ""
  },
  "verification": {
    "status": "verified",
    "method": "family-anchors-block-contract-v2",
    "patterns_checked": 3,
    "patterns_total": 3,
    "tools": {
      "xtim": "xtim-engine-18",
      "adaptq": "7bdecb63de074e54f480d8d736cde1ea225124e5"
    },
    "date": "2026-12-05",
    "notes": "verified 3/3 anchors: d=3; d=5; lx=3,ly=5"
  },
  "generates": "gate",
  "family": "surface-rot",
  "connectivity": "2d-nn",
  "arity": 1,
  "domain": "odd lx, ly >= 3 (arbitrary rectangular)",
  "action_summary": "S",
  "parameters": {
    "d": {
      "type": "integer",
      "minimum": 3,
      "parity": "odd",
      "description": "Odd square distance (shorthand for lx=ly=d)."
    },
    "lx": {
      "type": "integer",
      "minimum": 3,
      "parity": "odd",
      "description": "Odd X-distance (patch rows)."
    },
    "ly": {
      "type": "integer",
      "minimum": 3,
      "parity": "odd",
      "description": "Odd Z-distance (patch columns)."
    },
    "orientation": {
      "type": "string",
      "enum": [
        "standard",
        "rotated"
      ],
      "default": "standard",
      "description": "Boundary orientation of the rotated surface-code patch."
    }
  },
  "generator": "surface-rot:s-corner-twist",
  "anchors": [
    {
      "d": 3
    },
    {
      "d": 5
    },
    {
      "lx": 3,
      "ly": 5
    }
  ],
  "parameter_rules": "Provide either odd d >= 3, or odd lx and ly >= 3."
}
