Prepare the uniform pure state
Every permutation matrix fixes this vector, so RandomPermute returns with certainty. Choose an orthonormal basis with first vector , for example the quantum Fourier transform basis. Under RandomReset, the returned state is , which gives each of the measurement labels probability .
Guess RandomPermute on label 0 and RandomReset on every other label. Then
This is invariant-pure-state discrimination against a maximally mixed reset. It also agrees with the Holevo–Helstrom theorem: the eigenvalues of are once and with multiplicity , giving optimal equal-prior success . This confirms optimal discrimination of these returned states, in addition to constructing the requested strategy.[ref] For , the actions coincide and the formula correctly gives random-guessing success .