Algorithms for quantum computation: discrete logarithms and factoring In Annual Symposium on Foundations of Computer Science. Santa Fe, NM, USA , 1994.