pub fn quantize_4bit(x: f32) -> u8
Quantize one N(0,1)-distributed value to a 4-bit index via binary search over the decision boundaries.