Slashdot Mirror


Mathematical Trick Helps Smash Record For the Largest Quantum Factorization

KentuckyFC writes: One of the big applications for quantum computers is finding the prime factors of large numbers, a technique that can help break most modern cryptographic codes. Back in 2012, a team of Chinese physicists used a nuclear magnetic resonance quantum computer with 4 qubits to factor the number 143 (11 x 13), the largest quantum factorization ever performed. Now a pair of mathematicians say the technique used by the Chinese team is more powerful than originally thought. Their approach is to show that the same quantum algorithm factors an entire class of numbers with factors that differ by 2 bits (like 11 and 13). They've already discovered various examples of these numbers, the largest so far being 56153. So instead of just factoring 143, the Chinese team actually quantum factored the number 56153 (233 x 241, which differ by two bits when written in binary). That's the largest quantum factorization by some margin. The mathematicians point out that their discovery will not help code breakers since they'd need to know in advance that the factors differ by 2 bits, which seems unlikely. What's more, the technique relies on only 4 qubits and so can be easily reproduced on a classical computer.

62 comments

  1. Mathematical trick by Bob+the+Super+Hamste · · Score: 4, Funny

    But was it discovered by a suburban housewife and the authorities don't want you to know it?

    --
    Time to offend someone
    1. Re: Mathematical trick by Anonymous Coward · · Score: 1

      Hey try out this weird new trick that no one wants you to know about to lose weight! Cocaine!

    2. Re: Mathematical trick by BarbaraHudson · · Score: 2

      Hey try out this weird new trick that no one wants you to know about to lose weight! Cocaine!

      Rob Ford (former mayor of Toronto) already proved it doesn't work. He kept getting the munchies and being videoed drunk in Burger King eating and swearing at everyone.

      --
      "Transparent" is a shit show that trades on every stereotype going. A man in drag is NOT a transsexual.
    3. Re: Mathematical trick by Anonymous Coward · · Score: 0

      He was actually smoking crack. There's a difference.

    4. Re: Mathematical trick by TheCarp · · Score: 1

      No he just has enough money to afford both drugs and food. While many stimulant do have an effect on appetite, its never really been a panacea for those looking to lose weight. Much of the stereotype of emaciated drug users is a direct result of the ravages of the policy of increasing the price of drugs based on some misguided notion that if you can do anything you want in the name of helping someone who doesn't want your help, even if its not the least bit effective.

      --
      "I opened my eyes, and everything went dark again"
    5. Re: Mathematical trick by Anonymous Coward · · Score: 0

      Hey try out this weird new trick that no one wants you to know about to lose weight! Cocaine!

      Rob Ford (former mayor of Toronto) already proved it doesn't work. He kept getting the munchies and being videoed drunk in Burger King eating and swearing at everyone.

      What would Rob Ford look like without cocaine?

      "Eye bleach! Pass the eye bleach!!!!"

    6. Re: Mathematical trick by Anonymous Coward · · Score: 0

      Skoink

  2. Use this weird mathematical trick! by Anonymous Coward · · Score: 1, Funny

    Mathematicians will hate you for it!

  3. This one weird math trick! by Anonymous Coward · · Score: 4, Funny

    You won't BELIEVE what factors next!

  4. Enough by rebelwarlock · · Score: 2, Insightful

    The clickbait joke reply wasn't funny the first time it was posted. It didn't suddenly become funny after the third time, or any time thereafter.

    1. Re:Enough by Anonymous Coward · · Score: 0

      higher upvotes than your useless BS comment

    2. Re:Enough by Anonymous Coward · · Score: 3, Insightful

      The clickbait joke reply wasn't funny the first time it was posted. It didn't suddenly become funny after the third time, or any time thereafter.

      Look at the timestamps on the posts. They were all posted close enough in time that Slashdot's new "slow to show a comment" feature hid them from the posters.

      And what's worse? Making an obvious joke, or bitching about that obvious joke?

      PS - take the corncob out of your ass.

    3. Re:Enough by Anonymous Coward · · Score: 0

      saying something isn't funny wasn't intelligent the first time it was posted. it didn't suddenly become intelligent after the third time, or any time thereafter.

      here's one weird trick: you're an ignorant hypocrite.

    4. Re:Enough by Anonymous Coward · · Score: 0

      Redditards are coming through the portal.

  5. Is it me (probably) or is the article a bit dumb? by wonkey_monkey · · Score: 4, Insightful

    The work that Dattani and Bryans have done is to show that exactly the same calculation works for much bigger numbers as well.

    I don't quite get how "the same algorithm works for some larger numbers of this kind" leads to "therefore the Chinese also did this calculation without realising it."

    Think of that trick where you add the digits of a number, then keep adding the answer's digits until you're left with one digit. If that digit is a 9, then the original number was a 9. Neat trick, and you can use it to work out that 12393 is a multiple of 9. But that doesn't mean that you've also just calculated that 9578394 is also a multiple of 9.

    And in any case, because this trick works using only 4 qubits, it can easily be reproduced on any classical computer. So it’s not so useful after all.

    That's not why it's not useful - I thought any quantum algorithm could be emulated on a classical computer, just not very efficiently.

    --
    systemd is Roko's Basilisk.
  6. Examples given look like 1 bit different by FredK · · Score: 1

    So where is the two bit difference?

    1. Re:Examples given look like 1 bit different by Anonymous Coward · · Score: 0

      Whoops, number differ by a power of 2, but still differ by 2 bits.

    2. Re:Examples given look like 1 bit different by Anonymous Coward · · Score: 0

      11 is 1011
      13 is 1101

      Center two bits.

    3. Re:Examples given look like 1 bit different by dunkindave · · Score: 1

      11 in binary is "1011"
      13 in binary is "1101"

      Two bits were flipped.

      Likewise with 233 and 241:
      233 in binary is "11101001"
      241 in binary is "11110001"

      Again, two bits were flipped.

      That said, I am not a mathematician and haven't read the article so I don't understand how these two pairs are related.

    4. Re:Examples given look like 1 bit different by kruach+aum · · Score: 1

      233 = 11101001
      241 = 11110001

    5. Re:Examples given look like 1 bit different by pjt33 · · Score: 4, Interesting

      I rather hope that it requires that the bits which flip are next to each other, because otherwise they've overlooked 16843009 = 257 * 65537, the product of the two largest known Fermat primes.

    6. Re:Examples given look like 1 bit different by Anonymous Coward · · Score: 1

      It's easy to come up with bigger examples, even with the flipping bits next to each other. For example

      1000000021 = 0b111011100110101100101000010101
      1001048597 = 0b111011101010101100101000010101

    7. Re:Examples given look like 1 bit different by Anonymous Coward · · Score: 0

      I rather hope that it requires that the bits which flip are next to each other, because otherwise they've overlooked 16843009 = 257 * 65537, the product of the two largest known Fermat primes.

      Great comment! before writing the paper, we found thousands of bigger numbers whose factors differ by two bits. However, we need to be able to reduce equations like Eqs. 1-6 from our paper, to Eqs. like 7-9 from our paper. This is done on a classical computer. We know that if the factors differ by two bits, they will eventually reduce to Eqs. like 7-9. But 56153 is the largest such number that we found easily on a classical computer, by only using efficient rules like p1+q1=1+ 2*z implies z=0. Hope that helps :)

  7. Prior art? by BarbaraHudson · · Score: 1

    Again, two bits were flipped.

    So, cosmic rays bit-flipping are prior art of how natural processes can do the same thing. The universe really is one big computer and we're stuck in it!!!

    --
    "Transparent" is a shit show that trades on every stereotype going. A man in drag is NOT a transsexual.
  8. So worst case still classically exponential, but.. by grimJester · · Score: 1

    If I understand correctly, the classical version of this factoring scales with 2^n where n is the number of bits different in the two binary factors. Wouldn't there be some kind of trick to handle situations where more than half the bits are different though? IIRC this still wouldn't be the best known classical algorithm, but this seems worth some thought.

    Also nice to see the whys and wherefores of quantum algorithms being better understood, but can't really say I know enough so see if this gives any more general insights.

  9. I'm surprized no one has said it. by Oligonicella · · Score: 2

    This is just a two bit story.

    I apologize - kinda.

  10. Of course it's dumb by Anonymous Coward · · Score: 0

    It's medium.com pagefiller from a serial medium.com filler page spammer.

  11. Right... by Anonymous Coward · · Score: 0

    What's a qubit?

    (Too soon?)

    1. Re:Right... by OhSoLaMeow · · Score: 1

      What's a qubit?

      (Too soon?)

      Mod parent funny for the Cosby connection.

      --
      They can take my LifeAlert pendant when they pry it from my cold dead fingers.
    2. Re:Right... by pjt33 · · Score: 1

      If you have to explain the joke, it's not funny.

  12. Re:Is it me (probably) or is the article a bit dum by Garridan · · Score: 2

    They found a pair of primes that differ by two bits. If you find two billion-digit primes that differ by two bits, you'll get the same system of equations. And once you find those, you can claim that a quantum computer has factored their product. Ooooh, maaaaagic. Quaaaaaantum maaaaaagic. It sounds even more magical if you say that you're solving infinitely many biprime factorizations, but I suspect that proving such a claim is at least as hard as the prime gap conjecture.

    The authors then go on to say that the D-Wave machine has 512 qubits. This is true. But those qubits are nothing like fully connected, so their insinuation that arbitrary systems of 512 variables are solvable is totally ludicrous. Assuming Moore's law works out for D-Wave for a while, we might see that... but it'll be years.

  13. Factors differ by a power of 2 in the examples by FredK · · Score: 1

    If we assume c can be factored as a (a+2^k) then the resulting quadratic gives a = -2^{k-1} + sqrt(2^{2k-2}+c). Thus for such numbers that allow factoring in this form, one can search for the factors in time linear in the number of bits in c. (One just needs to check for 2^{2k-2} + c being a perfect square, for the various values of k.)

  14. Re:So worst case still classically exponential, bu by Anonymous Coward · · Score: 0

    The problem can be solved classically using O(Choose(N,n)) bignum operations, where N is the number of bits in the larger of the two factors. In their case n=2 so we get O(N^2) bignum operations, which is polynomial, not exponential.

    You're right that when more than half of the bits are different, it can become easier as the Choose function's maximum is attained at n = N/2.

  15. my awesomer algorithm by Anonymous Coward · · Score: 0

    n=p*q where n is the semiprime, p and q are the prime factors

    floor(sqrt(n))=p --- finds the first prime factor,p

    then just n/p=q to find the second. (or alternatively, p+2 )

    works for the domain of all n such that |p-q|=2
    There, and I didn't even need a magical computer made from a huge pile of dead cats that cost billions.
    LFMAO

  16. ... break most modern cryptographic codes? by Checkered+Daemon · · Score: 1

    This statement always shows up when discussing quantum computers. The only important 'modern cryptographic codes' dependant on factoring large primes are RSA and Diffie-Hellman.RSA has replacements waiting in the wings (notably Elliptic Curves); Diffie-Hellman might be a bit trickier to live without.But I'm not aware of any claims that the symmectric cyphers (AES, Blowfish, 3DES, etc) or the advanced hashes (SHA3? or whatever) would be vulnerable.

    1. Re:... break most modern cryptographic codes? by thestuckmud · · Score: 1

      Agreed - except that Diffie-Hellman relies on the difficulty of solving the discrete log problem, not integer factorization - so that only RSA is vulnerable here, and only if bit-wise close primes were chosen for the key.

    2. Re:... break most modern cryptographic codes? by pjt33 · · Score: 1

      I think GPP was talking about the generic comments made on quantum computing rather than the particular analysis which is the main topic. Shor's algorithm does discrete log as well as factorisation.

  17. Re:So worst case still classically exponential, bu by Impy+the+Impiuos+Imp · · Score: 1

    Is my understanding correct, that quantum computing is fast, but isn't the magic oracle to factor numbers? It neither exceeds a Turing machine while remaining finite, nor is infinite in that context?

    --
    (-1: Post disagrees with my already-settled worldview) is not a valid mod option.
  18. Douglas? by RatherBeAnonymous · · Score: 1

    A computer of such infinite and subtle complexity that organic life itself will form part of its operational matrix. And it shall be called... the Universe.

  19. Related paper: Oversimplifying quantum factoring by oldmacdonald · · Score: 1

    Here are links to my paper in Nature and to the arXiv version which explains why all such results are very silly.

    http://www.nature.com/nature/j...
    http://arxiv.org/abs/1301.7007

  20. Re:So worst case still classically exponential, bu by Anonymous Coward · · Score: 0

    Those aren't the same question. Factoring numbers is not a magic task that Turing machines cannot do.

  21. Re:So worst case still classically exponential, bu by geantvert · · Score: 1

    In a regular factorization all bits except the 1st and the last are basically unpreditable (in the sense that they have no generic and well defined properties that could help predict their value) so the probability of the number of identical (or different) N pairs follows the same rules than flipping N coins. In practice the number will be around N/2 with a very strong probability.

    For N=1000, see for instance the graph for 'output 1000d2-1000' in http://anydice.com/program/4d4...

    The probability that you get something outside the range 450-550 is almost zero so any method based on the idea that some factorizations will have a lot or few identical pairs is unusable in practice.

  22. Is this the stupidest story ever? by Anonymous Coward · · Score: 0

    They tried factoring 143, and ended up factoring 56153 by accident?

  23. Errr...ummm...IQC (Institute for Quantum Computing by Anonymous Coward · · Score: 0

    IQC ('Quantum Valley'), at the University of Waterloo, and the Perimenter Institute in Waterloo, Canada, have 12 qubit computers...
    phys.org/pdf66322040.pdf

  24. Smash records with this one weird trick! by Anonymous Coward · · Score: 0

    Mathematicians hate it!

  25. no mention of the Chinese scientists' name by benpark22 · · Score: 0

    Nowhere I can find that they mention the Chinese mathematicians' names, like they are not worth mentioning.

  26. Re:hot topic ... as in Germany by now ... by geantvert · · Score: 1

    I don't what you are smoking but you should try to stop for a while!

  27. Re:Errr...ummm...IQC (Institute for Quantum Comput by LeadSongDog · · Score: 1

    IQC ('Quantum Valley'), at the University of Waterloo, and the Perimenter Institute in Waterloo, Canada, have 12 qubit computers... phys.org/pdf66322040.pdf

    ...or at least 12 is the peak of the p.d.f.

    --
    Oh, I'm sorry sir, I thought you were referring to me, Mr. Wensleydale.
  28. Re:Is it me (probably) or is the article a bit dum by RoknrolZombie · · Score: 1

    I wish I could understand your refutation of the article that I also didn't understand.

  29. What investment in STEM will get ya! by Taco+Cowboy · · Score: 1

    China is not well known for high tech (or high knowledge) innovations --- at least not since the invention of paper, compass and explosive, thousands of years ago --- and the fact that a bunch of Chinese researchers could come up with the idea of using a nuclear magnetic resonance quantum compute in aiding the discovery of large factorized prime numbers shows that China's huge investment in STEM is starting to pay off

    And I presume (I certainly have no idea what else will come up next) that with their continual huge investment in STEM China gonna reap lots and lots of amazing pay off in coming years

    That said, why is the US of A cutting off the funding for math, science and technology?

    --
    Muchas Gracias, Señor Edward Snowden !
  30. Re:Is it me (probably) or is the article a bit dum by Anonymous Coward · · Score: 0

    I don't quite get how "the same algorithm works for some larger numbers of this kind" leads to "therefore the Chinese also did this calculation without realising it."

    Great comment! I'm one of the authors of the paper. While trying to factor 56153 using our Table 2, you end up with Eqs. 16-18. Solving these equations is equivalent to factoring 56153. These equations are the same equations that the Chinese group solved on a quantum computer in 2012. Hope that helps :)

    Yes you're correct that any quantum algorithm can be emulated on a classical computer, just not efficiently.
    Emulating a 4 qubit quantum computer on a classical computer is very easy, because the hamiltonian is a 16x16 matrix.
    For a quantum computer to outperform a classical computer, you need more qubits. A classical computer cannot emulate a 512 qubit quantum computer because the hamiltonian is a (2^512 x 2^512) matrix.

  31. Re:Related paper: Oversimplifying quantum factorin by Anonymous Coward · · Score: 0

    Dear oldmacdonald. I admired your paper on oversimplifying quantum factoring very much, and I actually cited it in the abstract of my paper (which is the subject of this thread). Without your paper, I wouldn't have even known that all implementations of Shor's algorithm to date used prior knowledge of the factors to determine an "easy" base a.

    However, your Nature paper and arXiv paper do not explain why the results in my paper are silly. 143 and 56153 were both factored with 4 proton spin qubits, without any prior knowledge of the factors. It's not clear whether or not this approach will outperform Shor's algorithm, or the GNFS for RSA-220. But it's worth a try!

  32. Re:Related paper: Oversimplifying quantum factorin by hweimer · · Score: 1

    Hilarious. Reminds me of a usenet discussion we had back in 2003, but I never thought about playing this game to claim factorization of absurdly large numbers.

    --
    OS Reviews: Free and Open Source Software
  33. No quantum speedup by Anonymous Coward · · Score: 0

    Factoring numbers whose factors are known to differ only in two bits is efficient on a classical computer. Therefore, both the experiment and the realization that it can be used to factor a larger number are useless.

    There's no speedup in using a quantum computer over a classical computer for that problem. Unrestricted factoring, on the other hand, would show such an improvement.

    1. Re: No quantum speedup by Anonymous Coward · · Score: 0

      Yeah, that's quantum computing all right. Though it does serve the purpose of budget inflation

  34. Re:Related paper: Oversimplifying quantum factorin by oldmacdonald · · Score: 1

    Dear AC,

    I'm glad you liked our paper and it stimulated your research. I had not actually read your paper when I posted the link to mine and I'm still thinking it over. I think you would agree that your approach is not a general factoring method, but rather depends on the factors having some structure, even if you don't need to know the factors entirely.

  35. Re:Related paper: Oversimplifying quantum factorin by oldmacdonald · · Score: 1

    Very interesting to see this idea has some history to it. I'm not surprised that other people thought of it too!

    Like you, I had noticed that the number of qubits used (7) was smaller than the number needed to implement Shor's algorithm. I actually asked Shor about this and he said, "15 is special, because it is 4 to an integer power minus 1." I asked him what that meant and it said "it means it's divisible by 3."! This told me that there are special classes of numbers that are easy to "factor" (by which I mean "to run Shor's algorithm on") if only you know you are in the class.

    What really stimulated us to write the paper was the observation that 21 had been factored on only a qutrit. The numbers being factored were growing, but the size of the quantum computer was shrinking. Surely something fishy was going on.

  36. Re:Related paper: Oversimplifying quantum factorin by Anonymous Coward · · Score: 0

    It is a general factoring method. Equations like our Eq. 1-6 can be made for any integer factorization, in 1 second. The solution of these equations can be formulated as a minimization problem, and therefore encoded in the ground state of a hamiltonian. References [9,10] of my paper do it this way. What we do different is that we simplify the equations by using rules such as p+q = 1+2*z implies z=0. Now that we know the value of z, we can find p & q with only 2 qubits instead of 3.

    You are right that whether or not we can simplify to a very small number of qubits seems to depend on the factors having some structure, or in some sense, luck. We did everything by ignoring knowledge of the factors, and we randomly found some cases that factor with very few qubits. Other factors will need more qubits, but can still use our very same method. I hope this clears it up a bit!

  37. Woopie! by Anonymous Coward · · Score: 0

    In 1985 I could factorize a much larger number (product of 2 primes) on an 8086/8087 Compaq PC in about 10 ms using a simple recursive use of the Sieve of Aristostenes. My biggest limitation was the size of data supported by the hardware (80 bits).

  38. nah - really - dont worry ! by dschinn1001 · · Score: 0

    Dont worry - I dont smoke - and dont worry about this either - you could really live more safe in Berlin - than me - and dont worry either about my nick - I am really NO radical (or somehow suspicious "dschihadist" ?! ) - in case you believe in movies of TV - you may know that most of the reels in the news are repitions of the 80ies and of the 90ies ... sleep tight and well ! - by the way, I doubt that you are breast-feeded like most parliament members in UK are probably not breast-feeded ?!