Matter quantizer