News for hackers. Stuff that matters.
Re:Turn down the quantum volume by nrclark on Thursday March 05, 2020 @05:23PM (#22498986)
Not trolling, but curious - do quantum computers do anything useful yet?
Re:Turn down the quantum volume by dekhn on Thursday March 05, 2020 @06:04PM (#22499318)
No. There have been some interesting quantum simulation papers but nobody has shown anything yet that is revolutionary.

This is promising work that may be interesting in the future: https://arxiv.org/pdf/1902.10171.pdf

This also looks like it could be interesting: http://meetings.aps.org/Meeting/MAR20/Session/W17.7 (Gurobi is a CPU solver for integer and linear programming problems, which are some of the most useful to solve quickly.

There is also: https://ai.googleblog.com/2016/07/towards-exact-quantum-desc...

Re:Turn down the quantum volume by kaiabwpdjqn on Thursday March 05, 2020 @08:53PM (#22500373)
can you give an example of a linear programming task that is not currently practical to solve on classical computers but could become so with a huge speed up?
Re:Turn down the quantum volume by alex_anglin on Thursday March 05, 2020 @09:46PM (#22500597)
Simulated annealing[1] versus Quantum annealing[2], though it’s not there yet practically speaking as I understand it.

[1] https://en.wikipedia.org/wiki/Simulated_annealing

[2] https://en.wikipedia.org/wiki/Quantum_annealing?wprov=sfti1

Re:Turn down the quantum volume by kragen on Thursday March 05, 2020 @10:17PM (#22500719)
Simulated annealing is not a linear programming problem!
Re:Turn down the quantum volume by MrK93 on Thursday March 05, 2020 @09:40PM (#22500579)
Routing, TSP, scheduling, they all benefit from huge speed ups.
Re:Turn down the quantum volume by kaiabwpdjqn on Friday March 06, 2020 @01:38PM (#22506052)
I guess. But we already optimize these things. Without any specific domain in mind, I wonder how much better we could get. Like maybe amazon could find the global minimum cost to route, but right now it’s getting pretty darn close.

Or maybe that’s entirely naive and the potential for finding faster solutions to real time problems is huge

Re:Turn down the quantum volume by dekhn on Friday March 06, 2020 @01:47PM (#22506132)
it is huge. that's the only reason people are motivated to implement QC- because in principle then we can break crypto, do QM much faster, solve intractable problems, etc.

Day-to-day, we're not really blocked on QC to get important work done.

Re:Turn down the quantum volume by kaiabwpdjqn on Monday March 09, 2020 @12:32PM (#22526731)
Ok but what I’m looking for is an actual example of an intractable problem.

Breaking crypto is one, I guess, but it’s also one that makes everything worse, so I don’t take that as a useful outcome.

Re:Turn down the quantum volume by baddox on Thursday March 05, 2020 @05:57PM (#22499267)
My impression is that we've recent just maybe gotten to the point where someone has proven that they have a computer that actually is doing quantum computing for something that would be exponentially slower to do on a classical computer.

My understanding is that this is what Google has recently claimed to have done, and before that no one had published any serious claims that they had done real quantum computing.

As always, Scott Aaronson has a solid article, some of which I can understand: https://www.scottaaronson.com/blog/?p=4317

Re:Turn down the quantum volume by obi1kenobi on Thursday March 05, 2020 @05:30PM (#22499041)
There are some interesting ideas around using quantum computers for verifiably-random numbers, including a proposal from Scott Aaronson himself: https://www.quantamagazine.org/how-to-turn-a-quantum-compute...
Re:Turn down the quantum volume by fsh on Thursday March 05, 2020 @09:34PM (#22500555)
I just don't get why you would want to use a quantum computer to generate random numbers. Hardware-RNGs are cheap and have existed for decades. Your CPU probably has one built-in. Some even rely on quantum effects such as shot noise, but where is the advantage over using say thermal noise of a resistor? Both are completely unpredictable.
Re:Turn down the quantum volume by obi1kenobi on Friday March 06, 2020 @09:42AM (#22503898)
If you want random numbers just for yourself, all of the approaches you mention are fine to use. The difference is that by using a quantum computer, one could generate random numbers and convince others that the numbers are actually random and not rigged.
Re:Turn down the quantum volume by klingonopera on Thursday March 05, 2020 @07:03PM (#22499777)
I have absolutely no clue about quantum computing, but I remember this from two years ago. Haven't heard anything since.

Is this relevant? Does anyone have thoughts on this?

https://spectrum.ieee.org/tech-talk/telecom/security/china-s...

Re:Turn down the quantum volume by chrispeel on Thursday March 05, 2020 @09:21PM (#22500494)
Quantum encryption as in the IEEE Spectrum article is not the same thing as quantum computing, which is what the original post is about. So no, not relevant

Even so, HN is all about the non-relevant stuff, so I'll give my two bits on quantum encryption, which is that it is dramatically easier than quantum computing for short distances, yet even so its not practical to replace our entire internet such as to enable its use. And until the quantum computers are built, there's no need for it

Re:Turn down the quantum volume by dreamcompiler on Thursday March 05, 2020 @10:16PM (#22500717)
> And until the quantum computers are built, there's no need for it.

Disagree. One of the coolest things about quantum encryption is that any attempt to eavesdrop a communication is instantly detectable. This is extremely useful for communication between conventional computers.

Re:Turn down the quantum volume by core-questions on Thursday March 05, 2020 @08:18PM (#22500226)
https://www.dwavesys.com/applications is worth looking at, they quote 200 different applications for their system.

Truly useful as in profitable, maybe not yet, but it's still early days - it would be like asking Von Neumann how he plans to handle microtransactions

Re:Turn down the quantum volume by iainmerrick on Thursday March 05, 2020 @10:54PM (#22500866)
From what I’ve read about Von Neumann, he’d probably take a decent stab at answering that!
Re:Turn down the quantum volume by core-questions on Friday March 06, 2020 @12:11AM (#22501148)
Oh, no doubt, and I bet you could get someone from any of the current QC companies to go hog wild with ideas over a beer or two, but in practical reality what matters is execution and manufacturing - something that Honeywell, Google, et. al. have been scant on but seems to be core to what D-Wave is doing.
Re:Turn down the quantum volume by brian-armstrong on Thursday March 05, 2020 @08:05PM (#22500170)
Sure, they've led to lots of grants and work for grad students.
Re:Turn down the quantum volume by kragen on Thursday March 05, 2020 @10:19PM (#22500724)
Hi! What do you think the postquantum security story for Bitcoin looks like? That is, if someone starts being able to build big quantum computers, what vulnerabilities does that create in Bitcoin, and is there a way we can solve them in time to keep the whole system from collapsing?
Re:Turn down the quantum volume by 6nf on Thursday March 05, 2020 @06:13PM (#22499411)
Almost but not yet
Re:Turn down the quantum volume by lisper on Thursday March 05, 2020 @07:23PM (#22499913)
Almost? What have they done that you would consider "almost" useful?
Re:Turn down the quantum volume by 6nf on Thursday March 05, 2020 @07:31PM (#22499972)
They have proved that it's physically possible for quantum computers to do things that classical computers can not. In other words, they have proved that quantum supremacy is real.
Re:Turn down the quantum volume by lisper on Thursday March 05, 2020 @07:49PM (#22500086)
No, they haven't.

There is nothing that a QC can do that a CC cannot. CC's are universal. They can compute any computable function.

What QC's can do in theory is perform some computations much faster than a CC can. One QC has actually done that, but the computation was of a function that cannot reasonably be called "useful".

The potentially useful things that QCs can do is speed up factoring, protein folding analysis, simulation of chemical reactions... no QC has come anywhere near doing any of those things.

Re:Turn down the quantum volume by kragen on Thursday March 05, 2020 @10:26PM (#22500748)
To nitpick your nitpick, we define "computable function" to mean any function that a classical computer can compute in finite time. There are a number of formal models of "hypercomputation" that could compute things that a classical computer can't compute, if they turned out to be physically realizable, but so far we don't have any evidence suggesting that they are, Tao's theorem about exploding coffee notwithstanding, since actually existing fluids are composed of atoms. So it is correct that quantum computation only allows us to, hypothetically, compute more quickly, rather than allowing us to compute things in finite time that classical computers can't compute in finite time. But it's circular logic, and therefore sloppy thinking, to say "CC's are universal. They can compute any computable function."

It is of course true that quantum computers are still far from being practical tools for more rapid computation.

Re:Turn down the quantum volume by lisper on Friday March 06, 2020 @01:42AM (#22501447)
> it's circular logic, and therefore sloppy thinking, to say "CC's are universal. They can compute any computable function."

No, it's not. In fact, it might not even be true. This is the Church-Turing thesis, and it is unproven and probably unprovable, but nonetheless almost certainly true. An actual counterexample would probably be the biggest news in the history of science.

Re:Turn down the quantum volume by kragen on Friday March 06, 2020 @02:48AM (#22501728)
Well, that's true if by "computable" you mean "possible to compute in practice in the physical universe" rather than "possible for a Turing machine (or the λ-calculus, etc.) to compute." But usually we use "computable" for the second class, not the first. In particular, you were using it to mean "possible for a Turing machine to compute" rather than "possible to compute in a physically realizable computer" when you said that classical computers are just as capable of performing protein-folding calculations and factoring as quantum computers, only more slowly. In fact, it is straightforward to construct factoring problems that cannot be performed by physically realizable classical computers by any known algorithm because it will take longer than the lifetime of the universe — or, at least, the matter in it.

To be concrete, the current factoring record is RSA-240, a 795-bit number that was factored in November. This required about 2.37 × 10²³ steps of computation by my calculation, and was completed in 4000 core-years. I'm not sure how long it took in real time, nor do I remember how parallelizable GNFS is (I seem to recall it has a bottlenecked step.) To take a thousand times as much computation, you need a 1048-bit semiprime; for a million, 1344 bits; for a thousand million, 1685 bits (which, you'll note, gets us close to the age of the universe on one core); for 10¹² times as much, 2075 bits (close to the age of the universe on a thousand cores); for 10¹⁰⁰ times as much, 43687 bits. The Eddington number is that there are about 10⁸⁰ baryons in the observable universe, so if your computing cores are larger than a single proton, it will take you at least 10²⁰ times those 4000 core-years to factor a 43687-bit number with GNFS, that is, about 4 × 10²³ years.

    import math
    nfsln = lambda ln: math.exp(((64/9)**(1/3)) * ln**(1/3) * math.log(ln)**(2/3))
    nfsln(43687*math.log(2))/nfsln(math.log(
    12462036678171878406583504460810659043482037465167
    88057548187888832896668011882108550360395702725087
    47509864768438458621054865537970253930571891217684
    31828636284694840530161441643046806687569941524699
    3185704183030512549594371372159029236099
    ))
But that's still a relatively short time; yes, it's 10¹³ times longer than the universe has existed so far (and 10¹³ times longer than it will exist if the Big Rip happens, and about 10¹¹ times longer than it will exist if the Big Crunch happens), but it's possible that the universe might last longer than that. The Stelliferous Era is due to end in 10¹⁴ years, so that's a billion times longer than the Stelliferous Era will last, but red dwarfs will continue burning and providing power for another hundred times that long. Still, though, new red dwarfs will be formed from time to time, and perhaps they could power your classical computer for long enough to factor that number.

Skipping over the Black Hole Era (can your computer survive the Black Hole Era?) all the black holes are conventionally predicted to have decayed via Hawking radiation in about 1.7 × 10¹⁰⁶ years. So a semiprime of 161133 bits, which will take about 2.37 × 10²⁰⁶ operations to factor with GNFS, cannot be factored in that time with the GNFS on classical computers as long as every Xeon-speed processor is bigger than a baryon.

But wait! Maybe your processors can run faster; at the scale of nuclear reactions, a Xeon's few GHz is unimaginably slow. But there's still a speed limit: you can't realistically do more than one operation per Planck time, about 5.4 × 10⁻⁴⁴ seconds. So you can maybe get a speedup of up to about 10³⁵ by making your smaller classical processors go faster, using digital logic mechanisms yet unknown, perhaps shockwaves traveling around a neutron star or something. (All the nuclear reactions we know about run enormously slower than this, though.)

Well, if you can run your proton-sized processors at 10⁴⁴ Hz, that means that by the end of the Black Hole Era you can factor a semiprime of 240857 bits or so on a classical computer.

So that's probably pretty much the limit in the physical universe.

If you can build a quantum computer, using Shor's algorithm, you can factor such a number in about 833586709574 operations (8.3 × 10¹¹) times whatever the constant factor is.

    shorln = lambda ln: ln**2 * math.log(ln) * math.log(math.log(ln))
    shorln(math.log(2) * 240857)
So, while you can definitely factor a 240857-bit semiprime on a Turing machine, which is a theoretical construct, you cannot factor it on a physically realizable computer — unless we can build a large quantum computer (one with almost half a million qubits), in which case we can do it in, probably, a few minutes.

In conclusion, either your use of "computable" and "CC" in your original comment referred to computability in a particular family of abstract models of computation, not in physically realizable classical computers; or your statements in that post about the relative computing power of classical and quantum computers were simply mistaken with respect to current knowledge, because (assuming QCs are physically realizable) physically realizable QCs can compute things that physically realizable CCs are not known to be able to compute.

I say not known to be able to compute because the question of whether BQP = P is still undecided. It might turn out that classical computers can simulate quantum computers in polynomial time, thus providing a polynomial-time algorithm for factoring — although this is unlikely, we don't have a proof that it's impossible. Even if BQP ≠ P, it's possible that integer factorization is in P, and we just haven't found an efficient algorithm for it yet, despite thousands of years of trying. But it's not the way to bet.

It is of course correct that it would be an enormous and improbable breakthrough for someone to find a way to build a physically realizable computer that can compute things that an abstract, theoretical Turing machine cannot. That would be a counterexample to the Church–Turing thesis.

Re:Turn down the quantum volume by lisper on Friday March 06, 2020 @11:11AM (#22504690)
> Well, that's true if by "computable" you mean "possible to compute in practice in the physical universe" rather than "possible for a Turing machine (or the λ-calculus, etc.) to compute." But usually we use "computable" for the second class, not the first.

Yes. But usually "we" (see below for an explanation of why that word is in scare quotes) use the word "computable" in a context where quantum computers are not even in play. Quantum computers have only become a thing fairly recently relative to the amount of time that humans have been talking about computation.

This entire conversation turns on the meanings of fuzzily or implicitly defined words like "useful" and "almost" and "we". But the whole point of quantum computers, the only reason they are on the radar, is that they can potentially do something that classical computers can't do for some not-entirely-unreasonable definition of "can/can't do" and (and this is crucial) that WE MIGHT ACTUALLY BE ABLE TO BUILD ONE THAT REALIZES THIS THEORETICAL POTENTIAL. The jury is still very much out on that, but it's looking more promising than many skeptics imagined a few years ago.

You wrote:

> There are a number of formal models of "hypercomputation" that could compute things that a classical computer can't compute

Yes, that's true, but irrelevant because none of these formal models are physically realizable so no one cares about them (except theoreticians).

Re:Turn down the quantum volume by kragen on Friday March 06, 2020 @12:01PM (#22505176)
I'm glad we — by which in this case I mean the human body that is typing this message and the human body that presumably typed the message to which it responds — have come to agreement!
Re:Turn down the quantum volume by dang on Tuesday March 10, 2020 @12:59PM (#22537168)
The very long number in the code sample above was breaking HN's layout (it's our bug—sorry), so I added some line breaks to it. Anyone who wants to execute that code should take them out.
Re:Turn down the quantum volume by kragen on Thursday March 12, 2020 @04:45PM (#22561532)
Oh, sorry about that. I guess I could have written something like

    int('3'
    '4'
    '5')
but I didn't think about it.
Re:Turn down the quantum volume by 6nf on Thursday March 05, 2020 @08:11PM (#22500202)
You don’t agree with Google’s November paper then I guess?

You KNOW what quantum supremacy means. Please don’t nit pick my layman’s description we are all adults here. You know what I meant.

Re:Turn down the quantum volume by lisper on Thursday March 05, 2020 @08:16PM (#22500219)
I'm not taking issue with your definition of quantum supremacy, I'm taking issue with your (implied) definition of "almost useful". Personally, I don't consider the demonstration of quantum supremacy in and of itself to be useful. It is very interesting, but IMHO it is not (yet) fair to say that QCs have done anything useful, even if you hedge with "almost".
Re:Turn down the quantum volume by meowface on Thursday March 05, 2020 @09:57PM (#22500643)
Everything you've been posting is technically correct whereas the parent was technically incorrect, but it's still huge progress and an important step. No, they're not at the useful stage yet, but we can see now that it's inevitable, whether it's years or decades away.
Re:Turn down the quantum volume by lisper on Friday March 06, 2020 @01:35AM (#22501423)
Yes, it's huge progress, but huge progress != useful. And getting to useful, while very likely a matter of when and not if, is not inevitable. The number of qbits in current technology is measured in the dozens whereas the number of qbits needed to do something useful is likely in the thousands (because error correction will almost certainly be needed). QCs don't scale like CCs do. There could be some pretty significant obstacles between here and useful. C.f. fusion power, which has been 10 years away from being useful for about 40 years now.
Re:Turn down the quantum volume by core-questions on Thursday March 05, 2020 @08:18PM (#22500229)
Google's quantum supremacy is BS, does anyone believe it? It can't do anything besides "not be simulated well".
Re:Turn down the quantum volume by zozbot234 on Thursday March 05, 2020 @08:34PM (#22500306)
That's not BS, it's literally what "supremacy" means. Usefulness is an entirely different metric. And Google didn't come up with the term "quantum supremacy" (which is a rather awkward phrasing anyway), it was well established in QC research prior to anyone actually claiming it.
Re:Turn down the quantum volume by core-questions on Friday March 06, 2020 @12:14AM (#22501158)
It's only an awkward phrase because of what it reminds you of; maybe stop thinking about the bogeyman so much.
Re:Turn down the quantum volume by meowface on Thursday March 05, 2020 @09:59PM (#22500654)
It's not BS at all. It proved that they could use a quantum computer to compute something that would be infeasible for a classical computer to solve in a reasonable time frame. That's huge. It's a toy computation, sure, but that's still a major step.

It has to be scaled up much more before it can do useful things, and the scaling process is very difficult and costly. But we now have confirmation that the idea is sound.

Re:Turn down the quantum volume by core-questions on Friday March 06, 2020 @12:13AM (#22501156)
> It proved that they could use a quantum computer to compute something that would be infeasible for a classical computer to solve in a reasonable time frame.

Yeah, but they were basically computing noise, and it's bloody difficult to say that the ability to do that is meaningful enough to have claimed "supremacy" already. It's a huge premature celebration for a team that has had incredible difficulty trying to scale up beyond a tiny number of noisy qubits; like, good for them, but the purpose of this effort really seems to be to make for good water-cooler conversation among the Google execs than it is to actually do useful science.

Re:Turn down the quantum volume by anoncareer0212 on Friday March 06, 2020 @12:34AM (#22501218)
You're talking way out of your field, read Aaronson for a good accessible take on why all of what you're saying is wrong
Re:Turn down the quantum volume by core-questions on Friday March 06, 2020 @12:36AM (#22501226)
I've read enough Aaronson to know that he's just too smug of a person for my liking, honestly. It shines through in everything he writes, leaving a nasty sheen on things.
Re:Turn down the quantum volume by Koshkin on Thursday March 05, 2020 @07:51PM (#22500097)
> physically possible

Was that a mathematical proof?

Re:Turn down the quantum volume by 6nf on Thursday March 05, 2020 @08:11PM (#22500204)
No google built a physical machine.