quantShapeToByteShape
Convert a logical element shape to a physical byte shape for quantized storage.
The last dimension (row size) must be a multiple of the quantization block size. It is replaced by (row / blockSize) * typeSize to reflect the packed byte layout.
Example: Q4_K with shape 32, 256 → 32, 144 (256/256 * 144)
Return
Physical byte dimensions
Parameters
shape
Logical element dimensions
quantType
The quantization format
Throws
if the last dimension is not block-aligned