Feel free to check out how it is implemented for other quantization methods.