pub const MAX_CODE_DISTANCE: u32 = 255;
Largest supported surface code distance.
Fixed-bulk lowering materializes grids with area quadratic in the distance; this practical limit rejects inputs that would otherwise exhaust memory.