Shor’s Algorithm: From Periods to Practical Machines
AI
This is not advice, double check important info.
We unpack how Shor’s algorithm turns factoring into period-finding, how quantum phase estimation and classical post-processing work together, and why theoretical speed does not yet make the algorithm practical at cryptographic scale.
What was said, and where it came from
Peter Shor submitted the paper to arXiv on the thirtieth of August 1995.
The paper gave efficient randomized algorithms, on a hypothetical quantum computer, for factoring integers and finding discrete logarithms, with a number of steps polynomial in the input size.
The algorithm reduces factoring to finding the order of a number modulo the integer being factored.
For a chosen number a that is coprime to N, the order is the smallest positive r for which a to the power r is one modulo N.
When that order is even, the factor-finding step uses the greatest common divisors of N and a to the power r over two, minus or plus one; a useful choice can yield nontrivial factors.
IBM Quantum’s tutorial described phase estimation as estimating the phase associated with an eigenvalue of a unitary operation.
For order-finding, the unitary operation multiplies by a modulo N.
The tutorial explained that controlled powers of this operation transfer phase information to the measurement register.
The inverse quantum Fourier transform converts periodic structure encoded in the state into measurable peaks in the frequency domain.
Google Quantum AI’s tutorial explained that the measurement approximates k over r for a randomly selected k, allowing the order to be learned with high confidence after several independent runs.
For N equal to fifteen and a equal to two, the order is four.
With r equal to four, a to the power r over two is four, so the greatest common divisor of fifteen and three is three, and the other factor is five.
In a report published on the seventeenth of October 2023, Quanta Magazine said Shor’s algorithm runs exponentially faster than classical alternatives for period-finding.
RSA relies on the computational difficulty of factoring large numbers.
Shor’s algorithm could threaten RSA if a sufficiently powerful quantum computer could run it.
The IBM Quantum tutorial focused on constructing and running a demonstration that factored fifteen on quantum hardware.
Quanta reported an estimate that factoring a 2,048-bit number would require a quantum computer with twenty million qubits.
Quanta reported that Regev’s algorithm reduced the number of elementary logical steps in its quantum part from proportional to n squared to proportional to n to the power of one point five for an n-bit number.
Quanta reported that Regev’s original algorithm required a number of qubits proportional to n to the power of one point five, compared with a number proportional to n for Shor’s algorithm.
Quanta said that Regev’s algorithm as a whole might not run faster, despite reducing the number of quantum steps.