|
Algorithm 8: Shor [17] |
Proceed with the following steps to find a candidate for the quotient where s is randomand r is the period of mod N.
-
Prepare a -qubit query register in the state and an n-qubit answer register in the
state .
Apply the quantum Fourier transform to the query register.
Apply the specific unitary .
Apply the inverse quantum Fourier transform to the query register.
Measure the query register to retrieve a candidate for .
Return that candidate for . |