Lecture 2: Techniques for quantum algorithms

Download Report

Transcript Lecture 2: Techniques for quantum algorithms

Lecture 2: Techniques
for quantum algorithms
Dominic Berry
Macquarie University
Groverโ€™s search algorithm
๏ฎ
๏ฎ
1996
Problem: Given a function ๐‘“(๐‘ฅ) mapping ๐‘› bits to 1 bit
๐‘“ ๐‘ฅ : 0,1 ๐‘› โ†’ {0,1}, determine the value of ๐‘ฅ such that ๐‘“ ๐‘ฅ = 1.
Classically we need to evaluate ๐‘‚ ๐‘ values, ๐‘ = 2๐‘› .
๏ฎ
๏ฎ
1.
2.
Groverโ€™s algorithm enables a search
with ๐‘‚ ๐‘ queries.
Quantum algorithm has two crucial
steps:
Calculate the function on all values
simultaneously.
Reflect about the equal superposition
state.
๏ฎ
These steps are repeated ๐‘‚
times.
๏ฎ
This is optimal.
๐‘
Lov Grover
1997
Optimality of Groverโ€™s algorithm
๏ฎ
It is not possible to perform any better.
๏ฎ
NP is the class of problems that can be verified in
polynomial time. That is, if given ๐œ”, you can verify
that ๐‘“ ๐œ” = 1 efficiently โ€“ but it is hard to find ๐œ”.
๏ฎ
If it were possible to achieve an exponential
speedup for search, it would mean that a quantum
computer can solve NP problems in polynomial
time.
Bennett, Bernstein,
Brassard, Vazirani
๏ฎ
It is not possible to search any faster than ๐‘.
๏ฎ
NP problems are still fundamentally hard on
quantum computers.
1997
Optimality of Groverโ€™s algorithm
Method of solution:
๏ฎ Denote operations between oracle calls by ๐‘‰โ„“ . The
general state produced by the sequence of ๐‘˜ oracle
calls is then
๐‘˜โŒช = ๐‘‰ ๐‘ˆ ๐‘‰
|๐œ“๐œ”
๐‘˜ ๐‘“ ๐‘˜โˆ’1 ๐‘ˆ๐‘“ โ€ฆ ๐‘‰2 ๐‘ˆ๐‘“ ๐‘‰1 ๐‘ˆ๐‘“ ๐œ“
๏ฎ
๏ฎ
If we did not call the oracle, then the state would be
|๐œ“ ๐‘˜ โŒช = ๐‘‰๐‘˜ ๐‘‰๐‘˜โˆ’1 โ€ฆ ๐‘‰2 ๐‘‰1 |๐œ“โŒช
When we sum over all ๐œ” we need large ๐‘˜ to make
the following quantity large:
๐‘
๐‘˜โŒช
|๐œ“๐œ”
๐‘Ÿ๐‘˜ =
โˆ’
Bennett, Bernstein,
Brassard, Vazirani
2
๐‘˜
|๐œ“ โŒช
๐œ”=1
๏ฎ
We then show that, unless ๐‘Ÿ๐‘˜ is large, we cannot
obtain the solution with high probability.
Amplitude amplification
๏ฎ
Problem: Given a function ๐‘“(๐‘ฅ) mapping ๐‘› bits to 1 bit
๐‘“ ๐‘ฅ : 0,1 ๐‘› โ†’ {0,1}, and an algorithm that produces a state that
is a superposition of values of ๐‘ฅ, obtain a state that is
superposition only of values of ๐‘ฅ such that ๐‘“(๐‘ฅ) = 1.
๏ฎ
The idea is that ๐‘“(๐‘ฅ) = 1 corresponds to a success, and we want
to amplify the successful component of the state.
๏ฎ
Denote the state prepared by the algorithm
๐‘
๐‘  =
๐œ“๐‘ฅ |๐‘ฅโŒช
๐‘ฅ=1
๏ฎ
Let the ๐‘š success states be ๐œ”๐‘› .
๏ฎ
If we were just to measure, the probability of obtaining success
would be
๐‘=
๐œ“๐‘ฅ
2
๐‘ฅโˆˆ{๐œ”๐‘› }
๏ฎ
Classically repeating would require ๐‘‚(1/๐‘) repetitions.
๏ฎ
Amplitude amplification only needs ๐‘‚(1/ ๐‘).
1997
Brassard & Høyer
Amplitude amplification
๏ฎ
Method: Alternate reflections about the prepared state |๐‘ โŒช and
the solution states |๐œ”๐‘› โŒช.
๏ฎ
As for Groverโ€™s algorithm, the reflection about the superposition
state is the oracle
๐‘š
๐‘ˆ๐‘“ = ๐•€ โˆ’ 2๐‘ƒ๐œ” ,
๐‘ƒ๐œ” =
๐œ”๐‘› โŒฉ๐œ”๐‘› |
๐‘›=1
๏ฎ
๏ฎ
In Groverโ€™s algorithm, we can denote the operation that
transforms |0โŒช to the equal superposition state by ๐‘ˆ. This is just
a tensor product of Hadamards.
The reflection is obtained by performing ๐‘ˆ โ€  , reflecting about |0โŒช,
then performing ๐‘ˆ again.
๐‘ˆ๐‘  = 2 ๐‘  โŒฉ๐‘ | โˆ’ ๐•€ = ๐‘ˆ 2 0 0 โˆ’๐•€ ๐‘ˆ โ€ 
๏ฎ
Here we can denote the algorithm by a unitary operation ๐‘ˆ that
transforms |0โŒช to |๐‘ โŒช.
๏ฎ
The reflection is obtained in exactly the same way:
๐‘ˆ๐‘  = ๐‘ˆ 2 0 0 โˆ’๐•€ ๐‘ˆ โ€ 
1997
Brassard & Høyer
Amplitude amplification
1997
๐‘ˆ๐‘“ = ๐•€ โˆ’ 2๐‘ƒ๐œ”
๐‘ˆ๐‘  = 2 ๐‘  โŒฉ๐‘ | โˆ’ ๐•€
๏ฎ
The initial state can be written as
๐‘
๐‘  =
๐œ“๐‘ฅ |๐‘ฅโŒช =
๐‘ฅ=1
๐œ“๐‘ฅ |๐‘ฅโŒช +
๐‘ฅโˆ‰{๐œ”๐‘› }
๐œ“๐‘ฅ |๐‘ฅโŒช
๐‘ฅโˆˆ{๐œ”๐‘› }
Brassard & Høyer
= cos ๐œ™ ๐‘  โ€ฒ + sin ๐œ™ |๐œ”โŒช
where sin2 ๐œ™ = ๐‘,
1
โ€ฒ
๐‘  =
๐œ“๐‘ฅ |๐‘ฅโŒช ,
1 โˆ’ ๐‘ ๐‘ฅโˆ‰{๐œ” }
๐‘›
1
๐œ” =
๐‘
๐œ“๐‘ฅ |๐‘ฅโŒช
๐‘ฅโˆˆ{๐œ”๐‘› }
๏ฎ
The action of ๐‘ˆ๐‘  on ๐œ” is
๐‘ˆ๐‘  ๐œ” = (2 ๐‘  โŒฉ๐‘ | โˆ’ ๐•€) ๐œ”
=2๐‘ ๐œ” ๐‘  โˆ’ ๐œ”
= 2 sin ๐œ™ ๐‘  โˆ’ ๐œ”
๏ฎ
This gives
๐‘ˆ๐‘  ๐œ” = 2 sin ๐œ™ cos ๐œ™ ๐‘ โ€ฒ + sin ๐œ™ |๐œ”โŒช โˆ’ ๐œ”
= 2 sin ๐œ™ cos ๐œ™ ๐‘  โ€ฒ โˆ’ 1 โˆ’ 2 sin2 ๐œ™ ๐œ”
= sin 2๐œ™ ๐‘  โ€ฒ โˆ’ cos 2๐œ™ |๐œ”โŒช
Amplitude amplification
1997
๐‘ˆ๐‘“ = ๐•€ โˆ’ 2๐‘ƒ๐œ”
๐‘ˆ๐‘  = 2 ๐‘  โŒฉ๐‘ | โˆ’ ๐•€
๐‘  = cos ๐œ™ ๐‘  โ€ฒ + sin ๐œ™ |๐œ”โŒช
sin2 ๐œ™ = ๐‘
๐‘ˆ๐‘  ๐œ” = sin 2๐œ™ ๐‘  โ€ฒ โˆ’ cos 2๐œ™ |๐œ”โŒช
๏ฎ
The action of ๐‘ˆ๐‘  on ๐‘ โ€ฒ is
๐‘ˆ๐‘  ๐‘ โ€ฒ = (2 ๐‘  โŒฉ๐‘ | โˆ’ ๐•€) ๐‘ โ€ฒ
= 2 ๐‘  ๐‘ โ€ฒ ๐‘  โˆ’ ๐‘  โ€ฒ
= 2 cos ๐œ™ ๐‘  โˆ’ |๐‘  โ€ฒ โŒช
๏ฎ
This gives
๐‘ˆ๐‘  ๐‘ โ€ฒ = 2 cos ๐œ™ cos ๐œ™ ๐‘ โ€ฒ + sin ๐œ™ |๐œ”โŒช โˆ’ ๐‘  โ€ฒ
= 2 cos 2 ๐œ™ โˆ’ 1 sโ€ฒ + 2 sin ๐œ™ cos ๐œ™ ๐œ”
= cos 2๐œ™ ๐‘  โ€ฒ + sin 2๐œ™ |๐œ”โŒช
๏ฎ
Consider the state
๐œ“ = cos ๐œƒ ๐‘ โ€ฒ + sin ๐œƒ |๐œ”โŒช
๏ฎ
The action of ๐‘ˆ๐‘“ is
๐‘ˆ๐‘“ ๐œ“ = cos ๐œƒ ๐‘ โ€ฒ โˆ’ sin ๐œƒ |๐œ”โŒช
๏ฎ
Then applying ๐‘ˆ๐‘  gives ๐‘ˆ๐‘  ๐‘ˆ๐‘“ ๐œ“
= cos ๐œƒ cos 2๐œ™ ๐‘  โ€ฒ + sin 2๐œ™ |๐œ”โŒช โˆ’ sin ๐œƒ sin 2๐œ™ ๐‘ โ€ฒ โˆ’ cos 2๐œ™ |๐œ”โŒช
= cos ๐œƒ cos 2๐œ™ โˆ’ sin ๐œƒ sin 2๐œ™ ๐‘  โ€ฒ + cos ๐œƒ sin 2๐œ™ + sin ๐œƒ cos 2๐œ™ ๐œ”
= cos(๐œƒ + 2๐œ™) ๐‘  โ€ฒ + sin(๐œƒ + 2๐œ™) ๐œ”
Brassard & Høyer
Amplitude amplification
๐‘ˆ๐‘“ = ๐•€ โˆ’ 2๐‘ƒ๐œ”
๐‘ˆ๐‘  = 2 ๐‘  โŒฉ๐‘ | โˆ’ ๐•€
๐‘  = cos ๐œ™ ๐‘  โ€ฒ + sin ๐œ™ |๐œ”โŒช
sin2 ๐œ™ = ๐‘
๐‘ˆ๐‘  ๐œ” = sin 2๐œ™ ๐‘  โ€ฒ โˆ’ cos 2๐œ™ |๐œ”โŒช
๐‘ˆ๐‘  ๐‘ โ€ฒ = cos 2๐œ™ ๐‘  โ€ฒ + sin 2๐œ™ |๐œ”โŒช
๏ฎ
With the state
๐œ“ = cos ๐œƒ ๐‘ โ€ฒ + sin ๐œƒ |๐œ”โŒช
๐‘ˆ๐‘  ๐‘ˆ๐‘“ ๐œ“ = cos(๐œƒ + 2๐œ™) ๐‘  โ€ฒ + sin(๐œƒ + 2๐œ™) ๐œ”
๏ฎ
This means that the algorithm gives
๐‘ˆ๐‘  ๐‘ˆ๐‘“
๏ฎ
๐‘˜
๐‘  = cos[ 2๐‘˜ + 1 ๐œ™] ๐‘  โ€ฒ + sin 2๐‘˜ + 1 ๐œ™ |๐œ”โŒช
The optimal number of iterations is therefore
๐œ‹
2๐‘˜ + 1 โ‰ˆ
2๐œ™
๐œ‹
๐‘˜โ‰ˆ
4 ๐‘
1997
Brassard & Høyer
State preparation
๏ฎ
Consider an alternative formulation of the amplitude amplification
problem.
๏ฎ
Our algorithm gives us the state
2000
๐‘
๐‘  =
๐‘ ๐‘ฅ |๐‘ฅโŒช sin ๐œƒ๐‘ฅ 0 + cos ๐œƒ๐‘ฅ |1โŒช
๐‘ฅ=1
Lov Grover
๏ฎ
We want to remove the |1โŒช component โ€“ i.e., we want the effect
of a measurement on the ancilla with result 0.
๏ฎ
We use these two reflections:
๐‘ˆ๐‘“ = ๐•€ โŠ— (๐•€ โˆ’ 2|0โŒชโŒฉ0|)
๐‘ˆ๐‘  = 2 ๐‘  โŒฉ๐‘ | โˆ’ ๐•€
๏ฎ
This is now identical to standard amplitude amplification. The
oracle is just returning success if the ancilla is in state |0โŒช.
๏ฎ
The number of steps is
~
๐œ‹
4 ๐‘
=
๐œ‹
4
โˆ’1/2
๐‘
๐‘ ๐‘ฅ2 sin2 ๐œƒ๐‘ฅ
๐‘ฅ=1
State preparation
๏ฎ
We want to prepare the state
2000
๐‘
๐œ“ =
๐œ“๐‘ฅ |๐‘ฅโŒช
๐‘ฅ=1
๏ฎ
Consider an oracle that yields ๐‘ˆ๐œ“ ๐‘ฅ |0โŒช = |๐‘ฅโŒช|๐œ“๐‘ฅ โŒช. The
procedure is as follows:
1.
Start with an equal superposition state with two ancillas
๐‘
1
๐‘ ๐‘ฅ=1
2.
Apply oracle to give
|๐‘ฅโŒช 0 |0โŒช
๐‘
๐‘ฅ ๐œ“๐‘ฅ |0โŒช
๐‘ฅ=1
3.
Apply a rotation on the second ancilla controlled by the state of
the first ancilla to give
๐‘
๐‘ฅ ๐œ“๐‘ฅ
๐‘ฅ=1
๐œ“๐‘ฅ 0 + 1 โˆ’ ๐œ“๐‘ฅ 2 |1โŒช
Lov Grover
2000
State preparation
๏ฎ
We want to prepare the state
๐‘
๐œ“ =
๐œ“๐‘ฅ |๐‘ฅโŒช
4.
๐‘  =
๐‘ฅ=1
๏ฎ
Consider an oracle that yields
๐‘ˆ๐œ“ ๐‘ฅ |0โŒช = |๐‘ฅโŒช|๐œ“๐‘ฅ โŒช. The procedure is:
1.
Start with an equal superposition state
with two ancillas
1
๐‘
๐‘ ๐‘ฅ=1
2.
3.
The number of steps required in the
amplitude amplification is then
๐œ‹
๐œ‹ ๐‘
~
=
4 ๐‘
4
๏ฎ
This problem may be used to encode a
search problem; for example, where
๐œ“๐œ” = 1 for an unknown ๐œ”. That means
that this complexity is optimal for worstcase problems.
๏ฎ
For specific problems, the complexity
may be improved upon.
Apply a rotation on the second ancilla
controlled by the state of the first ancilla
1
๐‘
๐‘ ๐‘ฅ=1
๐‘ฅ ๐œ“๐‘ฅ
๐œ“๐‘ฅ 0 + 1 โˆ’ ๐œ“๐‘ฅ 2 |1โŒช
๐œ“๐‘ฅ 0 + 1 โˆ’ ๐œ“๐‘ฅ 2 |1โŒช
๏ฎ
๐‘
๐‘ ๐‘ฅ=1
๐‘ ๐‘ฅ=1
๐‘ฅ 0
The procedure in steps 1 to 4 then
prepares the state |๐‘ โŒช that can be used
in the amplitude amplification
procedure described earlier.
|๐‘ฅโŒช 0 |0โŒช
๐‘ฅ ๐œ“๐‘ฅ |0โŒช
1
๐‘
5.
Apply oracle to give
1
Invert the oracle to give
Quantum phase estimation
๏ฎ
Often in quantum algorithms, one has a unitary operator ๐‘ˆ, and
wants to find an eigenvalue.
๏ฎ
Given a state in the form
๐‘
๐œ“ =
๐œ“๐‘˜ |๐œ†๐‘˜ โŒช
๐‘˜=1
where e๐‘–๐œ†๐‘˜ is an eigenvalue of ๐‘ˆ and |๐œ†๐‘˜ โŒช is the corresponding
eigenvector, one wants to obtain an estimate, ๐œ†๐‘˜ , of ๐œ†๐‘˜ with
probability ๐œ“๐‘˜ 2 .
๏ฎ
1995
Alternatively, one wants to place the estimate in an ancillary
register in a coherent way to obtain (approximately) the state
๐‘
๐œ“๐‘˜ |๐œ†๐‘˜ โŒช|๐œ†๐‘˜ โŒช
๐‘˜=1
Alexei Kitaev
Quantum phase estimation
๏ฎ
Consider an initial eigenstate ๐œ“ = |๐œ†โŒช.
๏ฎ
The Hadamard gives ( 0 + |1โŒช)/ 2.
๏ฎ
The controlled ๐‘ˆ โ„“ operation gives ( 0 + ๐‘’ ๐‘–โ„“๐œ† |1โŒช)/ 2.
๏ฎ
The state of the set of ๐‘› qubits is
1
2๐‘›
|0โŒช
|0โŒช
|0โŒช
|0โŒช
|0โŒช
|0โŒช
|๐œ†โŒช
2๐‘› โˆ’1
๐‘’ ๐‘–๐‘ฅ๐œ† |๐‘ฅโŒช
Alexei Kitaev
๐‘ฅ=0
๐ป
๐ป
๐ป
๐ป
๐ป
๐ป
Inverse
QFT
๐‘ˆ
1995
๐‘ˆ 2 ๐‘ˆ 4 ๐‘ˆ 8 ๐‘ˆ16 ๐‘ˆ 32
bits
of ๐œ†
1995
Quantum phase estimation
๏ฎ
Consider an initial eigenstate ๐œ“ = |๐œ†โŒช.
๏ฎ
The Hadamard gives ( 0 + |1โŒช)/ 2.
๏ฎ
The controlled ๐‘ˆ โ„“ operation gives ( 0 + ๐‘’ ๐‘–โ„“๐œ† |1โŒช)/ 2.
๏ฎ
The state of the set of ๐‘› qubits is
2๐‘› โˆ’1
1
2๐‘›
๏ฎ
Net result is state
๐‘
๐‘›
๐‘’ โˆ’2๐œ‹๐‘–๐‘ฅ๐‘ฆ/2 ๐‘ฆ โŒฉ๐‘ฅ|
๐œ“ =
๐œ“๐‘˜ |๐œ†๐‘˜ โŒช
๐‘˜=1
becomes
๐‘
It therefore gives
1
2๐‘›
๏ฎ
๐‘ฅ=0
2๐‘› โˆ’1
2๐‘› ๐‘ฅ,๐‘ฆ=0
๏ฎ
Alexei Kitaev
The inverse QFT is the operation
1
๏ฎ
๐‘’ ๐‘–๐‘ฅ๐œ† |๐‘ฅโŒช
2๐‘› โˆ’1
๐‘›
๐‘’ โˆ’2๐œ‹๐‘–๐‘ฅ๐‘ฆ/2 ๐‘’ ๐‘–๐‘ฅ๐œ†
๐‘ฆ
๐‘ฅ,๐‘ฆ=0
๐œ“๐‘˜ ๐œ†๐‘˜ |๐œ†๐‘˜ โŒช
๐‘˜=1
For ๐œ† = 2๐œ‹๐‘š/2๐‘› , the sum over ๐‘ฅ is nonzero only for ๐‘ฆ = ๐‘š, giving the state |๐‘šโŒช.
That is, for ๐œ† = 2๐œ‹ × 0. ๐œ†1 ๐œ†2 ๐œ†3 โ€ฆ ๐œ†๐‘› , the output state is
๐œ†1 ๐œ†2 โ€ฆ |๐œ†๐‘› โŒช
Operation conversion
๏ฎ
We can implement one unitary ๐‘‰, but we want to implement a different
operation ๐‘‚.
๏ฎ
The operations share eigenstates, but the eigenvalues are related by a
function.
๐‘‰ ๐œ† = ๐‘’ ๐‘–๐œ† ๐œ†
๐‘‚ ๐œ† = ๐‘“ ๐œ† |๐œ†โŒช
๏ฎ
Implement the unitary V many times and perform phase estimation to give
๐‘
๐‘
๐œ“ =
๐œ“๐‘˜ |๐œ†๐‘˜ โŒช
๐‘˜=1
๏ฎ
โ†ฆ
๐œ“ ๐‘˜ ๐œ†๐‘˜ | ๐œ†๐‘˜ โŒช
๐‘˜=1
The eigenvalue ๐‘“(๐œ†) can then be imposed, giving (ignoring error)
๐‘
๐œ“๐‘˜ ๐‘“(๐œ†๐‘˜ ) ๐œ†๐‘˜ |๐œ†๐‘˜ โŒช
๐‘˜=1
๏ฎ
Inverting the phase estimation gives
๐‘
๐œ“๐‘˜ ๐‘“(๐œ†๐‘˜ ) ๐œ†๐‘˜ = ๐‘‚|๐œ“โŒช
๐‘˜=1
Simulation of Hamiltonians
๏ฎ
In general, the problem of simulating a physical system is
that of simulating Hamiltonian evolution:
๐‘‘
๐œ“ = โˆ’๐‘–๐ป(๐‘ก)|๐œ“โŒช
๐‘‘๐‘ก ๐‘ก
๏ฎ
For a constant Hamiltonian, we would have
๐œ“๐‘ก = ๐‘’ โˆ’๐‘–๐ป๐‘ก |๐œ“0 โŒช
๏ฎ
A typical physical system consists of many subsystems:
1996
Seth Lloyd
๏ฎ
Each subsystem is of limited
dimension ๐‘‘, but with ๐‘› subsystems
the overall dimension is ๐‘‘ ๐‘› .
๏ฎ
A typical Hamiltonian is a sum of local
terms on individual subsystems, and
interaction terms on 2 subsystems.
๐ป=
๐ป๐‘˜
๐‘˜
1996
Simulation of Hamiltonians
๏ฎ
We want to simulate the evolution
๐œ“๐‘ก = ๐‘’ โˆ’๐‘–๐ป๐‘ก |๐œ“0 โŒช
๏ฎ
With a Hamiltonian a sum of terms:
๐ป=
๐ป๐‘˜
๐‘˜
๏ฎ
Each individual ๐ป๐‘˜ has low dimension, so could be
efficiently simulated on its own.
๏ฎ
Seth Lloyd
That is, we can perform
๐‘’ โˆ’๐‘–๐ป๐‘˜๐‘ก
๏ฎ
For short times we can use the
approximation that
๐‘’ โˆ’๐‘–๐ป1๐›ฟ๐‘ก ๐‘’ โˆ’๐‘–๐ป2 ๐›ฟ๐‘ก โ€ฆ ๐‘’ โˆ’๐‘–๐ป๐พโˆ’1 ๐›ฟ๐‘ก ๐‘’ โˆ’๐‘–๐ป๐พ ๐›ฟ๐‘ก โ‰ˆ ๐‘’ โˆ’๐‘–๐ป๐›ฟ๐‘ก
1996
Simulation of Hamiltonians
๏ฎ
For short times we can use the approximation that
๐‘’ โˆ’๐‘–๐ป1 ๐›ฟ๐‘ก ๐‘’ โˆ’๐‘–๐ป2๐›ฟ๐‘ก โ€ฆ ๐‘’ โˆ’๐‘–๐ป๐พโˆ’1๐›ฟ๐‘ก ๐‘’ โˆ’๐‘–๐ป๐พ ๐›ฟ๐‘ก โ‰ˆ ๐‘’ โˆ’๐‘–๐ป๐›ฟ๐‘ก
๏ฎ
๏ฎ
๏ฎ
๏ฎ
This approximation is because
๐‘’ โˆ’๐‘–๐ป1๐›ฟ๐‘ก ๐‘’ โˆ’๐‘–๐ป2 ๐›ฟ๐‘ก โ€ฆ ๐‘’ โˆ’๐‘–๐ป๐พโˆ’1 ๐›ฟ๐‘ก ๐‘’ โˆ’๐‘–๐ป๐พ ๐›ฟ๐‘ก
= ๐•€ โˆ’ ๐‘–๐ป1 ๐›ฟ๐‘ก + ๐‘‚ ๐›ฟ๐‘ก 2 ๐•€ โˆ’ ๐‘–๐ป2 ๐›ฟ๐‘ก + ๐‘‚ ๐›ฟ๐‘ก 2 โ€ฆ
โ€ฆ ๐•€ โˆ’ ๐‘–๐ป๐พ ๐›ฟ๐‘ก + ๐‘‚ ๐›ฟ๐‘ก 2
= ๐•€ โˆ’ ๐‘–๐ป1 ๐›ฟ๐‘ก โˆ’ ๐‘–๐ป2 ๐›ฟ๐‘ก โ€ฆ โˆ’ ๐‘–๐ป๐พ ๐›ฟ๐‘ก + ๐‘‚ ๐›ฟ๐‘ก 2
= ๐•€ โˆ’ ๐‘–๐ป๐›ฟ๐‘ก + ๐‘‚ ๐›ฟ๐‘ก 2
= ๐‘’ โˆ’๐‘–๐ป๐›ฟ๐‘ก + ๐‘‚(๐›ฟ๐‘ก 2 )
If we divide long time ๐‘ก into ๐‘Ÿ intervals, then
๐‘Ÿ
๐‘’ โˆ’๐‘–๐ป๐‘ก = ๐‘’ โˆ’๐‘–๐ป๐‘ก/๐‘Ÿ = ๐‘’ โˆ’๐‘–๐ป1 ๐‘ก/๐‘Ÿ ๐‘’ โˆ’๐‘–๐ป2๐‘ก/๐‘Ÿ โ€ฆ ๐‘’ โˆ’๐‘–๐ป๐พ ๐‘ก/๐‘Ÿ + ๐‘‚ ๐‘ก/๐‘Ÿ 2
๐‘Ÿ
โˆ’๐‘–๐ป
๐‘ก/๐‘Ÿ
โˆ’๐‘–๐ป
๐‘ก/๐‘Ÿ
โˆ’๐‘–๐ป
๐‘ก/๐‘Ÿ
1
2
๐พ
= ๐‘’
๐‘’
โ€ฆ๐‘’
+ ๐‘‚ ๐‘ก 2 /๐‘Ÿ
Typically, we want to simulate a system with some maximum
allowable error ๐œ€.
Then we need
๐‘Ÿ โˆ ๐‘ก 2 /๐œ€.
Seth Lloyd
๐‘Ÿ