Quantum arithmetic and numerical analysis using Repeat-Until-Success circuits
Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer