Shor's algorithm - Wikipedia
Shor's algorithm - Wikipedia
Shor's algorithm is a quantum algorithm for finding the prime factors of an integer. It was developed
in 1994 by the American mathematician Peter Shor.[1][2] It is one of the few known quantum
algorithms with compelling potential applications and strong evidence of superpolynomial speedup
compared to best known classical (non-quantum) algorithms.[3] On the other hand, factoring
numbers of practical significance requires far more qubits than available in the near future.[4]
Another concern is that noise in quantum circuits may undermine results,[5] requiring additional
qubits for quantum error correction.
Shor proposed multiple similar algorithms for solving the factoring problem, the discrete logarithm
problem, and the period-finding problem. "Shor's algorithm" usually refers to the factoring algorithm,
but may refer to any of the three algorithms. The discrete logarithm algorithm and the factoring
algorithm are instances of the period-finding algorithm, and all three are instances of the hidden
subgroup problem.
On a quantum computer, to factor an integer , Shor's algorithm runs in polynomial time, meaning
[6]
the time taken is polynomial in . It takes quantum gates of order
using fast multiplication,[7] or even
utilizing the asymptotically fastest multiplication algorithm currently
known due to Harvey and Van Der Hoven,[8] thus demonstrating that the integer factorization
problem can be efficiently solved on a quantum computer and is consequently in the complexity
class BQP. This is significantly faster than the most efficient known classical factoring algorithm,
.[9]
If a quantum computer with a sufficient number of qubits could operate without succumbing to
quantum noise and other quantum-decoherence phenomena, then Shor's algorithm could be used to
break public-key cryptography schemes, such as
Physical implementation
Given the high error rates of contemporary quantum computers and too few qubits to use quantum
error correction, laboratory demonstrations obtain correct results only in a fraction of attempts.
In 2001, Shor's algorithm was demonstrated by a group at IBM, who factored into , using
an NMR implementation of a quantum computer with seven qubits.[11] After IBM's implementation,
two independent groups implemented Shor's algorithm using photonic qubits, emphasizing that
multi-qubit entanglement was observed when running the Shor's algorithm circuits.[12][13] In 2012,
the factorization of was performed with solid-state qubits.[14] Later, in 2012, the factorization of
was achieved.[15] In 2016, the factorization of was performed again using trapped-ion qubits
with a recycling technique.[16] In 2019, an attempt was made to factor the number using Shor's
algorithm on an IBM Q System One, but the algorithm failed because of accumulating errors.[17]
However, all these demonstrations have compiled the algorithm by making use of prior knowledge
of the answer, and some have even oversimplified the algorithm in a way that makes it equivalent to
coin flipping.[18] Furthermore, attempts using quantum computers with other algorithms have been
made.[19] However, these algorithms are similar to classical brute-force checking of factors, so
unlike Shor's algorithm, they are not expected to ever perform better than classical factoring
algorithms.[20]
Theoretical analyses of Shor's algorithm assume a quantum computer free of noise and errors.
However, near-term practical implementations will have to deal with such undesired phenomena
(when more qubits are available, Quantum error correction can help). In 2023, Jin-Yi Cai showed that
in the presence of noise, Shor's algorithm fails asymptotically almost surely for large semiprimes
that are products of two primes in OEIS sequence A073024 (https://oeis.org/A073024) .[5] These
primes have the property that has a prime factor larger than , and have a positive
density in the set of all primes. Hence error-correction will be needed to be able to factor all
numbers with Shor's algorithm.
Algorithm
The problem that we are trying to solve is: given an odd composite number , find its integer factors.
1. A classical reduction of the factoring problem to the problem of order-finding. This reduction is
similar to that used for other factoring algorithms, such as the quadratic sieve.
Classical reduction
A complete factoring algorithm is possible if we're able to efficiently factor arbitrary into just two
integers and greater than 1, since if either or are not prime then the factoring algorithm can
in turn be run on those until only primes remain.
A basic observation is that, using Euclid's algorithm, we can always compute the GCD between two
integers efficiently. In particular, this means we can check efficiently whether is even, in which
case 2 is trivially a factor. Let us thus assume that is odd for the remainder of this discussion.
Afterwards, we can use efficient classical algorithms to check if is a prime power.[21] For prime
powers, efficient classical factorization algorithms exist,[22] hence the rest of the quantum algorithm
may assume that is not a prime power.
If those easy cases do not produce a nontrivial factor of , the algorithm proceeds to handle the
remaining case. We pick a random integer . A possible nontrivial divisor of can be
found by computing , which can be done classically and efficiently using the Euclidean
algorithm. If this produces a nontrivial factor (meaning ), the algorithm is finished,
and the other nontrivial factor is . If a nontrivial factor was not identified, then that means
that and the choice of are coprime, so is contained in the multiplicative group of integers
modulo , having a multiplicative inverse modulo . Thus, has a multiplicative order modulo
, meaning
The quantum subroutine finds . It can be seen from the congruence that divides , written
. This can be factored using difference of squares:
Since we have factored the expression in this way, the algorithm doesn't work for odd (because
must be an integer), meaning the algorithm would have to restart with a new . Hereafter we
can therefore assume is even. It cannot be the case that , since this would imply
, which would contradictorily imply that would be the order of , which was
already . At this point, it may or may not be the case that . If it is not true that
, then that means we are able to find a nontrivial factor of . We compute
If , then that means was true, and a nontrivial factor of cannot be achieved
from , and the algorithm must restart with a new . Otherwise, we have found a nontrivial factor of
, with the other being , and the algorithm is finished. For this step, it is also equivalent to
The algorithm restated shortly follows: let be odd, and not a prime power. We want to output two
nontrivial factors of .
3. If , then is a nontrivial factor of , with the other factor being and we are done.
It has been shown that this will be likely to succeed after a few runs.[2] In practice, a single call to the
quantum order-finding subroutine is enough to completely factor with very high probability of
success if one uses a more advanced reduction.[23]
The goal of the quantum subroutine of Shor's algorithm is, given coprime integers and
, to find the order of modulo , which is the smallest positive integer such that
. To achieve this, Shor's algorithm uses a quantum circuit involving two
registers. The second register uses qubits, where is the smallest integer such that , i.e.,
. The size of the first register determines how accurate of an approximation the
circuit produces. It can be shown that using qubits gives sufficient accuracy to find . The exact
quantum circuit depends on the parameters and , which define the problem. The following
description of the algorithm uses bra–ket notation to denote quantum states, and to denote the
tensor product, rather than logical AND.
1. Use quantum phase estimation with unitary representing the operation of multiplying by
(modulo ), and input state (where the second register is made from
qubits). The eigenvalues of this encode information about the period, and can be seen to
be writable as a sum of its eigenvectors. Thanks to these properties, the quantum phase
estimation stage gives as output a random integer of the form for random
2. Use the continued fractions algorithm to extract the period from the measurement outcomes
obtained in the previous stage. This is a procedure to post-process (with a classical computer)
the measurement data obtained from measuring the output quantum states, and retrieve the
period.
The connection with quantum phase estimation was not discussed in the original formulation of
Shor's algorithm,[2] but was later proposed by Kitaev.[24]
In general the quantum phase estimation algorithm, for any unitary and eigenstate such that
, sends input states to output states close to , where is a
superposition of integers close to . In other words, it sends each eigenstate of to a
state containing information close to the associated eigenvalue. For the purposes of quantum
order-finding, we employ this strategy using the unitary defined by the action
The action of on states with is not crucial to the functioning of the algorithm,
but needs to be included to ensure the overall transformation is a well-defined quantum gate.
Implementing the circuit for quantum phase estimation with requires being able to efficiently
implement the gates . This can be accomplished via modular exponentiation, which is the
slowest part of the algorithm. The gate thus defined satisfies , which immediately implies
that its eigenvalues are the -th roots of unity . Furthermore, each eigenvalue has
an eigenvector of the form , and these eigenvectors are such that
where the last identity follows from the geometric series formula, which implies .
Using quantum phase estimation on an input state would then return the integer
with high probability. More precisely, the quantum phase estimation circuit sends
to such that the resulting probability distribution is peaked
around , with . This probability can be made arbitrarily close
to 1 using extra qubits.
Applying the above reasoning to the input , quantum phase estimation thus results in the
evolution
Measuring the first register, we now have a balanced probability to find each , each one
giving an integer approximation to , which can be divided by to get a decimal
approximation for .
Then, we apply the continued fractions algorithm to find integers and , where gives the best
fraction approximation for the approximation measured from the circuit, for and coprime
and . The number of qubits in the first register, , which determines the accuracy of the
approximation, guarantees that
given the best approximation from the superposition of was measured[2] (which can be made
arbitrarily likely by using extra bits and truncating the output). However, while and are coprime, it
may be the case that and are not coprime. Because of that, and may have lost some factors
that were in and . This can be remedied by rerunning the quantum order-finding subroutine an
arbitrary number of times, to produce a list of fraction approximations
where is the number of times the subroutine was run. Each will have different factors taken out
of it because the circuit will (likely) have measured multiple different possible values of . To
recover the actual value, we can take the least common multiple of each :
The least common multiple will be the order of the original integer with high probability. In
practice, a single run of the quantum order-finding subroutine is in general enough if more advanced
post-processing is used.[25]
Phase estimation requires choosing the size of the first register to determine the accuracy of the
algorithm, and for the quantum subroutine of Shor's algorithm, qubits is sufficient to guarantee
that the optimal bitstring measured from phase estimation (meaning the where is the
most accurate approximation of the phase from phase estimation) will allow the actual value of to
be recovered.
then the continued fractions algorithm run on will recover both and
[3]
As is the optimal bitstring from phase estimation, is accurate to by bits. Thus,
which implies that the continued fractions algorithm will recover and (or with their greatest
common divisor taken out).
The bottleneck
The runtime bottleneck of Shor's algorithm is quantum modular exponentiation, which is by far
slower than the quantum Fourier transform and classical pre-/post-processing. There are several
approaches to constructing and optimizing circuits for modular exponentiation. The simplest and
(currently) most practical approach is to mimic conventional arithmetic circuits with reversible
gates, starting with ripple-carry adders. Knowing the base and the modulus of exponentiation
facilitates further optimizations.[26][27] Reversible circuits typically use on the order of gates for
qubits. Alternative techniques asymptotically improve gate counts by using quantum Fourier
transforms, but are not competitive with fewer than 600 qubits owing to high constants.
Shor's algorithms for the discrete log and the order finding problems are instances of an algorithm
solving the period finding problem.. All three are instances of the hidden subgroup problem.
Given a group with order and generator , suppose we know that , for some
, and we wish to compute , which is the discrete logarithm: . Consider the
abelian group , where each factor corresponds to modular addition of values. Now,
consider the function
The order-finding problem can also be viewed as a hidden subgroup problem.[3] To see this, consider
the group of integers under addition, and for a given such that: , the function
For any finite abelian group , a quantum algorithm exists for solving the hidden subgroup for in
polynomial time.[3]
See also
Grover's algorithm
References
1. Shor, P.W. (1994). "Algorithms for quantum computation: Discrete logarithms and factoring".
Proceedings 35th Annual Symposium on Foundations of Computer Science. pp. 124–134.
doi:10.1109/sfcs.1994.365700 (https://doi.org/10.1109%2Fsfcs.1994.365700) . ISBN 978-0-
8186-6580-6.
2. Shor, Peter W. (October 1997). "Polynomial-Time Algorithms for Prime Factorization and
Discrete Logarithms on a Quantum Computer". SIAM Journal on Computing. 26 (5): 1484–
1509. arXiv:quant-ph/9508027 (https://arxiv.org/abs/quant-ph/9508027) .
doi:10.1137/S0097539795293172 (https://doi.org/10.1137%2FS0097539795293172) .
S2CID 2337707 (https://api.semanticscholar.org/CorpusID:2337707) .
3. Nielsen, Michael A.; Chuang, Isaac L. (9 December 2010). Quantum Computation and Quantum
Information (http://mmrc.amss.cas.cn/tlb/201702/W020170224608149940643.pdf) (PDF)
(7th ed.). Cambridge University Press. ISBN 978-1-107-00217-3. Archived (https://web.archive.
org/web/20190711070716/http://mmrc.amss.cas.cn/tlb/201702/W02017022460814994064
3.pdf) (PDF) from the original on 2019-07-11. Retrieved 24 April 2022.
4. Gidney, Craig; Ekerå, Martin (2021). "How to factor 2048 bit RSA integers in 8 hours using 20
million noisy qubits". Quantum. 5: 433. arXiv:1905.09749 (https://arxiv.org/abs/1905.09749) .
Bibcode:2021Quant...5..433G (https://ui.adsabs.harvard.edu/abs/2021Quant...5..433G) .
doi:10.22331/q-2021-04-15-433 (https://doi.org/10.22331%2Fq-2021-04-15-433) .
S2CID 162183806 (https://api.semanticscholar.org/CorpusID:162183806) .
5. Cai, Jin-Yi (2024). "Shor's algorithm does not factor large integers in the presence of noise".
Science China Information Sciences. 67 (7). arXiv:2306.10072 (https://arxiv.org/abs/2306.1007
2) . doi:10.1007/s11432-023-3961-3 (https://doi.org/10.1007%2Fs11432-023-3961-3) .
8. Harvey, David; van der Hoeven, Joris (March 2021). "Integer multiplication in time O (n log n)" (h
ttps://hal.science/hal-02070778v2/file/nlogn.pdf) (PDF). Annals of Mathematics. 193 (2).
doi:10.4007/annals.2021.193.2.4 (https://doi.org/10.4007%2Fannals.2021.193.2.4) .
10. Roetteler, Martin; Naehrig, Michael; Svore, Krysta M.; Lauter, Kristin E. (2017). "Quantum
resource estimates for computing elliptic curve discrete logarithms". In Takagi, Tsuyoshi;
Peyrin, Thomas (eds.). Advances in Cryptology – ASIACRYPT 2017 – 23rd International
Conference on the Theory and Applications of Cryptology and Information Security, Hong Kong,
China, December 3–7, 2017, Proceedings, Part II. Lecture Notes in Computer Science.
Vol. 10625. Springer. pp. 241–270. arXiv:1706.06752 (https://arxiv.org/abs/1706.06752) .
doi:10.1007/978-3-319-70697-9_9 (https://doi.org/10.1007%2F978-3-319-70697-9_9) .
ISBN 978-3-319-70696-2.
11. Vandersypen, Lieven M. K.; Steffen, Matthias; Breyta, Gregory; Yannoni, Costantino S.;
Sherwood, Mark H.; Chuang, Isaac L. (December 2001). "Experimental realization of Shor's
quantum factoring algorithm using nuclear magnetic resonance". Nature. 414 (6866): 883–
887. arXiv:quant-ph/0112176 (https://arxiv.org/abs/quant-ph/0112176) .
Bibcode:2001Natur.414..883V (https://ui.adsabs.harvard.edu/abs/2001Natur.414..883V) .
doi:10.1038/414883a (https://doi.org/10.1038%2F414883a) . PMID 11780055 (https://pubm
ed.ncbi.nlm.nih.gov/11780055) .
12. Lu, Chao-Yang; Browne, Daniel E.; Yang, Tao; Pan, Jian-Wei (19 December 2007).
"Demonstration of a Compiled Version of Shor's Quantum Factoring Algorithm Using Photonic
Qubits". Physical Review Letters. 99 (25): 250504. arXiv:0705.1684 (https://arxiv.org/abs/0705.
1684) . Bibcode:2007PhRvL..99y0504L (https://ui.adsabs.harvard.edu/abs/2007PhRvL..99y0
504L) . doi:10.1103/PhysRevLett.99.250504 (https://doi.org/10.1103%2FPhysRevLett.99.250
504) . PMID 18233508 (https://pubmed.ncbi.nlm.nih.gov/18233508) .
13. Lanyon, B. P.; Weinhold, T. J.; Langford, N. K.; Barbieri, M.; James, D. F. V.; Gilchrist, A.; White, A.
G. (19 December 2007). "Experimental Demonstration of a Compiled Version of Shor's
Algorithm with Quantum Entanglement". Physical Review Letters. 99 (25): 250505.
arXiv:0705.1398 (https://arxiv.org/abs/0705.1398) . Bibcode:2007PhRvL..99y0505L (https://
ui.adsabs.harvard.edu/abs/2007PhRvL..99y0505L) . doi:10.1103/PhysRevLett.99.250505 (htt
ps://doi.org/10.1103%2FPhysRevLett.99.250505) . PMID 18233509 (https://pubmed.ncbi.nl
m.nih.gov/18233509) .
14. Lucero, Erik; Barends, Rami; Chen, Yu; Kelly, Julian; Mariantoni, Matteo; Megrant, Anthony;
O'Malley, Peter; Sank, Daniel; Vainsencher, Amit; Wenner, James; White, Ted; Yin, Yi; Cleland,
Andrew N.; Martinis, John M. (2012). "Computing prime factors with a Josephson phase qubit
quantum processor". Nature Physics. 8 (10): 719. arXiv:1202.5707 (https://arxiv.org/abs/1202.
5707) . Bibcode:2012NatPh...8..719L (https://ui.adsabs.harvard.edu/abs/2012NatPh...8..719
L) . doi:10.1038/nphys2385 (https://doi.org/10.1038%2Fnphys2385) . S2CID 44055700 (htt
ps://api.semanticscholar.org/CorpusID:44055700) .
15. Martín-López, Enrique; Martín-López, Enrique; Laing, Anthony; Lawson, Thomas; Alvarez,
Roberto; Zhou, Xiao-Qi; O'Brien, Jeremy L. (12 October 2012). "Experimental realization of
Shor's quantum factoring algorithm using qubit recycling". Nature Photonics. 6 (11): 773–776.
arXiv:1111.4147 (https://arxiv.org/abs/1111.4147) . Bibcode:2012NaPho...6..773M (https://u
i.adsabs.harvard.edu/abs/2012NaPho...6..773M) . doi:10.1038/nphoton.2012.259 (https://do
i.org/10.1038%2Fnphoton.2012.259) . S2CID 46546101 (https://api.semanticscholar.org/Cor
pusID:46546101) .
16. Monz, Thomas; Nigg, Daniel; Martinez, Esteban A.; Brandl, Matthias F.; Schindler, Philipp; Rines,
Richard; Wang, Shannon X.; Chuang, Isaac L.; Blatt, Rainer (4 March 2016). "Realization of a
scalable Shor algorithm". Science. 351 (6277): 1068–1070. arXiv:1507.08852 (https://arxiv.or
g/abs/1507.08852) . Bibcode:2016Sci...351.1068M (https://ui.adsabs.harvard.edu/abs/2016
Sci...351.1068M) . doi:10.1126/science.aad9480 (https://doi.org/10.1126%2Fscience.aad94
80) . PMID 26941315 (https://pubmed.ncbi.nlm.nih.gov/26941315) . S2CID 17426142 (http
s://api.semanticscholar.org/CorpusID:17426142) .
17. Amico, Mirko; Saleem, Zain H.; Kumph, Muir (8 July 2019). "Experimental study of Shor's
factoring algorithm using the IBM Q Experience". Physical Review A. 100 (1): 012305.
arXiv:1903.00768 (https://arxiv.org/abs/1903.00768) . Bibcode:2019PhRvA.100a2305A (http
s://ui.adsabs.harvard.edu/abs/2019PhRvA.100a2305A) . doi:10.1103/PhysRevA.100.012305
(https://doi.org/10.1103%2FPhysRevA.100.012305) . S2CID 92987546 (https://api.semantics
cholar.org/CorpusID:92987546) .
18. Smolin, John A.; Smith, Graeme; Vargo, Alexander (July 2013). "Oversimplifying quantum
factoring". Nature. 499 (7457): 163–165. arXiv:1301.7007 (https://arxiv.org/abs/1301.7007) .
Bibcode:2013Natur.499..163S (https://ui.adsabs.harvard.edu/abs/2013Natur.499..163S) .
doi:10.1038/nature12290 (https://doi.org/10.1038%2Fnature12290) . PMID 23846653 (http
s://pubmed.ncbi.nlm.nih.gov/23846653) .
19. Karamlou, Amir H.; Simon, William A.; Katabarwa, Amara; Scholten, Travis L.; Peropadre, Borja;
Cao, Yudong (28 October 2021). "Analyzing the performance of variational quantum factoring
on a superconducting quantum processor". npj Quantum Information. 7 (1): 156.
arXiv:2012.07825 (https://arxiv.org/abs/2012.07825) . Bibcode:2021npjQI...7..156K (https://u
i.adsabs.harvard.edu/abs/2021npjQI...7..156K) . doi:10.1038/s41534-021-00478-z (https://d
oi.org/10.1038%2Fs41534-021-00478-z) .
21. Bernstein, Daniel (1998). "Detecting perfect powers in essentially linear time". Mathematics of
Computation. 67 (223): 1253–1283. doi:10.1090/S0025-5718-98-00952-1 (https://doi.org/10.1
090%2FS0025-5718-98-00952-1) .
22. e.g., computing the first roots of , e.g., with the Newton method and checking each
integer result for primality (AKS primality test).
23. Ekerå, Martin (June 2021). "On completely factoring any integer efficiently in a single run of an
order-finding algorithm" (https://doi.org/10.1007%2Fs11128-021-03069-1) . Quantum
Information Processing. 20 (6): 205. arXiv:2007.10044 (https://arxiv.org/abs/2007.10044) .
Bibcode:2021QuIP...20..205E (https://ui.adsabs.harvard.edu/abs/2021QuIP...20..205E) .
doi:10.1007/s11128-021-03069-1 (https://doi.org/10.1007%2Fs11128-021-03069-1) .
24. Kitaev, A. Yu (1995). "Quantum measurements and the Abelian Stabilizer Problem". arXiv:quant-
ph/9511026 (https://arxiv.org/abs/quant-ph/9511026) .
25. Ekerå, Martin (May 2024). "On the Success Probability of Quantum Order Finding" (https://doi.o
rg/10.1145%2F3655026) . ACM Transactions on Quantum Computing. 5 (2): 1–40.
arXiv:2201.07791 (https://arxiv.org/abs/2201.07791) . doi:10.1145/3655026 (https://doi.org/
10.1145%2F3655026) .
26. Markov, Igor L.; Saeedi, Mehdi (2012). "Constant-Optimized Quantum Circuits for Modular
Multiplication and Exponentiation". Quantum Information and Computation. 12 (5–6): 361–394.
arXiv:1202.6614 (https://arxiv.org/abs/1202.6614) . Bibcode:2012arXiv1202.6614M (https://
ui.adsabs.harvard.edu/abs/2012arXiv1202.6614M) . doi:10.26421/QIC12.5-6-1 (https://doi.or
g/10.26421%2FQIC12.5-6-1) . S2CID 16595181 (https://api.semanticscholar.org/CorpusID:16
595181) .
27. Markov, Igor L.; Saeedi, Mehdi (2013). "Faster Quantum Number Factoring via Circuit
Synthesis". Phys. Rev. A. 87 (1): 012310. arXiv:1301.3210 (https://arxiv.org/abs/1301.3210) .
Bibcode:2013PhRvA..87a2310M (https://ui.adsabs.harvard.edu/abs/2013PhRvA..87a2310
M) . doi:10.1103/PhysRevA.87.012310 (https://doi.org/10.1103%2FPhysRevA.87.012310) .
S2CID 2246117 (https://api.semanticscholar.org/CorpusID:2246117) .
28. Bernstein, Daniel J.; Heninger, Nadia; Lou, Paul; Valenta, Luke (2017). "Post-quantum RSA".
Post-Quantum Cryptography. Lecture Notes in Computer Science. Vol. 10346. pp. 311–329.
doi:10.1007/978-3-319-59879-6_18 (https://doi.org/10.1007%2F978-3-319-59879-6_18) .
ISBN 978-3-319-59878-9.
Further reading
Nielsen, Michael A.; Chuang, Isaac L. (2010). Quantum Computation and Quantum Information:
10th Anniversary Edition. Cambridge University Press. ISBN 978-1-107-00217-3.
Kaye, Phillip; Laflamme, Raymond; Mosca, Michele (2006). An Introduction to Quantum Computing.
doi:10.1093/oso/9780198570004.001.0001 (https://doi.org/10.1093%2Foso%2F978019857000
4.001.0001) . ISBN 978-0-19-857000-4.
Shor, Peter W. (1997), "Polynomial-Time Algorithms for Prime Factorization and Discrete
Logarithms on a Quantum Computer", SIAM J. Comput., 26 (5): 1484–1509, arXiv:quant-
ph/9508027v2 (https://arxiv.org/abs/quant-ph/9508027v2) , Bibcode:1999SIAMR..41..303S (htt
ps://ui.adsabs.harvard.edu/abs/1999SIAMR..41..303S) , doi:10.1137/S0036144598347011 (htt
ps://doi.org/10.1137%2FS0036144598347011) . Revised version of the original paper by Peter
Shor ("28 pages, LaTeX. This is an expanded version of a paper that appeared in the Proceedings
of the 35th Annual Symposium on Foundations of Computer Science, Santa Fe, NM, Nov. 20--22,
1994. Minor revisions made January, 1996").
III. Breaking RSA Encryption with a Quantum Computer: Shor's Factoring Algorithm (https://web.a
rchive.org/web/20121115112940/http://people.ccmr.cornell.edu/~mermin/qcomp/chap3.pdf) ,
Lecture notes on Quantum computation, Cornell University, Physics 481–681, CS 483; Spring,
2006 by N. David Mermin. Last revised 2006-03-28, 30 page PDF document.
Lavor, C.; Manssur, L. R. U.; Portugal, R. (2003). "Shor's Algorithm for Factoring Large Integers".
arXiv:quant-ph/0303175 (https://arxiv.org/abs/quant-ph/0303175) .
External links
PBS Infinite Series created two videos explaining the math behind Shor's algorithm, "How to Break
Cryptography (http://www.pbs.org/video/how-to-break-cryptography-ahby1s/) " and "Hacking at
Quantum Speed with Shor's Algorithm (http://www.pbs.org/video/hacking-at-quantum-speed-with
-shors-algorithm-8jrjkq/) ".