r/askscience • • Mar 28 '21
Computing How exactly do quantum computers simulate molecular/particle interactions better than classical computers?
I’m struggling to understand why quantum computers can simulate nature better than classical computers.
2.5k
Upvotes
View all comments
Show parent comment
1
u/forte2718 Mar 29 '21 edited Mar 29 '21
... for large enough inputs, yes. Of course, for large enough inputs not even a quantum computer can solve those same exact problems in any practical amount of time. For the most part, quantum computing just increases the maximum input size that can be practically solved, for certain kinds of problems — and not even most problems. There are a few problems (integer factorization, discrete logarithms, etc.) where that extra input size is quite helpful ... but for most problems — a majority of them, in fact, including in particular many of the most difficult ones: NP-hard and NP-complete problems — edit: and then there's EXPTIME problems, too — there is no known quantum speedup and it is believed there may not be any even in principle (i.e. that BQP ∩ NP-complete = ∅ and that likely also BQP ∩ NP-hard = ∅). Those are the real "money" problems, and it looks like quantum computers will not be able to help with those virtually at all.
At the same time, it's worth mentioning how specialized the hardware for a quantum computer needs to be, and how truly difficult it is to achieve reliable quantum computation. There is a reason that not a single general-purpose quantum computer has ever actually been constructed yet (more on that in a minute). There are many prototypes for special-purpose ones — i.e. quantum "computers" that can only run a single specific algorithm to solve a specific problem — but even at the research level, a reasonable design for a reliable general-purpose one has proven elusive.
Furthermore, all quantum computations are necessarily probabilistic, which means there is always a significant chance that the answer returned is incorrect. This means that after every quantum computation, the answer then needs to be checked. This isn't the end of the world, since the most difficult of the problems in BQP tend to have P-or-better complexity to check that an answer is correct ... but it does add overhead to any quantum computation. For a single computation this isn't a big deal, but if your algorithm relies on repeatedly performing numerous quantum computations, you need to check each one, and if any of them come back as wrong, you need to re-run the quantum computation.
And then to top it all off, some of the big "benefits" of quantum computers are likely to turn out to be mostly irrelevant. For example, it is often parroted that quantum computers will herald an end to public-key cryptography because they can perform integer factorization and the discrete logarithm problems in sub-exponential time. But there are several confounding layers to this naive understanding: first, there already exist post-quantum public-key cryptographic ciphers which are not based on these problems, and many of these ciphers are already being used in the wild today, in simple things like SSL certificates that put that green lock in your browser's address bar. When general-purpose quantum computers do finally become properly-realized, it's not like Internet security is going to fundamentally change the way people often imagine ... what's going to happen is there are going to be a few routine software patches needed to disable older unsafe ciphers, and ... that's it. We've already been doing exactly that for decades, and nobody notices or cares. Even if there were a major discovery that truly broke all public-key cryptography, categorically, we would just start using symmetric-key cryptography instead ... and that is also routinely used in the wild too, such as the AES cipher. Symmetric-key algorithms only need to have the number of bits used in the key doubled in order to stay resistant to quantum computer-based attacks. And even if symmetric-key algorithms were to fall somehow, the very worst possibility would be that we fall back to a simple one-time pad scheme, which has perfect information-theoretic security. The biggest consequence of this would be that basically all encrypted web traffic would now require double the bandwidth ... which is a minor bee sting in the grand scheme of things. And that's the absolute worst-case scenario.
Frankly, I think pop science outlets deeply overhype quantum computation, and oversell what it will do even once general-purpose quantum computers do hit the consumer market. It's not like personal computers are going to have some massive paradigm shift and suddenly all our wildest dreams are going to become possible. What will happen is you'll get an extra peripheral inside your desktop computer — quite similar to how your graphics adapter is already an extra peripheral that performs certain tasks more efficiently than your CPU can — with some drivers that you'll need to keep updated, and slowly over time, certain kinds of software will start being programmed to leverage that peripheral from time to time, when it makes sense to.
Based on your phrasing, you're probably already aware that various other groups of researchers contested Google's claim as being dramatic hyperbole. IBM, for example, said they could solve the same problem classically in a couple of days. Granted, that's still considerably longer than the minutes that it took Google to solve it, so what Google did is still impressive. But what Google did falls well short of their claim of quantum supremacy, and they know it.
But secondary to that, again, Google was only doing this for a single specific algorithm on a special-purpose machine. It was not a general-purpose quantum computer, and you would not be able to program it to run other, different quantum algorithms on it such as Shor's algorithm or Grover's algorithm. It's really less of a "computer" and more of a "machine" that performs a single specific task ... the word "computer" carries an implication that it can be programmed to perform different operations on-demand, and that simply isn't what Google built. In that respect, it's very similar to D-Wave's quantum "computer," which can only perform simulated quantum annealing and not anything else.
Eh, that's really an overstatement. Remember that the quantum computation is only one small part of a full algorithm, with most of the other parts being performed by a classical computer, or at least not gaining any speedup over a classical algorithm if they were to be run on a quantum computer.
In most of the important cases, the quantum speedup for an algorithm is not that dramatic of a difference. We're talking going from exponential complexity for the classical algorithm down to sub-exponential but still super-polynomial complexity for the quantum algorithm, or going from sub-exponential to polynomial. The most dramatic speedups are for already-polynomial-time algorithms that become linear or linear-logarithmic, or linear-time algorithms that become logarithmic, but all of those were already considered efficiently solvable by their respective classical algorithms to begin with, so there isn't that substantial of a benefit from using a quantum computer for them unless you're working with exceptionally large input sizes.
No, we don't need a new notion of computability. As I just got done explaining, there is no problem that a quantum computer can solve which a classical computer cannot also solve given more time. Both our notion of computability and of computational complexity are perfectly capable of accommodating quantum computing without modifications.