This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

A Mathematical Framework for Maze Solving Using Quantum Walks

Leo Matsuoka111 Faculty of Engineering, Hiroshima Institute of Technology, Hiroshima 731-5193, Japan; E-mail: [email protected],  Hiromichi Ohno222 Department of Mathematics, Faculty of Engineering, Shinshu University, 4-17-1 Wakasato, Nagano 380-8553, Japan; E-mail: [email protected],  Etsuo Segawa333 Graduate School of Environment Information Sciences, Yokohama National University, Yokohama 240-8501, Japan; E-mail: [email protected]

Abstract

We provide a mathematical framework for identifying the shortest path in a maze using a Grover walk, which becomes non-unitary by introducing absorbing holes. In this study, we define the maze as a network with vertices connected by unweighted edges. Our analysis of the stationary state of the Grover walk on finite graphs, where we strategically place absorbing holes and self-loops on specific vertices, demonstrates that this approach can effectively solve mazes. By setting arbitrary start and goal vertices in the underlying graph, we obtain the following long-time results: (i) in tree structures, the probability amplitude is concentrated exclusively along the shortest path between start and goal; (ii) in ladder-like structures with additional paths, the probability amplitude is maximized near the shortest path.

1 Introduction

The development of algorithms for finding the shortest path in networks has a rich history [12, 7] and plays an important role in a wide array of practical applications in our daily lives, such as in car navigation systems. The term ’networks’ includes various forms, from physical structures like roads and power lines to more abstract ideas. From the study of networks, a larger field known as complex networks has emerged [34, 5], which has recently expanded its focus to include quantum mechanics [4]. The maze-solving problem can be viewed as a fundamental case of the shortest path problem in networks. Here, we define a maze as a network consisting of unweighted edges that represent distance parameters. Consequently, maze-solving techniques are regarded as a subset of the shortest path problem, with various algorithms, including breadth-first search [9], Dijkstra’s algorithm [11], and the Bellman–Ford algorithm [3], having been developed in classical settings.

The challenge of solving mazes has become an important area of research in the field of natural computing. Various natural phenomena, such as slime molds [27, 35], the Belousov–Zhabotinsky (BZ) reaction [33], electrical discharges [30], and the propagation of light in waveguides [6], have mechanisms that can effectively navigate mazes. While humans typically rely on intelligence to solve such problems, nature’s ability to accomplish the same task highlights that intelligence is not strictly necessary; instead, the key lies in algorithms governed by simple rules.

In exploring networks like mazes, the movement of a probabilistic walker throughout the network represents a specific type of algorithm. In classical exploration methods, the walker corresponds to probability density, while in quantum exploration methods, it relates to probability amplitude. The basic approach to classical exploration is the random walk. Quantum walks have been introduced as the quantum version of random walks and are expected to improve effectiveness in exploration problems because their probability propagation speed is directly proportional to time, unlike random walks, where it is proportional to the square root of time [16, 2]. Furthermore, quantum walks can utilize the interference of probability amplitudes, providing another advantage in exploration tasks.

The maze-solving approach utilizing quantum walks is derived from quantum search [32, 8, 1, 28]. Investigating specific points in a network using quantum walks is similar to implementing Grover’s algorithm on structured networks [17]. Koch et al. extended their research on identifying structural anomalies in networks [15, 22, 10] and demonstrated that executing a Grover walk in a maze—where the vertices at the start and goal undergo phase inversion—can result in the temporary identification of the shortest path [29, 24, 23, 21]. In contrast, Matsuoka et al. advanced the study of quantum walks by accounting for both inflow and outflow [13, 14, 20, 18, 19, 25, 31], creating a more robust and versatile approach [26]. In our paper, by integrating self-loop structures at the maze’s start and goal, along with incorporating holes that absorb probability amplitudes, we introduce the navigation vector which is induced by the fundamental cycles and the shortest path between the pair of the vertices having the self-loop of the underlying graph. Our mathematical results tells us that a quantum walker takes a time to find autonomously the navigation vector, and as a result, it clings along the shortest path between the start and goal of some mazes in the stationary state. Although Matsuoka et al.’s method is not suitable for mazes with cycles that have an odd number of nodes, it has been shown to extend to tree structures and ladder configurations featuring multiple paths. Furthermore, since all time evolution can be expressed as the problem of matrix exponentiation defined by the network structure, this approach enables efficient computations using GPUs, independent of the number of steps or vertices, suggesting its potential as a classical algorithm inspired by quantum mechanics.

In this paper, we present a mathematical reconstruction of the maze-solving method utilizing Grover walk, leading to an explicit derivation of its limit distribution. In Section 2, we outline the detailed structure of the graph that represents the maze and discuss the time evolution of the Grover walk. We also examine the spectral properties of the Grover walk in this context, demonstrating that the probability distribution in the long-time limit is determined by the overlap between the initial state and the eigenspace associated with the eigenvalue 1-1, known as the navigation vector. In Section 3, we detail the limit distribution of the Grover walk specifically for tree structures and ladder graphs.

2 Settings and properties of Grover walk

2.1 Settings


Let Go=(Vo,Ao)G_{o}=(V_{o},A_{o}) be a finite connected and symmetric digraph such that an arc aAoa\in A_{o} if and only if its inverse arc a¯Ao\bar{a}\in A_{o}. The origin and terminal vertices of aAoa\in A_{o} are denoted by o(a)Voo(a)\in V_{o} and t(a)Vot(a)\in V_{o}, respectively. We assume that GoG_{o} has no multiple arcs and self-loops. This symmetric digraph GoG_{o} is called the underlying graph.

In this paper, we consider the problem of solving a maze by using a quantum walk. The maze is regarded as the underlying graph GoG_{o}. To let the quantum walk solve the maze, we slightly deform the underlying graph as follows. The start and goal of the maze can be placed at any vertex in VoV_{o}, and they are indexed by ss and gg, respectively. To find a route from ss to gg, we add one self-loop each to vertices ss and gg, which are also indexed by ss and gg. We also add a vertex which is called sink and indexed by dd. The sink is connected only to the start vertex ss. The arc which connects ss and dd is also indexed by dd, where o(d)=so(d)=s and t(d)=dt(d)=d. In the following, the graph induced by the underlying graph GoG_{o} is denoted by G=(V,A)G=(V,A); the digraph GG contains these self-loops, the sink vertex and arcs connecting to the start and the sink vertices. (See Figure 1). The degree of vVv\in V is given by

deg(v)=|{aA|t(a)=v}|.{\rm deg}(v)=|\{a\in A\,|\,t(a)=v\}|.

By the symmetry of the digraph, the equation deg(v)=|{aA|o(a)=v}|{\rm deg}(v)=|\{a\in A\,|\,o(a)=v\}| holds.

Refer to caption
Figure 1: Setup of the start and goal with self-loops and a sink.

The Hilbert space w.r.t. arcs is defined by

A={ξ:A}.{\mathcal{H}}_{A}=\left\{\xi\colon A\to{\mathbb{C}}\right\}.

We use the Grover walk UU on A{\mathcal{H}}_{A} defined by

(Uξ)(a)=ξ(a¯)+2deg(o(a))t(b)=o(a)ξ(b)(U\xi)(a)=-\xi(\bar{a})+\frac{2}{{\rm deg}(o(a))}\sum_{t(b)=o(a)}\xi(b)

for any ξA\xi\in{\mathcal{H}}_{A}. The initial state is

ζ(a)={1(a=s)0(as).\zeta(a)=\begin{cases}1&(a=s)\\ 0&(a\neq s)\end{cases}.

We want to assume that the quantum walker at the sink goes away and never comes back. To represent this, we use the projection PP given by

(Pξ)(a)={ξ(a)ad,d¯0a=d,d¯.(P\xi)(a)=\begin{cases}\xi(a)&a\neq d,\bar{d}\\ 0&a=d,\bar{d}\end{cases}. (2.1)

For n=0,1,2,n=0,1,2,\ldots, the nn-th iteration of the Grover walk with the sink is defined by

ζn(a)=((PU)nζ)(a)(aA).\zeta_{n}(a)=\left((PU)^{n}\zeta\right)(a)\quad(a\in A).

Then, the finding probability at vertex vV\{d}v\in V\backslash\{d\} and at time nn can be defined by

μn(v)=t(a)=v|ζn(a)|2.\mu_{n}(v)=\sum_{t(a)=v}|\zeta_{n}(a)|^{2}.

Remark that our assumption is also represented by using an infinite dimensional environmental Hilbert space E{\mathcal{H}}_{E} and an appropriately extended unitary U~\tilde{U} on AE{\mathcal{H}}_{A}\oplus{\mathcal{H}}_{E} [25]. However, since

(U~nζ~)(a)=((PU)nζ)(a)(\tilde{U}^{n}\tilde{\zeta})(a)=\left((PU)^{n}\zeta\right)(a)

for any aA\{d,d¯}a\in A\backslash\{d,\bar{d}\}, we will adopt the RHS represented by the finite system in this paper. Here ζ~\tilde{\zeta} is the extension of the initial state ζA\zeta\in\mathcal{H}_{A} to AE\mathcal{H}_{A}\oplus\mathcal{H}_{E}.

2.2 Spectral decomposition of UU for maze solving

To solve the maze, it is important to know the eigenvalues and eigenvectors of the Grover walk UU. In particular, we focus on the eigenvectors of UU which are invariant under the action of the projection PP; as we will see, the contribution of the eigenvectors which are not invariant under the action of PP reduces exponentially to 0 as the time step goes to infinity.

We give the following simple lemma which will be useful for the considerations of its remaining statements. Remark that the eigenvalue λ\lambda of UU satisfies |λ|=1|\lambda|=1.

Lemma 2.1

Let ξA\xi\in{\mathcal{H}}_{A} be an eigenvector of UU associated with the eigenvalue λ\lambda. Then, ξ(d)=λξ(d¯)\xi(d)=\lambda\xi(\bar{d}).

Proof. By the definition of Grover walk, we have

(Uξ)(d¯)=ξ(d).(U\xi)(\bar{d})=\xi(d).

Then, Uξ=λξU\xi=\lambda\xi implies λξ(d¯)=ξ(d)\lambda\xi(\bar{d})=\xi(d). \square

Since our interest is the time iteration of the truncated Grover walk with respect to A{d,d¯}A\setminus\{d,\bar{d}\}, that is, PUPU, and the support of the initial state is the self-loop sAs\in A of the start vertex, we will decompose the Grover walk UU through the consideration of the overlap between an eigenvector and {d,d¯,s}\{d,\bar{d},s\}. The final form of the spectral decomposition can be seen in (2.2). Then, we consider the eigenvectors of UU. For an eigenvector ξ\xi of UU, there are the following four cases:

(1) ξ(s)0,ξ(d)=0,\xi(s)\neq 0,\xi(d)=0,   (2) ξ(s)0,ξ(d)0\xi(s)\neq 0,\xi(d)\neq 0,

(3) ξ(s)=0,ξ(d)0\xi(s)=0,\xi(d)\neq 0,   (4) ξ(s)=0,ξ(d)=0\xi(s)=0,\xi(d)=0.
Note that by Lemma 2.1, ξ(d)=0\xi(d)=0 implies ξ(d¯)=0\xi(\bar{d})=0, and ξ(d)0\xi(d)\neq 0 implies ξ(d¯)0\xi(\bar{d})\neq 0. When a vector ξ\xi satisfies the case (i)(i) (i{1,2,3,4})(i\in\{1,2,3,4\}), we say “ξ\xi is in (i)(i)”, for simplicity.

The eigenspace associated with the eigenvalue λ\lambda is denoted by V(λ)V(\lambda). Note that the eigenvectors in (1) or (4) have the contribution to give the iteration of the truncated Grover walk PUPU, because d,d¯supp(ξ)d,\bar{d}\notin\mathrm{supp}(\xi) for any ξ\xi in (1) or (4). First, we consider the eigenspace V(1)V(-1) because of the following strong statement.

Lemma 2.2

Assume that the eigenvector ξ\xi is in (1). Then, ξ\xi must be an eigenvector of the eigenvalue 1-1.

Proof. Let {ai}i=1n\{a_{i}\}_{i=1}^{n} be the set of all arcs which satisfy t(ai)=st(a_{i})=s, where a1=d¯a_{1}=\bar{d} and a2=sa_{2}=s. Let ξ\xi have the eigenvalue λ\lambda. Since ξ(d)=ξ(d¯)=0\xi(d)=\xi(\bar{d})=0 and

λξ(d)=(Uξ)(d)=ξ(d¯)+2ni=1nξ(ai),\lambda\xi(d)=(U\xi)(d)=-\xi(\bar{d})+\frac{2}{n}\sum_{i=1}^{n}\xi(a_{i}),

we have i=1nξ(ai)=0\sum_{i=1}^{n}\xi(a_{i})=0. Therefore,

λξ(s)=(Uξ)(s)=ξ(s)+2ni=1nξ(ai)=ξ(s).\lambda\xi(s)=(U\xi)(s)=-\xi(s)+\frac{2}{n}\sum_{i=1}^{n}\xi(a_{i})=-\xi(s).

By the assumption ξ(s)0\xi(s)\neq 0, we have λ=1\lambda=-1. \square

The statement of Lemma 2.2 is strong but not ensures the existence of such an eigenvector. However, the following lemma not only ensures such an eigenvector in Lemma 2.2 but also gives an explicit expression by using a path between the self-loops ss and gg. Figure 2 illustrates this eigenvector.

Lemma 2.3

There exists an eigenvector ξV(1)\xi\in V(-1) such that ξ\xi is in (1).

Proof. Let {ai}i=1n\{a_{i}\}_{i=1}^{n} be a path which satisfies t(ai)=o(ai+1)t(a_{i})=o(a_{i+1}), o(a1)=so(a_{1})=s, t(an)=gt(a_{n})=g, o(ai)o(aj)o(a_{i})\neq o(a_{j}) (ij)(i\neq j), and t(ai)t(aj)t(a_{i})\neq t(a_{j}) (ij)(i\neq j), and let a0=sa_{0}=s and an+1=ga_{n+1}=g. Define a vector ξA\xi\in{\mathcal{H}}_{A} by

ξ(a)={(1)i(a=aiora¯=ai)0otherwise.\xi(a)=\begin{cases}(-1)^{i}&(a=a_{i}\ \text{or}\ \bar{a}=a_{i})\\ 0&\text{otherwise}\end{cases}.
Refer to caption
Figure 2: The eigenvector ξV(1)\xi\in V(-1) with ssupp(ξ)s\in\mathrm{supp}(\xi).

Then, it is easy to check that ξ\xi is an eigenvector in V(1)V(-1). (See Figure 2.) \square

Lemmas 2.2 and 2.3 imply that every eigenvector in (1) is included in V(1)V(-1). Then, we are interested in whether V(1)V(-1) includes eigenvectors in (2), (3) or (4). Let us see that the following lemma removes the possibilities that ξV(1)\xi\in V(-1) is in (2) or (3).

Lemma 2.4

Every eigenvector ξ\xi in V(1)V(-1) satisfies ξ(d)=0\xi(d)=0, that is , ξ\xi is in (1) or (4).

Proof. Let ξ\xi be an eigenvector in V(1)V(-1). We use the same setting as in the proof of Lemma 2.2. Similar to the proof of Lemma 2.2,

ξ(s)=(Uξ)(s)=ξ(s)+2ni=1nξ(ai).-\xi(s)=(U\xi)(s)=-\xi(s)+\frac{2}{n}\sum_{i=1}^{n}\xi(a_{i}).

Hence, i=1nξ(ai)=0\sum_{i=1}^{n}\xi(a_{i})=0. Since ξ(d)=ξ(d¯)\xi(d)=-\xi(\bar{d}) by Lemma 2.1,

ξ(d)=(Uξ)(d)=ξ(d¯)+2ni=1nξ(ai)=ξ(d¯)=ξ(d).-\xi(d)=(U\xi)(d)=-\xi(\bar{d})+\frac{2}{n}\sum_{i=1}^{n}\xi(a_{i})=-\xi(\bar{d})=\xi(d).

This implies ξ(d)=0\xi(d)=0. \square

Now we are ready to construct an ONB for V(1)V(-1) as follows.

Proposition 2.5

There exists an ONB {ψ1(1),,ψdimV(1)1(1),φ}\{\psi^{(-1)}_{1},\ldots,\psi^{(-1)}_{\dim V(-1)-1},\varphi\} of V(1)V(-1) such that φ\varphi is in (1) and ψi(1)\psi_{i}^{(-1)} is in (4){\rm(4)}.

Proof. Let k=dimV(1)k={\dim V(-1)}, and let {ξ1,,ξk}\{\xi_{1},\ldots,\xi_{k}\} be a bases of V(1)V(-1) with ξk(s)0\xi_{k}(s)\neq 0. We can take such a basis by setting ξk\xi_{k} to be in (1). Define a vector ηi\eta_{i} by

ηi={ξiξi(s)ξk(s)ξk(1ik1)ξk(i=k).\eta_{i}=\begin{cases}\displaystyle\xi_{i}-\frac{\xi_{i}(s)}{\xi_{k}(s)}\xi_{k}&(1\leq i\leq k-1)\\ \xi_{k}&(i=k)\end{cases}.

Remark that ηi\eta_{i} is in (4) for 1ik11\leq i\leq k-1. We apply the Gram-Schmidt process to {ηi}i=1k\{\eta_{i}\}_{i=1}^{k}, and denote the constructed vectors by {ψ1(1),,ψk1(1),φ}\{\psi_{1}^{(-1)},\ldots,\psi_{k-1}^{(-1)},\varphi\}. This is the desired ONB. \square

The reason for choosing such an ONB of V(1)V(-1) is as follows. To describe the Fourier expansion of the initial state ζ\zeta, we use the inner products of each vector in an ONB and ζ\zeta. Note that the first dimV(1)1\mathrm{dim}V(-1)-1 bases of V(1)V(-1) in Proposition 2.5, ψj(1)\psi_{j}^{(-1)} (1jdimV(1)11\leq j\leq\mathrm{dim}V(-1)-1), have no overlap to the initial state ζ\zeta, that is, ψj(1),ζ=0\langle\psi_{j}^{(-1)},\zeta\rangle=0 for any j=1,,dimV(1)1j=1,\dots,\mathrm{dim}V(-1)-1. The only base which has the overlap with ζ\zeta is the last base φ\varphi. Thus the overlap of the initial state with the subspace V(1)AV(-1)\subset\mathcal{H}_{A} is obtained by just one inner product of φ\varphi and ζ\zeta by this expression of ONB. As we will see, the contribution of V(λ)V(\lambda) with λ1\lambda\neq-1 to the survival probability (PU)nζ2\|(PU)^{n}\zeta\|^{2} exponentially reduces. Thus the vector φ\varphi is the key to navigates the quantum walker to the stationary state.


Next, we are interested in the contribution of the eigenspace of UU having the overlap with the initial state for the eigenvalue λ1\lambda\neq-1 to the survival probability. To this end, we construct an ONB of V(λ)V(\lambda) with λ1\lambda\neq-1 step by step; the final form of the decomposition of UU for the survival probability is described in (2.2). First, we show that every eigenvector with the eigenvalue λ1\lambda\neq-1 is not in (2), or is not in (3) as follows.

Lemma 2.6

Suppose λ1\lambda\neq-1. V(λ)V(\lambda) does not contain both of vectors in (2) and (3).

Proof. When ξ2V(λ)\xi_{2}\in V(\lambda) is in (2) and ξ3V(λ)\xi_{3}\in V(\lambda) is in (3), we can construct an eigenvector ξ1V(λ)\xi_{1}\in V(\lambda) in (1) using a linear combination. Then, λ=1\lambda=-1 by Lemma 2.2, which is contradiction. \square

Using Lemma 2.6, we can construct the following ONB for λ1\lambda\neq-1 concerning to the overlap with dd and d¯\bar{d}.

Proposition 2.7

There exists an ONB {ψ1(λ),,ψdimV(λ)(λ)}\{\psi^{(\lambda)}_{1},\ldots,\psi_{\dim V(\lambda)}^{(\lambda)}\} of V(λ)V(\lambda) such that at most one vector in the ONB is in (2) or (3).

Proof. If there is no vector in (2) or (3) in V(λ)V(\lambda), then all vectors in V(λ)V(\lambda) are in (4), and we can construct the desired ONB, easily.

If there is a vector in (2) or (3), we can use the same method in the proof of Proposition 2.5. Assume that there is a vector in (2). Let k=dimV(λ)k={\rm dim}V(\lambda), and let {ξ1,,ξk}\{\xi_{1},\ldots,\xi_{k}\} be a basis of V(λ)V(\lambda) with ξk(s)0\xi_{k}(s)\neq 0 and ξk(d)0\xi_{k}(d)\neq 0. Define a vector ηi\eta_{i} by

ηi={ξiξi(d)ξk(d)ξk(1ik1)ξk(i=k).\eta_{i}=\begin{cases}\displaystyle\xi_{i}-\frac{\xi_{i}(d)}{\xi_{k}(d)}\xi_{k}&(1\leq i\leq k-1)\\ \xi_{k}&(i=k)\end{cases}.

Remark that ηi\eta_{i} is in (4) for 1ik11\leq i\leq k-1, because ηi(d)=0\eta_{i}(d)=0 and there is no vector in (1). We apply the Gram-Schmidt process to {ηi}i=1k\{\eta_{i}\}_{i=1}^{k}, and denote the constructed vectors by {ψ1(λ),,ψk(λ)}\{\psi_{1}^{(\lambda)},\ldots,\psi_{k}^{(\lambda)}\}. This is the desired ONB.

When there is a vector in (3), we can construct the desired ONB, similarly. \square

We denote k(λ)k^{(\lambda)} by the number of vectors in (4) in the above ONB, and put k(1)=dimV(1)1k^{(-1)}={\rm dim}V(-1)-1. When the above ONB contains a vector in (2) or (3), we denote the vector by η(λ)\eta^{(\lambda)}. This means ψk(λ)+1=η(λ)\psi_{k^{(\lambda)}+1}=\eta^{(\lambda)}.


Here, we consider the spectrum decomposition of UU, that is,

U=|φφ|+λσ(U)λ(|η(λ)η(λ)|+i=1k(λ)|ψi(λ)ψi(λ)|),U=-|\varphi\rangle\langle\varphi|+\sum_{\lambda\in\sigma(U)}\lambda\left(|\eta^{(\lambda)}\rangle\langle\eta^{(\lambda)}|+\sum_{i=1}^{k^{(\lambda)}}|\psi^{(\lambda)}_{i}\rangle\langle\psi_{i}^{(\lambda)}|\right), (2.2)

where σ(U)\sigma(U) is the set of all eigenvalues of UU, and η(λ)=0\eta^{(\lambda)}=0 when V(λ)V(\lambda) does not contain a vector in (2) or (3). Define 𝒦=span{η(λ)|λσ(U)}{\mathcal{K}}={\rm span}\{\eta^{(\lambda)}\,|\,\lambda\in\sigma(U)\}. We see that this subspace is invariant under PP defined in (2.1).

Lemma 2.8

𝒦{\mathcal{K}} is invariant under PP, that is, P𝒦𝒦P{\mathcal{K}}\subset{\mathcal{K}}.

Proof. Remark that Pφ=φP\varphi=\varphi and Pψi(λ)=ψi(λ)P\psi_{i}^{(\lambda)}=\psi_{i}^{(\lambda)} (1ik(λ))(1\leq i\leq k^{(\lambda)}). It is sufficient to prove that P𝒦P{\mathcal{K}} is orthogonal to φ\varphi and ψi(λ)\psi_{i}^{(\lambda)}. For ξ𝒦\xi\in{\mathcal{K}}, we have

φ,Pξ=Pφ,ξ=φ,ξ=0.\langle\varphi,P\xi\rangle=\langle P\varphi,\xi\rangle=\langle\varphi,\xi\rangle=0.

Similarly, we can check that PξP\xi is orthogonal to ψi(λ)\psi_{i}^{(\lambda)}. \square

This Lemma implies that the contribution of the subspace 𝒦A\mathcal{K}\subset\mathcal{H}_{A} to the survival probability reduces exponentially to zero as time goes to infinity as follows.

Proposition 2.9

A vector ξ𝒦\xi\in{\mathcal{K}} satisfies limm(PU)mξ=0\lim_{m\to\infty}(PU)^{m}\xi=0.

Proof. Since 𝒦{\mathcal{K}} is invariant under PUPU by Lemma 2.8, it is enough to prove that the absolute value of the eigenvalue of PU|𝒦PU|_{{\mathcal{K}}} is less than 11.

Assume that λ\lambda is an eigenvalue of PU|𝒦PU|_{{\mathcal{K}}} with |λ|=1|\lambda|=1, and η\eta is a unit eigenvector associated with the eigenvalue λ\lambda. The equation

PUη=λη=η=Uη\|PU\eta\|=\|\lambda\eta\|=\|\eta\|=\|U\eta\|

implies (Uη)(d)=(Uη)(d¯)=0(U\eta)(d)=(U\eta)(\bar{d})=0, and therefore, PUη=UηPU\eta=U\eta. Hence, we have

Uη=PUη=λη,U\eta=PU\eta=\lambda\eta,

which means that η\eta is an eigenvector of UU. Moreover, η(d)=0\eta(d)=0.

Since η\eta has the eigenvalue λ\lambda, η\eta is in V(λ)V(\lambda). On the other hand, η\eta is in 𝒦{\mathcal{K}}. Hence, η\eta is equal to eitη(λ)e^{{\rm i}t}\eta^{(\lambda)} for some tt\in{\mathbb{R}}. However, this contradicts η(d)=0\eta(d)=0. \square

The initial state ζ\zeta is written as

ζ=φ,ζφ+λσ(U)η(λ),ζη(λ)=φ(s)¯φ+λσ(U)η(λ)(s)¯η(λ).\zeta=\langle\varphi,\zeta\rangle\varphi+\sum_{\lambda\in\sigma(U)}\langle\eta^{(\lambda)},\zeta\rangle\eta^{(\lambda)}=\overline{\varphi(s)}\varphi+\sum_{\lambda\in\sigma(U)}\overline{\eta^{(\lambda)}(s)}\eta^{(\lambda)}.

So,

limn(1)n(PU)nζ=φ(s)¯φ.\lim_{n\to\infty}(-1)^{n}(PU)^{n}\zeta=\overline{\varphi(s)}\varphi.

We will call this vector φ\varphi the navigation vector. Recall that the navigation vector is the unique base of V(1)V(-1) which has an overlap to ss, see Proposition 2.5. We use this navigation vector to solve the maze because the survival probability can be simply described by only the overlap of the initial state and the navigation vector:

Proposition 2.10

Let μn(v)\mu_{n}(v) be the probability at position vv at time nn, and φ\varphi be the navigation vector defined the above. Then we have

limnμn(v)=|φ(s)|2t(a)=v|φ(a)|2.\lim_{n\to\infty}\mu_{n}(v)=|\varphi(s)|^{2}\sum_{t(a)=v}|\varphi(a)|^{2}.

Therefore, finding the ONB in Proposition 2.5 so that the navigation vector appears is the key to obtain the survival probability. We demonstrate the construction of the ONB and the navigation vector for a tree case and a ladder case in the next section.

3 Maze solving

3.1 Tree case

When the graph is a tree, we can determine the navigation vector.

Theorem 3.1

When the underlying graph is a tree, the navigation vector is constant multiple of the vector defined in the proof of Lemma 2.3.

Proof. When the underlying graph Go=(Vo,Eo)G_{o}=(V_{o},E_{o}) is bipartite, the dimension of V(1)V(-1) is given by (|Eo||Vo|+1)+1(|E_{o}|-|V_{o}|+1)+1 [25, Proposition 6 for Case (C)]. Note that for tree case, the Betti number |Eo||Vo|+1|E_{o}|-|V_{o}|+1 becomes 0. Then dimV(1)=1\dim V(-1)=1. On the other hand, the navigation vector and the vector defined in Lemma 2.3 are both in V(1)V(-1). These imply the assertion of this theorem. \square

When the underlying graph is a tree, the shortest route from the start to the goal is uniquely determined which is denoted by {ai}i=1n\{a_{i}\}_{i=1}^{n}. We set a0=sa_{0}=s and an+1=ga_{n+1}=g. Let φ\varphi be navigation vector, and let r=|φ(s)|r=|\varphi(s)|. Then, the navigation vector satisfies

|φ(a)|={ra=aiora¯=ai0otherwise.|\varphi(a)|=\begin{cases}r&a=a_{i}\ {\rm or}\ \bar{a}=a_{i}\\ 0&{\rm otherwise}\end{cases}.

This means that the amplitudes of the navigation vector are only on the shortest route. Therefore, the position of the quantum walker tells us the shortest route.

3.2 The case the graph has cycles

Note that a tree has the unique simple path between the start and goal vertices, and this becomes the shortest path. Here, a simple path is a walk in which all vertices and also all edges are distinct. We have seen in Section 3.1 that the shortest path of arbitrary tree is only the place where a quantum walker “clings” in the long time limit. On the other hand, once there is a cycle, there are several choices of the non-backtracking path. As a natural question, we are interested in the tendency of a quantum walker in this case. In this section, we consider a ladder graph as an example of the graph which has cycles so that there are k+1k+1 kinds of “detours” among the shortest path. See Figure 4. Before describing the setting, we prove the next lemma.

Lemma 3.2

For a cycle γG\gamma\in G of length 2n2n (n)(n\in{\mathbb{N}}), there exists an eigenvector of the Grover walk UU associated with the eigenvalue 1-1.

Proof. Let {ai}i=12n\{a_{i}\}_{i=1}^{2n} be a cycle of length 2n2n, that is, t(ai)=o(ai+1)t(a_{i})=o(a_{i+1}), o(a1)=t(a2n)o(a_{1})=t(a_{2n}) and t(ai)t(aj)t(a_{i})\neq t(a_{j}) (ij)(i\neq j). Define a vector ξA\xi\in{\mathcal{H}}_{A} by

ξ(a)={(1)i(a=aiora¯=ai)0otherwise.\xi(a)=\begin{cases}(-1)^{i}&(a=a_{i}\ {\rm or}\ \bar{a}=a_{i})\\ 0&{\rm otherwise}\end{cases}.

This is the desired eigenvector. (See Figure 3.) \square

Refer to caption
Figure 3: An example of an eigenvector associated with a cycle.

Now, we consider a ladder graph. As in Figure 4, the ladder graph contains k+1k+1 cycles which are indexed by γi\gamma_{i}. Each cycle γi\gamma_{i} is a rectangle of length mm and width ll. The lower left vertex of the cycle γ0\gamma_{0} and the start vertex are adjacent.

Refer to caption
Figure 4: The ladder graph with the self loops and the sink. The left figure illustrates the graph treated in Section 3.2. This graph is constructed by k+1k+1 cycles γi\gamma_{i} (i=0,1,,ki=0,1,\dots,k) depicted by the right figure. Each cycle whose length is mm and width is \ell has the eigenvector of the eigenvalue 1-1, γi\gamma_{i} (i=0,,ki=0,\dots,k). (The notations for the cycle and the induced eigenvector are same. )

The normalized eigenvector with respect to the cycle γn\gamma_{n} constructed in Lemma 3.2 is also denoted by γn\gamma_{n} (0nk)(0\leq n\leq k), and the normalized eigenvector with respect to the shortest route defined in Lemma 2.3 is denoted by ξ\xi. Without loss of generality, we can assume γn,γn+10\langle\gamma_{n},\gamma_{n+1}\rangle\geq 0 and γ0,ξ0\langle\gamma_{0},\xi\rangle\geq 0. It is known that the eigenvector of UU associated with the eigenvalue 1-1 is described as a linear combination of γn\gamma_{n} and ξ\xi [25]. Indeed, it holds that span{γ0,γk}=span{ψ1(1),,ψk(1)(1)}\mathrm{span}\{\gamma_{0}\dots,\gamma_{k}\}=\mathrm{span}\{\psi_{1}^{(-1)},\dots,\psi_{k^{(-1)}}^{(-1)}\}, where ψi(1)\psi_{i}^{(-1)}’s are the eigenvectors of the eigenvalue 1-1 in (2.2) whose supports have no intersection to {d,d¯}\{d,\bar{d}\}. To obtain the navigation vector φ\varphi in (2.2), from now on, we construct the ONB of V(1)V(-1) in Proposition 2.5 by applying the Gram-Schmidt process to {γ0,,γk,ξ}\{\gamma_{0},\dots,\gamma_{k},\xi\} step by step.

Lemma 3.3

The equations

γs,ξ=0(s1),γs,γt=0(|st|2),γs,γs+1=m2(l+m)\displaystyle\langle\gamma_{s},\xi\rangle=0\quad(s\geq 1),\qquad\langle\gamma_{s},\gamma_{t}\rangle=0\quad(|s-t|\geq 2),\qquad\langle\gamma_{s},\gamma_{s+1}\rangle=\frac{m}{2(l+m)}

hold.

Proof. The first and second equations are obvious by the definition of γs\gamma_{s} and ξ\xi. The inner product in the third equation can be calculated as

γs,γs+1=14(l+m)i=1m2=m2(l+m),\langle\gamma_{s},\gamma_{s+1}\rangle=\frac{1}{4(l+m)}\sum_{i=1}^{m}2=\frac{m}{2(l+m)},

because of the assumption γs,γs+10\langle\gamma_{s},\gamma_{s+1}\rangle\geq 0 \square

Let κ=m2(l+m)\kappa=\frac{m}{2(l+m)}. We apply the Gram-Schmidt process to {γ0,,γk,ξ}\{\gamma_{0},\ldots,\gamma_{k},\xi\}. Since γn\gamma_{n} is in (4) and ξ\xi is in (1), the constructed ONB is the ONB in Proposition 2.5. We denote this by {ψ0,,ψk,φ}\{\psi_{0},\ldots,\psi_{k},\varphi\}. Then, φ\varphi is the navigate vector.

First, we consider about γn\gamma_{n} and ψn\psi_{n}. Let Un(x)U_{n}(x) be the second kind of Chebyshev polynomial, and define un=Un(12κ)u_{n}=U_{n}\left(\frac{1}{2\kappa}\right).

Proposition 3.4

The equation

ψn=1κunun+1s=0n(1)nsusγs\psi_{n}=\frac{1}{\sqrt{\kappa u_{n}u_{n+1}}}\sum_{s=0}^{n}(-1)^{n-s}u_{s}\gamma_{s}

holds.

Proof. By ψsspan{γ0,,γs}\psi_{s}\in{\rm span}\{\gamma_{0},\ldots,\gamma_{s}\} and Lemma 3.3,

ψs,γt=0\langle\psi_{s},\gamma_{t}\rangle=0

for ts+2t\geq s+2. Since span{γ0,,γn}=span{ψ0,,ψn}{\rm span}\{\gamma_{0},\ldots,\gamma_{n}\}={\rm span}\{\psi_{0},\ldots,\psi_{n}\}, γn=i=0nψi,γnψi\gamma_{n}=\sum_{i=0}^{n}\langle\psi_{i},\gamma_{n}\rangle\psi_{i}. These equations imply γnspan{ψn1,ψn}\gamma_{n}\in{\rm span}\{\psi_{n-1},\psi_{n}\}, where ψ1=0\psi_{-1}=0. Here, we put

γn=anψn1+bnψn,\gamma_{n}=a_{n}\psi_{n-1}+b_{n}\psi_{n},

where a0=0a_{0}=0. Remark that b0=1b_{0}=1 and an,bna_{n},b_{n}\in{\mathbb{R}}. Since ψn\psi_{n} is the normalization of γns=0n1ψs,γnψs\gamma_{n}-\sum_{s=0}^{n-1}\langle\psi_{s},\gamma_{n}\rangle\psi_{s} and ψn,γn=bn\langle\psi_{n},\gamma_{n}\rangle=b_{n}, bnb_{n} is positive. Moreover,

γn,γn+1=anψn1+bnψn,an+1ψn+bn+1ψn+1=an+1bn\langle\gamma_{n},\gamma_{n+1}\rangle=\langle a_{n}\psi_{n-1}+b_{n}\psi_{n},a_{n+1}\psi_{n}+b_{n+1}\psi_{n+1}\rangle=a_{n+1}b_{n}

implies an+1bn=κa_{n+1}b_{n}=\kappa, and γn=1\|\gamma_{n}\|=1 implies an2+bn2=1a_{n}^{2}+b_{n}^{2}=1. The equation an+1bn=κa_{n+1}b_{n}=\kappa means that an+1a_{n+1} and bnb_{n} have the same sign, and therefore, ana_{n} is positive for n1n\geq 1. To calculate an2a_{n}^{2} and bn2b_{n}^{2}, we use Chebyshev polynomial. We claim that

an2=κun1un,bn2=κun+1un,a_{n}^{2}=\frac{\kappa u_{n-1}}{u_{n}},\qquad b_{n}^{2}=\frac{\kappa u_{n+1}}{u_{n}},

where u1=0u_{-1}=0. Indeed, we can prove this using a similar method to the proof in [31], or we can check that these an2a_{n}^{2} and bn2b_{n}^{2} satisfy the above recurrence relations.

By this fact and γn=anψn1+bnψn\gamma_{n}=a_{n}\psi_{n-1}+b_{n}\psi_{n}, we have

ψn\displaystyle\psi_{n} =1bn(γnanψn1)=1bn(γnanbn1(γn1an1ψn2))=\displaystyle=\frac{1}{b_{n}}(\gamma_{n}-a_{n}\psi_{n-1})=\frac{1}{b_{n}}\left(\gamma_{n}-\frac{a_{n}}{b_{n-1}}(\gamma_{n-1}-a_{n-1}\psi_{n-2})\right)=\cdots
=1bns=0n(1)nsj=s+1najbj1γs=1κunun+1s=0n(1)nsusγs\displaystyle=\frac{1}{b_{n}}\sum_{s=0}^{n}(-1)^{n-s}\prod_{j=s+1}^{n}\frac{a_{j}}{b_{j-1}}\gamma_{s}=\frac{1}{\sqrt{\kappa u_{n}u_{n+1}}}\sum_{s=0}^{n}(-1)^{n-s}u_{s}\gamma_{s}

which is the assertion. \square

Next, we consider about ξ\xi and φ\varphi. Define a projection Πk\Pi_{k} by

Πk=n=0k|ψnψn|.\Pi_{k}=\sum_{n=0}^{k}|\psi_{n}\rangle\langle\psi_{n}|.

Πk\Pi_{k} is also the projection onto span{γ0,,γk}{\rm span}\{\gamma_{0},\ldots,\gamma_{k}\}. Here, φ\varphi is written as

φ=(IΠk)ξ(IΠk)ξ.\varphi=\frac{(I-\Pi_{k})\xi}{\|(I-\Pi_{k})\xi\|}.
Lemma 3.5
(IΠk)ξ2=1mm+3n=0k1unun+1.\|(I-\Pi_{k})\xi\|^{2}=1-\frac{m}{m+3}\sum_{n=0}^{k}\frac{1}{u_{n}u_{n+1}}.

Proof. By the Pythagorean theorem,

(IΠk)ξ2=ξ2Πkξ2=1Πkξ2.\|(I-\Pi_{k})\xi\|^{2}=\|\xi\|^{2}-\|\Pi_{k}\xi\|^{2}=1-\|\Pi_{k}\xi\|^{2}.

Since

γ0,ξ=m2(l+m)(m+3),\langle\gamma_{0},\xi\rangle=\frac{m}{\sqrt{2(l+m)(m+3)}},

we have

Πkξ2\displaystyle\|\Pi_{k}\xi\|^{2} =n=0k|ψn,ξ|2=n=0k|1κunun+1(1)nu0γ0,ξ|2\displaystyle=\sum_{n=0}^{k}|\langle\psi_{n},\xi\rangle|^{2}=\sum_{n=0}^{k}\left|\left\langle\frac{1}{\sqrt{\kappa u_{n}u_{n+1}}}(-1)^{n}u_{0}\gamma_{0},\xi\right\rangle\right|^{2}
=n=0k1κunun+1m22(l+m)(m+3)\displaystyle=\sum_{n=0}^{k}\frac{1}{\kappa u_{n}u_{n+1}}\cdot\frac{m^{2}}{2(l+m)(m+3)}
=mm+3n=0k1unun+1\displaystyle=\frac{m}{m+3}\sum_{n=0}^{k}\frac{1}{u_{n}u_{n+1}}

by Lemma 3.3 and Proposition 3.4. \square

Proposition 3.6

The navigation vector φ\varphi is written as

φ=(ξ2(l+m)m+3n=0k1unun+1s=0n(1)susγs)/(IΠk)ξ.\varphi=\left(\xi-\frac{\sqrt{2(l+m)}}{\sqrt{m+3}}\sum_{n=0}^{k}\frac{1}{u_{n}u_{n+1}}\sum_{s=0}^{n}(-1)^{s}u_{s}\gamma_{s}\right)\big{/}\|(I-\Pi_{k})\xi\|.

Proof. By Lemma 3.3 and Proposition 3.4,

(IΠk)ξ\displaystyle(I-\Pi_{k})\xi =ξΠkξ=ξn=0kψn,ξψn\displaystyle=\xi-\Pi_{k}\xi=\xi-\sum_{n=0}^{k}\langle\psi_{n},\xi\rangle\psi_{n}
=ξn=0k1κunun+1(1)nm2(l+m)(m+3)ψn\displaystyle=\xi-\sum_{n=0}^{k}\frac{1}{\sqrt{\kappa u_{n}u_{n+1}}}(-1)^{n}\frac{m}{\sqrt{2(l+m)(m+3)}}\psi_{n}
=ξn=0k1κunun+1(1)nm2(l+m)(m+3)1κunun+1s=0n(1)nsusγs\displaystyle=\xi-\sum_{n=0}^{k}\frac{1}{\sqrt{\kappa u_{n}u_{n+1}}}(-1)^{n}\frac{m}{\sqrt{2(l+m)(m+3)}}\cdot\frac{1}{\sqrt{\kappa u_{n}u_{n+1}}}\sum_{s=0}^{n}(-1)^{n-s}u_{s}\gamma_{s}
=ξ2(l+m)m+3n=0k1unun+1s=0n(1)susγs\displaystyle=\xi-\frac{\sqrt{2(l+m)}}{\sqrt{m+3}}\sum_{n=0}^{k}\frac{1}{u_{n}u_{n+1}}\sum_{s=0}^{n}(-1)^{s}u_{s}\gamma_{s}

which is the assertion. \square

By this proposition, we can calculate φ(a)\varphi(a) for an arc aa, explicitly. Let aa be an arc on the left side of the cycle γ0\gamma_{0}. If γ0(a)>0\gamma_{0}(a)>0, γ0(a)=12m+l\gamma_{0}(a)=\frac{1}{2\sqrt{m+l}}. Moreover, by the assumption γ0,ξ0\langle\gamma_{0},\xi\rangle\geq 0, ξ(a)>0\xi(a)>0. Hence, when γ0(a)>0\gamma_{0}(a)>0, we have

(IΠk)ξφ(a)\displaystyle\|(I-\Pi_{k})\xi\|\cdot\varphi(a) =ξ(a)2(l+m)m+3n=0k1unun+1s=0n(1)susγs(a)\displaystyle=\xi(a)-\frac{\sqrt{2(l+m)}}{\sqrt{m+3}}\sum_{n=0}^{k}\frac{1}{u_{n}u_{n+1}}\sum_{s=0}^{n}(-1)^{s}u_{s}\gamma_{s}(a)
=12(m+3)2(l+m)m+3n=0k1unun+112l+m\displaystyle=\frac{1}{\sqrt{2(m+3)}}-\frac{\sqrt{2(l+m)}}{\sqrt{m+3}}\sum_{n=0}^{k}\frac{1}{u_{n}u_{n+1}}\frac{1}{2\sqrt{l+m}}
=12(m+3)(1n=0k1unun+1).\displaystyle=\frac{1}{\sqrt{2(m+3)}}\left(1-\sum_{n=0}^{k}\frac{1}{u_{n}u_{n+1}}\right).

When γ0(a)<0\gamma_{0}(a)<0, just multiply the above equation by 1-1. Similarly, when aa is an arc on the left side of the cycle γi\gamma_{i} for 1ik1\leq i\leq k and γi(a)>0\gamma_{i}(a)>0,

(IΠk)ξφ(a)=ξ(a)2(l+m)m+3n=0k1unun+1s=0n(1)susγs(a)\displaystyle\|(I-\Pi_{k})\xi\|\cdot\varphi(a)=\xi(a)-\frac{\sqrt{2(l+m)}}{\sqrt{m+3}}\sum_{n=0}^{k}\frac{1}{u_{n}u_{n+1}}\sum_{s=0}^{n}(-1)^{s}u_{s}\gamma_{s}(a)
=12(m+3)(1ui1ui(1)i1ui1+n=ik1unun+1((1)i1ui1+(1)iui)).\displaystyle\quad=-\frac{1}{\sqrt{2(m+3)}}\left(\frac{1}{u_{i-1}u_{i}}(-1)^{i-1}u_{i-1}+\sum_{n=i}^{k}\frac{1}{u_{n}u_{n+1}}((-1)^{i-1}u_{i-1}+(-1)^{i}u_{i})\right).

When γi(a)<0\gamma_{i}(a)<0, just multiply the above equation by 1-1.

In order to compare these values, we prepare the next lemma.

Lemma 3.7

The following inequalities hold for i0i\geq 0:
(1)ui+1>ui+1,\quad(1)\quad u_{i+1}>u_{i}+1,
(2)ui+2ui+1>ui+1ui,\quad(2)\quad u_{i+2}-u_{i+1}>u_{i+1}-u_{i},
(3)n=ik1unun+1<1ui1ui+1ui.\quad(3)\quad\displaystyle\sum_{n=i}^{k}\frac{1}{u_{n}u_{n+1}}<\frac{1}{u_{i}}\cdot\frac{1}{u_{i+1}-u_{i}}.

Proof. (1) Let x=12κx=\frac{1}{2\kappa}. When n=0n=0, u0=U0(x)=1u_{0}=U_{0}(x)=1 and u1=U1(x)=2xu_{1}=U_{1}(x)=2x. Since x>1x>1, we have u1u0+1u_{1}\geq u_{0}+1. If the inequality is true for ii, we have

ui+2=2xui+1ui=ui+1+(2x2)ui+1+(ui+1ui)>ui+1+1.u_{i+2}=2xu_{i+1}-u_{i}=u_{i+1}+(2x-2)u_{i+1}+(u_{i+1}-u_{i})>u_{i+1}+1.

Hence, we obtain the assertion by induction.

(2) We can calculate as

ui+2ui+1=(2x1)ui+1ui>ui+1ui.u_{i+2}-u_{i+1}=(2x-1)u_{i+1}-u_{i}>u_{i+1}-u_{i}.

(3) By using the partial fraction decomposition,

n=ik1unun+1=n=ik1un+1un(1un1un+1)\displaystyle\sum_{n=i}^{k}\frac{1}{u_{n}u_{n+1}}=\sum_{n=i}^{k}\frac{1}{u_{n+1}-u_{n}}\cdot\left(\frac{1}{u_{n}}-\frac{1}{u_{n+1}}\right)
=1ui1ui+1ui1uk+11uk+1ukn=ik11un+1(1un+1un1un+2un+1)\displaystyle=\frac{1}{u_{i}}\cdot\frac{1}{u_{i+1}-u_{i}}-\frac{1}{u_{k+1}}\cdot\frac{1}{u_{k+1}-u_{k}}-\sum_{n=i}^{k-1}\frac{1}{u_{n+1}}\left(\frac{1}{u_{n+1}-u_{n}}-\frac{1}{u_{n+2}-u_{n+1}}\right)
<1ui1ui+1ui.\displaystyle<\frac{1}{u_{i}}\cdot\frac{1}{u_{i+1}-u_{i}}.

We use (2) for the last inequality. \square

The next proposition shows that the probability pip_{i} of finding the quantum walker at the left hand side of γi\gamma_{i} is monotonically decrease.

Theorem 3.8

Let aia_{i} be an arc on the left side of the cycle γi\gamma_{i} for 0ik0\leq i\leq k. Then, the inequality

|φ(ai)|>|φ(ai+1)||\varphi(a_{i})|>|\varphi(a_{i+1})|

holds for 0ik10\leq i\leq k-1.

Proof. First, we show that

1ui+(ui1ui)n=ik1unun+1\frac{1}{u_{i}}+(u_{i-1}-u_{i})\sum_{n=i}^{k}\frac{1}{u_{n}u_{n+1}}

is positive. Indeed, by Lemma 3.7 (2) and (3),

1ui+(ui1ui)n=ik1unun+1>1ui(uiui1)1ui1ui+1ui>0.\frac{1}{u_{i}}+(u_{i-1}-u_{i})\sum_{n=i}^{k}\frac{1}{u_{n}u_{n+1}}>\frac{1}{u_{i}}-(u_{i}-u_{i-1})\cdot\frac{1}{u_{i}}\cdot\frac{1}{u_{i+1}-u_{i}}>0.

When i=0i=0, it is enough to show

1n=0k1unun+1>1u1+(1u1)n=1k1unun+1.1-\sum_{n=0}^{k}\frac{1}{u_{n}u_{n+1}}>\frac{1}{u_{1}}+(1-u_{1})\sum_{n=1}^{k}\frac{1}{u_{n}u_{n+1}}.

We can calculate as

1n=0k1unun+11u1+(u11)n=1k1unun+1\displaystyle 1-\sum_{n=0}^{k}\frac{1}{u_{n}u_{n+1}}-\frac{1}{u_{1}}+(u_{1}-1)\sum_{n=1}^{k}\frac{1}{u_{n}u_{n+1}}
=11u11u0u1+(u12)n=1k1unun+1\displaystyle=1-\frac{1}{u_{1}}-\frac{1}{u_{0}u_{1}}+(u_{1}-2)\sum_{n=1}^{k}\frac{1}{u_{n}u_{n+1}}
=(u12)(1u1+n=1k1unun+1)>0\displaystyle=(u_{1}-2)\cdot\left(\frac{1}{u_{1}}+\sum_{n=1}^{k}\frac{1}{u_{n}u_{n+1}}\right)>0

When i1i\geq 1, we need to show

1ui+(ui1ui)n=ik1unun+1>1ui+1+(uiui+1)n=i+1k1unun+1.\frac{1}{u_{i}}+(u_{i-1}-u_{i})\sum_{n=i}^{k}\frac{1}{u_{n}u_{n+1}}>\frac{1}{u_{i+1}}+(u_{i}-u_{i+1})\sum_{n=i+1}^{k}\frac{1}{u_{n}u_{n+1}}.

Here, we have

1ui+(ui1ui)n=ik1unun+11ui+1(uiui+1)n=i+1k1unun+1\displaystyle\frac{1}{u_{i}}+(u_{i-1}-u_{i})\sum_{n=i}^{k}\frac{1}{u_{n}u_{n+1}}-\frac{1}{u_{i+1}}-(u_{i}-u_{i+1})\sum_{n=i+1}^{k}\frac{1}{u_{n}u_{n+1}}
=1ui1ui+1+(ui1ui)1uiui+1+(ui+12ui+ui1)n=i+1k1unun+1\displaystyle=\frac{1}{u_{i}}-\frac{1}{u_{i+1}}+(u_{i-1}-u_{i})\cdot\frac{1}{u_{i}u_{i+1}}+(u_{i+1}-2u_{i}+u_{i-1})\sum_{n=i+1}^{k}\frac{1}{u_{n}u_{n+1}}
=(ui+12ui+ui1)(1uiui+1+n=i+1k1unun+1)>0\displaystyle=(u_{i+1}-2u_{i}+u_{i-1})\cdot\left(\frac{1}{u_{i}u_{i+1}}+\sum_{n=i+1}^{k}\frac{1}{u_{n}u_{n+1}}\right)>0

which shows the assertion. \square

When aa is an arc on the top side of the cycle γi\gamma_{i} for 0ik0\leq i\leq k and γi(a)>0\gamma_{i}(a)>0,

(IΠk)ξφ(a)\displaystyle\|(I-\Pi_{k})\xi\|\cdot\varphi(a) =ξ(a)2(l+m)m+3n=0k1unun+1s=0n(1)susγs(a)\displaystyle=\xi(a)-\frac{\sqrt{2(l+m)}}{\sqrt{m+3}}\sum_{n=0}^{k}\frac{1}{u_{n}u_{n+1}}\sum_{s=0}^{n}(-1)^{s}u_{s}\gamma_{s}(a)
=(1)i+1ui2(m+3)n=ik1unun+1.\displaystyle=\frac{(-1)^{i+1}u_{i}}{\sqrt{2(m+3)}}\sum_{n=i}^{k}\frac{1}{u_{n}u_{n+1}}.

When γi(a)<0\gamma_{i}(a)<0, just multiply the above equation by 1-1. The next proposition shows that the probability qiq_{i} of finding the quantum walker at the top side of γi\gamma_{i} is also monotonically decrease.

Theorem 3.9

Let aia_{i} be an arc on the top side of cycle γi\gamma_{i} for 0ik0\leq i\leq k. Then, the inequality

|φ(ai)|>|φ(ai+1)||\varphi(a_{i})|>|\varphi(a_{i+1})|

holds for 0ik10\leq i\leq k-1.

Proof. It is enough to show

n=ikuiunun+1>n=i+1kui+1unun+1.\sum_{n=i}^{k}\frac{u_{i}}{u_{n}u_{n+1}}>\sum_{n=i+1}^{k}\frac{u_{i+1}}{u_{n}u_{n+1}}.

By Lemma 3.7 (2) and (3),

n=ikuiunun+1n=i+1kui+1unun+1\displaystyle\sum_{n=i}^{k}\frac{u_{i}}{u_{n}u_{n+1}}-\sum_{n=i+1}^{k}\frac{u_{i+1}}{u_{n}u_{n+1}} =uiuiui+1(ui+1ui)n=i+1kui+1unun+1\displaystyle=\frac{u_{i}}{u_{i}u_{i+1}}-(u_{i+1}-u_{i})\sum_{n=i+1}^{k}\frac{u_{i+1}}{u_{n}u_{n+1}}
>1ui+1(ui+1ui)1ui+11ui+2ui+1\displaystyle>\frac{1}{u_{i+1}}-(u_{i+1}-u_{i})\cdot\frac{1}{u_{i+1}}\cdot\frac{1}{u_{i+2}-u_{i+1}}
=1ui+1(1ui+1uiui+2ui+1)>0\displaystyle=\frac{1}{u_{i+1}}\left(1-\frac{u_{i+1}-u_{i}}{u_{i+2}-u_{i+1}}\right)>0

which shows the assertion. \square

Proposition 3.6 says that the amplitude of the navigation vector may not be zero even at a point outside of the shortest route from the start to the goal. On the other hand, Theorems 3.8 and 3.9 show that the quantum walker is more likely to be at a point on a shorter route. Hence, in the case of ladder graph, the position of the quantum walker tells us a shorter route, although not as much as in the case of tree graph.

3.3 Comparison with the digraph with a sink at the goal

A method of maze-solving was considered by adding the sink at the goal in [26]. In this subsection, we discuss differences between the method in [26] and ours.

Example 3.10

The digraph in the left hand side of Figure 5 is considered in [26]. When we put the sink at the goal, the state (PU)nζ(PU)^{n}\zeta does not converge. The reason why this happens is that there exists an eigenvector in (1) whose eigenvalue is not 1-1. Let λ=e2πi3\lambda=e^{\frac{2\pi{\rm i}}{3}} and t=32it=-\frac{\sqrt{3}}{2}{\rm i}. Then, the vector defined as in the right hand side of Figure 5 is the eigenvector associated with the eigenvalue λ\lambda. This eigenvector is the cause of oscillations of amplitudes (See [25, 26]).

Refer to caption
Figure 5: Digraph considered in [26] and an eigenvector in (1).

On the other hand, when we put the sink at the start, the state (1)n(PU)nζ(-1)^{n}(PU)^{n}\zeta definitely converges. (See also Section 3.2.)

Example 3.11

When the sink is at the goal, we can make an example where the amplitudes of the state (PU)nζ(PU)^{n}\zeta appear at points other than the start-to-goal path. Let λ=eπi3\lambda=e^{\frac{\pi{\rm i}}{3}} and k=6l+3k=6l+3 (l)(l\in{\mathbb{N}}). Then, the vector defined as in Figure 6 is in (1) whose eigenvalue is not 1-1.

Refer to caption
Figure 6: An eigenvector in (1).

Therefore, (PU)nζ(PU)^{n}\zeta always has non-zero coefficients on the cycle of length kk. This means that the position of the quantum walker does not tells us the shortest route. Probably, it misleads us.

4 Summary

We have established a mathematical framework for maze solving using quantum walks and explicitly derived the limit distribution. Our method resembles the placement of food at the start and goal in slime mold maze-solving by incorporating self-loops at these vertices, which enables the emergence of the shortest path within the quantum walk structure. Moreover, we found that adding the sink at the start rather than at the goal effectively prevents the emergence of unstable states. These phenomena are based on the spectral properties of the Grover walk, characterized by a birth space defined by fundamental cycles, self-loops, and sinks. Although this eigenspace has not been utilized in existing quantum search algorithms, it plays an important role in our maze-solving methodology.

Acknowledgments

E.S. is supported by JSPS KAKENHI Grant Number 24K06863. H.O. is supported by JSPS KAKENHI Grant Number 23K03147.

References

  • [1] S. Aaronson and A. Ambainis. Quantum search of spatial regions. Theory of Computing, 1(4):47–79, 2005.
  • [2] A. Ambainis, E. Bach, A. Nayak, A. Vishwanath, and J. Watrous. One-dimensional quantum walks. Proc. 33rd Annual ACM Symp. Theory of Computing, pages 37–49, 2001.
  • [3] R. Bellman. On a routing problem. Quarterly of Applied Mathematics, 16:87–90, 1958.
  • [4] J. Biamonte, M. Faccin, and M. D. Domenico. Complex networks from classical to quantum. Commun Phys, 2:53, 2019.
  • [5] S. Boccaletti, V. Latora, Y. Moreno, M. Chavez, and D.-U. Hwang. Complex networks: Structure and dynamics. Physics Reports, 424(4):175–308, 2006.
  • [6] F. Caruso, A. Crespi, A. Ciriolo, F. Sciarrino, and R. Osellame. Fast escape of a quantum walker from an integrated photonic maze. Nat Commun., 7:11682, 2016.
  • [7] B. V. Cherkassky, A. V. Goldberg, and T. Radzik. Shortest paths algorithms: Theory and experimental evaluation. Mathematical Programming, 73:129–174, 1996.
  • [8] A. M. Childs and J. Goldstone. Spatial search by quantum walk. Phys. Rev. A, 70:022314, Aug 2004.
  • [9] T. Cormen, C. Leiserson, R. Rivest, and C. Stein. Introduction to Algorithms 3rd ed. 2009.
  • [10] S. Cottrell and M. Hillery. Finding structural anomalies in star graphs using quantum walks. Phys. Rev. Lett., 112:030501, Jan 2014.
  • [11] E. Dijkstra. A note on two problems in connexion with graphs. Numer. Math., 1:269–271, 1959.
  • [12] S. Dreyfus. An appraisal of some shortest path algorithm. Oper. Res., 17:395–412, 06 1969.
  • [13] E. Feldman and M. Hillery. Quantum walks on graphs and quantum scattering theory. Contemporary Mathematics, 381:71–96, 2005.
  • [14] E. Feldman and M. Hillery. Modifying quantum walks: A scattering theory approach. Journal of Physics A: Mathematical and Theoretical, 40:11319, 2007.
  • [15] E. Feldman, M. Hillery, H.-W. Lee, D. Reitzner, H. Zheng, and V. Bužek. Finding structural anomalies in graphs by means of quantum walks. Phys. Rev. A, 82:040301, Oct 2010.
  • [16] R. P. Feynman and A. R. Hibbs. Quantum Mechanics and Path Integrals. 2010.
  • [17] L. K. Grover. Quantum mechanics helps in searching for a needle in a haystack. Phys. Rev. Lett., 79:325–328, Jul 1997.
  • [18] Y. Higuchi, M. Sabri, and E. Segawa. Electric circuit induced by quantum walk. Journal of Statistical Physics, 181:603––617, 2020.
  • [19] Y. Higuchi and E. Segawa. Circuit equation of Grover walk. Annales Henri Poincaré in press, arXiv:2211.00920.
  • [20] Y. Higuchi and E. Segawa. Dynamical system induced by quantum walks. Journal of Physics A: Mathematical and Theoretical, 52:39520, 2019.
  • [21] M. Hillery. Finding more than one path through a simple maze with a quantum walk. Journal of Physics A: Mathematical and Theoretical, 54(9):095301, feb 2021.
  • [22] M. Hillery, H. Zheng, E. Feldman, D. Reitzner, and V. Bužek. Quantum walks as a probe of structural anomalies in graphs. Phys. Rev. A, 85:062325, Jun 2012.
  • [23] D. Koch. Scattering quantum random walks on square grids and randomly generated mazes. Phys. Rev. A, 99:012330, Jan 2019.
  • [24] D. Koch and M. Hillery. Finding paths in tree graphs with a quantum walk. Phys. Rev. A, 97:012308, Jan 2018.
  • [25] N. Konno, E. Segawa, and M. Stefanak. Relation between quantum walks with tails and quantum walks with sinks on finite graphs. Symmetry, 13:1169, 2021.
  • [26] L. Matsuoka, K. Yuki, H. Lavička, and E. Segawa. Maze solving by a quantum walk with sinks and self-loops: Numerical analysis. Symmetry, 13:2263, 2021.
  • [27] T. Nakagaki, H. Yamada, and A. T’oth. Maze-solving by an amoeboid organism. Nature 407, 407:470, 2000.
  • [28] R. Portugal. Quantum Walk and Search Algorithm, 2nd Ed. Springer Nature Switzerland, 2018.
  • [29] D. Reitzner, M. Hillery, and D. Koch. Finding paths with quantum walks or quantum walking through a maze. Phys. Rev. A, 96:032323, Sep 2017.
  • [30] D. R. Reyes, M. M. Ghanem, G. M. Whitesides, and A. Manz. Glow discharge in microfluidic chips for visible analog computing. Lab Chip, 2:113–116, 2002.
  • [31] E. Segawa, S. Koyama, N. Konno, and M. Štefaňák. Survival probability of the grover walk on the ladder graph. Journal of Physics A: Mathematical and Theoretical, 56:215301, 2023.
  • [32] N. Shenvi, J. Kempe, and K. B. Whaley. Quantum random-walk search algorithm. Phys. Rev. A, 67:052307, May 2003.
  • [33] O. Steinbock, Ágota Tóth, and K. Showalter. Navigating complex labyrinths: Optimal paths from chemical waves. Science, 267(5199):868–871, 1995.
  • [34] S. Strogatz. Exploring complex networks. Nature, 410:268–276, 2001.
  • [35] A. Teroa, R. Kobayashia, and T. Nakagaki. A mathematical model for adaptive transport network in path finding by true slime mold. Journal of Theoretical Biology, 244:553–564, 2007.