Realization of a collective decoding of code-word states