r/askscience • • Mar 18 '19

Computing How far away are we really from quantum computing?

I feel like I keep seeing sensationalist articles on the implications, but it appears that there are still problems regarding scalability and other concepts I can’t fully grasp.

33 Upvotes

37 comments sorted by

16

u/cantab314 Mar 18 '19

It's here. The IBM Q System One is commercially available, having launched in January 2019. It's reported to have 20 qubits.

https://www.research.ibm.com/ibm-q/system-one/

Also D-Wave have been selling "quantum" computers since 2011. Their systems are somewhat specialised quantum annealing processors, not general purpose quantum computers. D-Wave published a 2014 experiment showing they do use quantum behaviour (which was disputed), but it's unclear if D-Wave's systems are any faster than a regular computer.

https://arxiv.org/abs/1401.3500

There's still a long way to go, and quantum computing is still somewhat experimental, but it is now commercialised.

20

u/mfukar Parallel and Distributed Systems | Edge Computing Mar 18 '19

There are no "general purpose" quantum computers. Quantum computing is unsuitable for general purpose tasks (as it provides no speedup in general, only on specific tasks).

8

u/EZ-PEAS Mar 18 '19

The distinction here is between D-Wave's approach to quantum computing, which is designed around running the quantum annealing algorithm (and only that algorithm) and IBM and other's approach of building general purpose qubit registers (i.e. quantum universal gates). The quantum annealing machine is designed to solve optimization problems quickly by doing the quantum version of the simulated annealing algorithm. General purpose qubits can approximate any quantum state you want (and I say approximate because there are an infinite number of quantum states), and are therefore suitable for running other algorithms like Shor's Algorithm.

D-Wave's machine can only be used to solve optimization problems, while the general machines can implement any quantum algorithm.

It's also known that all classical logic gates can be reduced to quantum logic gates, so it is valid to talk about a general purpose quantum computer that can do everything a classical computer can do, even if these machines are not currently as fast as their classical counterparts.

2

u/[deleted] Mar 18 '19

Quantum supremacy does not exist yet.

You can simulate a 5 qbit Quantum computer on your laptop. The existing quantum computers are no better than current cloud servers from the major players (Google, Amazon, IBM, MS).

so it is valid to talk about a general purpose quantum computer that can do everything a classical computer can do

They are not even remotely close to how a classical computer works, and are likely to never be. They are not intended to act as such.

5

u/EZ-PEAS Mar 18 '19

They are not even remotely close to how a classical computer works, and are likely to never be. They are not intended to act as such.

No, but in theory anything you can do with a classical computer you can also do on a quantum computer. This is because at the hardware you can design quantum logic gates that can do everything that classical logic gates can do.

0

u/sidneyc Mar 18 '19

This is a only true in a trivial sense ('classic computers are made of stuff that exhibits quantum behavior').

A quantum computer, as the term is usually understood, can only perform reversible computations during its computation stage. This has a number of strange consequences, the easiest-to-understand of which is that you cannot copy quantum information; an assignment statement like 'variable1 = variable2' cannot exist when the variables are comprised of qubits.

The high-performance behavior of classic computers depends on actively measuring the state of each classic bit whenever its data is used; this is how the logic zero and one levels are distinguished in logic circuits. In quantum computing on the other hand, the interaction between qubits does not depend on doing a measurement; it depends on the phenomenon of entanglement, which takes a quantum system into a state that is actively destroyed by measurement.

-5

u/[deleted] Mar 18 '19

but in theory anything you can do with a classical computer you can also do on a quantum computer

No you can’t. For example a classical computer can read a large file into memory and process it. Can’t be done yet with a quantum computer.

You also have a limit to the number of qbits tha can work together, and maintain coherence over time. Classical computers don’t have this issue.

6

u/wrosecrans Mar 18 '19

For example a classical computer can read a large file into memory and process it. Can’t be done yet with a quantum computer.

That's not a fundamental theoretical limitation of quantum computing. It's just a reflection of the fact that our current quantum computers are quite limited. It's entirely plausible that eventually a large system that is mainly used for quantum computing will eventually be big enough and fast enough to also do classical computing tasks without the need for a separate system. You probably won't see terabytes of memory that are all quantum entangled -- I think it's a lot more plausible that you'll see small "quantum registers" that are analogous to registers in a modern classical CPU. Each one is only 64 bits (Or maybe 512 bits for the really big SSE vector registers.) . But there are quite a few in the CPU, and the CPU is connected to gigabytes of external memory and terabytes of storage despite only being a "64 bit" CPU. Likewise, you can imagine some small entangled quantum elements that are attached to larger unentangled external elements as part of a holistic system. The quantum registers may not be especially useful when running classical code, but the box called a quantum computer will probably still be able to handle both.

→ More replies (1)

1

u/mfukar Parallel and Distributed Systems | Edge Computing Mar 18 '19

That wasn't my point at all. Since you mentioned it, however:

D-Wave's machine can only be used to solve optimization problems, while the general machines can implement any quantum algorithm.

Technically, they're applied mostly to optimisation problems that map well to the hardware. They're more of an exploration of whether speedups can be observed before the theoretical side of the issue is addressed: https://www.reddit.com/r/askscience/comments/90tnxr/what_makes_dwave_quantum_computers_considered/

It's also known that all classical logic gates can be reduced to quantum logic gates, so it is valid to talk about a general purpose quantum computer that can do everything a classical computer can do, even if these machines are not currently as fast as their classical counterparts.

Not at the moment: there is significant overhead and cost involved, which is not expected to be circumvented in the midterm. However, this may indeed become the case, but from what I understand (physics and materials isn't really my topic) there must be significant obstacles surpassed.

12

u/mctuking Mar 18 '19

D-Wave published a 2014 experiment showing they do use quantum behaviour (which was disputed),

That was never disputed. Transistors use quantum effects, but that doesn't make my Fitbit a quantum computer. What is disputed is whether there is a quantum speed up.

4

u/PM-ME-YOUR-UNDERARMS Mar 18 '19

Have any computations been done with the IBM quantum computing that wasn't possible with current computers?

5

u/[deleted] Mar 18 '19

No. That's called "Quantum Supremacy" and we are still a good bit away from that.

Even Shor's algorithm while faster than a classical computer, does not have enough qbits required to break current RSA encryption.

12

u/sidneyc Mar 18 '19

It's here.

It's not. No calculation has been performed so far on a generic quantum computer (i.e., one based on single-qubit operations and entanglement) that wouldn't be vastly more easy and efficient on a classical computer.

The D-Wave machines are a red herring. They use quantum effects (which computer doesn't?) but they are not claiming their device is a general-purpose quantum computer, and they have not demonstrated any computation that scales better than a classic computer unless I am much mistaken.

1

u/--Gently-- Mar 18 '19

One often hears of QC in the context of quickly breaking commonly used encryption. Is it the case that you need an N qubit quantum computer to break an N bit key?

7

u/cantab314 Mar 18 '19

For Shor's algorithm the number of qubits required is proportional to the length of the number to be factored. In technical terms, the space complexity is O(log N).

There's been a fair bit of research in ways to reduce the qubit requirement, here's one from 2002 reporting that 2n+3 qubits would factor an n-bit number. (So still the same scaling, but a smaller multiplier than earlier methods.)

https://arxiv.org/abs/quant-ph/0205095

(EDIT PS: Shor's algorithm is for finding the prime factors of a number. That is what's required to break RSA, the most commonly used asymmetric encryption algorithm, used in HTTPS and many other protocols.)