기본 정보
- 저자
- DOI
- 10.48550/arxiv.0803.3459
- 저널
- arXiv (Cornell University)
- 발행년도
- 2022
- 발행기관
- Cornell University
- 피인용수
- 0
- 라이선스
- 0
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.48550/arxiv.0803.3459
- 토픽
- Chemical and Physical Properties of Materials
- OpenAlex ID
- W6910620508
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (11) 배리어 필름
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 배리어 필름' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
Several research groups are giving special attention to quantum walks recently, because this research area have been used with success in the development of new efficient quantum algorithms. A general simulator of quantum walks is very important for the development of this area, since it allows the researchers to focus on the mathematical and physical aspects of the research instead of deviating the efforts to the implementation of specific numerical simulations. In this paper we present QWalk, a quantum walk simulator for one- and two-dimensional lattices. Finite two-dimensional lattices with generic topologies can be used. Decoherence can be simulated by performing measurements or by breaking links of the lattice. We use examples to explain the usage of the software and to show some recent results of the literature that are easily reproduced by the simulator.
본문 46,361자
본문 펼치기
## The QWalk Simulator of Quantum Walks
### F.L. Marquezino a, 1, R. Portugal a,
a _LNCC,_ _Laborat´orio_ _Nacional_ _de_ _Computa¸c˜ao_ _Cient´ıfica_
_Av._ _Get´ulio_ _Vargas_ _333,_ _CEP_ _25651-075,_ _Petr´opolis,_ _RJ,_ _Brazil_
Abstract
Several research groups are giving special attention to quantum walks recently, because this research area have been used with success in the development of new
efficient quantum algorithms. A general simulator of quantum walks is very important for the development of this area, since it allows the researchers to focus on the
mathematical and physical aspects of the research instead of deviating the efforts
to the implementation of specific numerical simulations. In this paper we present
QWalk, a quantum walk simulator for one- and two-dimensional lattices. Finite
two-dimensional lattices with generic topologies can be used. Decoherence can be
simulated by performing measurements or by breaking links of the lattice. We use
examples to explain the usage of the software and to show some recent results of
the literature that are easily reproduced by the simulator.
PACS: 03.67.Lx, 05.40.Fb, 03.65.Yz
_Key_ _words:_ Quantum walk; quantum computing; Quantum Mechanics;
double-slit; broken links
PROGRAM SUMMARY
_Manuscript_ _Title:_ The QWalk Simulator of Quantum Walks
_Authors:_ F.L. Marquezino and R. Portugal
_Program_ _Title:_ QWalk
_Journal_ _Reference:_
_Catalogue_ _identifier:_
_Licensing_ _provisions:_ GNU General Public Licence.
_Programming_ _language:_ C
_Computer:_ Any computer with a C compiler that accepts ISO C99 complex arithmetic (recent versions of GCC, for instance). Pre-compiled versions are also provided.
_Operating_ _system:_ The software should run in any operating system with a recent
1 Corresponding author: franklin@lncc.br
_P_ _i_ _t_ _b_ _itt_ _d_ _t_ _El_ _i_ _23_ _O_ _t_ _b_ _2018_
C compiler. Successful tests were performed in Linux and Windows.
_RAM:_ Less than 10 MB were required for a two-dimensional lattice of size 201 _×_ 201.
About 400 MB, for a two-dimensional lattice of size 1601 _×_ 1601.
_Supplementary_ _material:_ Several examples of input files are provided.
_Keywords:_ Quantum walk; quantum computing; Quantum Mechanics; simulation;
double-slit; broken links; C.
_PACS:_ 03.67.Lx, 05.40.Fb, 03.65.Yz
_Classification:_
_Subprograms used:_ The simulator generates gnuplot scripts that can be used to make
graphics of the output data.
_Nature_ _of_ _problem:_ Classical simulation of discrete quantum walks in one- and twodimensional lattices.
_Solution_ _method:_ Iterative approach without explicit representation of evolution
operator.
_Restrictions:_ The available amount of RAM memory imposes a limit on the size
of the simulations.
_Unusual_ _features:_ The software provides an easy way of simulating decoherence
through detectors or random broken links. In the two-dimensional simulations it
also allows the definition of permanent broken links, besides calculation of total
variation distance (from the uniform and from an approximate stationary distribution) and the choice between two different physical lattices. It also provides an easy
way of performing measurements on specific sites of the 2D lattice and the analysis
of observation screens. In one-dimensional simulations it allows the choice between
three different lattices. Both one- and two-dimensional simulations facilitates the
generation of graphics by automatically generating gnuplot scrips.
_Additional_ _comments:_ An earlier version of QWalk was first presented in [1].
_Running_ _time:_ The simulation of 100 steps for a two-dimensional lattice of size
201 _×_ 201 took less than 2 seconds on a Pentium IV 2.6GHz with 512MB of RAM
memory, 512KB of cache memory and under Linux. It also took about 15 minutes
for a lattice of size 1601 _×_ 1601 on the same computer. Optimization option `-O2`
was used during compilation for these tests.
_References:_
[1] Marquezino, F.L. and Portugal, R., QWalk: Simulador de Caminhadas Quˆanticas,
in _Proceedings_ _of_ _2nd_ _WECIQ_, pages 123-132, Campina Grande, Brazil, 2007,
IQuanta.
2
LONG WRITE-UP
1 Introduction
A very successful approach used to solve some problems in classical computing
consists in using algorithms based on random walks. In fact, many computational problems are solved more efficiently by this technique [1]. In the 1990s
the model of discrete quantum walks has been developed by Aharonov _et al_ [2]
and the continuous model has been developed by Farhi and Gutmann [3]. The
good results obtained with random walks in classical computing motivate us
to investigate the applications of quantum walks to the development of new
efficient quantum algorithms.
Quantum algorithms based on quantum walks have already been developed
with great success. Some examples are the search algorithm by Shenvi _et al_ [4]
and the algorithm for element distinctness by Ambainis [5], both using the
discrete-time model. Kempe [6] showed that a discrete-time quantum walker
can cross a hypercube of dimension _d ≥_ 3 exponentially faster than a classical
random walk. Farhi _et_ _al_ [7] have developed an efficient quantum algorithm
for the Hamiltonian NAND tree based on the continuous-time quantum walk.
Together with amplitude amplification and Fourier transform, quantum walks
are one of the strategies for developing efficient quantum algorithms. Algorithms based on quantum walks are better than the Grover algorithm in some
cases [5]. Apart from the applications on the development of efficient quantum algorithms, which are important from a Computer Science perspective,
the quantum walks have also properties that justify their investigation from
the point of view of Physics.
A general simulator of quantum walks is important for the development of
this research area. Without such a simulator, the effort of the researchers
are deviated to the implementation of specific numerical simulations while it
should the focused in the physical and mathematical aspects of the research.
The QWalk simulator allows the scientific community to perform important
simulations on quantum walks with simple commands and even facilitates the
generation of plots to visualize the results. In its present form, the QWalk
simulator can reproduce most of the simulations present in research papers.
In Sec. 2 we briefly review the discrete quantum walks and some related definitions. In Sec. 3 we present the QWalk simulator, using examples from recent
results of literature in order to explain its usage. In Appendix A we describe
some options of the simulator that were not used in the examples.
3
2 Quantum walks
In the discrete one-dimensional quantum walk we consider a free particle—a
walker—moving at each time step along a one-dimensional lattice. The direction of movement is given by an additional degree of freedom, the chirality
of the particle, which can take two values, analogous to the result of the coin
tossing in the classical random walk. In the two-dimensional quantum walk,
similarly, the walker moves at each time step along a two-dimensional lattice.
In this case two additional degrees of freedom are necessary, so that one may
decide among four kinds of movements. In this Section we describe in details
only the two-dimensional case. The one-dimensional walk, nevertheless, can
be seen as a simple particularization of the case here exposed.
The Hilbert space considered in the two-dimensional walk is _H_ 2 _⊗H_ 2 _⊗H∞_,
where _H_ 2 _⊗H_ 2 is the Hilbert subspace associated with the chirality of the
walker, i.e., the coin, and _H∞_ is the Hilbert space associated with the position
of the particle over the lattice. The basis for the coin subspace is _BC_ = _{|j, k⟩_ :
_j, k_ _∈{_ 0 _,_ 1 _}}_ and the basis for the position subspace is _BS_ = _{|m, n⟩_ : _m, n ∈_
Z _}_ .
The generic state of the quantum walker at time _t_ is
_∞_
_m,n_ = _−∞_
_|_ Ψ( _t_ ) _⟩_ =
1
_j,k_ =0
_ψj,k_ ; _m,n_ ( _t_ ) _|j, k⟩|m, n⟩,_ (1)
with _ψj,k_ ; _m,n_ ( _t_ ) _∈_ C and <sup>�</sup> _j,k_ _m,n_ <sup>_|ψ_</sup> _j,k_ ; _m,n_ <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2</sup> <sup>=</sup> <sup>1.</sup> <sup>The</sup> <sup>evolution</sup> <sup>of</sup> <sup>the</sup>
system over time is given by a unitary operator _U_ = _S_ _◦_ ( _C_ _⊗_ _IP_ ), where _S_
is the shift operator, _IP_ is the identity operator which acts on the position
subspace and _C_ is the coin operator, which acts on the _H_ 2 _⊗H_ 2 subspace.
with _ψj,k_ ; _m,n_ ( _t_ ) _∈_ C and <sup>�</sup>
_j,k_
In this paper we address two different shift operators for the two-dimensional
walk. The first of them has already been described in [8] and is given by
+ _∞_
_m,n_ = _−∞_
_⟨m, n|._ (2)
��� _m_ + ( _−_ 1) _j, n_ + ( _−_ 1) _k_
_Sa_ =
1
_j,k_ =0
_|j, k⟩⟨j, k| ⊗_
One may notice that according to this shift operator the walker always moves
along the diagonals of the mathematical lattice—it moves along the main
diagonal if the value of the coin is either _|_ 00 _⟩_ or _|_ 11 _⟩_, and along the secondary
diagonal if the value of the coin is either _|_ 01 _⟩_ or _|_ 10 _⟩_ . In this case we say that
the physical lattice is diagonal (in relation to the mathematical lattice).
We may also consider the possibility that, at time _t_, a link from site ( _m, n_ ) to
4
n
n
~~m~~
(a) Diagonal lattice
<u>m</u>
(b) Natural lattice
Fig. 1. Part of the lattice for a two-dimensional quantum walk, showing a broken
link.
one of its neighbours is broken. Then we need the functions
_L_ 1( _j, k_ ; _m, n_ ) =
and
_L_ 2( _j, k_ ; _m, n_ ) =
( _−_ 1) <sup>_j_</sup> if link to site _m_ + ( _−_ 1) <sup>_j_</sup> _, n_ + ( _−_ 1) <sup>_k_</sup> is closed,
(3)
0 if link is open _,_
( _−_ 1) <sup>_k_</sup> if link to site _m_ + ( _−_ 1) <sup>_j_</sup> _, n_ + ( _−_ 1) <sup>_k_</sup> is closed,
(4)
0 if link is open _,_
with _j, k_ _∈{_ 0 _,_ 1 _}_ . Whenever _L_ 1(1 _−_ _j,_ 1 _−_ _k_ ; _m_ + ( _−_ 1) <sup>_j_</sup> _, n_ + ( _−_ 1) <sup>_k_</sup> ) = 0 we
must impose _L_ 1( _j, k_ ; _m, n_ ) = 0, and similarly for _L_ 2. The technique of broken
links for quantum walks was developed originally by Romanelli _et_ _al_ [9] and
later generalized for the two-dimensional case by Oliveira _et_ _al_ [8].
In Fig. 1(a) we have part of the lattice used in the two-dimensional quantum
walk, with shift operator _Sa_ . The mathematical lattice is depicted by a dashed
line and the physical lattice is depicted by a full line. In the example we have
a broken link between sites ( _m, n_ ) and ( _m_ + 1 _, n_ + 1).
If we apply the evolution operator _Ua_ to state (1) and include functions _L_ 1
and _L_ 2 as in [8], we obtain the evolution equation
_ψ_ 1 _−j,_ 1 _−k_ ; _m,n_ ( _t_ + 1) =
1
_j_ <sup>_′_</sup> _,k_ <sup>_′_</sup> =0
_Cj_ + _L_ 1( _j,k_ ; _m,n_ ) _,k_ + _L_ 2( _j,k_ ; _m,n_ ); _j′,k′ψj′,k′_ ; _m_ + _L_ 1( _j,k_ ; _m,n_ ) _,n_ + _L_ 2( _j,k_ ; _m,n_ )( _t_ ) _._ (5)
We can also define a second shift operator in order to obtain a physical lattice
that coincides with the mathematical lattice. This operator is given by
- _⟨m, n|._
��� _m_ + ( _−_ 1) _j_ (1 _−_ _δj,d_ ) _, n_ + ( _−_ 1) _jδj,d_
(6)
5
+ _∞_
- _|j, d⟩⟨j, d| ⊗_
_m,n_ = _−∞_
_Sb_ =
1
_j,d_ =0
We will observe through the examples of Section 3 that the probability distributions obtained with operator _Sb_ differ from those obtained with operator
_Sa_ only by a rotation of _π/_ 4. It will also be clear later on that, altough the
movement described by _Sb_ may be more intuitive, operator _Sa_ has also some
advantages.
If we intend to include the possibility of broken links in this second lattice, we
need the function
_L_ ( _j, d_ ; _m, n_ ) =
( _−_ 1) <sup>_j_</sup> if link to _m_ + ( _−_ 1) <sup>_j_</sup> (1 _−_ _δj,d_ ) _, n_ + ( _−_ 1) <sup>_j_</sup> _δj,d_ is closed,
0 if link is open _,_
(7)
with _j, d_ _∈{_ 0 _,_ 1 _}_ . As in the previous case, we must impose _L_ ( _j, d_ ; _m, n_ ) = 0
whenever _L_ (1 _−_ _j,_ 1 _−_ _d_ ; _m_ + ( _−_ 1) <sup>_j_</sup> (1 _−_ _δj,d_ ) _, n_ + ( _−_ 1) <sup>_j_</sup> _δj,d_ ) = 0.
If we apply the evolution operator _Ub_ to state (1) and include function _L_, we
obtain the evolution equation
_ψ_ 1 _−j,_ 1 _−d_ ; _m,n_ ( _t_ + 1) =
1
_j_ <sup>_′_</sup> _,d_ <sup>_′_</sup> =0
_Cj_ + _L_ ( _j,d_ ; _m,n_ ) _,d⊕L_ ( _j,d_ ; _m,n_ ); _j′,d′ψj′,d′_ ; _m_ + _L_ ( _j,d_ ; _m,n_ )(1 _−δj,d_ ) _,n_ + _L_ ( _j,d_ ; _m,n_ ) _δj,d_ ( _t_ ) _,_ (8)
where _⊕_ is addition modulo 2.
In Fig. 1(b) we have part of the lattice used in the two-dimensional quantum
walk with shift operator _Sb_ . In this example we have a broken link between
sites ( _m, n_ ) and ( _m, n_ + 1).
For the one-dimensional simulations, Qwalk provides three kinds of shift operators, which defines three different lattices: the infinite line, the finite onedimensional lattice with reflecting boundaries and the cycle [10,11].
_2.1_ _Average_ _distribution_ _and_ _mixing_ _time_
By suitably defining permanent broken links we may study the quantum walk
on a finite lattice with interesting topologies, such as a square box with reflecting boundaries [12]. Let
_P_ ( _m, n, T_ ) =
1
_j,k_ =0
_|ψj,k_ ; _m,n_ ( _T_ ) _|_ <sup>2</sup> (9)
be the probability of finding the walker on the site ( _m, n_ ) of the lattice at
time _T_ . In a classical random walk on a box this probability distribution
6
converges to a stationary distribution. On the other hand, since the quantum walk must preserve unitarity, it does not present this convergence property. However, defining the average probability distribution as _P_ <sup>¯</sup> ( _m, n, T_ ) =
_T_ <u>1</u> - _Tt_ =0 _−_ 1 <sup>_P_</sup> <sup>(</sup> <sup>_m, n, t_</sup> <sup>), Aharonov</sup> <sup>_et_</sup> <sup>_al_</sup> <sup>[13] have proved that</sup> <sup>_P_</sup> <sup>¯(</sup> <sup>_m, n, T_</sup> <sup>) converges</sup>
in the limit _T_ _→∞_ . Hence, define
_π_ ( _m, n_ ) = lim
_T_ _→∞_
_P_ ¯( _m, n, T_ ) _._ (10)
The rate at which the probability distribution approaches the limiting distribution _π_ ( _x_ ) is captured by
Definition 1 (Mixing time) _The_ _mixing_ _time_ _Mϵ_ _of_ _a_ _quantum_ _Markov_
_chain_ _is_
_Mϵ_ = min _{T_ _|∀t ≥_ _T, ∥P_ <sup>¯</sup> _t −_ _π∥≤_ _ϵ},_
_where ∥A−B∥_ = <sup>�</sup> _m,n_ <sup>_|A_</sup> <sup>(</sup> <sup>_m, n_</sup> <sup>)</sup> <sup>_−B_</sup> <sup>(</sup> <sup>_m, n_</sup> <sup>)</sup> <sup>_| denotes the total variation distance._</sup>
Usually _Mϵ_ depends on the initial conditions.
3 Using the software
The QWalk simulator is quite easy to install on a Linux-like environment.
One just needs to download the source code, <sup>2</sup> uncompress it in any directory
and finally use the command `make` . The source code of the simulator was
also successfully compiled in the Microsoft Windows operating system, using
Dev-C++ 4.9.9.2 compiler, which can be downloaded for free in Internet <sup>3</sup> .
Detailed information on how to compile the simulator, as well as pre-compiled
versions of it, are also provided in the web-site. Together with the downloaded
files the user with knowledge in C programming also finds information on how
to change the source code.
The simulator consists of three tools: _qw1d_ simulates quantum walks in onedimensional lattices; _qw2d_, in two-dimensional lattices; and _qwamplify_ improves the visualization of the plots generated by _qw2d_ by amplifying some
regions. In this Section we give some examples from recent results of literature
in order to show how to use the simulator. Other examples are also provided
with the downloaded files.
2 http://qubit.lncc.br/qwalk
3 http://www.bloodshed.net.
7
_3.1_ _Simulations_ _in_ _two-dimensional_ _lattices_
In order to use _qw2d_ it is necessary to write an input file in any ASCII text
editor. This input file consists of keywords that define the simulation options.
Most important keywords are explained in the examples of this Section, and
the ones not covered here are discussed in Appendix A.
After creating the input file, say `file.in`, one just needs to type `qw2d` `file.in` .
The results are stored in some output files. The `file.dat` output file contains
the final probability distribution. The `file-wave.dat` output file contains the
final complex amplitudes of the wave function. The `file-pb.dat` output file
contains the approximate stationary distribution, when it is requested. The
`file-screen.dat` output file contains the data observed in the screen, when
it is requested. The `file.sta` output file contains certain statistics such as
variance, standard deviation, average and total variation distance from an
approximate stationary distribution and from the uniform distribution. The
`file.plt` output file is a gnuplot script. The postscript files it generates depend on the options used. Typically these files are: `file-3d.eps`, the 3D plot;
`file-2d.eps`, the contour plot; `file-screen.eps`, the observation screen pattern; `file-pb.eps`, the approximate stationary distribution plot. Further plots
can also be manually generated by the user with some knowledge on gnuplot
or any other similar tool.
_3.2_ _Simulation_ _of_ _a_ _double-slit_ _experiment_
In Fig. 2 we have the result of a simulation of the double-slit experiment
with quantum walks, reproducing some results recently obtained by Oliveira
_et_ _al_ [14]. This simulation took less than 2s on a Pentium IV 2.6GHz with
512MB of RAM memory, 512KB of cache memory and under Linux. In order
to perform this simulation with _qw2d_ the input file must have the following
keywords, all in uppercase:
```
BEGIN
COIN HADAMARD BLPERMANENT
STATE HADAMARD SCREEN 60 -100 60 100
STEPS 100 LATTYPE DIAGONAL
END
```
It is not necessary to place the commands exactly as in the example. The
user may skip lines between different commands or even write everything in
a single line. It is important, however, to keep all the keywords in the main
section of the input file, delimited by a `BEGIN` keyword and an `END` keyword.
Otherwise, the keywords will be interpreted as comments. The plots of Fig. 2
8
Probability
0.006
0.005
0.004
0.003
0.002
0.001
0
100
75
50
25
0
-25
-50
-75
-100
-100 -75 -50 -25 0 25 50 75 100
x
(b) Contour plot
0
x
-100 -75 -50 -25 0 25 50 75 100
y
-100 <sup>-75-50-25 0 25 50 75 100</sup>
x
(a) 3D plot
Fig. 2. Probability distribution after a double-slit experiment. An amplification
factor 5 was used for _x >_ 20, in order to improve visualization.
were generated by _gnuplot_, with a script provided as output of _qw2d_ . The
generation of the plots took about 30s.
The `COIN` keyword defines the coin used in the simulation. In the previous
example we chose the Hadamard coin. We could also have chosen the Fourier
or Grover coins, with the options `FOURIER` and `GROVER`, or even an arbitrary
unitary coin. In the latter case, the option to be used is `CUSTOM` . An extra
section in the input file in also required in this case in order to define the
arbitrary coin, see Appendix A.
Analogously, the `STATE` keyword defines the initial state of the simulation. In
the previous example we chose the state that provides a better spreading for
the Hadamard coin. We could also have chosen the corresponding states for
Grover or Fourier coins, or even an arbitrary initial state.
The `STEPS` keyword defines the number of iterations that will be carried out
by the simulation. In the previous example the walker performed a hundred
simulation steps. The user should recall that the larger is the simulated time
without boundaries the farther from the origin the particle can be found,
which means that a bigger space in computer’s memory must be reserved for
the simulation. Therefore, this keyword may increase not only the running
time but also the memory requirements of the simulation. It will be explained
later on how to avoid this memory consume when we fix certain boundaries
in the lattice.
The slits were created with help of `BLPERMANENT` keyword in the main section of
the input file. With this command we declare that some links in the simulation
will be permanently broken. In order to define the position of those broken
links we use a separated section in the same input file, with the commands
9
```
BEGINBL
LINE 20 100 20 7
LINE 20 5 20 -5
LINE 20 -7 20 -100
ENDBL
```
The command `LINE` `x0` `y0` `x1` `y1` isolates all the points that pass through the
segment from ( _x_ 0 _, y_ 0) to ( _x_ 1 _, y_ 1). The line of isolated points may be parallel
to the axes _x_ or _y_, or may have an angle of 45 degrees with one of those. It is
also possible to isolate a single point with the command `POINT` `x0` `y0` . With
combinations of these two commands one can simulate not only single- and
double-slit experiments but also the evolution of the walker with an enormous
variety of boundaries. In this first example we have a slit at (20 _,_ 6) and another
at (20 _, −_ 6).
An observation screen may be defined with the `SCREEN` keyword, which must
be followed by the initial and final coordinates. The screen may be defined
parallel to axes _x_ or _y_, or with an angle of 45 degrees with one of those. In
the example the screen goes from (60 _, −_ 100) to (60 _,_ 100).
Since the fraction of the wave that passed through the slits in the previous
example was very small, the visualization obtained in the first place by the
simulation turned out to be quite precarious. In order to solve that, we used the
_qwamplify_ tool to amplify by a factor of 5 the whole region where _x ≥_ 20. This
tool may be used by typing something like `qwamplify` `file.dat` `[options]` .
The software creates a safety copy of `file.dat` and replaces it by a new one,
with the appropriate part of the wave function amplified. Help concerning the
available options can be obtained simply by typing `qwamplify` .
The `LATTYPE` `DIAGONAL` command declares that the shift operator _Sa_ is to be
used, see Eq. (2). The shift operator _Sb_, from Eq. (6), is the default but can
also be explicitly declared with the `LATTYPE` `NATURAL` command. The natural
lattice, when compared to the diagonal lattice, gives probability distributions
rotated by an angle of 45 degrees. We can note this behaviour in Fig. 3,
the simulation of the Hadamard walk for a hundred steps without slits. Note
that there is a region on the four corners of the plot that is not used. In
most situations the diagonal lattice provides better visualization than the
natural lattice. This kind of non-diagonal lattice was used by Innui _et_ _al_ [15]
with a slightly different shift operator. Our evolution equation, however, has
the advantage of preserving the final probability distribution—except for the
above mentioned rotation—with the same coin operator.
In Fig. 4 we have results of two experiments of double slit with Hadamard
walkers. The slits were placed exactly as in the previous example: one at
(20 _,_ 6) and another at (20 _, −_ 6). In the first simulation we carried out _T_ = 100
steps; in the second simulation, _T_ = 800 steps. The simulation took about
10
Probability
0.006
0.005
0.004
0.003
0.002
75
0.001 50
0 25
0
-25 y
-100 -75 -50 -25 0
100
100
75
50
25
0
-25
-50
-75
-100
-100 -75 -50 -25 0 25 50 75 100
x
(b) Contour plot
75
50
-100 -75 -50 -25 0
x 25 50 75 -100
0
25
-25
-50
-75
(a) 3D plot
Fig. 3. Probability distribution after a hundred steps of a Hadamard walker. Here,
the shift operator is such that the mathematical lattice coincides with the physical
lattice.
0.0007
0.0006
0.0005
0.0004
0.0003
0.0002
0.0001
0
0 20 40 60 80 100 120 140 160 180 200
0 200 400 600 800 1000 1200 1400 1600
7e-05
6e-05
5e-05
4e-05
3e-05
2e-05
1e-05
0
site number
(a) Simulation with _T_ = 100 steps
and screen along _x_ = 60.
site number
(b) Simulation with _T_ = 800 steps
and screen along _x_ = 500.
Fig. 4. Simulation of observation screens in the experiment of double slit.
15min in the latter case. In the plots of Fig. 4 we have the pattern that would
be observed in screens placed, respectively, along _x_ = 60 and _x_ = 500. In the
latter case we note that the local minima are lower and the curve smoother.
_3.3_ _Simulation_ _of_ _detectors_
Detectors are described by a collection _{Mm}_ of measurement operators which
satisfy the completeness equation, <sup>�</sup> _m_ <sup>_M †_</sup> _m_ <sup>_Mm_</sup> <sup>=</sup> <sup>_I_</sup> <sup>. The index</sup> <sup>_m_</sup> <sup>indicates the</sup>
_m_ <sup>_M †_</sup> _m_
satisfy the completeness equation, <sup>�</sup> _m_ <sup>_M †_</sup> _m_ <sup>_Mm_</sup> <sup>=</sup> <sup>_I_</sup> <sup>. The index</sup> <sup>_m_</sup> <sup>indicates the</sup>
result of the measurement. Before state _|_ Ψ _⟩_ is measured the probability that
result _m_ occurs is given by _p_ ( _m_ ) = _⟨_ Ψ _| Mm_ <sup>_†_</sup> <sup>_Mm_</sup> <sup>_|_</sup> <sup>Ψ</sup> <sup>_⟩_</sup> <sup>, and after the measurement</sup>
result _m_ occurs is given by _p_ ( _m_ ) = _⟨_ Ψ _| Mm_ <sup>_†_</sup> <sup>_Mm_</sup> <sup>_|_</sup> <sup>Ψ</sup> <sup>_⟩_</sup> <sup>, and after the measurement</sup>
the state collapses to _|_ Ψ <sup>_′_</sup> _⟩_ = _~~√~~_ _p_ <u>1(</u> _m_ ) <sup>_Mm |_</sup> <sup>Ψ</sup> <sup>_⟩_</sup> <sup>. In</sup> <sup>_qw2d_</sup> <sup>we may define an arbitrary</sup>
number of detectors specifying a list of coordinates ( _m_ 1 _, n_ 1) _, · · ·_ _,_ ( _mN_ _, nN_ ).
11
_p_ <u>1(</u> _m_ ) <sup>_Mm |_</sup> <sup>Ψ</sup> <sup>_⟩_</sup> <sup>. In</sup> <sup>_qw2d_</sup> <sup>we may define an arbitrary</sup>
100
75
50
25
0
-25
-50
-75
-100
-100 -75 -50 -25 0 25 50 75 100
x
(a) Contour plot of the final probability distribution
0.0018
0.0016
0.0014
0.0012
0.001
0.0008
0.0006
0.0004
0.0002
0
0 10 20 30 40 50 60 70 80
site number
(b) Simulation of observation screen
Fig. 5. Results of a double-slit experiment with Grover walker. Both the wall and
the observation screen are parallel to the secondary diagonal, and there is a detector
near one of the slits.
The measurement operators are
_M_ 0 = _I_ 4 _⊗_ _I∞_ _−_
_N_
_i_ =1
_Mi_ (11)
and
for 1 _≤_ _i ≤_ _N_ .
_Mi_ = _I_ 4 _⊗|mi, ni⟩⟨mi, ni|,_ (12)
In Fig. 5 we have the plots of another double-slit experiment. In this simulation
we use the Grover coin and place the wall parallel to the secondary diagonal.
The wall goes from ( _−_ 60 _, −_ 100) to (100 _,_ 60). One slit goes from (13 _, −_ 27) to
(15 _, −_ 25) and the other goes from (25 _, −_ 15) to (27 _, −_ 13). We have also placed
a detector near the first slit, at (15 _, −_ 27). The experiment was repeated ten
times in order to take the average of the results.
The positions of the detectors are defined in the main section of the input
file, by using the `DETECTORS` keyword followed by the number of detectors and
their respective coordinates. The number of repetitions of the experiment is
defined by using the `EXPERIMENTS` keyword. Here we have an example on how
to use these two keywords:
```
DETECTORS 1 15 -27
EXPERIMENTS 10
```
The observation screen, also placed parallel to the secondary diagonal, goes
from (20 _, −_ 100) to (100 _, −_ 20). The _x_ axis in Fig. 5(b) is labeled sequentially,
starting from the first point of the screen. We note in both plots that the
interference pattern was asymmetric and also weaker on the detector’s side.
12
_3.4_ _Simulation_ _of_ _finite_ _lattices_
The QWalk simulator can be used to simulate quantum walks on finite lattices.
In this Section we study the example of a square lattice but QWalk also
allows the definition of arbitrary boundaries. In the case addressed here, the
boundaries were generated by breaking the links over a square the vertices of
which are ( _−M, M_ ), ( _M, M_ ), ( _M, −M_ ) and ( _−M, −M_ ), as in [12]. Different
values of _M_ were investigated. The stationary distribution was approximated
by running the simulation for 5000 steps.
In order to calculate the total variation distance we must have the `MIXTIME`
keyword in the main section of the input file, followed by the number of steps
used to approximate the stationary distribution. This number should be higher
than—or at least equal to—the number of steps that will be simulated, and
the positions of permanent broken links must be correctly declared in order to
define a closed region of the lattice. Since the number of steps simulated may
be much greater than the size of the achievable lattice, we may improve the
performance of the simulation by using the `LATTSIZE` keyword. This keyword
declares that the lattice is only used from from _x_ = _−max_ to _x_ = _max_ and
from _y_ = _−max_ to _y_ = _max_, where _max_ is the integer number passed as argument of the `LATTSIZE` keyword. This option saves both memory and running
time and should be used whenever the walk is restricted to a finite region of
the lattice. The `LATTSIZE` keyword must be used _after_ the `STEPS` keyword.
For the previous example, taking _M_ = 60, we may prepare an input file with
the keywords
```
MIXTIME 5000
STEPS 2000
LATTSIZE 59
```
together with the keywords declaring the boundary,
```
BEGINBL
LINE -60 60 60 60 LINE 60 60 60 -60
LINE 60 -60 -60 -60 LINE -60 -60 -60 60
ENDBL
```
When the `MIXTIME` option is used, the approximate stationary distribution _πapp_
is obtained in the beginning of the simulation. Afterwards the _.sta_ output file
keeps the total variation distance, at each step, from the average distribution
to both the stationary and the uniform <sup>4</sup> distributions, so that the user may
easily plot this information with an appropriate software such as gnuplot.
4 In its present form, the simulator calculates the uniform distribution over all sites
of the mathematical lattice, not taking into consideration the particular boundary.
13
2
1.8
1.6
1.4
1.2
1
0.8
0.6
0.4
0.2
0
M=20
M=60
M=100
1 10 100 1000
time
M=20
M=60
M=100
0 400 800 1200 1600 2000
time
(b) Standard deviation
120
100
80
σ <sup>2</sup> 60
40
20
0
(a) Total variation distance
Fig. 6. Total variation distance between the average distribution and the approximate stationary distribution as a function of time; and evolution of the standard
deviation. Both plots refer to the Hadamard walk in the diagonal lattice and for
different sizes of square boxes.
Probability
0.0005
0.00045
0.0004
0.00035
0.0003
0.00025
0.0002
30
45
60
0.00015 30
0.0001 15
0
-15 y
-60 -45 -30 -15 0
-60 -45 -30 -15 0
x 15 30 45 -60
15
-15
0
-30
-45
Fig. 7. Stationary distribution approximated with 5000 steps and a box with
_M_ = 60.
In Fig. 6(a) we have the total variation distance between the average distribution and the approximate stationary distribution as a function of time, for the
Hadamard walk in a finite lattice with rectangular boundaries, for different
values of _M_ . In Fig. 6(b) we have the evolution of the standard deviation of
the Hadamard walk in the diagonal lattice for different values of _M_ . We find
in the _.sta_ output file enough information to generate this kind of plot with
just a few gnuplot commands, or with any other similar tool. We should note
that these plots are also consistent with the results obtained by Oliveira _et_
_al_ [12].
In Fig. 7 we have the approximate stationary distribution for the Hadamard
walk inside a box with _M_ = 60, which is visually different from the uniform
distribution. Moreover, one may also confirm with the output file from QWalk
that the average distribution does not converge to the uniform distribution
even for large times.
14
10
1
0.1
0.01
unitary decoherence
measurement decoherence
to stationary
to uniform
1 10 100 1000 10000
time
Fig. 8. Total variation distance as a function of time from the average distribution
for the decoherent two-dimensional walk to both the uniform and the coherent
stationary distributions. Two sources of noise are compared. The Hadamard coin
was used and the stationary distribution was approximated with 7 _·_ 10 <sup>4</sup> steps.
_3.5_ _Simulation_ _of_ _decoherence_
QWalk allows the simulation of two-dimensional quantum walks with two different sources of decoherence. The first of them is generated by measurements
from randomly disposed detectors. It is also possible to simulate a unitary
noise [16] which randomly opens links of the lattice. This noise model has
been studied for the quantum walk on a line [9] and on a plane [8].
The measurement decoherence is better observed in the simulation of finite lattices. In order to declare the probability of measuring each site we use `DTPROB`
keyword in the main section of the input file, followed by a numerical value. In
Fig. 8 we compare two kinds of noises—measurements and broken links—with
the same decoherence parameter _p_ = 0 _._ 01 and the same box size _M_ = 20. In
both cases the experiment was repeated ten times with the Hadamard coin
in order to take the average of the results. In the dotted lines we have the
results for the measurement decoherence and in the full lines we have the results for the unitary decoherence. In both cases we have the total variation
distance, as a function of time, between the average distribution and both
the uniform and the coherent stationary distributions. The stationary distribution was approximated with 7 _·_ 10 <sup>4</sup> steps. We note that in both cases the
average distribution initially approaches the coherent stationary distribution
until _∼_ 1 _/p_ time steps, going to the uniform distribution after that.
In Fig. 9 we have the result of a simulation of a Fourier walk with asymmetric
unitary decoherence. The results are similar to those obtained by [8]. We
declared a probability _p_ 0 = 0 of broken links in the secondary diagonal, and
a probability of _p_ 1 = 0 _._ 2 of broken links in the main diagonal. This kind of
simulation can be done with the `BLPROB` keyword, which must be followed by
the probabilities of broken links in each direction—in the secondary and the
15
Probability
0.0025
0.002
0.0015
0.001
0.0005
0
100
75
50
25
0
-25
-50
-75
-100
-100 -75 -50 -25 0 25 50 75 100
x
(b) Contour plot
0
x
-100 -75 -50 -25 0 25 50 75 100
y
-100 <sup>-75-50-25 0 25 50 75 100</sup>
x
(a) 3D plot
Fig. 9. Probability distribution after a hundred steps of a decoherent Fourier walker
in the diagonal lattice. The probability of broken links was asymmetric, namely
_p_ 0 = 0 in the secondary diagonal and _p_ 1 = 0 _._ 2 in the main diagonal.
in main diagonals, when the diagonal lattice is used; in the horizontal and in
the vertical directions, when the natural lattice is used instead.
_3.6_ _Simulations_ _in_ _one-dimensional_ _lattices_
The usage of _qw1d_ is analogous to that of _qw2d_, except for the absence of
some keywords. Namely, _qw1d_ does not recognize `SCREEN`, `BLPERMANENT` and
`DETECTORS` keywords and does not recognize `FOURIER` and `GROVER` sub-options
for coins and states. It does not recognize `DIAGONAL` or `NATURAL` sub-options
for `LATTYPE` either. On the other hand _qw1d_ works with three kinds of lattices, selected with `LATTYPE` keyword: the infinite line is selected by `LINE`
sub-option; the finite one-dimensional lattice with reflecting boundaries is selected by `SEGMENT` sub-option; and the cycle is selected by `CYCLE` sub-option.
Further information on the usage of _qw1d_ is provided together with the source
(or binary) files.
In Fig. 10 we have the probability distribution for a Hadamard walk in a onedimensional infinite lattice [11,17,18,19]. We compare the coherent-evolution
case with a decoherent one, where decoherence is introduced by random broken
links. We could have introduced decoherence by means of random measurements as well. The probability of broken links in the example is _p_ = 0 _._ 01. In
both the coherent and in the decoherent cases we have executed _T_ = 1000
steps with _qw1d_ . In the latter case we have taken as result the average over
a hundred independent experiments. We note in the figure that, due to the
number of steps being much higher than 1 _/p_, the classical behaviour of the
quantum walker has already emerged [9].
16
0.018
0.016
0.014
0.012
0.01
0.008
0.006
0.004
0.002
0
-1000 -800 -600 -400 -200 0 200 400 600 800 1000
x
(a) Simulation with _T_ = 1000 steps
and _p_ = 0
0.0018
0.0016
0.0014
0.0012
0.001
0.0008
0.0006
0.0004
0.0002
0
-1000 -800 -600 -400 -200 0 200 400 600 800 1000
x
(b) Simulation with _T_ = 1000 steps
and _p_ = 0 _._ 01, taking an ensemble of
100 experiments
Fig. 10. Quantum walk on a one-dimensional lattice with broken links.
0.09
0.08
0.07
0.06
0.05
0.04
0.03
0.02
0.01
0
0 20 40 60 80
limiting
uniform
0 20 40 60 80
x
0.014
0.0135
0.013
0.0125
0.012
0.0115
0.011
0.0105
0.01
0.0095
x
(a) Final probability distribution after
_T_ = 2 _·_ 10 <sup>4</sup> steps
(b) Stationary distribution approximated with _T_ = 10 <sup>5</sup> steps
Fig. 11. Quantum walk on the cycle with a hundred sites.
In Fig. 11 we have the result of a Hadamard walk on the cycle [10,11] with
a hundred sites after _T_ = 2 _·_ 10 <sup>4</sup> time steps. Aharonov _et_ _al_ [13] proved
that the quantum walk on a cycle with an odd number of sites mix to the
uniform distribution. The same, however, does not hold in general for cycles
with an even number of sites. This is clear in Fig. 11(b), where the stationary
distribution was approximated with a large number of steps. One can also
confirm this remark by using the information generated by QWalk to plot the
total variation distance to both the uniform distribution and the approximate
stationary distribution at each time step. The plot would show that the former
does not converge to zero while the latter does.
4 Conclusions
In this work we initially reviewed the basics of the discrete quantum walks
in infinite two-dimensional lattices with the possibility of broken links and
17
two different shift operators. The one-dimensional walk is a particular case of
the one described. We presented then the QWalk simulator and described its
usage. The QWalk is a quantum walk simulator for one- and two-dimensional
lattices. We showed by means of examples how QWalk can be used to simulate
double-slit experiments, walkers in finite lattices, detectors and two different
kinds of decoherence. Two kinds of lattices are available for two-dimensional
walks and three kinds of lattices for one-dimensional walks.
The simulations presented in this paper correspond to recent works in quantum
walks, and have been performed with quite simple commands of the QWalk
simulator. Apart from having simulated the available results of literature with
great precision, the simulator is also an important tool for researchers to carry
out new experiments.
One of the most important potentialities of this simulator is the possibility
of studying the walk with different boundaries, by defining permanent broken links appropriately. It also makes possible to investigate the influence of
detectors in the quantum walk, and the behaviour of the mixing time in different situations. The simulator can be useful to simulate interesting physical
settings, such as the double-slit experiment given as example.
In future versions some improvements may be introduced in QWalk. The sintax of the input file, for instance, would be better if one could use numerical constants instead of typing several digits when declaring custom coins or
states. The treatment of the broken links may also be improved in order to
simplify the definition of complex boundaries and to allow, for instance, the
definition of time-dependent broken links, which would allow moving boundary conditions. It may also be useful for the researcher that the simulator saves
output files with the wave-function in intermediate instants of the simulation.
It should also be interesting to measure the amount of entanglement during
the walk.
Acknowledgements. The authors thank Amanda Oliveira, Gonzalo Abal
and Raul Donangelo for important discussions. FLM also thanks CNPq (Brazilian scientific council) for financial support.
References
[1] Motwani, R. and Raghavan, P., _Randomized_ _Algorithms_, Cambridge University
Press, 1995.
[2] Aharonov, Y., Davidovich, L., and Zagury, N., Phys. Rev. A 48 (1993) 1687.
18
[3] Farhi, E. and Gutmann, S., Phys. Rev. A 58 (1998) 915.
[4] Shenvi, N., Kempe, J., and Whaley, K. B., Physical Review A 67 (2003) 052307.
[5] Ambainis, A., Quantum walk algorithm for element distinctness, in _Proceedings_
_of_ _the_ _45th_ _Annual_ _IEEE_ _Symposium_ _on_ _Foundations_ _of_ _Computer_ _Science_,
2004.
[6] Kempe, J., Quantum random walks hit exponentially faster, in _Proceedings_
_of_ _7th_ _Intern._ _Workshop_ _on_ _Randomization_ _and_ _Approximation_ _Techniques_ _in_
_Computer_ _Science_, pages 354–369, 2003, arXiv:quant-ph/0205083.
[7] Farhi, E., Goldstone, J., and Gutmann, S., A quantum algorithm for the
Hamiltonian NAND tree, 2007, arXiv:quant-ph/0702144v2, Report MIT-CTP3813.
[8] Oliveira, A., Portugal, R., and Donangelo, R., Phys. Rev. A 74 (2006) 012312.
[9] Romanelli, A., Siri, R., Abal, G., Auyuanet, A., and Donangelo, R., Physica A
347C (2005), arXiv:quant-ph/0403192.
[10] Kendon, V., Decoherence in quantum walks: a review, arXiv:quantph/0606016v3, 2006.
[11] Kendon, V. and Tregenna, B., Physical Review A 67 (2003) 042315.
[12] Oliveira, A., Portugal, R., and Donangelo, R., Two-dimensional quantum walks
with boundaries, in _Proceedings_ _of_ _1st_ _WECIQ_, pages 211–218, Pelotas, Brazil,
2006, UCPel.
[13] Aharonov, D., Ambainis, A., Kempe, J., and Vazirani, U., Quantum walks on
graphs, in _Proceedings_ _of_ _33th_ _STOC_, pages 50–59, ACM, 2001.
[14] Oliveira, A., Portugal, R., and Donangelo, R., Simulation of the single- and
double-slit experiments with quantum walkers, arXiv:0706.3181v1 [quant-ph],
2007.
[15] Inui, N., Konishi, Y., and Konno, N., Physical Review A 69 (2004) 052323.
[16] Shapira, D., Biham, O., Bracken, A., and Hackett, M., arXiv:quant-ph/0309063.
[17] Ambainis, A., Bach, E., Nayak, A., Vishwanath, A., and Watrous, J., One
dimensional quantum walks, in _Proceedings_ _of_ _33th_ _STOC_, pages 60–69, New
York, NY, 2001, ACM.
[18] Konno, N., Quantum Information Processing 1 (2002) 345, arXiv:quantph/0206053.
[19] Nayak, A. and Vishwanath, A., Quantum walk on a line, 2000, DIMACS
Technical Report 2000-43, arXiv:quant-ph/0010117.
19
A Further options available in the simulator
In this Appendix we describe the options that were not used in the examples.
The `CHECK` keyword requests that some consistency checks be carried out during simulation. A sub-option is expected after this keyword: the `STATEPROB`
sub-option declares that the unitarity of the state should be checked at each
step of simulation; and the `SYMMETRY` sub-option, that the symmetry of the
probability distribution is to be checked. Naturally, the latter sub-option
should only be used when the symmetry of the probability distribution is
suspected _a_ _priori_, in order to confirm that suspicion. In two-dimensional
simulations we may select two kinds of symmetry checking. The `XSYMMETRY`
sub-option checks the symmetry around _x_ axis, i.e., checks if the probability
at site ( _x, y_ ) is the same as the probability at site ( _−x, y_ ), for all _x, y_ in the
lattice. Analogously, we have the `YSYMMETRY` sub-options.
In order to define a custom coin we must have a `COIN` `CUSTOM` command in
the main section of the input file and must describe the coin on a separated
section in the same file. This section must be delimited by `BEGINCOIN` and
`ENDCOIN` keywords, and must contain all the entries of the coin matrix, from
left to right and from top to bottom, with real and imaginary parts separated
by a blank space. For instance, the code
```
BEGINCOIN
0.707106781186 0.0 0.0 0.707106781186
0.0 0.707106781186 0.707106781186 0.0
ENDCOIN
```
defines, in one-dimensional walks, the coin
1 _i_
_i_ 1
_._ (A.1)
_C_ = _~~√~~_ <sup><u>1</u></sup>
2
In two-dimensional simulations the description of the coin is analogous.
In order to define a custom state we must have a `STATE` `CUSTOM` command
in the main section of the input file and must describe the coin on a separated section in the same file. This section must be delimited by `BEGINSTATE`
and `ENDSTATE` keywords, and must contain all the non-zero amplitudes of the
initial state, with real and imaginary parts separated by a blank space. In
one-dimensional simulations each of these amplitudes must be preceded by
two integers: the first indicating the coin and the second indicating the position of the walker in that basis state. For instance, the code
20
```
BEGINSTATE
1 0 0.0 1.0
ENDSTATE
```
defines, in one-dimensional walks, the initial state
_|_ Ψ0 _⟩_ = _i |_ 1 _⟩|_ 0 _⟩_ _._ (A.2)
In two-dimensional simulations the description of the state is analogous except
that it requires two integers for the coin and two integers for the position of
the walker.
The `SEED` keyword manually sets a random seed for the random number generator. The default is a number obtained from the system clock and usually
the user should not change this.
In two-dimensional walks the `AFTERMEASURE` keyword defines the number of
iterations that will be carried out after a non-trivial measurement, i.e., after
the result of a measurement corresponds to one of the detectors instead of its
complement.
`LATTEXTRA` keyword is used quite rarely. It defines an extra space to be reserved for the lattice in order to avoid access to invalid regions of memory
during simulation. Its default value is 1 and normally this value should not be
changed by the user. When this keyword is used together with `LATTSIZE` and
`STEPS` there is a correct order that must be respected: first `LATTEXTRA`, then
`STEPS` and finally `LATTSIZE` . Using `LATTEXTRA` keyword may cause QWalk to
provide bad gnuplot scripts. In this case the user should fix the script, providing appropriate ranges and “tics”.
21
섹션 본문
섹션 본문이 없습니다.
참고문헌
참고문헌 정보가 없습니다.