  We discuss the so-called mean king's problem, a retrodiction problem among
non-commutative observables, in the context of error detection. Describing the
king's measurement effectively by a single error operation, we give a solution
of the mean king's problem using quantum error-correcting codes. The existence
of a quantum error-correcting code from a solution is also presented.
