The Square Root of Not
americanscientist.org
americanscientist.org
http://michaelnielsen.org/blog/quantum-computing-for-the-det...
(Apologies for the self-plug, but this particular article seems like a good prelude to my course.)
It would be pretty cool if you could make the links drop down and display the video on your site so it could be easier to go back and forth between videos at one time.
BTW, you can actually do this experiment yourself at home using very inexpensive materials: a laser pointer, polarized sunglasses, and a few dollars worth of "quarter wave plate" material that is easily found on the internet.
http://betterexplained.com/articles/a-visual-intuitive-guide...
Note that the two examples (polarization versus imaginary numbers) differ in one important respect: in the polarization example, negation is rotation by 90 degrees, e.g. from vertical to horizontal. In the imaginary numbers example, negation is rotation by 180 degrees (e.g. from positive X to negative X -- see the link above).
People with Chrome developer tools or Firebug will find it marginally improved by disabling the stylesheet rules for the .imageRight class (and maybe setting the p.font-size to 16 or so to boot, so the > isn't grossly oversized relative to the text)
http://www.americanscientist.org/issues/pub/the-square-root-...
General number field sieve is sub-exponential. Factoring is interesting because it is not NP-complete, but not known to be in P either. It is my understanding that NP-complete problems remain so in the quantum world.
What's very interesting is that Scott Aaronson proved that normal quantum computers could have solved NP problems (in fact, something stronger: BQP = PP) if quantum mechanics allowed nonunitary linear operations or was based on the norm
norm = lambda vec: sum(abs(component) ** p for component in vec)
for p > 2 (quantum mechanics is based on p = 2, classical probability is based on p = 1). So if it were any larger, the quantum computer could do brute force with ease.Right now it's not known whether BQP contains NP-complete or not; it might very well contain both problems in NP and problems not in NP while deftly evading NP-complete.
It is known that PostBQP = PP and therefore contains NP-complete. PostBQP is the set of quantum algorithms which are allowed to destroy the universe when they fail, under the anthropic principle reasoning that "humans will only live on in universes where the computation succeeds."
That's quite naïve. I'd say quantum mechanics seems to be the best description we currently have for the laws of physics on a micro level.
That's not necessarily arguing that a more fundamental theory might exists that could overturn socially unpopular theories higher up the chain. Sure, that happens in certain kind of debates rather often, but I'm not sure that's what's happening here.
It's not naivety -- it's just not interesting to get sidetracked by philosophy every time you talk about a particular scientific theory. For the sake of brevity, all that stuff can be shoved to the side in this context.
Perhaps a quantum probabilistic NOT gate requires the columns to add up to 1, but it's certainly not a general requirement of any physical device that imperfectly implements a NOT gate.
Consider the following probability matrix:
0 1
0 0.1 0.9
1 0.8 0.2
For any input (say, 0, in the top row), the output will be interpreted as either a 0 or 1, so the row sum must be 1.However, there's nothing forcing the probability of 0 as an output in one row to depend on its probability in another row. One could implement the gate above in software, with no problems, and a hardware equivalent could certainly be produced.
[Edit-- fixed row probabilities in second row.]
In other words, a not gate, regardless of the implementation must have it's columns sum to 1. This is a fundamental principle of probability and the definition of a not gate.
So, taking the columns as the outputs, my point is that adding down the columns corresponds to no particular causal relationship in the physics of the gate.
Your comment did, however, make me realize that I hadn't modified the row probabilities for the second row to sum to one (11-month old under foot). So thanks for that.
dot = lambda M, v: vector(sum(M[i][j] * v[j] for j in range(len(v))
for i in range(len(M)))
as well as the basic left-to-right, top-to-bottom ordering "M00 M01\nM10 M11", the columns, not the rows, would add up to one. Such a matrix is called a "stochastic matrix" or "Markov matrix".You are correct that the rows do not have to add up to one, just the columns do, for stochastic matrices.
Quantum gates do demand one special restriction; they must be unitary. A unitary matrix satisfies:
transpose(U) = inverse(U)
This is not as simple as "rows sum to 1" or anything of the sort; as the article says, you can create several examples of 2x2 matrices which have sqrt(1/2) factors in all components. hermitian(U) = inverse(U)I strongly recommend Scott Aaronson's thesis http://www.scottaaronson.com/thesis.pdf for anyone who doesn't want to be made QC-stupid by articles like this. The beginning is interesting and generally accessible as it goes into the details you need to be comfortable with linear algebra to follow along.