qector-codes-builderlisted
Install: claude install-skill GuillaumeLessard/qector-claude-plugin
# QECTOR Codes Builder
The library exposes **graphlike code families** for the matching
decoders and the **`from_parity_check_matrix` / `hypergraph_product` /
`bicycle_code`** paths for arbitrary GF(2) parity checks that may be
non-graphlike (and therefore require BP-OSD).
## The stable graphlike families (manual 16.1, 4)
| Family | Factory | Domain | Logical X observable |
| ------------------ | ----------------------------- | ------------ | ------------------------------- |
| `repetition` | `codes.repetition_code(d)` | 1D open | boundary edge `{0}` |
| `ring` | `codes.ring_code(n)` | 1D periodic | the full cycle |
| `rotated_surface` | `codes.rotated_surface_code(d)` | 2D graphlike | top-row horizontal string |
| `unrotated_surface`| `codes.unrotated_surface_code(d)` | 2D graphlike| k = 0; no logicals_matrix |
| `toric` | `codes.toric_code(L)` | 2D torus | two logicals (Lx, Lz) |
| `heavy_hex` | `codes.heavy_hex_code(d)` | 1.5D graphlike| top-row string |
| `color_code` | `codes.color_code(d)` | triangular | two logicals (k = 2) |
All matching-graph families return `is_matching_graph() == True` and
`max_qubit_degree() <= 2`. They are single-sector; for LER studies
use the family whose `logicals_matrix()` is not `None`.
## `logicals_matrix()` returns - what to