Quantum Computer Demoed, Plays Sudoku
prostoalex writes "Canadian company D-Wave Systems is getting some technology press buzz after successfully demonstrating their quantum computer (discussed here earlier) that the company plans to rent out. Scientific American has a more technical description of how the quantum computer works, as well as possible areas of application: 'The quantum computer was given three problems to solve: searching for molecular structures that match a target molecule, creating a complicated seating plan, and filling in Sudoku puzzles.' Another attendee provides some videos from the demo." Anyone want to guess how long before "qubit" gets compressed to "quit" (as "bigit" became "bit" in the last century)?
Never heard of one (bigit). I have, however, heard of the "binary digit" that was shortened to "bit". Given that history, "qubit" is short for "quantum binary digit" - which is an oxymoron since quantum digits can be any (or all) of several states, not just on or off (binary). A more accurate acronymish shortening would be "quigit" - which sounds awkward enough to be shortened to "qit", (pronounced KIT rather than QUIT to avoid confusion).
I think "qubit" is here to stay, though.
Even if you could solve TSP in polynomial time on a quantum computer, it still wouldn't show that P=NP as the machine would be nondeterministic. The goal of quantum computers is to sidestep the NP issue, not reduce it to P.
The AACS key is NOT 0xF606EEFD628B1CA427BEA93A9CA9773F
You are pretty much correct--traveling salesman is NP-hard and most theorists believe that BQP, the class of problems efficiently solvable by a quantum computer in polynomial time, is strictly smaller than NP (and therefore contains no NP-complete problems). This is, of course, not shown--for all we know, it could even be strictly bigger than NP. The evidence is that the only two problems quantum computers can solve in polytime right now that a turing machine can't are integer factorization and discrete log, neither of which is believed to be NP-hard.
BTW, of course a problem instance must fit in memory--but the idea is that we should be able to build a 1000 qubit computer, while going through 2^1000 possibilities to brute-force a problem of size 1000 is intractable. But with our knowledge now, even if you fit a traveling salesman instance, the quantum computer wouldn't know what to do with it.
As GP pointed out, we do have excellent approximations for TSP and most practical problems--the issue is mathematical--that we don't have algorithms that can guarantee the absolute best solution. The one place quantum computers are potentially useful is crypto--nearly all of which revolves around the hardness of factoring and discrete logs (which I think is a very strange coincidence, if it is one).
http://en.wikipedia.org/wiki/Binary_digit
Facts do not cease to exist because they are ignored. - Aldous Huxley
Some more videos...
High level explanation
Protein matching
Sudoku
Also, here's some slightly older talk at Stanford with a higher-level audience
Additionally, it's not exactly a "true quantum computer"(tm) - but it utilizes quantum mechanics as a quantum computer would. So it quacks like a duck, etc.
I said no... but I missed and it came out yes.
Geordie Rose's blog: http://dwave.wordpress.com/
The beauty is, if you solve any NPC problem you solve them all, by definition. So, Mr. Smarty Pants, if your Sudoku solver is good enough to solve any grid in polynomial time, please show the rest of us, as you've just cracked every encryption scheme invented to date.
Yeah, I didn't think so.
We already have a solution to the Travelling Salesman Problem. Do you really think NP-complete problems are so hard and mystical that we can't currently run computers to solve them? Yes, the best (100% accurate) solutions we have currently increase the execution time exponentially with the problem size. So what?
NP-complete != impossible. NP-complete != slow. NP-complete = slow for big problems. A few years ago I was playing around with NP-completeness in my spare time. Using GNU Guile (hint: this was not a blazingly fast implementation), I was able to solve a typical n=1000 subset sum instance in under a minute on commodity hardware.
With a clever heuristic or two, and a clever programmer, and a clever optimizing compiler, I wouldn't be surprised if USPS could solve Travelling Salesman Problems where the number of nodes is on the order of magnitude of 10000, without overly exorbitant hardware costs. Maybe I'm naive, but I don't think USPS has more than 10000 stops on most of its shipping routes.
If USPS wanted to use the Travelling Salesman Problem, they would be using it already. Using a quantum computer would do nothing for them but add headaches and cost. NP-complete problems are only hard when you're looking at big data sets, and I just don't think USPS making shipping routes would fall into that category.
What are you talking about? DFS is only linear in the best case where the solution is on the first branch. If the depth of the tree is d then at the worst case you will have to search every node which would be 2^(d+1) - 1 nodes. That's exponential time.
There is already a P partial solution to the travelling salesman. It does not find the best path, but it is proven that it finds at worst a path that's twice as long.
With a few heuristics, the worst case becomes very rare, and it usually finds something closer to the best solution.
So if we solve the NP travelling salesman in a perfect way, at most we'll get paths that are half the length.
That could be an improvement, but not a revolution.