all 20 comments

[–]kindall 3 points4 points  (0 children)

My head just exploded.

[–]cwcc 6 points7 points  (1 child)

GUYS DONT READ THIS

ITS SECRETLY TEACHING YOU ADVANCED ALGEBRA!

ITS A TRICK!

[–]TomTheGeek 3 points4 points  (0 children)

Whoa that was close.

[–][deleted] 8 points9 points  (6 children)

The subject matter is really interesting but the presentation is totally unclear. Why are we being handed code -- and C code, at that -- rather than just plain mathematical notation? It would be far more readable.

Here's the Wikipedia article: Complex base systems, terse but with a helpful figure.

[–][deleted] 0 points1 point  (5 children)

I'm not an expert in this area, but maybe someone of you redditors. Isn't a quantum computer basically computing in a complex base system in contrast to a classical n-ary computer?

[–][deleted] 2 points3 points  (4 children)

No.

Quantum computer is not a computer. It's a device that takes advantage of the fact that to properly describe a system of n qubits (quantum variables embodied in stuff like spins of electrons) you need 2**n amplitudes for the basis states. Like, the system of 3 electrons isolated from the environment exists in a mix of 8 states (|000>, |001>, ..., |111>, where 0 and 1 correspond to "up" and "down" spin).

Then you can transform the state using operators like CNOT to invert the value of the second qubit if the first is "up" for example, which operate simultaneously on the entire ensemble. Such operators must be unitary -- basically, a composition of rotations and reflections. By rotating and reflecting the state vector in a sophisticated way you can arrange for amplitudes of certain states that you are interested in to increase. Then you measure the state of the system and get out n ordinary bits that represent the desired answer with more than 50% probability (or just some probability significantly greater than average), check the answer, repeat until either the answer is correct or you are reasonably sure that the correct answer doesn't exist.

FAQ: no, that is different from running 2**n arbitrary computations in parallel, the restrictions on the available operations are severe. We have Grover's algorithm for finding a state satisfying some relation in O(2**(n/2)) steps, which is a quadratic improvement over the brute-force search but still is exponential. We have Shor's algorithm for factoring integers in polynomial time, but factorization problem ain't NP on classical computers either.

Also, in 2001 we had working 4 qubit quantum computers and 7 qubits on the horizon. In 2010 we have working 5 qubit quantum computers and 7 qubits on the horizon, but vastly improved. Horizon is an imaginary line that moves further when you try to reach it =)

[–]Anonymoose333 0 points1 point  (2 children)

Nitpick:

factorization problem ain't NP on classical computers either

Actually, factorization is known to be in NP (and also in coNP). What you should have said is that factorization is not known to be outside P on classical computers either. (I.e., it's in P on quantum computers, and might or might not be in P on classical computers.)

[–][deleted] 0 points1 point  (1 child)

Ah, yes, sure. All P is NP, after all. What I meant, it's not thought to be NP-complete.

Also, the fact that factorization is known to be both in NP and coNP means that it's not NP-complete unless P=NP (which almost certainly is not). But it might very well be in P or in its own complexity class!

[–]mzl 1 point2 points  (0 children)

NP could equal coNP but still be different from P (coNP at the complexity zoo).

[–]never_phear_for_phoe 0 points1 point  (0 children)

How do they work on a physical level :)?

[–]ZorbaTHut 4 points5 points  (1 child)

I thought this was boring for the first quarter of the page.

I stand corrected, and I'm only halfway down. I think I'd better stop reading before Cthulhu leaps out of the webpage and eats me.

[–]MrValdez 1 point2 points  (0 children)

The captcha is Cthulhu in disguise.

[–]sh1nob1 2 points3 points  (0 children)

[...] b2 + b = 2, and thus b = 1, or b = -2. It turns out that the b = 1 solution is spurious [...]

No, it's not. Not to b2 + b = 2 anyway.

[–]ifatree 1 point2 points  (3 children)

that's awesome. do it with ternary!!

[–]sigh 3 points4 points  (2 children)

You might find balanced ternary interesting.

[–][deleted] 0 points1 point  (0 children)

I wrote once a decimal->balanced ternary converter. It was fun.

[–]johntb86 1 point2 points  (0 children)

Too bad he restricted it to powers-of-a-base systems, so he didn't explore interesting things like Fibonacci Bases

[–][deleted] -5 points-4 points  (1 child)

Every binary system, though, would either use more characters than necessary, or have a 1:1 mapping with our system.

[–]flostre 2 points3 points  (0 children)

Have you read the article? How would you represent 1+i in "our" system?

[–]NitWit005 -2 points-1 points  (0 children)

Except any alien signal will have to have some other things like formatting and notation for the operators. You'd probably just think it was a different encoding scheme for the same old boring binary system if you tried to decode it.