pub fn quantize(x: f32, bits: u8) -> u8
Quantize one N(0,1) value at the given bit width via binary search.