Physicist here. The reason is because there is an exponentially scaling amount of regular bits. Specifically, simulating N qubits requires 2N bits. So, it is completely infeasible to simulate a useful number of qubits.
The basic reason is entanglement. In a classical computer, each bit is independent - if I change a value over here, nothing's gonna change over there. Qubits and quantum computers are different, and that's why they can do things regular computers can't. In addition to keeping track of the value of the qubit, we need to keep track of which other qubits it interacts with, in what way.
A bit of math: one qubit is generally represented as a pair of numbers [a, b] , where a2 + b2 = 1. The qubit corresponding to 0 is [1, 0], and 1 is [0, 1]. You can think of a and b as the chance of a qubit collapsing to 0 and 1, respectively*.
When you have two qubits x = [a, b] and y = [c, d], their combined state is a tuple of 4 numbers, [ac, ad, bc, bd]. If x and y are not entangled, you can easily factorize this tuple into [a, b] x [c, d].
We can see that if the combined state is [0,1,0,0], then x = [1, 0], and y = [0, 1], and we can treat the system as a classical computer. However, for something like [Φ, 0, 0, Φ], no factoring is possible, and we need to keep the combined state around.
For more information, I heartily recommend this video from Microsoft Research.
* This isn't exactly what happens, but let's try and keep this simple.
Cursory search results say 50-100 qubits are useful.
If we need 2100 bits to simulate a qubit, where
23 = 8
210 = 1024
Means we need 297 bytes, or 287 kilobytes/ 277 megabytes/ 267 gb at "max", oe 217 gb/27 tb / 128 tb minimum.
Why is this "unreasonable" exactly? I mean, how slow would these simulations run if these bits are stored on (consumer?) grade 4TB SSDs? Because I doubt the cost is an issue for a company like Google
For 100 qubits, we indeed need 2100 pieces of information. However, each piece is not a bit, but a complex number, which you'd represent as a pair of floats or doubles. IOW, you're looking at 64 or 128 times the numbers you quote.
[Edit] Math has been fixed. My comment is no longer necessary (except for the use of '2100 bits', which should read '2100 pieces of information', or somesuch.
Sorry, I guess? An order of magnitude (or even getting the correct base in exponential scaling) isn't really a concern for my field of physics (astronomer).
297 bytes is about 1017 terabytes. So that's about a billion billion 4TB SSDs. That'd cost a lot more than the combined GWP for the entire world over the entirety of the history of mankind. (https://en.wikipedia.org/wiki/Gross_world_product)
Global GWP is about 100 trillion and a 4TB SSD is about 1000 usd, so if the entire human race did nothing but saving up for 1016 SSDs we'd have money for that in about 100000 years. We'd starve to death before then, but I'm just trying to give you a sense of why it's not feasible.
I should clarify, when I hear colleagues talk about "useful" they mean in a more broad, accessible sense. It is true that 50 qubits can be used to simulate some interesting physical systems, but the question is how can we make that number of qubits available to many people. In that way, it becomes infeasible to only simulate qubits.
On the other hand, it is absolutely true that there are some scientific questions that absolutely would need >100 qubits. And in those cases no amount of simulations could accommodate that need.
The simulation is classically hard - while we can do it up to a point, we're going to hit the regime soon where a quantum computer will be able to outperform our classical simulations.
On two occasions I have been asked, — "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" In one case a member of the Upper, and in the other a member of the Lower, House put this question. I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
In a classical computer, a 'bit' can represent one of two states: 0 or 1. Thus, with N bits, it is possible to represent 2N states. In a quantum computer, a qubit can represent 0, 1, or any quantum superposition between 0 and 1. The state of the superposition is defined by a wave function which, mathematically, can be in infinite states.
What is the value in this? The typical example given is prime factorization of integers. On a classical computer, prime factorization is an NP problem. However, on a quantum computer, it becomes a polynomial-time problem (Shor's algorithm). Since the difficulty of integer factorization is the basis of classical cryptography, quantum computers could destroy public key cryptography altogether.
Thus, asking why we don't simulate quantum computers with classical computers is turning things on their head: we want quantum computers precisely because they can do things that classical computers cannot (e.g.: factoring integers in polynomial time)
Microsoft's Quantum Developer Kit does just that. It allows you to express quantum equations in Q# (a domain-specific language) and then simulate the execution of those equations, doing a lot of fancy logic to optimize the number of binary bits needed to simulate N qubits.
23
u/rubberbunkey Jul 19 '18 edited Jul 19 '18
Why don't we just simulate quantum computers instead of actually building them if we can make a simulation? Edit: Spelling