Physical Quantum Algorithms
Physical Quantum Algorithms
Physical Quantum Algorithms
www.elsevier.com/locate/cpc
Abstract
I review the differences between classical and quantum systems, emphasizing the connection between no-hidden variable
theorems and superior computational power of quantum computers. Using quantum lattice gas automata as examples, I describe
possibilities for efficient simulation of quantum and classical systems with a quantum computer. I conclude with a list of research
directions. 2002 Published by Elsevier Science B.V.
PACS: 03.67.Lx; 05.10.-a
states which is quantum mechanical (i.e. for any or- The states for which Bell’s theorem rules out classi-
thogonal basis {êi } the measure sums to 1) must de- cal hidden variables are entangled, i.e. ones for which
rive from a density matrix [8]. In 1967 Kochen and the state of multiple particles cannot be described as
Specker made the contradiction with a classical hidden the product of states for each particle individually.
variable model more explicit [9]: They constructed a Since this is true for all but a set of measure 0 in the
finite set of unit vectors in R3 with the property that space of all pure states, Bell’s theorem and its gener-
every attempt to assign values 0 or 1 to each vec- alizations (see [15] for a recent survey) indicate that
tor satisfying the condition that in each orthogonal most quantum states cannot even be described by rea-
triple two vectors get 1 and the third gets 0 must fail. sonable (in the sense of local) classical models. This
That is, no classical ‘hidden variable’ can be assigned is a more subtle problem than simply the large size of
to pre-determine which outcome of each of some fi- the state space, which we consider next.
nite set of complete measurements of the spin-squared
of a spin-1 particle will be observed (since the spin
eigenvalues are {−1, 0, +1}, two of the spin-squareds 3. Dynamics
are 1 and one is 0 for any complete measurement).
Such a hidden variable would be non-contextual, in The dimension of the Hilbert space describing the
the sense that its value on each vector would specify state of a system of multiple particles grows exponen-
the spin-squared observed for that measurement, inde- tially in the number of particles: 2n for n spin- 21 par-
ticles, for example. This exponential explosion, how-
pendently of which complete measurement including
ever, is not enough to preclude classical simulation.
it is performed. One can argue, however, that noncon-
Consider a classical, probabilistic lattice gas. On a ho-
textuality is too strict a condition to place on hidden
mogeneous one-dimensional lattice of size n there are
variables—perhaps the results of measurement should
4n basis states si , since each lattice site can be occu-
depend on hidden variables inherent in the measur-
pied by no more than 1 particle with each of the two
ing device, which might differ for each complete mea-
possible velocities. A general state s is a convex com-
surement [11]. Furthermore, the measurements must
bination:
be exactly along the vectors Kochen and Specker con- n −1 n −1
4 4
structed, but from a computational complexity per-
spective, infinite precision is suspect [12]—and in fact s= pi si with pi = 1, pi 0.
i=0 i=0
one can show that without additional assumptions one
cannot prove a Kochen–Specker theorem using only Evolving the whole state, i.e. the probability distrib-
finite precision measurements [13]. ution, is therefore an exponentially difficult problem
Both of these weaknesses are absent from Bell’s in the size of the lattice. Nevertheless, such lattice
theorem [10]. He proved that the results of local gas models are used regularly (see, e.g., [16]). But
measurements on specific states of pairs of spin- 21 one does not evolve the whole probability distribution.
particles, i.e. vectors in C2 ⊗C2 , cannot be reproduced Rather, one samples it, by evolving a single si to a sin-
by any local, classical hidden variable model. Here gle si at the next timestep, using some random num-
ber generator. Multiple runs sample the final distribu-
‘local’ means restricted to individual particles. This
tion. A quantum lattice gas automaton (QLGA, which
result is robust against measurement imprecision, and
I will describe in more detail in §4) is also described at
locality of the hidden variables seems justified on
each timestep by a vector in a space with basis {|si
}—
physical grounds—the finite speed of light and the
where |·
is the standard Dirac notation for vectors in
locality of physical interactions. In fact, these are the
Hilbert space [17]:
same grounds upon which we base our models of
n −1
4 n −1
4
computation: At each timestep a classical or quantum
Turing machine changes only the state of the head and |ψ
= ai |si
with |ai |2 = 1, ai ∈ C.
the symbol written on the tape cell where the head is i=0 i=0
located [3,14]; it does not make non-local changes of Evolving the QLGA state has classical computational
all the cells of the tape simultaneously, for example. complexity comparable to evolving the whole state of
D.A. Meyer / Computer Physics Communications 146 (2002) 295–301 297
the probabilistic LGA. But in the quantum case, this 4. Quantum simulations
cannot be reduced by sampling individual histories:
each has a complex amplitude so the histories with In §§1–3 I have tried to explain the heuristic that
each given final state interfere. classical simulation of quantum systems is difficult,
Thus interference seems to be the phenomenon while noting what remains to be proved to make
which makes quantum dynamics hard to simulate clas- such a claim rigorous. Now let us consider Feynman’s
sically. In fact, although the multi-particle structure of proposed solution: simulation with quantum comput-
a system is important, entanglement per se seems to ers [2]. The standard model of quantum computa-
be less relevant: In liquid state NMR quantum com- tion allows polynomially many local (i.e. acting non-
puting experiments [18], for example, the state is not trivially on only 1 or 2 qubits) gate operations [25].
entangled at any timestep (more precisely, since the This is a reasonable model since in principle it can
system is in a mixed state—a convex combination of be realized by a quantum system with a local Hamil-
pure states—the state is separable) [19]. Nevertheless, tonian. Feynman’s proposal has been verified in this
it seems to be difficult to construct a reasonable lo- model for quantum systems defined by local Hamil-
cal hidden variable model for the dynamics [20], i.e. tonians [26–31]. More exotic quantum systems can
the dynamics seems difficult to simulate classically. also be simulated efficiently with a standard quantum
To make this more than heuristic, however, we would computer: Fractional quantum Hall systems, for ex-
need a dynamical Gleason/Kochen–Specker/Bell-type ample, have Hamiltonians which vanish on the phys-
theorem which applies even for evolution through a se- ical states; the only nontrivial unitary transformations
have global (topological) origin. Nevertheless, Freed-
quence of unentangled states. Perhaps some hint about
man, Kitaev and Wang have shown that such topologi-
a way to do this may be found in Laflamme’s response
cal quantum field theories can be simulated efficiently
to the separability criticism of NMR quantum compu-
with a standard quantum computer [32].
tation [21].
A particularly simple architecture for a quantum
Of course, some demonstrations of the absence of
computer is a QLGA [33]. Although I’m not aware
classical models for quantum dynamics already exist.
of a demonstration that classical LGA are capable of
These are more commonly known as quantum algo-
universal computation, their similarity to the reversible
rithms for oracle problems; since each consists of a
billiard ball model of Margolus [34] suggests that
sequence of unitary operations, they are dynamical re- they may be; since QLGA specialize to deterministic
sults. Grover’s quantum search algorithm, for exam- LGA, they would be also. Whether they can efficiently
ple, solves the problem of identifying a ∈ {0, 1}n given (i.e. with polynomial overhead) simulate quantum gate
an oracle which responds to√a query x ∈ {0, 1}n by re- arrays is, I believe, also an open question. In the other
turning δxa , using only O( 2n ) queries [7]. Classi- direction, QLGA can be simulated efficiently on a
cally, any algorithm would require O(2n ) queries. For standard quantum computer, but have theoretical and
n > 2, the state is entangled at every timestep after possibly practical advantages: They directly simulate
the first [22]. Possibly more to the point is Bernstein quantum systems and are possibly more easily realized
and Vazirani’s algorithm which solves the problem of experimentally than arbitrary quantum gate arrays.
identifying a ∈ {0, 1}n given an oracle which responds The possible configurations for each particle on
to a query x ∈ {0, 1}n by returning x · a mod 2, us- a one-dimensional lattice L are labeled by pairs
ing only 1 quantum query [23]. Classically, any al- (x, α) ∈ L × {±1}, where x is the position and α
gorithm would require O(n) queries. And this quan- the velocity. A classical lattice gas evolution rule
tum algorithm works without creating entanglement at consists of an advection stage (x, α) → (x + α, α),
any timestep [24]. These results suggest that while a followed by a scattering stage. Each particle in a
theorem on the impossibility of efficient classical sim- QLGA [33] exists in states which are superpositions
ulation of quantum dynamics may exist, it will have of the classical
states: |ψ
= ψx,α |x, α
, where
to count all the elementary operations, not just the 1 = ψ|ψ
= ψ̄x,α ψx,α . The evolution rule must be
queries, which will presumably make it more difficult unitary; the most general with the same form as the
to prove. classical rule is:
298 D.A. Meyer / Computer Physics Communications 146 (2002) 295–301
advect
ψx,α |x, α
−→ ψx,α |x + α, α
5. Simulating classical systems
scatter
−→ ψx,α Sαα |x + α, α
, In the previous sections we have seen that there are
where the scattering matrix is quantum algorithms to efficiently simulate multipar-
ticle quantum systems which seem to be difficult to
cos m i sin m simulate classically. Since, as I noted in the Introduc-
S= .
i sin m cos m tion, there are efficient quantum algorithms to solve
Fig. 1 illustrates this quantum evolution: at m = 0 classical problems, a natural question is whether quan-
it specializes to the classical deterministic lattice gas tum computers can simulate classical systems [41,42].
rule. The x = t → 0 limit of this discrete time Assuming quantum mechanics is a correct description
evolution is the Dirac equation [33]; the x 2 = t → of the world, the existence of a classical description
0 limit is the Schrödinger equation [35]. for macroscopic physics means that quantum com-
This QLGA model can be extended to include puters can simulate classical physics with constant
multiple particles with a unitary two particle scattering overhead—although the constant factor may be some-
rule thing like 1023 , i.e. a number of quantum degrees of
freedom sufficiently large that subsystems decohere
|x, α, x, −α
→ eis |x, α, x, −α
and can be identified as the classical objects to be sim-
shown in Fig. 1. With these rules the 1-dimensional ulated.
QLGA discretizes the quantum field theory described Can we do better? That is, could there be quantum
by the (1 + 1)-dimensional massive Thirring model speedups for classical physics? Yepez has proposed
[33,36]. These rules also preserve the symmetry (i.e. that the answer is ‘yes’. Using a “Type II” quantum
bosonic or fermionic) of the wave function under par- computer in which the state is measured, locally, af-
ticle exchange [37]. The QLGA rules can be general- ter each timestep and then reset using a lattice Boltz-
ized to discretize the multi-particle Schrödinger equa- mann rule [43]. A model like this can achieve at most a
tion in arbitrary dimensions [35]; it seems more diffi- constant speedup, corresponding to reduced computa-
cult, however, to create QLGA which discretize rela- tional cost for local evolution. In practice, of course, a
tivistic evolution in higher dimensions [38]. large constant improvement can be tremendously use-
The fact that the QLGA rules are homogeneous, ful, but perhaps it is possible to do better. More pre-
i.e. the same at each lattice site and at each timestep, cisely, using a standard quantum computer, can classi-
suggests that they might be easier to implement than cal systems be simulated more efficiently than is pos-
general quantum gate arrays which are not. Possi- sible classically? Lidar and Biham have shown that
ble physical systems in which they might be imple- the answer to this question is also ‘yes’, for the non-
mented include crystals—as originally proposed by dynamical problem of sampling the ground state dis-
Feynman [2] and more recently in the context of solid tribution of a spin glass [41].
state NMR [39]—or optical lattices [40]. A detailed There are also QLGA results which suggest that
proposal for physical implementation in such systems certain aspects of classical dynamics can be simulated
could motivate experimental work towards realization more efficiently quantum mechanically. Consider clas-
of QLGA. sical diffusion of a particle in a linear potential, as
shown in Fig. 2. A discrete model for the evolution
is a biased random walk, with prob(x) ∝ e−∇V x .
The results of simulating the evolution with a classical
(probabilistic) LGA are shown in Fig. 3. The average
position of the particle satisfies
x(t) − x(0) ∝ −∇V t.
In QLGA the evolution rules can be modified to
include a potential by incorporating an x dependent
Fig. 1. The general evolution rules for the one-dimensional QLGA. phase multiplication, i.e. e−iV (x) at each timestep [44],
D.A. Meyer / Computer Physics Communications 146 (2002) 295–301 299
Fig. 2. The probability distribution for the position of a classical Fig. 4. The evolution of expected position for the QLGA model of a
particle after diffusing in a linear potential. The particle was initially quantum particle subject to a linear potential.
at the origin.
lation of more complicated classical dynamics may be
possible.
6. Conclusion
[30] D.S. Abrams, S. Lloyd, Simulation of many-body Fermi [38] G.V. Riazanov, The Feynman path integral for the Dirac
systems on a universal quantum computer, Phys. Rev. Lett. 79 equation, Sov. Phys. JETP 6 (1958) 1107–1113.
(1997) 2586–2589. [39] F. Yamaguchi, Y. Yamamoto, Crystal lattice quantum com-
[31] G. Ortiz, J.E. Gubernatis, E. Knill, R. Laflamme, Phys. Rev. puter, Appl. Phys. A 68 (1999) 1–8.
A 64 (2001) 022319/1-14. [40] I.H. Deutsch, G.K. Brennen, P.S. Jessen, Quantum computing
[32] M.H. Freedman, A. Kitaev, Z. Wang, Simulation of topological with neutral atoms in an optical lattice, Fortsch. Phys. 48
field theories by quantum computers, quant-ph/0001071. (2000) 925–943.
[33] D.A. Meyer, From quantum cellular automata to quantum [41] D.A. Lidar, O. Biham, Simulating Ising spin glasses on a
lattice gases, J. Statist. Phys. 85 (1996) 551–574. quantum computer, Phys. Rev. E 56 (1997) 3661–3681.
[34] N. Margolus, Physics-like models of computation, Physica [42] J. Yepez, A quantum lattice-gas model for computation of fluid
D 10 (1984) 81–95. dynamics, Phys. Rev. E 63 (2001) 046702.
[35] B.M. Boghosian, W. Taylor IV, A quantum lattice-gas model [43] J. Yepez, Lattice-gas quantum computation, Int. J. Mod. Phys.
for the many-particle Schrödinger equation in d dimensions, C 9 (1998) 1587–1596.
Phys. Rev. E 8 (1997) 705–716. [44] D.A. Meyer, Quantum mechanics of lattice gas automata: One
[36] C. Destri, H.J. de Vega, Light-cone lattice approach to fermi- particle plane waves and potentials, Phys. Rev. E 55 (1997)
onic theories in 2D, Nucl. Phys. B 290 (1987) 363–391. 5261–5269.
[37] D.A. Meyer, Quantum lattice gases and their invariants, Int. J. [45] D.A. Meyer, H. Blumer, J. Statist. Phys. 107 (2002) 225–239.
Mod. Phys. C 8 (1997) 717–735.