Showing posts with label egypt. Show all posts
Showing posts with label egypt. Show all posts

Sunday, February 6, 2011

Adiabatic quantum computation in Egypt

I am amused by the recent proliferation of things Egypt-related but not Egypt-specific essentially related to the current mess. This is the case, e.g., with Hernando de Soto's [1] WSJ op-ed on property rights in Egypt, and, more benignly, with this old NASA photograph of Cairo and Alexandria that has been circulating about the internet. (Alexandria turns out to be one of those long skinny coastal cities like Santa Barbara.) I suppose there's no harm in using topical excuses to force one's longstanding obsessions down the casual reader's throat, though it's hard to do this in a way that's not misleading. So instead of parodying de Soto with "How Egyptian protesters used the laws of gravity to bring down the regime," I'll just write a physics-y post that I was meaning to anyway and add "in Egypt" the way one adds "in bed" at the end of a fortune cookie.


[NASA photo, Flickr, creative commons, etc.]


What follows really belongs on the defunct physics blog, being a little technical. But it isn't really physics, and has to do, besides, with the work of Dorit Aharonov, another of the squalid scholars.

---

1. Conventional quantum computers are structured like Turing machines. They consist of a (finite) set of internal states (logic gates, etc.) and a "tape" which (at the beginning of the computation) has the input string written on it, say in Arabic numerals. The tape is connected to the machine by a read-write head. At each step of the algorithm one can move the tape back and forth, change the internal state, and/or write on the bit of tape that's under the head. At some point the algorithm stops (assuming the problem is decidable); this happens when the internal state of the machine is the designated "end" state and the answer to the original problem is on the tape. Quantum computers differ from classical computers in that the number of allowed tape configurations is (in principle) much larger, as superpositions are allowed in intermediate steps. The complexity of an algorithm is related to how many steps it takes to process an input string of length N, and in particular how this grows with N (e.g., polynomially/exponentially). The complexity of a problem is the complexity of the asymptotically slowest-growing (at large N) algorithm that can solve it.

The problem with this construction is that, while it is easy to find upper bounds for complexity (just write down an algorithm), it is generally hard to establish lower bounds, because it is hard to make useful statements about all conceivable algorithms, or to rule out the possibility that one is just not being clever enough. Generally in this sort of situation one's instinct is to look for a way of talking about the "space of all problems," which (if one is lucky) has some degree of geometric structure -- so that, e.g., two problems are "near" or "far" in problem space.

2. Adiabatic quantum computation begins with the observation that "satisfiability" problems in computer science [2] can be recast in terms of the physics of magnets. Magnets consist of spins that can either point up or down (i.e., true or false); depending on the details, spins might want either to line up or to point in opposite directions [3]. Depending on the interactions there might be a "good" configuration for the spins (i.e., one in which all pairs of spins that want to line up do so and all pairs that want to point in opposite directions do so) or not. (In the latter case the system is called "frustrated." A simple example of a frustrated system: three spins on a triangle that all want to point in opposite directions. If 1 is up, then 2 and 3 want to point down, but this doesn't work because 2 and 3 want to point in opposite directions. No configuration satisfies all the bonds in Egypt.) The lowest possible energy of a frustrated system is higher than that of an unfrustrated system, so the question of whether a spin system is frustrated reduces to that of what its lowest possible energy ("ground state energy") is. Obviously the question of whether a spin system is frustrated is closely related that of whether a set of statements can be satisfied, if you map the clauses onto spins (T/F = up/down). There are some explicit examples of this mapping in the original paper of Farhi et al.

3. This mapping isn't immediately useful as it just recasts the satisfiability problem in the language of magnetism. This is where the physics comes in. Farhi et al. observed that the quantum mechanical "adiabatic theorem" tells you that, if you change your Hamiltonian (the Hamiltonian of a system is an assignment of an energy to every possible configuration of the system) sufficiently slowly, the ground (lowest-energy) state of the original Hamiltonian goes into the ground state of the final Hamiltonian. How slowly you have to go depends on the energy gap between the ground and the next-lowest-energy (first excited) state all along the path in "Hamiltonian space" that leads from the initial to the final Hamiltonian. The bigger the minimum gap, the faster you can afford to go. Often the minimum gap vanishes in the large-system limit (this is called a quantum phase transition); in this case you have to go arbitrarily slowly as the number of spins increases. The minimum allowed speed might either vanish as a power-law or exponentially with the system size. Alternatively there might be exact "degeneracies" for finite systems in which case the algorithm is doomed.

4. The adiabatic algorithm works like this. You start the system off in some reference "trivial" state, let's say with a Hamiltonian that wants all the spins to point up. (E.g. spins in a strong external field.) Call this H_0. The problem Hamiltonian, which encodes the input -- the logical expression you want to check the satisfiability of -- is called H_1. You turn a hypothetical knob so that at time t, the Hamiltonian is H(t) = t/T H_1 + (1 - t/T) H_0. Or you use a curvier path. Assuming T is large enough, the ground state of H(T) is the answer to your problem. The complexity question becomes one of finding the path with the slowest-growing T(N); in general the slowness comes from segments of the path that are near the phase transitions between the initial and final states; the gaps here are given by the theory of critical slowing down; therefore you have mapped the complexity problem into a problem about phase transitions. To rephrase, what this approach does for you is it maps the space of problems onto the space of quantum Hamiltonians, the structure of which can be understood in terms of renormalization group flows.

5. Satisfiability problems aren't everything. The Aharonov et al. paper establishes that adiabatic quantum computation is equivalent to standard quantum computation. (I haven't read the proof.)

6. Of course, the Hamiltonians of conventional magnetic systems are what they are; you can't implement the adiabatic algorithm as stated, and it isn't likely to be terribly useful as a means of quantum computation. However, one does have a fair amount of control over the Hamiltonians describing cold atomic gases, and there's been a fair amount of work on actually implementing the algorithm. A variant that's been proposed is computation-through-dissipation, which is a clever mashup of the adiabatic algorithm and optical pumping. I'm a little skeptical about the practical prospects for this approach, but it is theoretically interesting because dissipative systems are hard to analyze and it would be nice if one were able to use the mapping in reverse and use computer science results to say something about them.

---
[1] Yes, I considered calling him Hernando de Stoato and posting this on STOATUSblog.
[2] Viz. questions about whether a very long logical string is true on any assignment of truth-values to its constituent particles, which, e.g., A or B is but A and not-A isn't
[3] In a physical system this depends on why the spins are interacting at all; there are various possible mechanisms. In the model one puts this in by hand by assigning an energy penalty to undesired configurations.

Thursday, February 3, 2011

"Arseholes, considered as a strategic entity"

The TLS's slang dictionary review sent me back to an old essay in Thumbscrew by Craig Raine, on swearing and translation, which doesn't live up at all to my memory of it. However this bit has always stuck with me:
I recall Thom Gunn asking me in San Francisco if I had really published a poem entitled ‘Arsehole’. I had. […] Gunn’s comment was a poet’s comment on two languages. “Gee, ‘arsehole’ is so much dirtier than ‘asshole’.” […] “Asshole” is a possible translation of “arsehole” but it isn’t the right translation - not only for the reason given by Thom Gunn. To call someone an “arsehole” is quite different from saying someone is an “asshole”. The former is malignant where the latter is harmless. To be on a desert island with an asshole would be irritating perhaps. To be on the same desert island with an arsehole might even be dangerous.

And, as if on cue, here's Daniel Davies on Egypt:
Basically, what you need is a large population who are a few rungs up from the bottom of society, who aren't interested in freedom and who hate young people. In other words, arseholes. Arseholes, considered as a strategic entity, have the one useful characteristic that is the only useful characteristic in the context of an Egyptian-style popular uprising - there are fucking millions of them.

(Via Yglesias, who has the linguistic tact not to translate the word.) One is inevitably reminded of the "I'm surrounded by assholes" set-piece in Spaceballs, a precisely converse situation where "arsehole" would be a mistranslation.

I wonder if anyone's bothered to study the difference between "arsehole" usage in rhotic and non-rhotic dialects -- Green's dictionary, maybe? -- there must be something, I feel, but it's hard to isolate immediately from all the other differences between Scottish and southern English speech.

Any time Thom Gunn comes up is a good time to reread "The Gas-poker."

Sunday, January 30, 2011

"And one kitchen blender" -- miscellanea

1. Get away from it all at the Wild Ass Homestay in Tibet. If you're lucky your expenses might be paid by the Ass Meat Research Group. (The comments on the latter post are quite good. See also here for an explanation.)

1'. In Wild Ass comments, Victor Mair mentions that "dashlar/tashlar" are Turkic words for "stone." (This looks like a mix-up, I think he meant to comment on this other -- fascinating but less "neat" -- post.) There is an apparent cognate in Beijing dialect, and Mair speculates on possible Turkic influence... but of course what came first to my mind was the English word "ashlar" for paving stones, which -- although its etymology isn't satisfying -- derives from previous English words for "axle" and such and has nothing to do with Turkic.

2. Slate has an interesting and gross article -- the kind that belongs in a Mary Roach book -- about fecal transplants as a cure for recurrent intestinal diseases that arise when antibiotics kill off almost all the bacteria in your intestines and the surviving (mostly evil) ones proliferate in the resulting bacterial vacuum.
And then there's the do-it-yourself crowd. All you need is a bottle of saline, a 2-quart enema bag, and one standard kitchen blender. Mike Silverman, a University of Toronto physician who wrote up a guide to homespun fecal transplants for the journal Clinical Gastroenterology and Hepatology, says it's entirely safe to do the procedure this way

3. Via Jeremy, a clever article in the latest issue of Science explains how one can make "isotopes of hydrogen" that are substantially heavier than tritium. The idea is to replace one of the electrons in helium-4 with a muon, which is basically similar to an electron but much heavier. The muon, being much heavier, orbits much closer to the nucleus than the electron does (it is more "classical" and has less spread), so the electron effectively sees a nucleus that's got one positive charge but the mass of (say) a helium-4 atom.

4. I have been meaning to post/link to this William Dunbar poem for some time now. If you can read Late Middle Scots or tolerate looking at the glossary, it is a wonderful bit of work... it is also notable, among other things, for being (a) the first OED entry for "fuck" and (b) the only poem that had to be expurgated from library editions of Auden's Book of Light Verse. Though technically in Scots dialect it's mostly in baby-talk and onomatopoeia:
Quod he: "My kid, my capirculyoun,
My bony baib with the ruch brylyoun,
My tendir gyrle, my wallie gowdye,
My tyrlie myrlie, my crowdie mowdie,
Quhone that oure mouthis dois meit at ane,
My stang dois storkyn with your towdie:
Ye brek my hairt, my bony ane."

5. John Quiggin's musings on the Egypt question are somewhat thought-provoking:
The idea that the US can legitimately use its military power to ensure continued access to oil resources rests, in large measure, on the (not entirely unfounded) assumption that those controlling the resources are a bunch of sheikhs and military adventurers who happened to be in the right place, with guns, at the right time. Without the Arab exception, the idea of oil as a special case, not subject to the ordinary assumption that resources are the property of the people in whose country they are found, will also be hard to sustain.