I have never read a satisfactory layman's explanation as to how quantum computing is supposedly capable of such ridiculous feats of computing. Can someone here shed a little light on the subject?
[deleted] — view deleted post
0
Upvotes
550
u/nobeardpete Jan 03 '14
Grover's search algorithm is a nice example of the kind of thing you can do better with a quantum computer than a real computer. The problem it solves is as follows. Suppose you have an unsorted list of things, and you want to find the position of a specific thing in that list. With a classical computer, you can't do better than just to look through the list, either in some order, or possibly randomly, until you find it. On average, the amount of times you have to do this is half the length of the list.
With a quantum computer, instead of checking positions in the list one at a time, you can check a quantum superposition of every possible position. By arranging your quantum circuitry properly, you can set things up so that each time you check this quantum superposition of all possible answers, the wrong answers each cancel themselves out a little bit, and the single right answer constructively interferes with itself, becoming stronger. Repeat this process a number of times that scales as the square root of the length of the list, and instead of the superposition of all possible answers that you started with, you are left with only the correct answer.
This gives a quadratic speedup over the best that a classical computer can do for this particular task. Other tasks may be more or less suited to the strengths of a quantum computer. A great deal of hope has been hung on the idea that with the right programming, it might be possible for a quantum computer to solve NP hard problems in polynomial time, perhaps with a similar strategy of starting with all possible answers and cancelling out the wrong ones. To my knowledge, no one has figured out a way of doing this, however.
54
u/bo1024 Jan 03 '14
I'll first give you a perspective on classic probabilistic computing (computing with random numbers), then explain its analogy to quantum computing, then hopefully try to shed a little light on why the two are fundamentally different.
Suppose you flip a coin and cover it up without seeing the outcome. As far as you can tell, the coin is in a "superposition" of states -- with probability 0.5 it's heads (or a binary "1"), with 0.5 it's tails (or "0"). Now think of flipping a bunch of coins, but not looking at them, to get a big superposition (with equal probability, it's 0000 or 0001 or 0010 or ...) and feeding this result into a computer, again without looking at it. For instance, say the computer is supposed to multiply the input by five.
Now, from your perspective, the answer the computer spits out is still in "superposition" -- it can't be 2 or 3, because you never get 2 or 3 after multiplying by 5, but it could be 0 or 5 or 10 or 15 or ... all with equal probability.
Then you look at the answer spit out by the computer. You've broken the magic spell, destroyed the randomness. Now it's not a huge list of possibilities, but a single answer.
In quantum computing, the "quibits" can be in a superposition, meaning that with some probability you have 0000, with some probability you have 0001, and so on. So you can basically do the same thing as above. However, quantum randomness works a little differently. Each possible state of the input (like 0000), rather than being described by a probability like 0.128, is described by a complex number (one that includes the imaginary i) called an amplitude. For instance, say the amplitude for state 0000 is 0.026 + 0.089i. You can get the actually probability of that state, 0000, by taking the absolute value of the amplitude: sqrt(0.0262 + 0.0892) = 0.09272000862).
(If you're not familiar with the math, don't worry! The takeaway is that the rules of probability just change a little.)
To go along with this change, we have to change a whole bunch of details about how states evolve over time, for instance, what types of operations our computer can perform. But a key point is that, when you open your hand and observe the quantum coin, you "collapse" the superposition. It picks just a single state, like 0001, with the probability given by the amplitude of that state above.
OK, so why can quantum computers perform some tasks faster than classical ones? It's because the above analogy breaks down in a key way. When you flipped the classical coins and covered up the result, you pretended that it was in superposition, but you knew that it was actually in a single state the whole time (you just didn't know what it was). With quantum computing, it simply doesn't work that way. Cf Bell's Theorem.
Because of the complex numbers as amplitudes, a quantum superposition really does act like it's in many states at once. It can do something a classical superposition can't: It can have interactions between the states. So for example, if we apply the correct operation, we could maybe get the amplitudes of states 0000 and 0010 to "cancel" out while increasing the amplitude of state 0001. This makes it more probable that we'll observe 0001.
Notice that this is subtly different from the commonly-quoted-but-false "try all possibilities at once" idea: sure, you are in a sense trying all possibilities -- just as you are when you flip a series of coins classically -- but in the end you have to break the spell, make a single measurement, and that measurement will tell you just one state according to the appropriate probability.
But what you can do is carefully manipulate the superposition before you measure it, so that the answers you don't want tend to cancel out and the answers you do want tend to get more likely.
26
u/Osmanthus Jan 03 '14 edited Jan 04 '14
I've read most of the answers here but all are incorrect or misleading.
Quantum computing is not parallel. It cannot solve NP complete problems (precisely, there is no evidence they are any better than classical computers).
It does not 'try all combinations at once'.
Quantum computers are not general purpose computing machines, only specific algorithms that take advantage of a specific property of quantum physics work. The specifics are too sophisticated to anyone without a physics education to understand.
DWave computers are not quantum computers, as the terminology is used; they use a quantum effect to do something, but it is a different thing from quantum computers that do factoring.
Peter Shor's algorithm for factoring is insanely complicated. To even understand what it is doing at the classical level requires study in crypto. It's answer is achieved statistically by many trials, it does not produce a single concrete answer. It is non-deterministic, and requires extremely sophisticated error correction to produce a signal.
Shor's algorithm depends on a sophisticated classical algorithm for factoring large numbers; what quantum brings to the table is the ability to calculate the period of an extremely long sequence of numbers quickly (this is a quantum Fourier transform). How it does this is very sophisticated, no simple explanation will suffice. It exploits the fact that probability wave amplitudes obtain (collapse) relative to the square of the amplitudes.
131
u/miczajkj Jan 03 '14 edited Jan 03 '14
There are a few differences in the use of Qbits (quantum bits) compared with classical bits:
We can interprete that as a state, that has the probability of |a|² to be measured as |0> and the probability of |b|² to be measured as |1>.
A little more math to the last point: The two Qbit system can be described by four basis-vectors:
|00> (both Qbits in the state |0>)
|11> (both Qbits in the state |1>)
|01>, |10> (one of the Qbits in |1>, the other in |0>) so every possible state can be expressed by
|psi> = a|00> + b|01> + c|10> + d|11>
with |a|²+|b|²+|c|²+|d|² = 1. We stated before, that every one-Qbit-state can be written as a|0>+b|1> does that mean, that every two-Qbit-state can be demounted to the following product
|psi> = (a|0>+b|1>)(c|0>+d|1>)?
(here the a,b,c,d are not the same as before, evidently.)
The answer is: no, this is not possible for every state. Take for example the (normalized) state
|psi> = 1/sqrt(2) (|01>+|10>)
It can not be written as a product state - we therefore call it entangled. In fact, you can easily see, that the outcome of the two Qbits is anti-correlated: if you measure one to be 1, then the other one must be 0.
Now the time-development of those states can be controlled by so called quantum gates and you can do that very properly. Therefore you can indeed calculate many things at once (by using the superposition principle) and you can kind of communicate over arbitrary distances (via entanglement, while you have to be very careful here: it is no real kind of communication, as an instant information-transfer would violate special relativity. But there is indeed the possibility of quantum teleportation where you can instantly transport a physical state over an arbitrary distance and dense coding where you send two bits of information with transferring only one Qbit, thanks to entanglement.)
To explain those features in a deeper sense I have to leave the layman's terms completely behind me (more than I already did.)
18
u/engineering_guy Jan 03 '14 edited Jan 03 '14
This isn't my area of expertise, but here is how my profs at uni explained it to me. I will probably need to edit this as people comment because I don't have my books and I am too lazy to properly research this today. This isn't a full explanation but it is about the building blocks of quantum computing as I understand it.
Standard computers use transistors at their basic make-up level. These transistors are capable of two states: on and off (this is of what binary systems are comprised). This means that a processor with x transistors is capable of 2x level of precision.
According to Moore's Law it is predicted that the number of transistors fitted onto a board will double every 18 months, in line with our technological advances. According to the geometry, this means that transistors will be on the atomic scale by around 2030 (of course we are already sort-of there now). So instead of using transistors, we will use atoms to perform processing tasks - enter quantum computing.
The next thing to understand is that quantum computers aren't limited to two states (i.e. they aren't limited to binary). They can exist in something called superposition. Let's call each bit a "qubit" (quantum bit). Superposition means that these qubits are capable of not just an on/off state, but can be in many different states. This means they can take on y states compared to 2 states (binary). Play around with 2x vs. yx and see how just increasing 2 by a few levels really makes a massive impact on output.
Next up is entanglement. This is something I don't understand the the how of at all, only the what. There is some fancy process one can do to two atoms which after some kind of dark magic results in the two atoms becoming entangled. This means that you can separate them by some distance (I think my prof, several years ago, said the record was 17 km) and if you affect change on one atom then the other will mimic it in real time. Again, this seems like hocus-pocus to me but a) I believe it, b) gives me a geek-boner and c) means that communication speed is literally instantaneous. It will one day make Google fiber seem like shitty dial-up, and communication between chips won't need to be hard-wired at all (i.e. no comm busses of any kind which in my field is the bottle neck).
At the time I learned this we (humans) couldn't really create a good quantum computer (I think 16 qubits was the record, compared to a billion transistors which still outstrips 16 qubits) but obviously the tech is young. There was a company in Vancouver that claimed they had something but I think it turned out to be a fraud. I can't remember. I'd imagine we should see at least a basic quantum computer come out in our lifetimes and hopefully much more.
Anyway, that doesn't really explain a lot but it's a bit (ha!, get it?).
44
u/ex-mo-fo-sho Jan 03 '14
This is best explanation I've heard: (explained to me like a 5-year-old). Take this with a grain of salt, as I am likely to get some of the details technically wrong.
Basic Quantum Idea
Imagine you have a particle gun. You shoot it at a sensor that detects when it is hit with the particle. Call this sensor A. You fire the gun, A lights up, as expected.
Now, you introduce a second sensor, B. This is positioned in such a way that if you put a mirror in the path of the gun and sensor A at a 45 degree angle, the particle will bounce off the mirror, and hit sensor B.
You add the mirror, and sure enough, every time you fire the gun, sensor B lights up.
Now, replace the mirror with a mirror that has a bunch of holes poked in it. Such that there is now a 50/50 change that when the gun fires, the particle will either pass through one of the holes, and hit A, or reflect off the mirror and hit B. You fire up the gun a bunch, and sure enough, you get a 50/50 pattern of A's and B's: ABBABABBABABBBAABABBAA
Now, behind the mirror, and in front of A, you place a wall that would block any particle. So, when a particle passes through a hole in the mirror, it would then hit the wall, and never reach A. You would expect to see a 50/50 pattern like this: B--B-B--B-B-B--BB-B, because the wall is blocking anything from ever getting to A. But with quantum physics, this isn't the case. It is almost as if the particle is intelligent.
"Since I can never reach A, I'll go to B every time." says the particle. So, the pattern that emerges is: BBBBBBBBBB.
This can be rephrased as such: Since B is the only possible outcome in our reality, the quantum particle will manifest that way, every time. Now, let's apply this idea to quantum computing:
Let's build a quantum computer
You setup your quantum processor with qubits and the like. You want to crack an asymmetrical cipher. So, you setup parameters such that you have the cyphertext, and you know that the plaintext is probably a message readable by a human. You enter these parameters into your quantum compy, and boom! In a single clock cycle, you have the key. How? Because the qubits will only manifest themselves in a way that is possible in our reality, which in this case is the correct key to unencrypt the message.
Is all crypto broken?
Not at all. Encryption based on public/private keys, shared secrets, etc., is all easily broken with quantum computing. However, non-deterministic algorithms (such as using a true one-time random pad of numbers) is not broken. This goes back to the quantum idea: If it is impossible to determine a single possibility (non deterministic), then anything could be the outcome. While, conversely, if only a single outcome is possible (there is only one passcode that will successfully unencrypt the data), then quantum computing will manifest that single possibility.
I have a bit of a head cold, and hope this makes sense. If I've broken the rules of the forum, feel free to delete this post.
4
u/braunbear Jan 03 '14
In short, quantum computing is about the exploitation of the laws of quantum mechanics.
The three main tenants of quantum computing are intrinsic randomness, superposition, and entanglement. I would encourage you to watch this Quantum Frontiers animation to gain an intuition about what these terms mean. I took a quantum computing course this past semester and that was the first thing our instructor showed us.
Now that you hopefully have an intuition about the principles of quantum computing, to understand how they can actually be used, I would refer you to Deutsch's algorithm. Deutsch's algorithm is the most basic quantum computing algorithm which illustrates how the principles of quantum mechanics can afford you greater computing power than the laws of classical mechanics.
The statement of the problem is this: consider a function f : {0,1} --> {0,1} (meaning f maps a 1 dimensional qbit input, 0 or 1, to another 1 dimensional qbit output). Say you want to know if the function is "constant" (defined as when f(0) = f(1)) or "balanced" (defined as when f(0) does not equal f(1)). In order to answer this you would need to consider the four possible combinations of f(x) for x = 0 and x = 1:
Now, classically, you would need to look at the output states of f for both values of x. That is, you would need to know both f(0) and f(1), which would require making two measurements on the system. But, remarkably, by exploiting the laws of quantum mechanics, it is possible to make one measurement on the system and ascertain the same information -- whether f is constant or balanced. To see how the algorithm works, I would refer you to this YouTube video which explains it in careful detail.
A caveat: Deutsch's algorithm serves more as an illustration of the power of quantum mechanics over classical mechanics in computing; it has little practical applicability. For an example of something with more applicability in the real world, you might consider Shor's algorithm which has applications in breaking RSA encryption...but be warned, the math is more involved.
TL;DR the principles of quantum computing are intrinsic randomness, superposition, and entanglement. Watch this animation to gain an understanding of what those mean. The most straightforward example of how these principles can be exploited in a quantum algorithm is Deutsch's algorithm, about which you can learn by watching this video. Read up on Shor's algorithm for a more real-world example.
4
u/Biggseb Jan 03 '14
Here is a great video with the whole concept, breaking it down into simple terms and visuals, down to a bitwise versus qubit-wise level and explained by Andrea Morello (associate professor specializing in quantum computing and electrical engineering at New South Wales University). Highly recommended:
http://www.youtube.com/watch?feature=player_embedded&v=g_IaVepNDT4
7
u/Sam_MMA Jan 03 '14
This may be a bit off topic, but OP's post got me thinking. Could you use a quantum computer to mine for Bitcoins? I don't even know how to mine for Bitcoins, but it the thought popped into my head. Is it possible, and would it be any faster?
3
u/[deleted] Jan 03 '14
Not sure if this has been posted yet, but D-wave has it's own subreddit. The co-founders and scientists frequent it pretty often as well. http://www.reddit.com/r/dwave/
3
u/StoneCypher Jan 03 '14
Quantum computing is a family of things, not a thing itself. Many of the answers here are confused on that point, blend characteristics of the various approaches, etc.
Generally speaking, a quantum computer is a computer which uses quantum physics to do more than one batch of work at once. The most common mechanisms are to leverage superposition or entanglement.
Consider the case of trying inputs to a function, looking for the one input that creates the highest output.
In a classical computer, first you try input 0. Then you try input 1. Then you try input 2. Et cetera.
One example of this might be choosing the positions of walls in a combustion engine, such that the output represents the amount of torque the engine can produce. Another example might be passwords. Another is the Travelling Salesman Problem.
The difficulty of Travelling Salesman is based on how quickly the number of possibilities to check explodes. With two cities there are two paths, AB and BA. With three there are six: ABC, ACB, BAC, BCA, CAB, and CBA. At four citites there are 24 paths; at 5, 120; at 6, 720.
By just fifteen cities you're at 1,307,674,368,000 - one point three trillion paths - which with an efficient program and a decent computer will take several hours to manually brute force. One more city and it's a week. One more city and it's a month.
But if you were able to do them all, at once, then it would only take as long as it takes to evaluate a single route.
That's what quantum computing does - it uses the bizarre ass-end of physics to do all the solutions at the same time, such that the right one (if there are multiple, usually just one of them) floats to the surface.
It's not that the QC skips the rest of the work; it's that the physics it uses to do the work evaluates them all at the same time.
Now consider what that means for passwords. A 24 qubit computer can test all 1, 2, and 3 character passwords at the same time.
There are problems.
For one, it's statistical, because quantum mechanics is statistical. If you're picking a needle out of a haystack, you're likely to flat out miss it.
For two, it really only makes sense against a mass run of a single topic.
For three, it's currently sufficiently slow that normal computers tend to run circles around it despite the parallelism thing. As qubit count grows, that may change. However classical computers won't miss needles in haystacks.
Generally speaking, quantum computing is probably actually not going to be a big deal in the long run except for very specialized topics.
3
u/causal_diamond Jan 03 '14
Thought I'd try to come up with an analogy for Grover's search algorithm, as this is the place most go to to spell out a quantum algorithm that contains all the features that distinguish quantum from classical computation.
You're a mobster, and you had some dealings with a notorious crime family – the Derpranos. In fact, things have gotten pretty bad – you owe all ten Derprano brothers in the family $1000. You desperately need to pay them back: they don't care how much they are owed, but you know that your life is in more and more danger the longer you owe them for. You know three things about these dim-witted brothers, however. First: they aren't smart. They're never going to check whether the money you give them is counterfeit or not. Second: they help each other out. Provided they have money themselves, they all contribute when one of the brothers is in debt. Third, provided you can fiddle the finances to only owe one brother, the others are likely to forget about you and you could probably bump off the one you owe quietly, without any major repercussions. Unfortunately, due to your limited abilities, there are only two strategies for printing the money:
(a) You print $1000 at a time, and give them to each brother in turn (i.e. give $1000 to brother A, print more money, give $1000 to brother B, print more money...). You do this until there is only one brother left, then you roll him up in a carpet and throw him off a bridge.
(b) Print $2000, and give this to a single brother (brother “X”, say). X is then indebted to you, and goes to his brothers for support. They oblige by declaring that some of the money that you owe each of them, you now owe X instead. Whilst being equally generous, they don't communicate and X ends up being owed more in total than any of the other brothers. Let's say that at this point, each brother gives $250 of the money he is owed to X. Now, each brother is owed $750 but X is owed -$2000 + $3250 = $1250. You then repeat this process, instead printing $2500 and giving it to brother X. His brothers then intervene by donating money, reducing the amount you owe them and increasing the amount you owe X. After a certain number of runs of the counterfeiting operation, you owe X an absolutely huge sum of money. But you owe all his brothers a vanishingly small amount: hoping they forget about the minuscule debt, you roll X up in a carpet and throw him off a bridge.
In this analogy, the first strategy is equivalent to a search algorithm performed on a classical computer: just like the step-by-step pay off, the classical algorithm is a step-by-step check of each member in the list until the target is found. The number of steps in the computation is the number of times you have to go back to the counterfeiting machine. The second strategy is the analogy to Grover's algorithm on a quantum computer: in the end, you have to return to the counterfeiting machine less (far less with an increasingly large Derprano family) by using this strategy. However, it requires different hardware: you need to be able to print arbitrary sums of money, and you need to rely on the brothers' mutual generosity (which are things that you can't use in the first scenario). I hope this made some sense!
48
u/shavera Strong Force | Quark-Gluon Plasma | Particle Jets Jan 03 '14
The kind of over-simplified answer is that it all comes down to "superposition of states." See, quantum particles act as if they aren't "truly" in one state or another, until some "measurement" happens that asks what state they're in and forces them into a state. Classical computers have bits of 1 or 0 exclusive. But a "qubit" can go through the "logic" or "circuit" of a quantum computer as a superposition of 1 and 0. So as the logic acts, it's acting on both 1 and 0 states simultaneously. Meaning while a computer may have to run the logic on the 1 case and then rerun the logic on the 0 case, a quantum computer computes them both simultaneously. Then, if you design your logic appropriately, you can have only "the correct" answer pop out.
So the thing that quantum computing has over classical is anything that's a massively parallel "search" in a way. Finding factors of numbers? Well just run every number through the logic at once, and see what pops out. Instead of a classical computer that has to compute each number one at a time.
4
u/XylophoneLlama Jan 03 '14
Computers work by performing operations on bits, which are 0s or 1s. Quantum computers work by performing operations on qubits (quantum bits) in similar ways, except that qubits are not restricted to 0 or 1. They can be a quantum superposition of 0 and 1 (so they are some combination of being 0 and being 1 at the same time). This allows for algorithms that can perform not only multiple operations at once by acting on both states of the qubit, but also allows for operations which are impossible to perform with classical bits.
2
u/LS_D Jan 04 '14
The way I understand 'quantum superimposition' of 'qubits', is simply, the ability to have the equivalent of a digital "maybe"
Binary gives you 'yes/no' whereas Quantum Superimposed states (qubits) allow for the third option of "yes/no/maybe" which then allows for unique programming options
Although AFAIK the utilization of this capacity has yet to be 'properly' exploited, as there is insufficient hardware around at this point in time.
2
u/[deleted] Jan 05 '14
Yes, that's true. No-one really intuitively understands much to do with quantum mechanics because it's too strange and weird when compared to regular human existance. Thus we can only understand and explain it by the use of mathematical equations, and therefore there really isn't much hope of formulating a correct layman's explanation.
3
u/jaxxil_ Jan 03 '14
Here is the best explanation I have heard that avoids all technical detail.
Suppose you are in a massive maze, and you want to find the quickest way through this maze. You could do this by simply trying every single path one by one and noting how long it is. This is what a normal computer would do. A solution analogous to what a quantum computer would do would be to fill the maze with a foot of water, then drop a rock. A wave starts rippling through the maze, effectively testing all paths through the maze in one go. When you stand at the end and see the first wave passing through the exit, all you have to do to determine what the quickest path through the maze is is to backtrack the path of that wave.
In effect, instead of looping through a process time and time again to see which is the correct answer, we can process the same question multiple time in one 'go'. This results in a computer that is very good at tasks where a normal computer would have to try many times with slightly different input parameters, like testing what the quickest path through a maze is.
3
u/padelas14 Jan 03 '14
I don't know the exact physics but here is what I have understood so far:
There are those quantum systems that have the ability to be at more than one state simultaneously, each with some probability. This is called superposition. In computing terms it is like a bit being 0 and 1 at the same time. So if you have a string of n such bits that are both 0 and 1 you have simultaneously the representation of all the 2n combinations, again with some probability each, and if you can process this "string" that represents all the 2n combination you can search all the 2n space in one operation. It's like you process all the possibilities simultaneously and only the correct answers "stick" at the end . In this way you can solve some of the problems in the NP class (link).
2
u/Boethias Jan 03 '14
I think Seth Lloyd gives a really good layman's explanation of quantum computing in this talk. He covers it from about 14:30 to about 16:30 . Though the whole talk is worth a listen is you have an hour to spare.
1
u/e67 Jan 03 '14
A oversimplified explanation I read in discover magazine once said this:
If you have to find a briefcase in a 10 storey building with 10 rooms per floor, there are max 100 rooms to look through to find your briefcase .. if you only have 1 person doing the searching.
If you have 2 people looking, or cuts down the work/time by half, since they search 50 rooms each.
But if you had a person in every room, you'd find it right away.
I dunno anything about quantum computing but that's the explanation that stuck with me.
1
u/[deleted] Jan 03 '14 edited Jan 03 '14
Hello, I'm studying CS in school and I think I can help.
There are these things called "qubits" which are basically bits that aren't just in one concrete state (0 or 1) but are in a superposition of them. This means that instead of saying "this qubit is zero or one," you have to say something more like, "the probability of this being 0 is x or 1 is y." So essentially, you get two little pieces of information encoded into the probabilities, instead of just one.
This effect is amplified dramatically when you have more qubits. For instance, when you have 3 qubits, those qubits are in some superposition of 8 different states. You can see now that for n qubits, you end up with 2n possible states, each with their own probabilities, in which you can encode 2n values. This is actually astonishing, since the world as we know it works in polynomial scale (x2, x3, so on), but this part of nature somehow juggles 2x possibilities for x qubits. Where are those numbers stored? How does nature keep track of 2number of particles in the universe many probabilities? We have no idea (at least I think we dont). Quantum computing is attempting to take advantage of this mysterious capability of nature to perform computations at an exponential scale which are normally not feasible with conventional computers.
I know I really only explained qubits, but the algorithms and the machinery to get a quantum computer running are necessarily extremely complicated and will take some time to understand. I think understanding the qubit, however, is the central thing that best describes the novelty and power of quantum computing.
Hope it was helpful!
1
u/lllillll Jan 03 '14 edited Jan 03 '14
I think it can be made more simple than everyone is stating here.
There are many problems in computing that involve looking for a single answer out of many possible answers. If we set up a quantum computer correctly, we can force it to find that answer for us using entangle particles.
This is possible because entangled particles act like they are in all states at once. It is like they are everything at once. We can place certain constraints on the particles, and they will tend to fit together in a certain way. Measuring the way the particles interfere with each other after we tweak other particles in certain ways gives us the answer we were looking for.
This allows us to solve problems that would normally involve checking many different things when looking for our answer. It is only useful for some kinds of problems, the most notable is that it would make current encryption obsolete, since it operates on the assumption that finding the correct decryption key is hard.
1
u/I_Has_Internets Jan 03 '14
Followup question that I didn't seem to find when browsing the comments. When quantum computers arrive, will this dramatically change or even create /require a new type of computer programming? Since qbits are classical bits are not the same and everything currently relies on 1s and 0s. My assumption is "Yes" but will it be a complete overhaul to most programming types or can the change happen solely on the assembly language side to keep other types working?
1
u/DanielSan_BJJ Jan 03 '14
I've read many answers which included how quantum superposition help speed up simulations on quantum computers. If possible I'd like to ask another question. I've read before that the phenomenon of quantum entanglement helps with the speeding up of data processing on quantum computers. I was never able to find a satisfatory reason as to why tho. Is quantum entanglement really important? If so, why?
1
u/[deleted] Jan 03 '14
This might be ignoring some other reasons. Here is one I find to be simple. If you have two bits with a regular computer you need two units of info. to describe the four combinations. The combinations are, 00, 01, 10, 11. You only need to know if the first and second numbers are 1 or 0 to describe these. When you have a quantum bit the conditions change. Because of superpositions these scenarios are probabilistic. For each case you need a probabilistic coefficient to describe them correctly. This results in more information for the same number of bits. The first being regular bits and the second being quantum bits. It turns out that N qubits has the same info as 2N classical bits. This allows you to do calculations quicker.
1
u/WiseAntelope Jan 03 '14
Okay, I'm going to throw a couple of things here. First, if you want to break a 2048-bit key using a quantum algorithm, you need a quantum computer that can deal with 2048 qbits at the same time, and last time I checked IBM got 15 together, the world was in awe and then we found out that their results were disputable, so we're still (publicly) pretty far away from that.
Second, cryptographers know that this might eventually become a reality and have been working on solutions to that. There are cryptographic algorithms that are hard to break even for quantum computers. Lattice-based cryptography is one of them.
1
u/AndrewJamesDrake Jan 03 '14
I got it explained to me like this awhile back:
The jump from 8Bit to 16Bit wasn't just a doubling in computer processing power. It was an exponential leap that increased the amount of information that can be worked with dramatically. Quantum Computing is a little like that, only instead of exending the number of bits you had to work with, it increases the ammount of information stored in each bit.
A current Bit has two states. On and Off, which are normally denoted as 1 and 0. A Quantum, or Q, Bit has four states it can be in: 11, 10, 00, and 01. The actual mechanics behind that are a bit above my current level, but I'm told it has to do with the likely positions the QBit might be in at any given moment.
At any rate, the 4-states of a Q Bit allow you to store a lot more information in a lot less space, and it takes far fewer processes for data to be processed. It's like going from 8 bit to 16 bit to 32 bit to 64 bit all over again. Only you don't have a simple doubling of the maximum length of a byte this time.
1
u/agamemnon42 Jan 03 '14
So there are a lot of posts on the quantum side, let me try to explain the importance of this from a computer science perspective. One of the main things computer scientists are interested in is how long it takes to solve a problem, and the main distinction is whether or not a problem can be solved in polynomial time.
Let's look at the example of sorting a list to illustrate what I mean by polynomial time. If you have a list of length n, the method of just taking each element and putting it into the right place in a new sorted list will take at most n2 steps. There are lots of more complicated sorting methods that can do it in n * log n. (note to CS people - I'm skipping O notation issues here). Anything that's able to be done in something like nsome constant is polynomial, and it's exponential if it takes (some constant)n time. Problems that take exponential time are bad because even for small n this gets too large too fast.
Now, we put problems that can be solved in polynomial time into a category we call P. There's a larger category called NP, which stands for non-deterministic (sound quantum enough? This will matter) polynomial. Problems in this category have the property that an answer can be checked in polynomial time, but you can't necessarily find the correct answer in polynomial time. The nice thing about quantum computing is, in theory, it allows you to simultaneously check all possible answers (in polynomial time). So, if we get quantum computing working well enough, this means we could use it to solve any problem in NP in polynomial time.
1
u/cromemako83 Jan 03 '14
TLDR: A quantum computer is a computation device that makes direct use of quantum-mechanical phenomena.
A quantum computer (also known as a quantum supercomputer) is a computation device that makes direct use of quantum-mechanical phenomena, such as superposition and entanglement, to perform operations on data. Quantum computers are different from digital computers based on transistors. Whereas digital computers require data to be encoded into binary digits (bits), quantum computation uses quantum properties to represent data and perform operations on these data.[1] A theoretical model is the quantum Turing machine, also known as the universal quantum computer. Quantum computers share theoretical similarities with non-deterministic and probabilistic computers. One example is the ability to be in more than one state simultaneously.
Source: wiki
1
u/splad Jan 03 '14
I think in order to fully understand how a quantum computer does its calculations you have to understand how information exchange affects the behavior of particles.
The important thing to know is that classical computers and quantum computers are both physical devices designed to perform operations on information, and both of them care very much about how information moves between particles. However at a very low level they are opposite in a way: Classical computing wants to hold information in discrete particles, and quantum computing wants to make decisions using waves. In other words the limit of classical computing is placed on how orderly and particle-like we can force our electrons to be inside very small devices, and the limit on quantum computing is on how long we can maintain a state of absolute disorder among particles, and then still measure them eventually. (Entanglement is one of the big strategies for doing that)
See, the strange thing about the universe is that a particle of any type (electron, photon, quark, neutrino etc.) seems to behave according to the rules of linear discreet logic when its properties are known(as in a specific point in space, movement in a straight line etc) and they seem to behave as waves when those properties aren't known(taking all paths, self interference etc.). I love the double slit experiment as an example of this because it shows how knowing the position of an electron causes it to behave like a cannon ball flying in a line at one of two slits, while not knowing allows it to be a wave and fly through both slits. It doesn't even matter when you measure it, if you will EVER know where it was, then it can only act like a particle, not a wave.
So the idea of quantum computing is that a wave-like particle can take every path through a (human-constructed) maze at once, so long as those humans don't know which path it took. The tricky bit of quantum computing is that we have learned that it is possible to "kinda" know something about the particle, and as it turns out that only "kinda" collapses the wave. That's why quantum computers deal in probabilistic results. You can send an electron down a million paths, and then take a weak measurement on it, and you can be 20% certain it went down one of the paths on the right side fastest. That is real information gained from a system that only functions when it isn't being measured!
If you do the same test many times you can be more and more certain which path is the shortest, but the number of times you run the test has nothing to do with the number of paths, so in that way a quantum computer could theoretically test the difference between an infinite number of things in a finite amount of time, which is impossible using classical computing. The NSA wants to use quantum computers to test every possible password combination in order to find the one which generates the correct hash(i.e. your password) and that's what those journalists were trying to explain.
1
u/[deleted] Jan 03 '14
What I understand is thus:
When observed, only one output can exist, and this result is random and depends on the probability of either output being true.
A well-designed gate can cause the probability of the correct answer to be much higher than the other answers, thus causing the right answer to appear (most of the time?)
1
u/ChipotleMayoFusion Mechatronics Jan 03 '14
I like to think of quantum computers as analog simulations. An example would be measuring the position of a mass-spring-damper system to solve a set of differential equations. The path that the mass-spring-damper system takes is the solution to a math problem, so to solve the math problem you can set up the mass-spring-damper to produce the correct result.
If you had a computer that had to do second order dynamics problems or something mathematically similar, you could interface the computer to something that measures the results from the mass-spring-damper analog experiment.
Computers can do basic arithmetic very fast, so solving certain types of math problems is very easy for them. If a math problem becomes complex enough, it is sometimes faster to build an experiment. This is why physicists build big machines with magnets, lasers, plasmas, and whatnot. The behavior of these systems is so complex that a computer simulation would take too long.
It just so happens that the behavior of Qbits in a quantum computer matches the behavior of a certain set of math problems that are hard for normal computers to solve. We would like to build a quantum computer so that we can solve these problems faster.
1
u/unlikely_ending Jan 03 '14
great strides have been made in the development of quantum algorithms, but algorithms have to run on some sort of (fundamentally new) computing platform
but current quantum computing platforms are very primitive/embryonic and progress at present is extremely slow.
The challenges are formidable, and perhaps insurmountable.
The EdX MOOC hasba great (and free) course on Quantum Computing, presented by one of its pioneers.
1
u/thcbom Jan 04 '14 edited Jan 04 '14
Normal computers use Very thin small copper (aluminum sometimes) wires that cause the electricity to flow through differente diodes, depending on the gate it will read 1 or 0 (binary) atm we can put around a billion of these transistors on a chip (the limiting factor is heat dissipation) but with quantum computing you use the Quantum superposition of the electrons around an atom (at least the type i learned about)
So for a given amount of data or algorithims the quantum computer would be 1,000s of times smaller.
Source:
https://www.sciencenews.org/article/first-programmable-quantum-computer-created
http://computer.howstuffworks.com/quantum-computer1.htm
Edit: Berkeley gives a free course on Quantum Computation on https://courses.edx.org/courses/BerkeleyX/CS-191x/2013_August/info IDK when they're teaching it again tho
1
u/randomginger11 Jan 04 '14
I don't know if it's quite what you're looking for, but I know veritassium did a great video on quantum computing (maybe 2). I used to be the same way, feeling like people never gave a satisfactory explanation of how it actually does computations. I do have a bit of knowledge of how atoms are arranged, how energy levels work, atomic spin and stuff like that, and I'm not sure if that knowledge is necessary for the video to make sense, but it's a great video nonetheless. I'm on mobile right now, so I can't link, but it's by veritassium on YouTube, shouldn't be too hard to find
1
u/DXPower Jan 04 '14
I need some help understand qubits themselves. I know that they can be in superpositions and stuff, but where does the extra information come from when you have a superposition? Because in the end aren't you eventually left with a bit of information when you measure it? I really need help understanding how you can have more information with a superposition.
1
u/beta_plane Jan 04 '14
Would a quantum computer be better or worse than a regular computer at solving partial differential equations for dynamical systems such as the ones used for weather/climate prediction? I'm curious because processing power is one of most limiting factors in numerical modeling of climate
1
u/JohnPombrio Jan 04 '14
Quantum computing is only for a couple of specialized computing problems, one of them is factoring a large number. For 99+% of computer operations and scientific calculations, a quantum computer is pretty much a waste. Cracking computer encryption is one of those small number of uses for a quantum computer, hence the NSA wanting one. Other folks want to build one to sell them to these small number of users. Nothing in these quantum computers would be of ANY interest to you or me, our regular computers are much, much more useful.
1
u/Strilanc Jan 04 '14 edited Jan 04 '14
Quantum computers can do one particular operation a whole lot faster than classical computers. That operation is... multiplying a vector by a matrix. In a really restricted way.
(Don't know what a matrix is? Here's a khan academy video skipped to doing an example of a vector/matrix multiplication. Basically a vector is a list of numbers, a matrix is a grid of numbers, and you multiply them by adding the columns of the grid together after scaling each column by the corresponding number in the list.)
What do I mean by "in a really restricted way"? Well...
So quantum computers can do one huge operation really fast, but there's restrictions on the operation and even when it's allowed you can only sample part of output. Only some problems can be solved faster under those restrictions, but a few of them are really important problems whose difficulty we happen to rely on when encrypting/signing stuff.
If you want to understand quantum computers in more depth, I recommend studying linear algebra.
1
u/[deleted] Jan 04 '14
Just saw a blurb on CNN, the NSA is funding a quantum computer and says it is somewhere between 5-10 years out, they have to be built in a building that is completely shielded from any source of radio or electromagnetic waves, so yeah, sounds like a ways away since the NSA has an unlimited budget.
1
u/bender787 Jan 03 '14
Here's a quick and dirty example. Let's say you had to crack a combination lock that had an answer of 7-4-6-1. Well if you didn't know the combination already you would need to try each possible combination, and these are the unnecessary calculations that you don't care about. Quantum computers are able to try every possible combination simultaneously rather than one-at-a-time by using this thing called superposition.
Superposition is a quantum mechanical phenomenon that allows particles to be both 0 and 1 at the same time. And because computers work on 0 and 1s, we can use these lil guys as little processors that try out all the different combinations for us.
Hope that helps!
1
u/Saganic Jan 03 '14
I'll take the uber layman approach, see if I get this right: Modern computing is based on 1's and 0's, two states for every bit. Qubit's used in quantum computing can be 1, 0, or a superposition of both. So whereas a bit has two possibilities, a Qubit has three, which allows for more efficient and less expensive operations at a fundamental level.
1
u/KaizenGamer Jan 03 '14
I'm here late and this will get burried, but here goes:
Electrons have positive and negative.
Quantum particles have 8 super-states they can be in. So instead of 0 and 1, you have 0, 1, 2,3 ,4 ,5, 6, 7.
So the capabilities of 10 electrons vs 10 quantum particles is...
1024 possible states vs 1,073,741,824 possible states.
0
u/just3ws Jan 03 '14
It's the difference between flipping a coin and rolling a dice.
Think of flipping one coin. The coin is black on one side and white on the other. One side represents on and the other is off. You can get a bit of use out of that to communicate one but of information at a time. Stop/go, etc. Computers can associate actions with the state of these bits of data to do useful things. Much like we say "heads I win" then flip a coin, heads or tails has only the meaning we attach to it. To get more done than just a single point of data we have to have a lot of coins to represent something meaningful, like a complex concept such as coloring a pixel on a screen. Then we need more coins to represent multiple possible concepts. This starts to get expensive because we have to have a lot of coins, a way to manage them, flip them, and then count up the results of each flip.
Imagine now trying to simulate rolling a single dice by flipping coins. How many coins does it take to represent a 6-sided die? Let's say six to represent a one side, we simply flip all the coins and count up, say heads, and that is the roll. That's a lot of work to simply get one value.
Quantum computing is like just having dice. You only need one roll to represent 6 possible values. This is much more powerful because now you can start to work with multiple positions as well. With the coin you really only can see one side at a time. Heads/tails, black/white. By adding the additional dimension of a dice you can not only have the face value but the values on the top, bottom, etc. the data from a single unit increased dramatically so much more information can be represented on a much smaller scale.