Scalar Quantization (SQ) is a vector compression technique that independently maps each component of a high-dimensional vector to discrete fixed-point integers; SQ8 linearly projects 32-bit floating point (FP32) values across dimension ranges
[mind,maxd] into 8-bit unsigned integers (uint8) via
q=round(255⋅max−minx−min), while SQ4 compresses down to 4-bit nibbles, achieving 4x to 8x memory reduction.