For each fixed , right multiplication by is a bijection of , whose inverse is right multiplication by . Therefore permutes the displayed orthonormal basis of the tensor-product space. It is consequently a unitary operator, with
Write . Applying and then changing the summation variable from to gives
Hence this state is an eigenvector of with eigenvalue .
Using the convention
part (ii) applies the extra phase to term . The resulting first register is the quantum Fourier transform of . Applying its inverse therefore produces
Choose and prepare . The circuit from part (iii) returns
so a quantum measurement in the computational basis of the first register reveals the discrete logarithm exactly. More generally, any that is invertible modulo returns , from which follows by multiplication by the modular inverse of .

Articles by others on the same topic (0)

There are currently no matching articles.