{
  "id": "family/surface-rot/code",
  "version": 1,
  "kind": "family",
  "name": "Rotated surface code family [[lx*ly, 1, min(lx, ly)]]",
  "provenance": {
    "submitter": "ikim",
    "source": "Bravyi & Kitaev (1998); Bombin & Martin-Delgado, PRA 76, 012305 (2007); Tomita & Svore, PRA 90, 062320 (2014)",
    "created": "2026-11-26",
    "notes": "Parametric rectangular rotated surface-code patch supporting arbitrary odd/even lx x ly."
  },
  "verification": {
    "status": "verified",
    "method": "family-anchors-block-contract-v2",
    "patterns_checked": 5,
    "patterns_total": 5,
    "tools": {
      "xtim": "xtim-engine-18",
      "adaptq": "7bdecb63de074e54f480d8d736cde1ea225124e5"
    },
    "date": "2026-12-05",
    "notes": "verified 5/5 anchors: d=3; d=5; d=7; lx=3,ly=5; d=3,orientation=rotated"
  },
  "generates": "code",
  "family": "surface-rot",
  "connectivity": "2d-nn",
  "arity": 0,
  "domain": "lx, ly >= 2 (odd & even), orientation in {standard, rotated}",
  "action_summary": "code",
  "parameters": {
    "d": {
      "type": "integer",
      "minimum": 2,
      "description": "Square patch distance (shorthand for lx=ly=d)."
    },
    "lx": {
      "type": "integer",
      "minimum": 2,
      "description": "X-distance (patch rows)."
    },
    "ly": {
      "type": "integer",
      "minimum": 2,
      "description": "Z-distance (patch columns)."
    },
    "orientation": {
      "type": "string",
      "enum": [
        "standard",
        "rotated"
      ],
      "default": "standard",
      "description": "Boundary orientation of the rotated surface-code patch."
    }
  },
  "generator": "surface-rot:code",
  "anchors": [
    {
      "d": 3
    },
    {
      "d": 5
    },
    {
      "d": 7
    },
    {
      "lx": 3,
      "ly": 5
    },
    {
      "d": 3,
      "orientation": "rotated"
    }
  ],
  "parameter_rules": "Provide either d, or both lx and ly (>= 2).",
  "notes": "Parametric rectangular rotated surface-code patch supporting arbitrary odd/even lx x ly."
}
