
TL;DR
This paper introduces a new type of quantum walk on weighted graphs, generalizing existing models, and demonstrates its applications to quantum search algorithms with improved success probabilities.
Contribution
It defines a discrete-time coined quantum walk on weighted graphs and extends lackadaisical quantum walks to real-valued self-loop weights, with applications to quantum search and dispersion analysis.
Findings
Weighted quantum walk equivalent to a deformed Grover walk with faster dispersion
Improved success probability in weighted quantum search for certain self-loop weights
Generalization of lackadaisical quantum walks to real-valued self-loops
Abstract
We define a discrete-time, coined quantum walk on weighted graphs that is inspired by Szegedy's quantum walk. Using this, we prove that many lackadaisical quantum walks, where each vertex has integer self-loops, can be generalized to a quantum walk where each vertex has a single self-loop of real-valued weight . We apply this real-valued lackadaisical quantum walk to two problems. First, we analyze it on the line or one-dimensional lattice, showing that it is exactly equivalent to a continuous deformation of the three-state Grover walk with faster ballistic dispersion. Second, we generalize Grover's algorithm, or search on the complete graph, to have a weighted self-loop at each vertex, yielding an improved success probability when .
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Coined Quantum Walks on Weighted Graphs
Thomas G Wong
Department of Computer Science, University of Texas at Austin, 2317 Speedway, Austin, Texas 78712, USA
Currently at Department of Physics, Creighton University, 2500 California Plaza, Omaha, Nebraska 68178, USA
Abstract
We define a discrete-time, coined quantum walk on weighted graphs that is inspired by Szegedy’s quantum walk. Using this, we prove that many lackadaisical quantum walks, where each vertex has integer self-loops, can be generalized to a quantum walk where each vertex has a single self-loop of real-valued weight . We apply this real-valued lackadaisical quantum walk to two problems. First, we analyze it on the line or one-dimensional lattice, showing that it is exactly equivalent to a continuous deformation of the three-state Grover walk with faster ballistic dispersion. Second, we generalize Grover’s algorithm, or search on the complete graph, to have a weighted self-loop at each vertex, yielding an improved success probability when .
pacs:
03.67.Ac, 02.10.Ox
1 Introduction
Quantum walks are a universal model of quantum computation [1] that have been used to develop a variety of quantum algorithms, including for searching [2], element distinctness [3], and boolean formula evaluation [4]. In these algorithms, the quantum walk occurs on unweighted graphs, or equivalently where each edge of the graph has unit weight.
Despite this success of quantum walks on unweighted graphs, several papers have identified improvements for quantum walks when using weighted graphs. For continuous-time quantum walks, this includes state transfer [5, 6], universal mixing [7], and searching [8, 9]. For discrete-time quantum walks, Szegedy’s quantum walk [10] is naturally defined on weighted graphs by quantizing Markov chains with arbitrary transition amplitudes. Although Szegedy’s quantum walk is equivalent to a coined quantum walk under certain conditions ([11] in the context of searching, and [12] for undirected and unweighted Markov chains), this equivalence has received less attention than it deserves. As a result, coined quantum walks are usually not understood, investigated, or interpreted as walks on weighted graphs. In this paper, we remedy this by giving an explicit definition of a coined quantum walk on a weighted graph that is inspired by Szegedy’s quantum walk. When this coined quantum walk on a weighted graph uses the flip-flop shift to hop between vertices, it is exactly equivalent to Szegedy’s quantum walk. When it uses the moving shift, however, it differs and is a new type of walk. In the next section, we discuss this in detail by reviewing the definition of the coined quantum walk, Szegedy’s quantum walk, and their precise equivalence [12]. Then we define the coined quantum walk on weighted graphs by taking inspiration from Szegedy’s quantum walk. Then in section 3, we analyze the coin operator for the coined quantum walk on weighted graphs, showing that it no longer performs an inversion about the average that the unweighted coin does.
In section 4, we prove that if multiple edges of an unweighted graph evolve identically, they can be replaced with a single weighted edge. This naturally leads to a generalization of the lackadaisical quantum walk [13]. The lackadaisical quantum walk is a quantum analogue of a lazy random walk, where each vertex is given integer self-loops, so the particle has some amplitude of staying put. Typically, the self-loops at each vertex of a lackadaisical quantum walk evolve identically, so they can be replaced by a single self-loop of weight at each vertex. Then when is an integer, it reproduces the behavior of the original lackadaisical quantum walk. But now can also take non-integer real values, thus defining a generalization of the lackadaisical quantum walk to real-valued weights.
We analyze this generalized lackadaisical quantum walk for two problems. In section 5, we consider the walk on the line or one-dimensional (1D) lattice. For the standard lackadaisical quantum walk with an integer number of self-loops per vertex, this was investigated by [14], who showed that the ballistic dispersion can be faster than, slower than, or the same as the loopless walk. Replacing the integer self-loops with a single self-loop of weight , we show that the generalized lackadaisical quantum walk on the line is exactly equivalent to a continuous deformation of the three-state Grover walk proposed by Štefaňák et al [15].
In section 6, we investigate quantum search on the complete graph, which is the quantum walk-formulation of Grover’s unstructured search algorithm [16]. This was the problem that introduced lackadaisical quantum walks [13], and with integer self-loops per vertex, the success probability is improved over the loopless value when [13]. Generalizing the lackadaisical quantum walk so that can take non-integer values, we determine the runtime and success probability of the algorithm for all real , and this includes qualitatively new behavior when . This reveals that the success probability is improved over the loopless case when . Finally, we end in section 7 with concluding remarks.
2 Definition
The coined quantum walk was first introduced by Meyer [17] in the context of quantum cellular automata, who showed that an internal degree of freedom allowed the particle to evolve nontrivially. This was later framed in the language of quantum walks by Aharonov et al [18]. The particle hops on the vertices of a graph, and the internal coin state identifies the directions in which the particle can hop. We write the states as to denote a particle at vertex pointing towards vertex . The quantum walk is effected by a coin flip and a shift , so one step of the walk is
[TABLE]
The coin operator applies a coin to each vertex :
[TABLE]
where is typically the Grover diffusion coin [19]
[TABLE]
that reflects across
[TABLE]
This corresponds to a quantum walk on an unweighted graph because is the uniform, unweighted superposition of directions at .
For the shift , two different operators are often used. The first is the “moving shift” on a lattice, where a particle hops and keeps pointing in the same direction [17, 20]. For example, on the line, a particle pointing right will hop to the right and continue pointing right, so . The second is the “flip-flop shift,” where the particle hops and turns around [21], so . The flip-flop shift is more straightforward than the moving shift on nonlattice graphs, and it is needed for fast quantum search on lattices [21].
To define a coined quantum walk on weighted graphs, we will need to generalize (4) to weighted graphs, which in turn changes the coin operator (3). The shift does not need to be changed. We can determine for a weighted graph using Szegedy’s quantum walk.
Szegedy’s quantum walk [10] is a quantization of a classical random walk or Markov chain. For example, consider the weighted graph in figure 1a. Its classical transition probabilities are
[TABLE]
where is the probability of transitioning from vertex to , and the remaining transitions have probability 0. Szegedy’s quantum walk occurs on the edges of the bipartite double cover of the original graph, which is shown in figure 1b. If we label the partite sets and , the walk evolves by repeated applications of
[TABLE]
where the operators
[TABLE]
are reflections across the states
[TABLE]
where denotes the edge connecting vertices and . For example, for the weighted graph in figure 1, with reflects across the state
[TABLE]
For unweighted graphs, it is known that two steps of the coined quantum walk with the flip-flop shift are equivalent to one step of Szegedy’s quantum walk [11, 12]. More precisely, using the bijection that an edge connecting to (in the bipartite double cover) in Szegedy’s quantum walk corresponds to a coined particle at vertex pointing to vertex (in the original graph), the relationships between the operators are and [12]. Then , so two steps of the coined quantum walk are equal to one step of Szegedy’s.
To preserve this relationship for weighted graphs, we use to equate (2) and (5). Doing this, we identify
[TABLE]
where is the weight of the edge connecting vertices and . For example, for the weighted graph in figure 1a,
[TABLE]
When the graph is unweighted (i.e., for all ), (6) reduces to the uniform superposition (4). This yields our definition of a coined quantum walk on a weighted graph: We evolve by repeatedly applying (1) with the Grover diffusion coin (3) that reflects across the weighted state (6).
This definition of a coined quantum walk on a weighted graph preserves the relationships and when is the flip-flop shift, so two steps of the coined quantum walk with the flip-flop shift are equal to one step of Szegedy’s, even for weighted graphs. If the moving shift is used, however, it is a different walk.
3 Weighted Coin and Inversions
Now let us examine in detail how the weighted coin operator reflects across (6) and how it differs from the unweighted coin. As a concrete example, let us again consider the graph in figure 1a, and say the particle is at vertex [math] and points to vertices , , , and with respective amplitudes , , , and . That is, the particle is in the state with
[TABLE]
The weighted coin acts on this state by
[TABLE]
where
[TABLE]
Since is an inversion of about , we see that the amplitude pointing towards is inverted about , and the other amplitudes are inverted about .
Generalizing this to an arbitrary weighted graph, if the state of the system is
[TABLE]
then the coin inverts the amplitudes to yield
[TABLE]
where
[TABLE]
If the graph is unweighted, so for all , then is the average of the amplitudes pointing from to its neighbors. Then the amplitudes are inverted about their mean (see Lemma 2 of [22]), and this is akin to the “inversion about the mean” of Grover’s algorithm [16]. With weights, is no longer the mean, so the coin is no longer an inversion about the mean.
4 Identically-Evolving Edges to a Weighted Edge
In this section, we show that some quantum walks on unweighted graphs can be reinterpreted as quantum walks on weighted graphs by combining identically-evolving amplitudes. When we apply this result to lackadaisical quantum walks, it allows us to replace the self-loops at a vertex with one self-loop of weight .
Say we have an unweighted graph where a vertex has degree , so a particle at vertex can point in different directions. Then the state of a particle at vertex can be written as
[TABLE]
The Grover diffusion coin transforms this to
[TABLE]
where
[TABLE]
is the average of the amplitudes [22]. So it inverts each amplitude about the average.
Now say of the amplitudes evolve identically due to the symmetry of the graph. For example, for a lackadaisical quantum walk, the amplitudes along the self-loops at a vertex often evolve identically. Without loss of generality, say this corresponds to the first basis states, i.e.,
[TABLE]
Using this, let us reduce (9), (10), and (11) to a subspace. The state of the system (9) can be written as
[TABLE]
where
[TABLE]
is the uniform superposition of the identically-evolving states, and
[TABLE]
is its corresponding amplitude. So we have written the state in a -dimensional subspace. Now for (10), we can reduce it to the same subspace:
[TABLE]
Finally, we can rewrite (11) as
[TABLE]
Comparing this with the inversion of a weighted graph in (7) and (8), we see that the uniform superposition of identically-evolving edges evolves exactly like an edge of weight , while the remaining edges continue to be unweighted. Thus identically-evolving, unweighted edges can be replaced by a single edge of weight . Hence for a lackadaisical quantum walk, if the self-loops at a vertex evolve identically, they can be replaced by a single self-loop of weight . This generalizes the values that can take from the integers to the reals.
In the next two sections, we apply this reduction and generalization of the lackadaisical quantum walk to two examples. The first is the quantum walk on the line, whose generalization is exactly equivalent to another type of quantum walk. The second is quantum search on the complete graph, where additional analysis is needed to get the runtime and success probability for all values of .
5 Walk on the Line
For our first example, consider a quantum walk on the line. The lackadaisical case of self-loops per vertex, as depicted in figure 2a, was explored by [14] with the moving shift. Their initial state was a particle localized at vertex [math] with amplitude in the left- and right-moving coin states only, so there was no initial amplitude along the self-loops. They showed that the more self loops, the faster the ballistic dispersion, with the velocities of the peaks equal to . This is illustrated in figure 3, where the dashed red curve with spreads more quickly than the loopless solid black curve.
Due to the symmetry of the evolution, the amplitudes along the self-loops at a vertex evolve identically. Then from section 4, we can replace them with a single self-loop of weight , as shown in figure 2b. The results from [14] carry over to this generalized case, such as the peak velocities being , except can now take non-integer values.
Let us analyze this generalized lackadaisical quantum walk more closely so that we can connect it to other work. At each vertex, a particle can point to the left, to itself through the weighted self-loop (i.e., stay), or to the right. Let us call these coin states , , and . Then (6) for each vertex is
[TABLE]
Then in the basis, (3) can be written as a matrix
[TABLE]
After applying at each vertex , the moving shift is applied, completing a step of the quantum walk (1).
Now let us consider another type of quantum walk called a three-state quantum walk [23], which we will later prove is equivalent to the above lackadaisical quantum walk on the line. The three-state quantum walk is a quantum walk on the line with three internal coin states, one pointing left, one to stay, and one pointing right, corresponding to the coin basis states , , and . The original three-state quantum walk [23] simply applies the unweighted Grover diffusion coin (4) followed by the moving shift. Štefaňák et al, however, considered the 1D walk with deformations of the Grover coin, firstly by deforming its eigenvalues and secondly by deforming its eigenvectors. The second deformation uses the coin operator given by Eq. (14) of [15]:
[TABLE]
where is a continuous parameter with the unweighted Grover diffusion coin corresponding to . The coin is followed by the moving shift, and they showed that the velocity at which the peaks travel is . So as increases, the speed of the ballistic dispersion also increases.
Štefaňák et al’s deformed coin operator equals the 1D lackadaisical quantum walk’s coin with
[TABLE]
So their walk is exactly a generalized lackadaisical quantum walk with a weighted self-loop, and all their results carry over. This gives a new interpretation of Štefaňák et al’s result, not as an eigenvector deformation, but as a coined quantum walk on the line with a weighted self-loop at each vertex.
The improved dispersion of the lackadaisical quantum walk on the line necessitates the moving shift. In the loopless case, both the moving and flip-flop shifts effect the same evolution for the initially unbiased state [24]. With self-loops, however, their evolutions are significantly different, as shown in figure 3, where the dashed red curve corresponds to the moving shift and the dot-dashed green curve to the flip-flop shift, both with . Whereas the moving shift’s dispersion is faster, the flip-flop shift’s is slower.
6 Search on the Complete Graph
For our second example, consider search on the complete graph, which corresponds to Grover’s unstructured search problem, by lackadaisical quantum walk. This was first explored in [13] with self-loops per vertex, as illustrated in figure 4a. Due to the symmetry of the problem, at each vertex, the amplitudes along the self-loops evolve identically. Then from section 4, we can replace them with a single self-loop of weight , as shown in figure 4b. The analysis from [13] carries over to our generalized walk with real when . We will give new analysis for , thus completely characterizing the runtime and success probability of the algorithm for all real .
First let us carry over the results from [13]. As shown there, from the symmetry of the problem, there are only two types of vertices, the marked vertex and the unmarked vertices, depicted in figure 4b. A particle at the vertex can either point to itself or to vertices, and a particle at a vertex can either point to the vertex or to vertices (including itself). Then the system evolves in a 4D subspace spanned by
[TABLE]
In this basis, the initial state of the system is
[TABLE]
The system evolves by repeatedly applying
[TABLE]
where is an oracle query that flips the amplitudes at the marked vertex, is the Grover diffusion coin as before (2), and is the flip-flop shift. So performs an oracle query followed by a step of the quantum walk. In the 4D subspace, it is
[TABLE]
where
[TABLE]
and
[TABLE]
The probability of finding the particle at the marked vertex after steps is given by . This is plotted in figure 5 as the system evolves for various values of . In the loopless case, the success probability reaches after applications of . As increases, the maximum success probability increases until it reaches at . Further increasing causes the success probability to decrease. We also see in figure 5a that when , the peak contains two humps, while when , the peak only has one hump. This transition at will be proved rigorously, and it foreshadows that the analysis from [13], while applying to , does not apply to .
Since is a 4D matrix, it has four eigenvectors and corresponding eigenvalues, given in [13]. The initial state can be expressed in terms of these eigenvectors, and then it is straightforward to determine the state after applications of . For large , it is
[TABLE]
where
[TABLE]
Then the success probability is asymptotically given by the sum of the squares of the first two terms:
[TABLE]
For large , this further simplifies to
[TABLE]
To find the maximum success probability and the time at which it occurs, we take the first derivative of this, yielding
[TABLE]
Setting this equal to zero, we get two solutions for the runtime :
[TABLE]
The first solution was explored in [13]. For the second solution, the argument of the inverse cosine is for large . This argument has magnitude less than when and greater than when , resulting in real and complex runtimes, respectively. Thus we use this solution when and the first solution when . Approximating for large and , we get a runtime of
[TABLE]
when . Plugging this into and keeping the dominant term for large , the corresponding success probability is
[TABLE]
Putting these results together with the results from [13], we get
[TABLE]
and
[TABLE]
Thus we have completely characterized the runtime and success probability of the algorithm for real .
Finally, note that the success probability is greater than the loopless value of when
[TABLE]
Recall that the standard lackadaisical quantum walk with integer self-loops per vertex had , so the generalized walk has a larger range of values of that boost the success probability of a single iteration of the search algorithm.
7 Conclusion
Quantum walks are one of the primary means of developing quantum algorithms. The utility of walking on weighted graphs has been explored in several contexts, and we defined a discrete-time coined quantum walk on weighted graphs. The resulting coin operation is no longer an inversion about the average. With the flip-flop shift, two applications of this coined quantum walk is exactly equivalent to one application of Szegedy’s quantum walk. With the moving shift, however, it is a new type of walk.
This allows lackadaisical quantum walks to be reduced and generalized by replacing, at each vertex, the identically-evolving self-loops with a single self-loop of weight . When is an integer, the resulting walks are identical, but now can also take non-integer values.
We explored this for a walk on the line, showing that Štefaňák et al’s [15] deformation of the three-state Grover walk is precisely the generalized lackadaisical quantum walk. This utilizes the moving shift, and the analytics of the evolution with the flip-flop shift is an open question.
We also explored search on the complete graph, which is equivalent to Grover’s unstructured search problem. In doing so, the results for a regular lackadaisical quantum walk with self-loops per vertex directly carry over to the generalized case when . We provided new analysis, however, for when . This completely characterizes the generalized lackadaisical quantum walk for this search problem.
Further research includes applications of the generalized lackadaisical quantum walk to other quantum walk-based algorithms or spatial search problems.
This work was supported by the U.S. Department of Defense Vannevar Bush Faculty Fellowship of Scott Aaronson.
References
- [1]
Childs A M 2009 Universal computation by quantum walk Phys. Rev. Lett. 102 180501
- [2]
Shenvi N, Kempe J and Whaley K B 2003 Quantum random-walk search algorithm Phys. Rev. A 67 052307
- [3]
Ambainis A 2004 Quantum walk algorithm for element distinctness Proc. 45th Annual IEEE Symp. Found. Comput. Sci. FOCS ’04 (IEEE Computer Society) pp. 22–31
- [4]
Farhi E, Goldstone J and Gutmann S 2008 A quantum algorithm for the Hamiltonian NAND tree Theory Comput. 4(8) 169–190
- [5]
Christandl M, Datta N, Ekert A and Landahl A J 2004 Perfect state transfer in quantum spin networks Phys. Rev. Lett. 92 187902
- [6]
Kendon V M and Tamon C 2011 Perfect state transfer in quantum walks on graphs Journal of Computational and Theoretical Nanoscience 8(3) 422–433
- [7]
Carlson W, Ford A, Harris E, Rosen J, Tamon C and Wrobel K 2007 Universal mixing of quantum walk on graphs Quantum Inf. Comput. 7(8) 738–751
- [8]
Wong T G 2015 Faster quantum walk search on a weighted graph Phys. Rev. A 92 032320
- [9]
Wong T G and Philipp P 2016 Engineering the success of quantum walk search using weighted graphs Phys. Rev. A 94 022304
- [10]
Szegedy M 2004 Quantum speed-up of Markov chain based algorithms Proc. 45th Annual IEEE Symp. Found. Comput. Sci. FOCS ’04 (Washington, DC, USA: IEEE Computer Society) pp. 32–41
- [11]
Magniez F, Nayak A, Richter P C and Santha M 2012 On the hitting times of quantum versus random walks Algorithmica 63(1) 91–116
- [12]
Wong T G 2017 Equivalence of Szegedy’s and coined quantum walks Quantum Inf. Process. 16(9) 215
- [13]
Wong T G 2015 Grover search with lackadaisical quantum walks J. Phys. A: Math. Theor. 48(43) 435304
- [14]
Wang K, Wu N, Xu P and Song F 2016 The lackadaisical quantum walker is NOT lazy at all arXiv:1612.03370 [quant-ph]
- [15]
Štefaňák M, Bezděková I and Jex I 2012 Continuous deformations of the grover walk preserving localization The European Physical Journal D 66(5) 142
- [16]
Grover L K 1996 A fast quantum mechanical algorithm for database search Proc. 28th Annual ACM Symp. Theory Comput. STOC ’96 (New York, NY, USA: ACM) pp. 212–219
- [17]
Meyer D A 1996 From quantum cellular automata to quantum lattice gases J. Stat. Phys. 85(5-6) 551–574
- [18]
Aharonov D, Ambainis A, Kempe J and Vazirani U 2001 Quantum walks on graphs Proc. 33rd Annual ACM Symp. Theory Comput. STOC ’01 (New York, NY, USA: ACM) pp. 50–59 ISBN 1-58113-349-9
- [19]
Moore C and Russell A 2002 Quantum walks on the hypercube Proc. 6th Int. Workshop on Randomization and Approximation Techniques in Comput. Sci. RANDOM 2002 (Berlin, Heidelberg: Springer) pp. 164–178 ISBN 978-3-540-45726-8
- [20]
Ambainis A, Bach E, Nayak A, Vishwanath A and Watrous J 2001 One-dimensional quantum walks Proc. 33rd Annual ACM Symp. Theory Comput. STOC ’01 (New York, NY, USA: ACM) pp. 37–49 ISBN 1-58113-349-9
- [21]
Ambainis A, Kempe J and Rivosh A 2005 Coins make quantum walks faster Proc. 16th Annual ACM-SIAM Symp. Discrete Algorithms SODA ’05 (Philadelphia, PA, USA: SIAM) pp. 1099–1108 ISBN 0-89871-585-7
- [22]
Ambainis A, Prūsis K, Vihrovs J and Wong T G 2016 Oscillatory localization of quantum walks analyzed by classical electric circuits Phys. Rev. A 94 062324
- [23]
Inui N, Konno N and Segawa E 2005 One-dimensional three-state quantum walk Phys. Rev. E 72 056112
- [24]
Wong T G 2015 Quantum walk on the line through potential barriers Quantum Inf. Process. 15(2) 675–688
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Childs A M 2009 Universal computation by quantum walk Phys. Rev. Lett. 102 180501
- 2[2] Shenvi N, Kempe J and Whaley K B 2003 Quantum random-walk search algorithm Phys. Rev. A 67 052307
- 3[3] Ambainis A 2004 Quantum walk algorithm for element distinctness Proc. 45th Annual IEEE Symp. Found. Comput. Sci. FOCS ’04 (IEEE Computer Society) pp. 22–31
- 4[4] Farhi E, Goldstone J and Gutmann S 2008 A quantum algorithm for the Hamiltonian NAND tree Theory Comput. 4 (8) 169–190
- 5[5] Christandl M, Datta N, Ekert A and Landahl A J 2004 Perfect state transfer in quantum spin networks Phys. Rev. Lett. 92 187902
- 6[6] Kendon V M and Tamon C 2011 Perfect state transfer in quantum walks on graphs Journal of Computational and Theoretical Nanoscience 8 (3) 422–433
- 7[7] Carlson W, Ford A, Harris E, Rosen J, Tamon C and Wrobel K 2007 Universal mixing of quantum walk on graphs Quantum Inf. Comput. 7 (8) 738–751
- 8[8] Wong T G 2015 Faster quantum walk search on a weighted graph Phys. Rev. A 92 032320
