The Exercise
Shor’s algorithm factors a number of bits. A classical reduction turns factoring into finding the order of an element modulo , the least with , and order finding is phase estimation: a first register of qubits controls a modular exponentiation, an inverse quantum Fourier transform acts on that register, the register is measured, and the continued fraction algorithm extracts from the outcome. The modular exponentiation is built from multiplications of numbers of bits modulo . With schoolbook multiplication, of order operations each, the algorithm takes of order operations.
The exercise is to count again with a fast multiplication and to show that the whole algorithm then takes of order operations, fewer than for large .
The Operation Count
The first register of order finding for a number of bits holds (1)✦ qubits, where the number of extra qubits sets the probability of success.
The modular exponentiation controlled by a register of qubits uses (2)✦ multiplications. For factoring the register has the size (1), and the number of multiplications is (3)✦
The gates outside the exponentiation, among them those of the inverse Fourier transform on the first register, are bounded by the square of its size, (4)✦
A fast multiplication of two numbers of bits, such as that of Schönhage and Strassen, takes of order (5)✦ operations, with the natural logarithm. The improved bound for the operation count of factoring a number of bits is times : (6)✦
The Claim
Let be the number of operations in one multiplication or division of numbers of bits, the number of steps of the continued fraction algorithm that recover the order, each step costing , and the cost of the classical reduction from the order to a factor.
Theorem 1. Let be a fixed number of extra qubits, and suppose that, as , , and . Then the operation count of the whole algorithm satisfies (7)✦ as , and the improved bound itself satisfies (8)✦
What Is Checked
The claim is stated over the register size (1), the multiplication counts (2) and (3), the gate bound (4), and the growth rates and of (5) and (6).