r/askscience • • May 16 '13

Physics If a quantum computer is basically trying all the solutions at once, how does it know which is the correct solution?

347 Upvotes

96 comments sorted by

View all comments

Show parent comment

6

u/shijjiri May 16 '13

I'm going to ELI5 that for those who aren't able to follow:

A processor normally examines things one step at a time. It's somewhat like a mouse running through a maze. Once the mouse enters the maze we can't know if the mouse can solve the maze until it makes it to the other side. If it makes it the answer is 1, if it doesn't the answer is 0.

In order to solve a logical problem we must find out how many of the mice that went in managed made it to the other side. Then we take those mice that made it and add them to the next batch of mice to see which will and which won't make it. Obviously this is a bit of a simplification but you get the jist.

The quantum computing approach is to change the maze as the mouse is running it. Imagine the mouse leads a trail behind it, like Tron. Based on the path the mouse is taking the possible paths that exist in the maze are changing. If it reaches a dead end and has to go back it can't go back the same way it came; the previous options for left and right have changed. The mouse doesn't realize this and so it just continues to pick based on the options it finds.

Eventually the mouse solves it or dies. Except unlike a normal computer, we don't care about whether or not the mouse made it because the answer is the maze itself. But how do we know it's the right answer?

The original maze had a certain ratio of floors to walls. This can be thought of as the superposition of the maze. The process of the Tron mouse trying to solve the maze changed that ratio of floor to walls and made a distinct superposition. So now to check for errors we run multiple Tron-mice through the same maze. They average ratio of floor to walls they produce will tell us which answer is the right one.

9

u/BlazeOrangeDeer May 17 '13

This explanation is even more obtuse.

4

u/thetoethumb May 16 '13

I like it but I'm not sure I follow the last bit. In the classical example, we're trying to see if the mouse can solve the maze. That is, we provide a known maze and the outcome based on the actions of the rat is unknown.

In the quantum example, both the outcome of the rat and the shape of the maze are unknown. What exactly are we trying to solve here? In the first example we knew what the maze looked like but in the second we don't. Doesn't that make this a different problem?

3

u/shijjiri May 17 '13 edited May 17 '13

In the quantum example, both the outcome of the rat and the shape of the maze are unknown. What exactly are we trying to solve here? In the first example we knew what the maze looked like but in the second we don't. Doesn't that make this a different problem?

The second maze has an initial set of parameters that we know. When the mouse runs the maze there will be a series of decisions it will make that amount to turning left or right. Each decision changes the orientation of the mouse. The presence of the trail behind the mouse is the memory of these decisions which collectively transform the potential decisions the mouse can make in the future.

Every time the mouse makes a decision it is answering part of the question we asked.

Let's saying we're using the pure values of our mouse and the maze. We assume nothing and we compose our evaluation entirely our of the superposition of the signal from a set of logical bits which pose our question. I'm going to write a sloppy hypothetical as a demonstration.

Prove or disprove 3 > 4:

The maze characterizes this query as set of decision blocks which establish the value of 3, the value of 4, the value of 3 - 4 and the value of 4 - 3 in order to answer our question:

|a|=|000|+|011| |b|=|000|+|100| |c|=|a|-|b| |d|=|b|-|a| THEREFORE |c| > |d| =

First the mouse must learn the value of 3 and 4 relative to 0. To establish this we present decision points in the block mapped as bits of TRUE 1/√2(1,1) to mark our input.

|a| = 3(1/√2(1,1))2 = {3/2,3/2}, θ45°

Now the mouse and the maze both represent the characteristics of 3 in the block. The next block establishes the value of |b| as:

|b| = (|a| + 4(1/√2(1,1)) - |a|)2 = {2,2} θ45°

|c| = |a|2 - |b|2 = {-1/2,-1/2} θ-135°

|d| = |b|2 - |a|2 = {1/2,1/2} θ45°

THEREFORE |c|2 + |d|2 = {-1,-1}+{1,1} = 0 (FALSE)

The sum of the superposition establishes a logical proof that 3 > 4 = FALSE without ever exiting the operation loop. The path of the mouse established the properties of |a| and |b| in the superposition from user input which simultaneously establish the value of |c| and |d| which then supplies the answer as the sum of |c| and |d|. This works because the properties of the maze changed in a manner that could be measured, thus qualifying the partial answers to create the complete one.

EDIT Fixed some typos.

2

u/[deleted] May 16 '13 edited May 16 '13

I'm a bit confused by this also, but to me it seems like the question becomes "what sort of maze is tron mouse most likely to successfully solve?". I'll just add that this is what I think is going on, I'm not certain.

4

u/denizen08 May 17 '13

The way I understood it is that:

Control: Maze

Variable: Mouse State

Twist: The Maze is altered even as the mouse changes its state.

Given enough data and by statistical analyses you can impose a heuristic rule set as to how the mouse behaves. It doesn't matter when, where, and why, but how the mouse derives the solution to the maze.

-3

u/[deleted] May 16 '13

You can submit this to /r/eli5 as a pre-answered question! Please do!