← ClaudeAtlas

qector-codes-builderlisted

Building and inspecting QEC codes for QECTOR. Covers the v1.0.0 library code families (repetition, ring, rotated_surface, unrotated_surface, toric, heavy_hex, color_code), the legacy `generate_*_checks` generators, and the custom-matrix / hypergraph-product / bicycle paths. Load when a question asks "what code should I use?", "how do I build a code from H?", or "is this code graphlike?".
GuillaumeLessard/qector-claude-plugin · ★ 1 · AI & Automation · score 62
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