Let project onto the good subspace and write
The amplitude amplification theorem says that alternating the reflection with the reflection rotates this two-dimensional plane by . After amplification iterations the good probability is
Reversibly test whether the measured integer is a nontrivial divisor of , and phase-flip exactly those computational basis states. This implements the good-subspace reflection in classical and quantum polynomial time. The reflection in is
which is polynomial size by the stated assumption.
Here , so . Two amplification iterations give
The final measurement therefore returns a nontrivial factor with certainty whenever is composite. Only two uses each of up to a constant factor and polynomial-size verification circuits are required, so the complete algorithm is polynomial in .
For a positive Hermitian matrix,
The HHL algorithm phase-estimates , performs a controlled rotation with amplitude proportional to , uncomputes the estimate, and postselects the rotation ancilla. Resolving the smallest eigenvalue requires phase-estimation precision and evolution time . Since , this contributes a dependence at least linear in .
The controlled rotation must use a scale . In the worst input direction its success probability is of order
so obtaining constant success by amplitude amplification costs another factor. Thus a runtime polynomial in requires
An exponentially ill-conditioned matrix would require exponentially fine phase resolution or exponentially many amplification steps.

Articles by others on the same topic (0)

There are currently no matching articles.