Calibrate a symmetric integer quantizer and report the reconstruction error before claiming a memory win.
Required APIdef quantization_summary(values, bits):
return {'scale': ..., 'quantized': [...], 'dequantized': [...], 'max_error': ...}BehaviorThink through the mechanism first if you want the extra reasoning step. It never blocks the editor.
quantization_summary([-1.0, 0.0, 1.0], 2)a simple calibration can be exact
quantization_summary([0.0, 2.0], 2)['quantized']quantized values stay inside the declared bit budget
2 hidden edge tests run after the visible contract passes.
Run Tests to see the contract verdicts here.