Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Shor's algorithm

From Wikipedia, the free encyclopedia
Quantum algorithm for integer factorization

Shor's algorithm is aquantum algorithm for finding theprime factors of an integer. It was developed in 1994 by the American mathematicianPeter 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] However, beating classical computers will require millions of qubits due to the overhead caused byquantum error correction.[4]

Shor proposed multiple similar algorithms for solving thefactoring problem, thediscrete 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 thehidden subgroup problem.

On a quantum computer, to factor an integerN{\displaystyle N}, Shor's algorithm runs inpolynomial time, meaning the time taken is polynomial inlogN{\displaystyle \log N}.[5] It takesquantum gates of orderO((logN)2(loglogN)(logloglogN)){\displaystyle O\!\left((\log N)^{2}(\log \log N)(\log \log \log N)\right)} using fast multiplication,[6] or evenO((logN)2(loglogN)){\displaystyle O\!\left((\log N)^{2}(\log \log N)\right)} utilizing the asymptotically fastest multiplication algorithm currently known due to Harvey andvan der Hoeven,[7] thus demonstrating that theinteger factorization problem can be is consequently in thecomplexity classBQP. This is significantly faster than the most efficient known classical factoring algorithm, thegeneral number field sieve, which works insub-exponential time:O(e1.9(logN)1/3(loglogN)2/3){\displaystyle O\!\left(e^{1.9(\log N)^{1/3}(\log \log N)^{2/3}}\right)}.[8]

Feasibility and impact

[edit]

Assuming a quantum computer with a sufficient number ofqubits could operate without succumbing toquantum noise and otherquantum-decoherence phenomena, then Shor's algorithm could be used to breakpublic-key cryptography schemes, such as

RSA can be broken if factoring large integers is computationally feasible. As far as is known, this is not possible using classical (non-quantum) computers; no classical algorithm is known that can factor integers in polynomial time. However, Shor's algorithm shows that factoring integers can be done with a polynomial complexity circult on an ideal quantum computer. Thus, it might be feasible to defeat RSA by constructing a large enough quantum computer. This was a powerful motivator for the design and construction of quantum computers, and for the study of new quantum-computer algorithms. It has also facilitated research on new cryptosystems that are secure from quantum computers, collectively calledpost-quantum cryptography (PQC).

Physical implementation

[edit]

As of 2025, the high error rates of quantum computers and limited number of physical qubits available forquantum error correction, laboratory demonstrations of Shor's algorithm obtain correct results in only in a fraction of attempts, and have used succeeded with smallsemiprimes.

In 2001, Shor's algorithm was demonstrated by a group atIBM, who factored15{\displaystyle 15} into3×5{\displaystyle 3\times 5}, using anNMR implementation of a quantum computer with seven qubits.[10] After IBM's implementation, two independent groups implemented Shor's algorithm usingphotonic qubits, emphasizing that multi-qubitentanglement was observed when running the Shor's algorithm circuits.[11][12] In 2012, the factorization of15{\displaystyle 15} was performed with solid-state qubits.[13] Later, in 2012, the factorization of21{\displaystyle 21} was achieved.[14] In 2016, the factorization of15{\displaystyle 15} was performed again using trapped-ion qubits.[15] However, none of these demonstrations fulfill the requirements of Shor’s algorithm: they compile the circuit using prior knowledge of the solution, and some have even oversimplified the algorithm in a way that makes it equivalent to coin flipping.[16]

Algorithm

[edit]

The problem that we are trying to solve is:given an oddcomposite numberN{\displaystyle N}, find itsinteger factors.

To achieve this, Shor's algorithm consists of two parts:

  1. A classical reduction of the factoring problem to the problem oforder-finding. This reduction is similar to that used for otherfactoring algorithms, such as thequadratic sieve.
  2. A quantum algorithm to solve the order-finding problem.

Classical reduction

[edit]

A complete factoring algorithm is possible if we're able to efficiently factor arbitraryN{\displaystyle N} into just two integersp{\displaystyle p} andq{\displaystyle q} greater than 1, since if eitherp{\displaystyle p} orq{\displaystyle q} are not prime, then the factoring algorithm can in turn be run on those until only primes remain.

A basic observation is that, usingEuclid's algorithm, we can always compute theGCD between two integers efficiently. In particular, this means we can check efficiently whetherN{\displaystyle N} is even, in which case 2 is trivially a factor. Let us thus assume thatN{\displaystyle N} is odd for the remainder of this discussion. Afterwards, we can use efficient classical algorithms to check whetherN{\displaystyle N} is aprime power.[17] For prime powers, efficient classical factorization algorithms exist,[18] hence the rest of the quantum algorithm may assume thatN{\displaystyle N} is not a prime power.

If those easy cases do not produce a nontrivial factor ofN{\displaystyle N}, the algorithm proceeds to handle the remaining case. We pick a random integer2a<N.{\displaystyle 2\leq a<N{.}} A possible nontrivial divisor ofN{\displaystyle N} can be found by computinggcd(a,N){\displaystyle \gcd(a,N)}, which can be done classically and efficiently using theEuclidean algorithm. If this produces a nontrivial factor (meaninggcd(a,N)1{\displaystyle \gcd(a,N)\neq 1}), the algorithm is finished, and the other nontrivial factor isN/gcd(a,N){\displaystyle N/\gcd(a,N)}. If a nontrivial factor was not identified, then this means thatN{\displaystyle N} and the choice ofa{\displaystyle a} arecoprime, soa{\displaystyle a} is contained in themultiplicative group of integers moduloN{\displaystyle N}, having amultiplicative inverse moduloN{\displaystyle N}. Thus,a{\displaystyle a} has amultiplicative orderr{\displaystyle r} moduloN{\displaystyle N}, meaning

ar1modN,{\displaystyle a^{r}\equiv 1{\bmod {N}},}

andr{\displaystyle r} is the smallest positive integer satisfying this congruence.

The quantum subroutine findsr{\displaystyle r}. It can be seen from the congruence thatN{\displaystyle N}dividesar1{\displaystyle a^{r}-1}, writtenNar1{\displaystyle N\mid a^{r}-1}. This can be factored usingdifference of squares:N(ar/21)(ar/2+1).{\displaystyle N\mid (a^{r/2}-1)(a^{r/2}+1).}Since we have factored the expression in this way, the algorithm doesn't work for oddr{\displaystyle r} (becausear/2{\displaystyle a^{r/2}} must be an integer), meaning that the algorithm would have to restart with a newa{\displaystyle a}. Hereafter we can therefore assume thatr{\displaystyle r} is even. It cannot be the case thatNar/21{\displaystyle N\mid a^{r/2}-1}, since this would implyar/21modN{\displaystyle a^{r/2}\equiv 1{\bmod {N}}}, which would contradictorily imply thatr/2{\displaystyle r/2} would be the order ofa{\displaystyle a}, which was alreadyr{\displaystyle r}. At this point, it may or may not be the case thatNar/2+1{\displaystyle N\mid a^{r/2}+1}. IfN{\displaystyle N} does not dividear/2+1{\displaystyle a^{r/2}+1}, then this means that we are able to find a nontrivial factor ofN{\displaystyle N}. We computed=gcd(N,ar/21).{\displaystyle d=\gcd(N,a^{r/2}-1).}Ifd=1{\displaystyle d=1}, thenNar/2+1{\displaystyle N\mid a^{r/2}+1} was true, and a nontrivial factor ofN{\displaystyle N} cannot be achieved froma{\displaystyle a}, and the algorithm must restart with a newa{\displaystyle a}. Otherwise, we have found a nontrivial factor ofN{\displaystyle N}, with the other beingN/d{\displaystyle N/d}, and the algorithm is finished. For this step, it is also equivalent to computegcd(N,ar/2+1){\displaystyle \gcd(N,a^{r/2}+1)}; it will produce a nontrivial factor ifgcd(N,ar/21){\displaystyle \gcd(N,a^{r/2}-1)} is nontrivial, and will not if it's trivial (whereNar/2+1{\displaystyle N\mid a^{r/2}+1}).

The algorithm restated shortly follows: letN{\displaystyle N} be odd, and not a prime power. We want to output two nontrivial factors ofN{\displaystyle N}.

  1. Pick a random number1<a<N{\displaystyle 1<a<N}.
  2. ComputeK=gcd(a,N){\displaystyle K=\gcd(a,N)}, thegreatest common divisor ofa{\displaystyle a} andN{\displaystyle N}.
  3. IfK1{\displaystyle K\neq 1}, thenK{\displaystyle K} is anontrivial factor ofN{\displaystyle N}, with the other factor beingN/K{\displaystyle N/K}, and we are done.
  4. Otherwise, use the quantum subroutine to find the orderr{\displaystyle r} ofa{\displaystyle a}.
  5. Ifr{\displaystyle r} is odd, then go back to step 1.
  6. Computeg=gcd(N,ar/2+1){\displaystyle g=\gcd(N,a^{r/2}+1)}. Ifg{\displaystyle g} is nontrivial, the other factor isN/g{\displaystyle N/g}, and we're done. Otherwise, go back to step 1.

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 factorN{\displaystyle N} with very high probability of success if one uses a more advanced reduction.[19]

Quantum order-finding subroutine

[edit]

The goal of the quantum subroutine of Shor's algorithm is, givencoprime integersN{\displaystyle N} and1<a<N{\displaystyle 1<a<N}, to find theorderr{\displaystyle r} ofa{\displaystyle a} moduloN{\displaystyle N}, which is the smallest positive integer such thatar1(modN){\displaystyle a^{r}\equiv 1{\pmod {N}}}. To achieve this, Shor's algorithm uses a quantum circuit involving two registers. The second register usesn{\displaystyle n} qubits, wheren{\displaystyle n} is the smallest integer such thatN2n{\displaystyle N\leq 2^{n}}, i.e.,n=log2N{\displaystyle n=\left\lceil {\log _{2}N}\right\rceil }. The size of the first register determines how accurate of an approximation the circuit produces. It can be shown that using2n{\displaystyle 2n} qubits gives sufficient accuracy to findr{\displaystyle r}. The exact quantum circuit depends on the parametersa{\displaystyle a} andN{\displaystyle N}, which define the problem. The following description of the algorithm usesbra–ket notation to denote quantum states, and{\displaystyle \otimes } to denote thetensor product, rather thanlogical AND.

The algorithm consists of two main steps:

  1. Usequantum phase estimation with unitaryU{\displaystyle U} representing the operation of multiplying bya{\displaystyle a} (moduloN{\displaystyle N}), and input state|02n|1{\displaystyle |0\rangle ^{\otimes 2n}\otimes |1\rangle } (where the second register is|1{\displaystyle |1\rangle } made fromn{\displaystyle n} qubits). The eigenvalues of thisU{\displaystyle U} encode information about the period, and|1{\displaystyle |1\rangle } 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 formjr22n{\displaystyle {\frac {j}{r}}2^{2n}} for randomj=0,1,...,r1{\displaystyle j=0,1,...,r-1}.
  2. Use thecontinued fractions algorithm to extract the periodr{\displaystyle r} 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.[20]

Quantum phase estimation

[edit]
Quantum subroutine in Shor's algorithm

In general thequantum phase estimation algorithm, for any unitaryU{\displaystyle U} and eigenstate|ψ{\displaystyle |\psi \rangle } such thatU|ψ=e2πiθ|ψ{\displaystyle U|\psi \rangle =e^{2\pi i\theta }|\psi \rangle }, sends input states|0|ψ{\displaystyle |0\rangle |\psi \rangle } to output states close to|ϕ|ψ{\displaystyle |\phi \rangle |\psi \rangle }, whereϕ{\displaystyle \phi } is a superposition of integers close to22nθ{\displaystyle 2^{2n}\theta }. In other words, it sends each eigenstate|ψj{\displaystyle |\psi _{j}\rangle } ofU{\displaystyle U} 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 actionU|k={|ak(modN)0k<N,|kNk<2n.{\displaystyle U|k\rangle ={\begin{cases}|ak{\pmod {N}}\rangle &0\leq k<N,\\|k\rangle &N\leq k<2^{n}.\end{cases}}}The action ofU{\displaystyle U} on states|k{\displaystyle |k\rangle } withNk<2n{\displaystyle N\leq k<2^{n}} is not crucial to the functioning of the algorithm, but needs to be included to ensure that the overall transformation is a well-defined quantum gate. Implementing the circuit for quantum phase estimation withU{\displaystyle U} requires being able to efficiently implement the gatesU2j{\displaystyle U^{2^{j}}}. This can be accomplished viamodular exponentiation, which is the slowest part of the algorithm.

The gate thus defined satisfiesUr=I{\displaystyle U^{r}=I}, which immediately implies that its eigenvalues are ther{\displaystyle r}-throots of unityωrk=e2πik/r{\displaystyle \omega _{r}^{k}=e^{2\pi ik/r}}. Furthermore, each eigenvalueωrj{\displaystyle \omega _{r}^{j}} has an eigenvector of the form|ψj=r1/2k=0r1ωrkj|ak{\textstyle |\psi _{j}\rangle =r^{-1/2}\sum _{k=0}^{r-1}\omega _{r}^{-kj}|a^{k}\rangle }, and these eigenvectors are such that1rj=0r1|ψj=1rj=0r1k=0r1ωrjk|ak=|1+1rk=1r1(j=0r1ωrjk)|ak=|1,{\displaystyle {\begin{aligned}{\frac {1}{\sqrt {r}}}\sum _{j=0}^{r-1}|\psi _{j}\rangle &={\frac {1}{r}}\sum _{j=0}^{r-1}\sum _{k=0}^{r-1}\omega _{r}^{jk}|a^{k}\rangle \\&=|1\rangle +{\frac {1}{r}}\sum _{k=1}^{r-1}\left(\sum _{j=0}^{r-1}\omega _{r}^{jk}\right)|a^{k}\rangle =|1\rangle ,\end{aligned}}}where the last identity follows from thegeometric series formula, which impliesj=0r1ωrjk=0{\textstyle \sum _{j=0}^{r-1}\omega _{r}^{jk}=0}.

Usingquantum phase estimation on an input state|02n|ψj{\displaystyle |0\rangle ^{\otimes 2n}|\psi _{j}\rangle } would then return the integer22nj/r{\displaystyle 2^{2n}j/r} with high probability. More precisely, the quantum phase estimation circuit sends|02n|ψj{\displaystyle |0\rangle ^{\otimes 2n}|\psi _{j}\rangle } to|ϕj|ψj{\displaystyle |\phi _{j}\rangle |\psi _{j}\rangle } such that the resulting probability distributionpk|k|ϕj|2{\displaystyle p_{k}\equiv |\langle k|\phi _{j}\rangle |^{2}} is peaked aroundk=22nj/r{\displaystyle k=2^{2n}j/r}, withp22nj/r4/π20.4053{\displaystyle p_{2^{2n}j/r}\geq 4/\pi ^{2}\approx 0.4053}. This probability can be made arbitrarily close to 1 using extra qubits.

Applying the above reasoning to the input|02n|1{\displaystyle |0\rangle ^{\otimes 2n}|1\rangle }, quantum phase estimation thus results in the evolution|02n|1=1rj=0r1|02n|ψj1rj=0r1|ϕj|ψj.{\displaystyle |0\rangle ^{\otimes 2n}|1\rangle ={\frac {1}{\sqrt {r}}}\sum _{j=0}^{r-1}|0\rangle ^{\otimes 2n}|\psi _{j}\rangle \to {\frac {1}{\sqrt {r}}}\sum _{j=0}^{r-1}|\phi _{j}\rangle |\psi _{j}\rangle .}Measuring the first register, we now have a balanced probability1/r{\displaystyle 1/r} to find each|ϕj{\displaystyle |\phi _{j}\rangle }, each one giving an integer approximation to22nj/r{\displaystyle 2^{2n}j/r}, which can be divided by22n{\displaystyle 2^{2n}} to get a decimal approximation forj/r{\displaystyle j/r}.

Continued-fraction algorithm to retrieve the period

[edit]

Then, we apply thecontinued-fraction algorithm to find integersb{\displaystyle b} andc{\displaystyle c}, whereb/c{\displaystyle b/c} gives the best fraction approximation for the approximation measured from the circuit, forb,c<N{\displaystyle b,c<N} andcoprimeb{\displaystyle b} andc{\displaystyle c}. The number of qubits in the first register,2n{\displaystyle 2n}, which determines the accuracy of the approximation, guarantees thatbc=jr,{\displaystyle {\frac {b}{c}}={\frac {j}{r}},}given the best approximation from the superposition of|ϕj{\displaystyle |\phi _{j}\rangle } was measured[2] (which can be made arbitrarily likely by using extra bits and truncating the output). However, whileb{\displaystyle b} andc{\displaystyle c} are coprime, it may be the case thatj{\displaystyle j} andr{\displaystyle r} are not coprime. Because of that,b{\displaystyle b} andc{\displaystyle c} may have lost some factors that were inj{\displaystyle j} andr{\displaystyle r}. This can be remedied by rerunning the quantum order-finding subroutine an arbitrary number of times, to produce a list of fraction approximationsb1c1,b2c2,,bscs,{\displaystyle {\frac {b_{1}}{c_{1}}},{\frac {b_{2}}{c_{2}}},\ldots ,{\frac {b_{s}}{c_{s}}},}wheres{\displaystyle s} is the number of times the subroutine was run. Eachck{\displaystyle c_{k}} will have different factors taken out of it because the circuit will (likely) have measured multiple different possible values ofj{\displaystyle j}. To recover the actualr{\displaystyle r} value, we can take theleast common multiple of eachck{\displaystyle c_{k}}:lcm(c1,c2,,cs).{\displaystyle \operatorname {lcm} (c_{1},c_{2},\ldots ,c_{s}).}The least common multiple will be the orderr{\displaystyle r} of the original integera{\displaystyle a} 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.[21]

Choosing the size of the first register

[edit]

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,2n{\displaystyle 2n} qubits is sufficient to guarantee that the optimal bitstring measured from phase estimation (meaning the|k{\displaystyle |k\rangle } wherek/22n{\textstyle k/2^{2n}} is the most accurate approximation of the phase from phase estimation) will allow the actual value ofr{\displaystyle r} to be recovered.

Each|ϕj{\displaystyle |\phi _{j}\rangle } before measurement in Shor's algorithm represents a superposition of integers approximating22nj/r{\displaystyle 2^{2n}j/r}. Let|k{\displaystyle |k\rangle } represent the most optimal integer in|ϕj{\displaystyle |\phi _{j}\rangle }. The following theorem guarantees that the continued fractions algorithm will recoverj/r{\displaystyle j/r} fromk/22n{\displaystyle k/2^{2{n}}}:

TheoremIfj{\displaystyle j} andr{\displaystyle r} aren{\displaystyle n} bit integers, and|jrϕ|12r2{\displaystyle \left\vert {\frac {j}{r}}-\phi \right\vert \leq {\frac {1}{2r^{2}}}}then the continued fractions algorithm run onϕ{\displaystyle \phi } will recover bothjgcd(j,r){\textstyle {\frac {j}{\gcd(j,\;r)}}} andrgcd(j,r){\textstyle {\frac {r}{\gcd(j,\;r)}}}.

[3] Ask{\displaystyle k} is the optimal bitstring from phase estimation,k/22n{\displaystyle k/2^{2{n}}} is accurate toj/r{\displaystyle j/r} by2n{\displaystyle 2n} bits. Thus,|jrk22n|122n+112N212r2{\displaystyle \left\vert {\frac {j}{r}}-{\frac {k}{2^{2n}}}\right\vert \leq {\frac {1}{2^{2{n}+1}}}\leq {\frac {1}{2N^{2}}}\leq {\frac {1}{2r^{2}}}}which implies that the continued fractions algorithm will recoverj{\displaystyle j} andr{\displaystyle r} (or with their greatest common divisor taken out).

The bottleneck

[edit]

The runtime bottleneck of Shor's algorithm is quantummodular exponentiation, which is by far slower than thequantum 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 withreversible gates, starting withripple-carry adders. Knowing the base and the modulus of exponentiation facilitates further optimizations.[22][23] Reversible circuits typically use on the order ofn3{\displaystyle n^{3}} gates forn{\displaystyle n} qubits. Alternative techniques asymptotically improve gate counts by usingquantum Fourier transforms, but are not competitive with fewer than 600 qubits owing to high constants.

Period finding and discrete logarithms

[edit]

Shor's algorithms for thediscrete log and the order finding problems are instances of an algorithm solving the period finding problem.[citation needed] All three are instances of thehidden subgroup problem.

Shor's algorithm for discrete logarithms

[edit]

Given agroupG{\displaystyle G} with orderp{\displaystyle p} andgeneratorgG{\displaystyle g\in G}, suppose we know thatx=grG{\displaystyle x=g^{r}\in G}, for somerZp{\displaystyle r\in \mathbb {Z} _{p}}, and we wish to computer{\displaystyle r}, which is thediscrete logarithm:r=logg(x){\displaystyle r={\log _{g}}(x)}. Consider theabelian groupZp×Zp{\displaystyle \mathbb {Z} _{p}\times \mathbb {Z} _{p}}, where each factor corresponds to modular addition of values. Now, consider the function

f:Zp×ZpG;f(a,b)=gaxb.{\displaystyle f\colon \mathbb {Z} _{p}\times \mathbb {Z} _{p}\to G\;;\;f(a,b)=g^{a}x^{-b}.}

This gives us an abelianhidden subgroup problem, wheref{\displaystyle f} corresponds to agroup homomorphism. Thekernel corresponds to the multiples of(r,1){\displaystyle (r,1)}. So, if we can find the kernel, we can findr{\displaystyle r}. A quantum algorithm for solving this problem exists. This algorithm is, like the factor-finding algorithm, due to Peter Shor and both are implemented by creating a superposition through using Hadamard gates, followed by implementingf{\displaystyle f} as a quantum transform, followed finally by a quantum Fourier transform.[3] Due to this, the quantum algorithm for computing the discrete logarithm is also occasionally referred to as "Shor's Algorithm."

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 givenaZ{\displaystyle a\in \mathbb {Z} } such that:ar=1{\displaystyle a^{r}=1}, the function

f:ZZ;f(x)=ax,f(x+r)=f(x).{\displaystyle f\colon \mathbb {Z} \to \mathbb {Z} \;;\;f(x)=a^{x},\;f(x+r)=f(x).}

For any finite abelian groupG{\displaystyle G}, a quantum algorithm exists for solving the hidden subgroup forG{\displaystyle G} in polynomial time.[3]

See also

[edit]

References

[edit]
  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.ISBN 978-0-8186-6580-6.
  2. ^abcdShor, 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.doi:10.1137/S0097539795293172.S2CID 2337707.
  3. ^abcdeNielsen, Michael A.; Chuang, Isaac L. (9 December 2010).Quantum Computation and Quantum Information(PDF) (7th ed.). Cambridge University Press.ISBN 978-1-107-00217-3.Archived(PDF) from the original on 2019-07-11. Retrieved24 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.Bibcode:2021Quant...5..433G.doi:10.22331/q-2021-04-15-433.S2CID 162183806.
  5. ^See alsopseudo-polynomial time.
  6. ^Beckman, David; Chari, Amalavoyal N.; Devabhaktuni, Srikrishna; Preskill, John (August 1996). "Efficient networks for quantum factoring".Physical Review A.54 (2):1034–1063.arXiv:quant-ph/9602016.Bibcode:1996PhRvA..54.1034B.doi:10.1103/physreva.54.1034.PMID 9913575.
  7. ^Harvey, David; van der Hoeven, Joris (March 2021)."Integer multiplication in time O (n log n)"(PDF).Annals of Mathematics.193 (2).doi:10.4007/annals.2021.193.2.4.
  8. ^"Number Field Sieve".wolfram.com. Retrieved23 October 2015.
  9. ^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.doi:10.1007/978-3-319-70697-9_9.ISBN 978-3-319-70696-2.
  10. ^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.Bibcode:2001Natur.414..883V.doi:10.1038/414883a.PMID 11780055.
  11. ^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.Bibcode:2007PhRvL..99y0504L.doi:10.1103/PhysRevLett.99.250504.PMID 18233508.
  12. ^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.Bibcode:2007PhRvL..99y0505L.doi:10.1103/PhysRevLett.99.250505.PMID 18233509.
  13. ^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.Bibcode:2012NatPh...8..719L.doi:10.1038/nphys2385.S2CID 44055700.
  14. ^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.Bibcode:2012NaPho...6..773M.doi:10.1038/nphoton.2012.259.S2CID 46546101.
  15. ^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.Bibcode:2016Sci...351.1068M.doi:10.1126/science.aad9480.PMID 26941315.S2CID 17426142.
  16. ^Smolin, John A.; Smith, Graeme; Vargo, Alexander (July 2013). "Oversimplifying quantum factoring".Nature.499 (7457):163–165.arXiv:1301.7007.Bibcode:2013Natur.499..163S.doi:10.1038/nature12290.PMID 23846653.
  17. ^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.
  18. ^For example, computing the firstlog2(N){\displaystyle \log _{2}(N)} roots ofN{\displaystyle N}, e.g., with theNewton method and checking each integer result for primality (AKS primality test).
  19. ^Ekerå, Martin (June 2021)."On completely factoring any integer efficiently in a single run of an order-finding algorithm".Quantum Information Processing.20 (6) 205.arXiv:2007.10044.Bibcode:2021QuIP...20..205E.doi:10.1007/s11128-021-03069-1.
  20. ^Kitaev, A. Yu (1995). "Quantum measurements and the Abelian Stabilizer Problem".arXiv:quant-ph/9511026.
  21. ^Ekerå, Martin (May 2024)."On the Success Probability of Quantum Order Finding".ACM Transactions on Quantum Computing.5 (2):1–40.arXiv:2201.07791.doi:10.1145/3655026.
  22. ^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.Bibcode:2012arXiv1202.6614M.doi:10.26421/QIC12.5-6-1.S2CID 16595181.
  23. ^Markov, Igor L.; Saeedi, Mehdi (2013). "Faster Quantum Number Factoring via Circuit Synthesis".Phys. Rev. A.87 (1) 012310.arXiv:1301.3210.Bibcode:2013PhRvA..87a2310M.doi:10.1103/PhysRevA.87.012310.S2CID 2246117.
  24. ^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.ISBN 978-3-319-59878-9.

Further reading

[edit]

External links

[edit]
General
Theorems
Quantum
communication
Quantum cryptography
Quantum algorithms
Quantum
complexity theory
Quantum
processor benchmarks
Quantum
computing models
Quantum
error correction
Physical
implementations
Quantum optics
Ultracold atoms
Spin-based
Superconducting
Quantum
programming
Primality tests
Prime-generating
Integer factorization
Multiplication
Euclideandivision
Discrete logarithm
Greatest common divisor
Modular square root
Other algorithms
  • Italics indicate that algorithm is for numbers of special forms
Retrieved from "https://en.wikipedia.org/w/index.php?title=Shor%27s_algorithm&oldid=1324615061"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp