Quantum supremacy: the gloves are off
scottaaronson.com
scottaaronson.com
> OK, so let’s carefully spell out what the IBM paper says. They argue that, by commandeering the full attention of Summit at Oak Ridge National Lab, the most powerful supercomputer that currently exists on Earth—one that fills the area of two basketball courts, and that (crucially) has 250 petabytes of hard disk space—one could just barely store the entire quantum state vector of Google’s 53-qubit Sycamore chip in hard disk. And once one had done that, one could simulate the chip in ~2.5 days, more-or-less just by updating the entire state vector by brute force, rather than the 10,000 years that Google had estimated on the basis of my and Lijie Chen’s “Schrödinger-Feynman algorithm” (which can get by with less memory).
> But does IBM’s analysis mean that “quantum supremacy” hasn’t been achieved? No, it doesn’t—at least, not under any definition of “quantum supremacy” that I’ve ever used.
I think John's team neatly demonstrated that they are far ahead of the competition (e.g. Rigetti, IBM) in terms of maturity and qubit control, and if that's any indication of future success I would strongly bet on their team for building the first actually working quantum computer.
"Running Shor’s algorithm to break the RSA cryptosystem would require several thousand logical qubits. With known error-correction methods, that could easily translate into millions of physical qubits, and those probably of a higher quality than any that exist today."
(look for "The Quantum World")
https://upload.wikimedia.org/wikipedia/commons/b/bf/Replica-...
It's a science experiment and unfinished proof of concept. Looks mad-sciencey.
https://upload.wikimedia.org/wikipedia/commons/thumb/8/8b/Ba...
See it in action on YouTube.
I feel like I get a similar feeling when I see really alien-looking wind turbines.
Google's post https://news.ycombinator.com/item?id=21332768
IBM's critique https://news.ycombinator.com/item?id=21333105
My best approximation for what a quantum computer actually is. Is that it's some sort of device to set quantum states, then run a "quantum algorithm" (i.e. a graph of "quantum logic gates"), and finally read out the "quantum bits" resulting from the algorithm. That sounds a lot more like a sensor to me. Also all the problems with noise and calibration reinforce my notion that it's more like a sensor than a computer.
But to be fair I barely understand "classical computing". I think my personal notion relies too much on badly defined ideas about "the run-time" of a computer program (some software) that I have constructed from "industry" experience.
To me big huge fundamental part of computing has to do with arbitrarily representing anything with a symbolic alphabet. And then automatically manipulating this symbolic alphabet to get a result with can be "mapped back" through the initial arbitrary representation so we learn something about whatever we initially chose to represent.
Maybe that's not computing? but then what is that? and then what is computing??
Try as I might I cannot reconcile my understanding of classical computing with quantum computing.
some sort of device to set electromagnetic charges, then run an "electromagnetic algorithm" (i.e. a graph of "electromagnetic logic gates"), and finally read out the "sequence of electromagnetic bits" resulting from the algorithm.
That sounds to me like the computer that I am typing on now. Am I missing something here?
Not very. Using their definition, logic gates, RAM, Flash or Hard Disks could all be redefined as "sensors".
Which does a great job building up computing from bits all the way to a adders, CPUs, and assembly language (with the historical background around it too).
I think the easiest way to get an idea for Quantum Computing and what the difference is comes from watching a specific example, I thought this example of Shor's algorithm was pretty good: https://www.youtube.com/watch?v=wUwZZaI5u0c
Flipping a bit in classical computing is an irreversible operation, and so has to release heat. We also have to be in one state at a time.
In quantum computing, we are only allowed reversible operations, but can be in a superposition of states. There is no heat released, no upper limit on how fast the operations can go, and no upper limit on parallelism. But the flip side is that you cannot peek at the operation, and error correction is not exactly easy.
The "only reversible operations" bit is a huge restriction. For example it means that "if" statements are not allowed.
The difference is more on the flexibility to run different programs than on them transforming encoded data. Both a sliding rule and a sensor do transform encoded data, a computer is something that can apply any mathematical transformation into the data.
I'm not sure what transformations you have in mind that "our current mathematics" cannot do.
Quantum computing relies on quantum effects, say the spin of an electron. The spin of the electron can be measured and when does it will either be up or down. At first it seems like it's just like a classical computer; however, it's possible to "entangle" multiple qbits together. The orientation becomes fuzzy. In this fuzzy state is possible to create quantum gates that again do math, but these results become "fuzzy."
So I create the function: "Give x such that x has the reminder of 1 after dividing by some huge number?" In classical physics there is no one answer to modulus. There could be an infinite number of possible answers. Solving it with a classical computer does not mean much more than trying values and seeing what works. But, asking that question with a quantum computer does something different.
Being "fuzzy," it exists across all possible states at the same time until you measure it. When you measure it, you will get a random answer but that answer will work for the equation. Say you ask the question, "Give me x where x divided by 5 has a remainder of 1." The quantum computer might first spit out 56 then next time 91 then next time 6.
The fuzzy results, in my understanding, are a property of quantum mechanics and don't require multiple qubits. A single electron has some probability of spinning up and a complementary probability of spinning down, and until you go ahead and measure the spin, the actual spin value hasn't coalesced to either of those states, instead being some fuzzy intermediate probability spectrum.
Entangling multiple particles means (again, as far as I understand) that their measurements cease to be independent -- if I have several pairs of entangled electrons all with spin of 50% up / 50% down, then I might expect the results of measuring the spin of those pairs to look something like this table:
+/+ 25%
+/- 25%
-/+ 25%
-/- 25%
when in fact, because these are entangled pairs, I will either get +/+ 50%
+/- 0
-/+ 0
-/- 50%
or +/+ 0
+/- 50%
-/+ 50%
-/- 0
What am I missing here?I am unsure what you are missing because what you explained is approximately correct.
Minor correction:
Entangled qubits (each of 50% propbaility to be up) can have more possible measurement distributions that the two you mentioned.
Distributions like the following exist.
+/+ 20%
+/- 30%
-/+ 30%
-/- 20%
> if I have several pairs of entangled electrons all with spin of 50% up / 50% down, then I might expect the results of measuring the spin of those pairs to look something like this table:I think you may misunderstand how to get qubits entangled. You would have to pass two qubits through a two-qubit gate to get them entangled. And doing so would leave you with only one measurement distribution.
For example if you have a qubit in 50% |1>, 50% |0> and pass it through CNOT with a qubit in |1>. You get:
|11> 0
|10> 50%
|01> 50%
|00> 0
But if the second qubit was in state |0>, you get |11> 50%
|10> 0
|01> 0
|00> 50%
> if I have several pairs of entangled electrons all with spin of 50% up / 50% downAlso just in case you don't know qubits have phase so there is more than one way to have a qubit that when measured will be up 50% of the time.
The state of the system could be, for example:
State Amplitude Probability
+/+ 1/2 1/4
+/- -1/2 1/4
-/+ -i/2 1/4
-/- i/2 1/4
In the right-hand column, I've included the probability of measuring each state (notice that it's the square of the modulus of the amplitude), but that's not the fundamental quantity that you deal with in quantum mechanics.All the dynamics of a quantum system are expressed in terms of how the amplitudes change over time. In fact, if this means anything to you, the most succinct way to state how quantum mechanics works is that a quantum system with N possible states is represented by an N-dimensional complex vector, and that in an infinitesimal time step dt, the system goes from v to (1+iHdt)v, where H is a matrix with complex entries (and 1 stands for the identity matrix). If you measure the quantum system, you have to first pick a set of basis vectors in which to measure it. The result you get is one of the basis vectors. The probability of getting any basis vector as result is the square of the coefficient (technically, the square modulus of the coefficient) on that basis vector. The coefficient is what we call the "amplitude."
In a quantum computer, you first prepare the system in a desired state (a complex vector). Then, you get to choose what linear operations you will apply to the state. Then, you observe the state in some basis (in the complex vector space), and get a random basis vector (proportional to the modulus squared of the coefficients in the final state). That's basically it. The trick is whether or not you can actually figure out a way to compute anything useful with such a system with lower complexity than you can with a classical computer. Your fundamental operations are different (linear transformations of a complex vector) than they are in a classical computer, and you have the added wrinkle that you can't read off the final state of the computer - the final result is a random draw from a probability distribution that is based on the state of the computer. Peter Shor figured out that with this setup, you can factor large numbers in a way that uses fewer operations than a classical computer (asymptotically). It also turns out that you can simulate quantum systems really effectively with this sort of system. That's not so surprising. As Feynman said,
> "Nature isn't classical, dammit, and if you want to make a simulation of Nature, you'd better make it quantum mechanical, and by golly it's a wonderful problem, because it doesn't look so easy."
At the very most basic level a computer is made of transistors that can solve the problem of basic boolean math. Gates are AND (or NAND), OR, XOR etc.
An XOR gate produces the following output from the following inputs:
A B Output
0 0 0
0 1 1
1 0 1
1 1 0
an AND gate produces the following outputs:
A B Output
0 0 0
0 1 0
1 0 0
1 1 1
with those gates you can make an adder. A single bit adder has the following inputs and outputs
A B Output 1 Output 2
0 0 0 0 (decimal 0)
1 0 0 1 (decimal 1)
0 1 0 1 (decimal 1)
1 1 1 0 (decimal 2)
Notice that Output 2 is an XOR of inputs A and B Output one is an AND of inputs A and B. So a single bit adder is simply the inputs feeding an XOR gate and an AND gate.
This can be scaled up to add any number of bits. Other math operations can also be done.
Transistors can be used to make memory bits that hold its state and can be set and unset. They are essentially binary gate loops that feed outputs back to inputs and rely on the delay of electron flows to reach stable states.
A clock is used to sequentially count (and pull instructions from memory) and set and unset memory bits. Each cycle of the clock allows the computer to execute the next instruction (by incrementing a number that determines which instruction to fetch).
From there you are right, the bits are used to encode meaning. Which could be alphabets, images, audio etc.
A quantum computer still fits your model because you arbitrarily represent anything with an alphabet of quantum states, automatically manipulate it with a quantum algorithm, and map back the result at the end so we learn something about whatever. I do not see the contradiction.
And the followup: https://www.youtube.com/watch?v=FRZQ-efABeQ
Is D-Wave still doing useful work in the field?
I've been meaning to read up on them and recent progress quantum in general... I still see D-Wave in the news often in the tech press and Canadian media.
Y Combinator had a podcast with him which you can watch here: https://www.youtube.com/watch?v=0jrybODBUpA