Implementation of a transformation and subsequent quantization