8

Since the original experimental contribution using the Shor's factoring algorithm to factorize the integer 15 some experiments have been performed in order to calculate the largest factorized number. But most of the experiments are particularly designed for a specific number ($N$) and not a general approach which could be used for any $<N$ integer. Example.

I am wondering which is, at the moment, the largest number that has been experimentally factorized in a general procedure by a quantum algorithm.

Sanchayan Dutta
  • 17,497
  • 7
  • 48
  • 110
SalvaCardona
  • 673
  • 3
  • 12
  • So, to be clear, you consider an approach 'general' if there is an integer $N$ such that all integers of size at most $N$ can be factored with the method, right? I think that asking for the largest such $N$ isn't a good idea, as that means answers to this question would be easily outdated. Therefore, I think it is better to ask whether there exists a general method with non-trivial $N$ (I'd say at least $6$ would do, as $4,6$ have a non-trivial factorisation ), as that answer wouldn't be invalidated by time and I think that answers part of your question. – Discrete lizard Apr 16 '18 at 13:59
  • 1
    @Discretelizard: note that Shor's algorithm has a classical pre-processing step which filters out even numbers (required for technical reasons, but also notable for how easily one can find a factorisation). So in fact 15 is the smallest integer for which one can provide an interesting demonstration of Shor's algorithm. – Niel de Beaudrap Apr 16 '18 at 16:10
  • @NieldeBeaudrap Ah, thanks for pointing that out. (although technically even numbers aren't nessecarily easy to factor (take 2pq, p q large primes), merely easy to reduce to the odd case (p*q)) Why do you skip $9$? Are squares considered trivial, or is there another reason? – Discrete lizard Apr 16 '18 at 18:07
  • 1
    @DiscreteLizard: Good question about 9 as an input. However, for technical reasons, Shor's algorithm also requires that the input is not a prime power. This is easy to test (contradicting a certain plot point of the horror film Cube) by computing roots of the input and testing if any of those inputs are integers greater than 2. If so, one can use one's favourite deterministic or randomised primal it treat. (Of course, if the result is an integer but not prime, you've found a factorisation anyway.) At most logarithmically many such roots need be computed. So 9 is also 'trivial'. – Niel de Beaudrap Apr 16 '18 at 18:48
  • 1
    @DiscreteLizard: Integer Factorisation is not the problem of finding a prime factorisation, but of finding a proper factorisation. If you can do the former then you can do the latter, but one of these problems is in some sense much easier than the other for almost all inputs (for a suitably carefully made definition of 'almost all'). – Niel de Beaudrap Apr 16 '18 at 19:51
  • @nielDeBaudrap Integer Factorization problem https://en.wikipedia.org/wiki/Integer_factorization states integer factorization in terms of finding smaller integers, isnt "proper factorisation" different than that of just finding smaller integer factor? – user3483902 Apr 17 '18 at 09:46
  • Niel de Beaudrap, perhaps you meant to ping @user3483902? – Discrete lizard Apr 17 '18 at 16:48
  • @user3483902: A "proper factorisation" of an integer N is a factorisation other than N = 1⋅N. This necessarily means that the factorisation is into two integers which are smaller than N --- the main thing being that there is no constraint that either of these integers should necessarily be prime. – Niel de Beaudrap Apr 17 '18 at 17:00

2 Answers2

5

The answer is $N = 200\,099$.

Shor's algorithm is not the only way to factorize integers. In fact, it is also possible to factorize integers with an optimization approach. This approach even allows for integers with more than two prime-factors to be composed.

See this paper from D-Wave, Prime factorization using quantum annealing and computational algebraic geometry, in which the explain their approach and show the results of factoring multiple composite numbers, among which $N=200\,099$.

agaitaarino
  • 3,827
  • 2
  • 12
  • 42
nippon
  • 1,517
  • 8
  • 22
1

For Shor's algorthm: Every experiment has been designed for the specific number being factored. The largest number factored without cheating was 15 which is the smallest non-trivial semi-prime on which to apply Shor's algorithm. Major changes would be needed in the experiment (including in the number of qubits) in order to factor 21, for example. IBM's 50-qubit machine can implement Shor's algorithm on larger numbers, but the noise is so bad that you will only get the correct factors if you're very lucky, and that's why it hasn't been done yet.

For the annealing algorithm: 376289 has been factored with D-Wave's 2048-qubit annealer, and this is not a specific experiment but a general algorithm on an easily programmable machine, but we do not know how this will scale. A very crude upper limit to the number of qubits needed to factor RSA-230 is 5.5 billion qubits (but this can be brought down significantly by better compilers), while Shor's algorithm can do it with 381 qubits.