0% found this document useful (0 votes)
15 views5 pages

Lecture 26

Peter Shor note

Uploaded by

Majid Aghababaie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views5 pages

Lecture 26

Peter Shor note

Uploaded by

Majid Aghababaie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Notes 8.370/18.

435 Fall 2022


Lecture 26 Prof. Peter Shor
In this lecture, we discuss an algorithm for simulating quantum dynamics. Before
we can discuss the algorithm, we need to explain how continuous quamtum systems
evolve.
There are two main differences between continuous quantum mechanics and the
quantum mechanics of the circuit model.
1. Time is continuous (at least, most physicists believe it is up to the Planck scale,
which is around 10−44 seconds).
2. Everything evolves at once, unlike the circuit model, where the gates operate on
various qubits one at a time.
In the circuit model, we had discrete time. So ψt+1 = Ut ψt . In actual quantum
mechanics, we have the Schrödinger equation, which is the differential equation

d −i
| ψ(t)i = H | ψ(t)i .
dt ~
Here, H is the Hamiltonian, which gives the energy of the system. In the rest of this
lecture, we will choose are units so that ~ = 1, so we don’t have all these ~s floating
around.
d
Let’s look at the equation more closely. The left side, dt | ψ(t)i, has units of sec−1 ,
or Hertz. The right side, H | ψ(t)i has units of energy. We thus need a constant to relate
them. This contant turns out to be ~ ≈ 1.05 × 10−34 Joule-sec. The reason that we do
not generally observe macroscopic quantum effects is that this constant is so small.
How can we derive the Schrödinger equation? We know quantum mechanics is
linear, so let’s assume that the dynamics is given by a linear first-order differential
equation. We then get
d
| ψ(t)i = A | ψ(t)i . (1)
dt
Now, let’s differentiate hψ(t)|ψ(t)i. We then have
   
d d d
hψ(t)|ψ(t)i = hψ(t) | | ψ(t)i + hψ(t) | | ψ(t)i
dt dt dt
= hψ(t) | A† | ψ(t)i + hψ(t) | A | ψ(t)i = hψ(t) | (A† + A) | ψti ,

where the first equality comes from the product formula for differentiation, and the
second from plugging in Eq. 1.
However, we know that hψ(t)|ψ(t)i = 1, and thus its derivative must be 0, so the
expression above must be 0, no matter what | ψ(t)i is. The only way this could happen
is for A† + A = 0. Thus, A† = −A. If we let H = iA, this makes H real and gives
the differential equation
d
| ψ(t)i = −iH | ψ(t)i ,
dt

1
which is the Schrödinger equation with ~ = 1. Solving this equation gives

| ψ(t)i = e−iHt | ψ(0)i .

To simulate quantum dynamics, we have to simulate the real world, which behaves
quite differently than our gate model, because we have continuous time and because
everything evolves simultaneously. There are some other differences. (For example
the real world evolves according to quantum field theory, where there is no non-local
action. Two electrons repel each other not because there is action at a distance, but
because they are coninually exchanging photons.) However, in this course we will
stick with quantum mechanics, which is much less complicated.
Let’s now discuss the Schrödinger equation some more, and give some examples.
The equation (setting ~ = 1) was
d
| ψ(t)i = −iH | ψ(t)i .
dt
Recall that H is a Hermitian operator that gives the energy of the system | ψi. The
solution of the Schrödinger equation is

| ψ(t)i = e−iHt | ψ(0)i

We can expand this equation in a Taylor series which is reasonably accurate for small
t:
1
e−iHt = I − iHt − H 2 t2 + . . .
2
There is another way of looking at the solutions of the Schrödinger equation.
For our first example, let’s look at a qubit. Any 2 × 2 complex matrix can be
expressed as
vx σ x + vy σ y + vz σ z + vI σ I
However, we can disregard the last term. Consider what happens if we have a Hamil-
tonian of vI. The energy of a state | ψi is hψ | vI | ψi = v, and the evolution is

| ψ(t)i = e−vt | ψ0 i .

Because a global phase doesn’t affect the state, this state is essentially | φ0 i. I won’t
work out the details here, but similarly adding a term proportional to I just adds a global
phase, which can be ignored. So the absolute energy of a system is not important for
quantum evolution; the only thing that mastters is the relative energy of the states of the
system. Thus, we can assume that this Hamiltonian is ~v · ~σ , where ~σ = {σx , σy , σz }
Now, let’s look at how we might simulate the dynamics of a qubit evolving under a
Hamiltonian. Consider two times, t and t + ∆t. We have that

| ψ(t + ∆t)i = eiH∆t | ψ(t)i


≈ (I + iH∆t) | ψ(t)i
= | ψ(t)i + i∆tH | ψ(t)i

2
This equation is quite easy to simulate, and for small t, it should work fairly well.
Another thing we can do is write | ψ0 i in the basis of eigenstates of H. Let | vE i
be the eigenstate of energy E, and let
X
| ψ0 i = cE | vE i .
E

Then X
| ψt i = cE e−iEt | vE i
E

Exercise: using these ideas, show that when we have the Hamiltonian ~v ·~σ , the state
| ψi rotates around the vector ~v .
Now, let’s look at another Hamiltonian; specifically, one called the transverse Ising
model. This is a Hamiltonian on a spin chain — we have qubits at sites 0, 1, . . . , N ,
and the Hamiltonian is
NX −1 N
X
j j+1
σz σz − g σxj ,
j=0 j=0

where σxj is a Pauli matrix acting on site j.


This is a local Hamiltonian; this means that the Hamiltonian is a sum of terms,
each of which acts only on a small (in this case, two) number of qubits. Here, the
Hamiltonian can be expressed as H = A + B, where the local terms in A all commute
(they are all composed of σz ’s, which all commute) and the local terms in B (composed
of σx ’s) all commute. We will give the Trotter-Suzuki method, which can be used to
simulate such Hamiltoniaans.
The first thing to realize is that if all the local terms Hj of the Hamiltonian com-
muted, there would be no problem—we could simulate them all sequentially; because
they commute, applying the unitaries e−iHj in any order would give the right answer.
We will show that by alternately applying the A Hamiltonian and the B Hamilto-
nian, we can achieve a good approximation of the A + B Hamiltonian.
First, let’s compare applying the A + B Hamiltonian for time t with applying the A
Hamiltonian and then the B Hamiltonian for time t. Using the Taylor approximation,
we get

e−i(A+B)t ≈ I − i(A + B)t − (A + B)2 t2 + O(t3 )


1
= I − i(A + B)t − (A2 + B 2 + AB + BA)t2 + O(t3 )
2
and
1 1
e−iAt e−iBt ≈ I − iAt − A2 t2 + O(t3 ) I − iBt − B 2 t2 + O(t3 )
 
2 2
1
=I − i(A + B)t − (A2 + B 2 + 2AB)t2 + O(t3 )
2
We can then see that the commutator
1
[e−(A+B)t , e−iAt e−iBt ] = − [A, B]t2 + O(t3 ).
2

3
For small t, this is small.
What we will do is compute the evolution
 t t
L  t
L
e−iA L e−iB L ≈ e−i(A+B) L

Intuitively, each of the L terms of this product differs from the correct evolution by
2
order Lt . When we multiply all L terms together, this increases the difference by
2
a factor of L, so the approximation is good to O tL . To make this rigorous, we first
need to decide hwo we will measure the difference, and then show that our intuition
above holds.
What we use to measure the difference is the operator norm. This norm is

kRk = max{|R | ψi | : | | ψi | = 1}
| ψi

If we want to approximate R by S, we measure how good our approximation is by the


matrix kR − Sk.
We will need several properties of the operator norm. These are

kR + Sk ≤ kRk + kSk;

For U unitary,

kU Rk = kARk = kAk;

and
M
X
kR1 R2 . . . Rm − S1 S2 . . . Sm k ≤ kRj − Sj k
j=1

The last of these properties shows that


 t t t

ke−i(A+B)t − e−At e−Bt k ≤ L e−i(A+B) L − e−A L e−B L

Thus, if we divide the time t into L subintervals of length Lt , we can make the error
2
of order tL . By making L large enough, we can make the approximation as accurate
2
as desired. We thus have that to get the error down to , we need to set  = O tL , or
2
L = O t .
There are also better Trotter-Suzuki formulas which work with higher order. I
am only going to give the second-order one in this lecture (they get quite a bit more
complicated as the orders get higher. Here, instead of repeating the evolution eiAt eiBt ,
we repeat the evolution
1 1
e− 2 iAt e−iBt e− 2 iAt
Expanding the exponentials in Taylor series, we have
1 1 1 1 1 1 1
e− 2 iAt e−iBt e− 2 iAt = (I − iA − A2 . . .)(I − iB − B 2 . . .)(I − iA − A2 . . .)
2 8 2 2 8

4
Expanding and collecting terms, we find that

1 1 1 1
e 2 iAt eiBt e 2 iAt = I − i(A + B) − (A2 + AB + BA + B 2 )t2 + O(t3 ),
2 2
which agrees with e−i(A+B) up to an error of O(t3 ).
t
Now, if we divide the time up into L intervals of size L, we see that
1 t t 1 t
e− 2 iA L e−iB L e− 2 iA L
t 3 t3
 
is accurate to order L L . So to get accuracy of , we need to set  = O L2 , i.e.,
t3/2
make L of order 1/2
.

You might also like