Optimizing Quantum Circuits for Arithmetic
Algorithms for quantum computation: discrete logarithms and factoring