Next Article in Journal
Multi-Particle-Collision Simulation of Heat Transfer in Low-Dimensional Fluids
Previous Article in Journal
Integrating Dynamical Systems Modeling with Spatiotemporal scRNA-Seq Data Analysis
Previous Article in Special Issue
First Hitting Times on a Quantum Computer: Tracking vs. Local Monitoring, Topological Effects, and Dark States
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Efficient Circuit Implementations of Continuous-Time Quantum Walks for Quantum Search

by
Renato Portugal
* and
Jalil Khatibi Moqadam
National Laboratory of Scientific Computing (LNCC), Av. Getulio Vargas 333, Petrópolis 25651-075, Brazil
*
Author to whom correspondence should be addressed.
Entropy 2025, 27(5), 454; https://doi.org/10.3390/e27050454
Submission received: 20 March 2025 / Revised: 19 April 2025 / Accepted: 22 April 2025 / Published: 23 April 2025
(This article belongs to the Special Issue Quantum Walks for Quantum Technologies)

Abstract

:
Quantum walks are a powerful framework for simulating complex quantum systems and designing quantum algorithms, particularly for spatial search on graphs, where the goal is to find a marked vertex efficiently. In this work, we present efficient quantum circuits that implement the evolution operator of continuous-time quantum-walk-based search algorithms for three graph families: complete graphs, complete bipartite graphs, and hypercubes. For complete and complete bipartite graphs, our circuits exactly implement the evolution operator. For hypercubes, we propose an approximate implementation that closely matches the exact evolution operator as the number of vertices increases. Our Qiskit simulations demonstrate that even for low-dimensional hypercubes, the algorithm effectively identifies the marked vertex. Furthermore, the approximate implementation developed for hypercubes can be extended to a broad class of graphs, enabling efficient quantum search in scenarios where exact implementations are impractical.

1. Introduction

The continuous-time quantum walk (CTQW) was introduced by Farhi and Gutmann [1] as the quantum version of the continuous-time Markov chain, and this new model proved useful to build quantum algorithms, such as algorithms for spatial search on graphs [2,3,4,5,6] and NAND-based formula evaluation [7]. CTQWs are also universal for quantum computation, meaning that any quantum algorithm can be efficiently simulated using a continuous-time quantum walk [8,9,10]. Experimental implementations of search algorithms using continuous-time quantum walks are described in [11,12,13,14,15].
Circuits for the implementation of CTQWs on graphs with no marked vertex are obtained using Hamiltonian simulation—for instance, Refs. [16,17,18] describe circuits for the CTQW on circulant graphs using this method. Hamiltonian simulation is different from the methods used to implement discrete-time quantum walks [19,20], such as the ones described in [20,21,22,23,24].
In this work, we tackle the problem of finding efficient circuits for the implementation of CTQW-based search algorithms on graphs with one marked vertex. We use a Hamiltonian simulation based on efficient state preparation. We focus on three graph classes: complete graphs, complete bipartite graphs, and hypercubes. The techniques described here can be applied to other graph classes. When the graph structure is simple enough, such as complete graphs and complete bipartite graphs, we build a circuit that simulates the exact evolution operator U, modulo a global phase. On the other hand, for hypercubes, we build a circuit that implements a unitary operator U that simulates U approximately, not in the sense that the Hilbert–Schmidt distance between U and U is small, but in the sense that the difference between the probability of finding the marked vertex using U and U is small when the initial condition is the uniform superposition | s of all states of the computational basis.
Our method relies on the fact that, for some graph classes, the fidelity between the uniform state | s with the plane spanned by the ground state | λ and first excited state | λ + of the Hamiltonian tends to one asymptotically ( N , where N is the number of vertices) [25]. For these graph classes, we describe a method to calculate approximations of | λ ± . Since the Hamiltonian is described only in terms of projectors on the eigenspaces of these two eigenvectors, we use the fact that they commute, and then the evolution operator can be written as a product of two unitary operators U = U λ + U λ . In the final step, we implement U λ + and U λ using circuits for state preparation, that is, using the circuit of an operator A λ such that A λ | 0 = | λ , where | 0 is the first state of the computational basis.
In all graph classes that we have addressed, we have obtained circuits for the evolution operators with O ( log 2 N ) basic gates. However, to run the whole search algorithm we need O ( N ) steps—that is, at the end, we implement U t opt , where t opt is the optimal running time of the algorithm. Therefore, the circuits have O ˜ ( N ) basic gates.
Compared to previous works on Hamiltonian simulation of quantum walks [12,13,14], our contribution lies in providing explicit and efficient quantum circuits tailored specifically for CTQW-based search algorithms, rather than just for CTQWs without marked vertices. Furthermore, we introduce a method that allows for the construction of simpler circuits for hypercubes and complete bipartite graphs, which can be extended to a broad class of graphs.
The structure of the paper is as follows. Section 2 reviews the continuous-time quantum walk dynamics on graphs. The following sections present the decomposition of the evolution operator and the associated circuit for two kinds of CTQWs on graphs, namely, graphs with no marked vertex, and graphs with one marked vertex. We address three graph classes: (1) complete graphs in Section 3, (2) complete bipartite graphs in Section 4, and (3) hypercubes in Section 5. In Section 6, we present our conclusions.

2. CTQW on Graphs

A continuous-time quantum walk [1,26] on a graph Γ ( V , E ) , with vertex set V and edge set E, is a quantum dynamics in which the state space is associated with V, and the evolution operator is U ( t ) = e i H t , where H = γ A is the Hamiltonian, γ is a positive constant setting the transition rate of the walker, and A the adjacency matrix, which is a symmetric matrix whose entries A k are 1 for all pairs of vertices ( v k , v ) E , and 0 otherwise. If the initial state is | ψ ( 0 ) , the state of the quantum walk at time t is | ψ ( t ) = U ( t ) | ψ ( 0 ) .

2.1. Spatial Search on Graphs

The CTQW is an interesting framework for developing spatial search algorithms on graphs. These algorithms aim to find a marked vertex w V as quickly as possible starting from an initial state uniformly spread over all vertices. The standard recipe is driven by the modified following Hamiltonian [2]:
H = γ A | w w | .
The CTQW-based search provides a quadratic speedup when compared with a random-walk-based search on a complete graph [2], bipartite graph, hypercube [2], and Johnson graph, to mention a few of them. However, the CTQW-based search algorithms do not outperform the classical algorithms on d-dimensional lattices with d < 4  [2].
The efficiency of the algorithm is determined by the optimal running time t opt so that the success probability p succ = w | ψ ( t opt ) 2 is as large as possible, where
| ψ ( t ) = e i H t | ψ ( 0 ) ,
in which H is the modified Hamiltonian (1), and | ψ ( 0 ) is the initial condition
| ψ ( 0 ) = | s = 1 N j = 0 N 1 | j ,
where N is the number of vertices.

2.2. Locality

Quantum walk is a subarea of quantum mechanics that is characterized essentially by two aspects: (1) the allowed locations of the walker is a spatial discrete structure, usually modeled by a graph, and (2) the evolution operator is local in the sense that if the walker is on vertex v, the walker hops to the neighboring vertices of v before reaching the other vertices. The dynamics given in  (2) satisfies the two aspects via the following reasons: Let the initial condition be | ψ ( 0 ) = | v and take γ constant for all graphs in a graph class. After an infinitesimal time ϵ , the locations of the walker is the superposition state
| v + ϵ γ A + δ v , w | v + O ϵ 2 | v ,
which satisfies the locality aspect because the action of the adjacency matrix on | v results in a superposition of vertices in the neighborhood of v.
If we want to compare the time complexity of CTQW-based with random-walk-based search algorithms, we have to change the viewpoint. Since the random walk evolves in discrete time-steps, a fair comparison demands that we take t = 1 in (2) and repeat the action of e i H over and over. To satisfy the locality aspect in this case, we take γ small, typically O 1 / N , where N is the number of vertices. The optimal value of γ of the CTQW-based search algorithm on the class of complete graphs and complete bipartite graphs is O 1 / N . On the other hand, the optimal value of γ for the class of hypercube graphs is O 1 / log N , which satisfies a weaker version of the locality aspect.

3. Complete Graph

Let K N be the complete graph, where N = 2 n . The Hilbert space associated with K N is spanned by the vertices. The adjacency matrix of K N is
A = N | s s | I ,
where | s is the uniform superposition of all vertices or all basis states, | s = H n | 0 , and H = 1 2 1 1 1 1 is the Hadamard operator. Assuming that γ = 1 / N , the evolution operator of a CTQW on K N with no marked vertex is
U ( t ) = e i t N H n e i t | 0 0 | H n .
Using the identity
e i t P = I + ( e i t 1 ) P ,
which is true for any orthogonal projector P, we obtain
U ( t ) = e i t N H n I + ( e i t 1 ) | 0 0 | H n .
The circuit that implements U ( t ) up to a global phase is depicted in Figure 1 for the case n = 4 . The implementation of
R = I + ( e i t 1 ) | 0 0 |
uses a multi-controlled gate
R z ( θ ) = e i θ / 2 0 0 e i θ / 2
multiplied by a relative phase e i θ 2 . Note that R | 0 = e i t | 0 and R | j = | j if j 0 . If n = 1 , R is obtained as follows:
R = e i t 2 X R z ( t ) X = e i t 0 0 1 .
If n > 1 , we have to use n 1 control qubits that are activated only when they are set to 0.
In Qiskit (https://qiskit.org/ (accessed on 19 March 2025)), the multi-controlled gate e i t 2 R z ( t ) is implemented using gate mcrz (see package qiskit.circuit.QuantumCircuit), and its decomposition in terms of universal gates is automatically provided.

Spatial Search on Complete Graph

We take γ = 1 / N because this is the asymptotically optimal value for the spatial search algorithm on the complete graph K N [2]. This choice is made for the evolution under e i H , where the hopping rate is γ = 1 / N . Note that, assuming N is large, this choice ensures the locality of the dynamics in the sense discussed in Section 2.2. Using this value in the modified Hamiltonian (1), we obtain
H = I N | s s | | w w |
where w is the marked vertex. Alternatively, we write
H I N = λ + | λ + λ + | + λ | λ λ | ,
where | λ ± are the only eigenvectors of H I / N associated with non-zero eigenvalues λ ± , which are given by
λ ± = 1 ± 1 N
and the entries of the eigenvectors are
j | λ ± = λ ± 2 if j = w , 1 2 N λ ± if j w .
In the continuation, we assume that w = 0 . The eigenvectors in this case are
| λ ± = 1 2 N λ ± N λ ± 1 1 .
Using that the projectors | λ + λ + | and | λ λ | commute, the evolution operator of a CTQW on K N with one marked vertex is
U ( t ) = e i t / N e i t λ + | λ + λ + | e i t λ | λ λ | .
Using Equation (7), we obtain
U ( t ) = e i t / N A λ + R λ + ( t ) A λ + A λ R λ ( t ) A λ
where
R λ ± ( t ) = I + ( e i t λ ± 1 ) | 0 0 |
and (the choice of | 0 in this equation has no relation with the location of the marked vertex)
A λ ± | 0 = | λ ± .
The circuit that implements U ( t ) (18) is depicted in Figure 2. The circuit of A λ ± is obtained using the techniques described in Appendix A and is depicted in Figure 3. Using Equations (A3), (A5), and (A9), the angles of operators R y when w = 0 are
θ k ± = 2 arctan 1 1 + 2 k 2 k + 1 N π 2 ,
for 1 k n . When w 0 , we must implement the modifications described at the end of Appendix A.
If we consider a finite set of basic gates, the number of basic gates required to implement the A λ ± in Figure 3 is O ( n 2 ) for the angles of Equation (21). The computational cost to implement R λ ± ( t ) depends on t. For a fixed t, say t = 1 , the number of universal gates is also O ( n 2 ) because λ ± 1 for large N. For the search algorithm, the optimal running time is the following [2]:
t opt = π 2 N ,
which means that the success probability is exactly 1 at t opt . In terms of oracle-based algorithms, the oracle is the circuit of e i H , obtained by taking t = 1 in the circuit of Figure 2. To find the marked vertex, in this case w = 0 , one must concatenate the circuit of Figure 2 t opt times. Therefore, the implementation requires O ˜ ( N ) basic gates. Note that when N is large, the operator e i H is local in the sense discussed in Section 2.2. The walker hops only to neighboring vertices after the action of e i H because the hopping rate is γ = 1 / N . To compare the continuous-time evolution with a discrete-time random-walk-based evolution or with Grover’s algorithm, we have to repeat the action of e i H over and over instead of setting t = π N / 2 in the circuit of Figure 2 (see discussion in Section 2.2).
Figure 4 depicts the success probability 0 | ψ ( t ) 2 as a function of the number of steps t for a complete graph K 256 . The curve is obtained using the implementation of the circuit of Figure 2 in Qiskit. Since t is discrete, the optimal running time is t opt .

4. Complete Bipartite Graph

Let K n , n be a complete bipartite graph with N = 2 n = 2 m vertices and adjacency matrix A. The Hilbert space associated with K n , n is spanned by the vertices. Define A ˜ as
A ˜ = H m A H m ,
which is a remarkably simple matrix given by
A ˜ = n | 0 0 | n | n n | ,
whose nonzero eigenvalues are λ ± = ± n with associated eingenvectors | λ + = | 0 and | λ = | n . Taking γ = 1 / n and using the fact that the projectors | 0 0 | and | n n | commute, the evolution operator of a CTQW on the complete bipartite graph with no marked vertex is
U ( t ) = e i γ A t = H m e i γ A ˜ t H m = H m e i t | 0 0 | e i t | n n | H m .
Using Equation (7), we obtain
U ( t ) = H m R 0 R n H m ,
where
R 0 = I + ( e i t 1 ) | 0 0 | , R n = I + ( e i t 1 ) | n n | .
The circuit that implements U ( t ) up to a global phase is depicted in Figure 5 for the case m = 4 . Note that the first control qubit of R n is solid because n = ( 10 . . . 0 ) 2 .

Spatial Search on Complete Bipartite Graph

We take γ = 1 / n because this is the asymptotically optimal value for the spatial search algorithm on the complete bipartite graph K n , n , as can be derived using the method described in Appendix B. Note that, assuming n is large, this choice of γ ensures the locality of the dynamics in the sense discussed in Section 2.2. Using γ = 1 / n in the modified Hamiltonian (1), we obtain
H = H m | 0 0 | | n n | H m | w w |
where w is the marked vertex. Since this Hamiltonian has only three eigenvalues different from 0, we write
H = λ + | λ + λ + | + λ | λ λ | + λ 0 | λ 0 λ 0 | ,
where λ < λ + < λ 0 are solutions of
λ 3 + λ 2 λ 1 1 n = 0 .
When w = 0 , the entries λ ( j ) = j | λ of associated eigenvectors are
λ ( j ) = 1 c if j = 0 , a c if 1 j n , b c if n < j < N ,
where
a = n λ 2 + n λ 1 n 1 ,
b = 1 λ ,
c = 1 + ( n 1 ) a 2 + n b 2 .
Using the fact that the projectors | λ + λ + | , | λ λ | , and | λ 0 λ 0 | commute, the evolution operator of a CTQW on K n , n with one marked vertex is
U ( t ) = e i t λ 0 | λ 0 λ 0 | e i t λ + | λ + λ + | e i t λ | λ λ | .
Using Equation (7), we obtain
U ( t ) = A λ 0 R λ 0 A λ 0 A λ + R λ + A λ + A λ R λ A λ
where
R λ = I + ( e i t λ 1 ) | 0 0 |
and
A λ | 0 = | λ ,
where λ { λ ± , λ 0 } is a root of (29) and | λ is the associated eigenvector.
The circuit that implements U ( t ) (35) is depicted in Figure 6. The circuit that implements A λ when | λ is given by (30) is obtained using the techniques described in Appendix A and is depicted in Figure 7. Using Equations (A3), (A5), and (A9), the angles of operators R y when w = 0 are
θ k λ = 2 arctan a 1 δ k m + b δ k m a 2 ( 1 2 k 1 ) b 2 2 k 1 + c 2 k m π 2 ,
for 1 k m . Note that a, b, and c depend on λ , which assumes the three roots of Equation (29). When w 0 , we must implement the modifications described at the end of Appendix A.
If we remove the gates of the circuit of Figure 6 associated with λ 0 , we obtain a reduced circuit that provides a good approximation of the action of U ( t ) when the initial condition is the uniform state. Using Equations (3) and (30), the asymptotic overlap between | λ 0 and | ψ ( 0 ) is
λ 0 | ψ ( 0 ) 2 = 1 16 N 2 + O 1 N 3 ,
which shows that asymptotically we can remove the term λ 0 | λ 0 λ 0 | from Equation (28) because the initial condition is | ψ ( 0 ) . Consistently, λ + | ψ ( 0 ) 2 + λ | ψ ( 0 ) 2 1 in the asymptotic limit. The same behavior can be observed in many other graph classes, in which the asymptotic time-complexity of the search algorithm is determined by only two eigenvectors of the modified Hamiltonian.
Figure 8 depicts the success probability 0 | ψ ( t ) 2 as a function of the number of steps t for a complete bipartite graph K 32 , 32 . The orange curve is obtained using the implementation of the circuit of Figure 6 and the blue curve is obtained using the approximate circuit (without the gates associated with λ 0 ), both using Qiskit. The curves are remarkably close even with N = 64 . The optimal running time is given by Equation (A17), which is
t opt = π 2 N
asymptotically. The blue curve is the square of a sinusoidal function, consistent with Equation (A16).

5. Hypercube

The n-dimensional hypercube Q n is a graph whose vertex set is labeled by the binary n-tuples and two vertices are adjacent if their Hamming distance is exactly one. The adjacency matrix is
A = j = 1 n X j ,
where X j is the Pauli-X matrix acting on the j-th qubit. The computational basis of the Hilbert space associated with Q n is the set of all n-tuples and the dimension of the Hilbert space is N = 2 n . The evolution operator of the CTQW on Q n with no marked vertex at time t is
U ( t ) = R x 2 γ t n ,
where R x ( θ ) = exp ( i θ X / 2 ) .
In the next subsection, we address spatial search on the hypercube and obtain the optimal value of γ for the search algorithm.

Spatial Search on Hypercube

To build the circuit of the spatial search algorithm on the hypercube, instead of taking the full Hamiltonian (1), we use an approximate Hamiltonian given by
H approx = λ | λ λ | + λ + | λ + λ + | ,
where λ ± are the eigenvalues of the first excited and ground states, respectively, of the exact Hamiltonian; | λ ± are the associated normalized eigenvectors. We calculate a good approximation for λ ± and | λ ± by using the techniques of Appendix B. We disregard the remaining eigenvectors | λ span | λ ± of the exact Hamiltonian because either they are associated with zero eigenvalues or λ | ψ ( 0 ) 0 asymptotically, where | ψ ( 0 ) is the initial condition (3).
The circuit that simulates the evolution operator
U ( t ) = e i t H approx
is depicted in Figure 9. To build this circuit, we replace (43) in (44) in order to obtain
U ( t ) = A λ + R λ + A λ + A λ R λ A λ
where
R λ ± = I + ( e i t λ ± 1 ) | 0 0 |
and
A λ ± | 0 = | λ ± .
The circuit of A λ ± , which is depicted in Figure 10, is obtained using the techniques described in Appendix A and | λ ± using Appendix B. In the next paragraphs, we give the details.
Since the characteristic polynomial of A (41) is
k = 0 n ϕ k + 2 k n n k ,
the eigenvalues are
ϕ k = n 2 k
for 0 k n , with multiplicity n k . Since
A ˜ | = ( n 2 | | ) | ,
where A ˜ = H n A H n and | | is the Hamming weight of , the eigenvectors associated with eigenvalue ( n 2 k ) are H n | such that | | = k . Define projector P k onto the ϕ k -eigenspace as
P k = = 0 | | = k N 1 H n | | H n .
Using these projectors, we obtain
P k | w 2 = 1 N 2 y = 0 N 1 | | = k ( 1 ) · y 2 = 1 N n k .
Using Formulas (A12) and (A13), we obtain
S 1 = 1 2 N k = 1 n 1 k n k = 1 n + 1 n 2 + O 1 n 3 ,
S 2 = 1 4 N k = 1 n 1 k 2 n k = 1 n 2 + O 1 n 3 .
The asymptotic expansion of S 1 is described in Ref. [27] and of S 2 is obtained using the inequalities 1 4 N k = 1 n 1 ( k + 1 ) ( k + 2 ) n k S 2 S 1 2 . Using (A14), we have γ = S 1 , and therefore,
γ = 1 n + O 1 n 2 .
Note that this optimal value of γ satisfies a weaker form of the locality condition discussed in Section 2.2, when compared to the optimal values of γ for K N and K n , n . Using Equation (A15), we obtain
ϵ = 1 N + O 1 n N .
and then using Equation (A11), we obtain
λ ± = 1 ± 1 N + O 1 N .
Using Equation (A24), we obtain the following approximation for the components of the eigenvectors:
λ ± ( j ) = 1 2 δ j w 1 N .
Let us take w = 0 (if w 0 , we must implement the modifications described at the end of Appendix A). Note that λ + | λ = 0 and λ ± | λ ± = 1 2 / N . The norms of these eigenvectors tend to 1 asymptotically. Since | λ ± belongs to span | α 0 , , | α n and minding the normalizing factor in Equation (A3), Equation (A6) implies that α 0 = λ ± ( 0 ) and α k = 2 k 1 λ ± ( 2 k 1 ) ( 1 k n ). Replacing α k into Equation (A9), we obtain θ 0 ± = π / 2 and
θ k ± = arctan 1 1 + 2 1 k N .
for 1 k n . Then, using Equation (A5), we obtain
θ k ± = 2 arctan 1 1 + 2 k π 2
for 1 k n . Using θ k ± , we obtain the circuit for A λ ± such that A λ ± | 0 = | λ ± , which is depicted in Figure 10.
The first panel of Figure 11 depicts the success probability 0 | ψ ( t ) 2 as a function of the number of steps t for a hypercube Q 10 . The blue curve is obtained using the implementation of the circuit from Figure 9 in Qiskit, while the orange curve is generated using a numerical simulation of the exact Hamiltonian (1) with γ = S 1 , implemented with the Hiperwalk package (https://hiperwalk.org/ (accessed on 19 March 2025)). The program used to produce these results is available at Hiperwalk’s GitHub (https://github.com/hiperwalk/hiperwalk/tree/master/examples/continuous_time) (accessed on 19 March 2025).
The optimal running time is given by Equation (A17), which is
t opt = π 2 N
asymptotically. The blue curve exhibits a square-sinusoidal profile because it is derived using only the eigenvectors | λ ± , as shown in Equation (A16). As the dimension of the hypercube increases, the two curves converge, as illustrated in the second panel of Figure 11. This indicates that the blue curve provides a good approximation of both the running time and the success probability when n is sufficiently large.

6. Conclusions

In this work, we have described circuits that implement the evolution operator of the continuous-time quantum walk (CTQW)-based search algorithm on three graph classes: complete graphs, complete bipartite graphs, and hypercubes. We have implemented these circuits in Qiskit to compare them with the analytic evolution operators. For complete and complete bipartite graphs, the circuits implement the evolution operators exactly, modulo a global phase. For hypercubes, the circuit approximates the evolution operator, ensuring that the probability of finding the marked vertex closely matches that of the analytic operator when the hypercube dimension is sufficiently large.
The approximate implementation developed for hypercubes extends to a broader class of graphs, enhancing the versatility of CTQW-based search algorithms. This flexibility is particularly relevant in complex networks where exact implementations may be impractical. The framework described in [25] provides a method for determining the computational complexity of spatial search by CTQW on arbitrary graphs with multiple marked vertices, relying on two eigenvalues and two eigenvectors of the adjacency matrix. Our approximate implementation follows this framework, offering practical tools for implementing CTQW-based search algorithms on various graph structures.
As future work, we plan to pursue three directions: (1) apply our method to other graph classes, such as N-dimensional lattices; (2) explore the multi-marked vertex scenarios; and (3) explore potential applications of continuous-time quantum walks in quantum machine learning tasks, such as clustering or classification.

Author Contributions

Conceptualization, R.P. and J.K.M.; validation, R.P. and J.K.M.; formal analysis, R.P. and J.K.M.; investigation, R.P. and J.K.M.; writing—original draft, R.P. and J.K.M.; writing—review and editing, R.P. and J.K.M.; funding acquisition, R.P. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by CNPq grant numbers 300926/2022-7 and 304645/2023-0 and 409552/2022-4 and FAPERJ grant number E-26/200.954/2021.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Acknowledgments

We thank Pedro Lugão and Frank Acasiete for interesting discussions.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
CTQWContinuous-Time Quantum Walk

Appendix A. State Preparation

There is a well-known recipe for obtaining a circuit of an operator A that outputs a generic state | λ of n qubits when the input is | 0 —that is,
A λ | 0 = | λ .
If | λ has real entries and has many repeated entries, as discussed below, the Ansatz of Figure A1 provides a simpler circuit that has O ( n 2 ) basic gates assuming reasonable restrictions on θ k . The goal is to obtain angles θ 1 , , θ n that are used as parameters of the multi-controlled R y gates, where
R y ( θ ) = e i θ 2 Y = cos θ 2 sin θ 2 sin θ 2 cos θ 2 .
Figure A1. Ansatz for the circuit that implements an operator A λ with the property that A λ | 0 = | λ when n = 4 . Angles θ k are obtained from Equations (A5) and (A9).
Figure A1. Ansatz for the circuit that implements an operator A λ with the property that A λ | 0 = | λ when n = 4 . Angles θ k are obtained from Equations (A5) and (A9).
Entropy 27 00454 g0a1
Define | α 0 = | 0 and
| α k = 1 2 k 1 j = 2 k 1 2 k 1 | j ,
for 1 k n , where { | j : 0 j 2 n 1 } is the computational basis. If | λ span { | α 0 , , | α n } , then we can find θ 1 , , θ n such that | λ is the output of the circuit of Figure A1. To show this statement, we use the fact that the output of the circuit is
| λ = k = 0 n sin θ k j = k + 1 n cos θ j | α k ,
where
θ k = 2 θ n k + 1 π 2
for 1 k n and θ 0 = π / 2 . Assuming that
| λ = k = 0 n α k | α k ,
we obtain the system of equations
α k = sin θ k j = k + 1 n cos θ j ,
for 0 k n in terms of variables θ 1 , , θ n . The solution is obtained in a recursive way starting with equation α n = sin θ n and decreasing the index k of Equation (A7). We obtain
sin θ k = α k 1 j = k + 1 n α j 2 ,
and then
θ k = arctan α k 1 j = k n α j 2 .
To conclude, the circuit of Figure A1 outputs (A6) when angles θ k are given by Equations (A5) and (A9).
Note that the entry α 0 of vector | λ in (A6) plays a special role in the spatial search algorithm, because it is associated with the label of the marked vertex. If the label of the marked vertex is (assume that is even by now), we want to define | α = | . In this case, we have to change some empty controls of the R y ( θ ) -gates in the circuit of Figure A1 into solid controls. The recipe is as follows. Let us focus on the last gate of Figure A1, which has n 1 empty controls. We want this gate to be activated if the input is . We change from empty to solid all controls associated with bits 1 of . The same modifications must be applied to the preceding gates. On the other hand, if is odd, we have to do an extra change, not in terms of converting further empty into solid controls, but by changing θ n into π / 2 θ n .

Appendix B. Eigenvectors of the Modified Hamiltonian

Suppose that the distinct eigenvalues of the adjacency matrix A are ϕ 0 > ϕ 1 > > ϕ q . Define P as the orthogonal projector onto the eigenspace of A associated with eigenvalue ϕ for 0 q , so that
A = = 0 q ϕ P .
Let us assume that the asymptotic dynamics of the search algorithm depends only on two eigenvectors | λ ± of H (1) associated with eigenvalues λ ± closest to γ ϕ 0 , such as
λ ± = γ ϕ 0 ± ϵ + O ϵ 2 ,
where 2 ϵ > 0 is the spectral gap. Refs. [25,28] shows that the computational complexity of the search algorithm with one marked vertex w is determined by two sums given by
S 1 = = 1 q P | w 2 ϕ 0 ϕ
and
S 2 = = 1 q P | w 2 ( ϕ 0 ϕ ) 2 ,
and the asymptotic value of γ is obtained as
γ = S 1
and
ϵ = S 1 P 0 | w S 2 .
Asymptotically, the success probability 0 | ψ ( t ) 2 is
p ( t ) = 4 λ + | ψ ( 0 ) 2 w | λ + 2 sin 2 ϵ t ,
and the optimal running time is
t opt = π 2 ϵ .
To calculate the success probability, we need two extra quantities that are (1) the overlap between | λ ± and the marked vertex, which is
w | λ ± = S 1 2 S 2 ,
and (2) the overlap between | λ ± and the initial state, which is
ψ ( 0 ) | λ ± = 1 2 N P 0 | w .
Now, we are ready to calculate an asymptotic expression for j | λ ± , that is, the ( j + 1 ) -th entry of | λ ± . These calculations go beyond the results of Refs. [25,28]. Let us assume that the initial condition is a linear combination of | λ + and | λ in the asymptotic limit. Using the completeness relation, we obtain
j | ψ ( 0 ) = λ + | ψ ( 0 ) λ + ( j ) + λ | ψ ( 0 ) λ ( j ) ,
where λ + ( j ) = j | λ + and λ ( j ) = j | λ are the unknowns. We obtain a second independent equation in these unknowns by sandwiching H as follows:
j | H | ψ ( 0 ) = λ + λ + | ψ ( 0 ) λ + ( j ) + λ λ | ψ ( 0 ) λ ( j ) .
Using Equations (1) and (A10), we obtain
j | H | ψ ( 0 ) = S δ j w N ,
where
S = γ ϕ j | P | ψ ( 0 ) ,
and assuming that | ψ ( 0 ) is the uniform state. The solution of the system of Equations (A20) and (A21) is
λ ± ( j ) = 1 2 ϵ N λ ± | ψ ( 0 ) N S + δ j w + λ .
The circuit of A λ ± such that A λ ± | 0 = | λ ± can be obtained using the techniques of Appendix A.

References

  1. Farhi, E.; Gutmann, S. Quantum computation and decision trees. Phys. Rev. A 1998, 58, 915–928. [Google Scholar] [CrossRef]
  2. Childs, A.M.; Goldstone, J. Spatial search by quantum walk. Phys. Rev. A 2004, 70, 022314. [Google Scholar] [CrossRef]
  3. Agliari, E.; Blumen, A.; Mülken, O. Quantum-walk approach to searching on fractal structures. Phys. Rev. A 2010, 82, 012305. [Google Scholar] [CrossRef]
  4. Philipp, P.; Tarrataca, L.; Boettcher, S. Continuous-time quantum search on balanced trees. Phys. Rev. A 2016, 93, 032305. [Google Scholar] [CrossRef]
  5. Osada, T.; Coutinho, B.; Omar, Y.; Sanaka, K.; Munro, W.J.; Nemoto, K. Continuous-time quantum-walk spatial search on the Bollobás scale-free network. Phys. Rev. A 2020, 101, 022310. [Google Scholar] [CrossRef]
  6. Malmi, J.; Rossi, M.A.C.; García-Pérez, G.; Maniscalco, S. Spatial search by continuous-time quantum walks on renormalized Internet networks. Phys. Rev. Res. 2022, 4, 043185. [Google Scholar] [CrossRef]
  7. Farhi, E.; Goldstone, J.; Gutmann, S. A Quantum Algorithm for the Hamiltonian NAND Tree. Theory Comput. 2008, 4, 169–190. [Google Scholar] [CrossRef]
  8. Childs, A.M. Universal Computation by Quantum Walk. Phys. Rev. Lett. 2009, 102, 180501. [Google Scholar] [CrossRef]
  9. Childs, A.M.; Gosset, D.; Webb, Z. Universal Computation by Multiparticle Quantum Walk. Science 2013, 339, 791–794. [Google Scholar] [CrossRef]
  10. Lahini, Y.; Steinbrecher, G.R.; Bookatz, A.D.; Englund, D. Quantum logic using correlated one-dimensional quantum walks. npj Quantum Inf. 2018, 4, 2. [Google Scholar] [CrossRef]
  11. Dadras, S.; Gresch, A.; Groiseau, C.; Wimberger, S.; Summy, G.S. Experimental realization of a momentum-space quantum walk. Phys. Rev. A 2019, 99, 043617. [Google Scholar] [CrossRef]
  12. Delvecchio, M.; Groiseau, C.; Petiziol, F.; Summy, G.S.; Wimberger, S. Quantum search with a continuous-time quantum walk in momentum space. J. Phys. B At. Mol. Opt. Phys. 2020, 53, 065301. [Google Scholar] [CrossRef]
  13. Wang, K.; Shi, Y.; Xiao, L.; Wang, J.; Joglekar, Y.N.; Xue, P. Experimental realization of continuous-time quantum walks on directed graphs and their application in PageRank. Optica 2020, 7, 1524–1530. [Google Scholar] [CrossRef]
  14. Benedetti, C.; Tamascelli, D.; Paris, M.G.; Crespi, A. Quantum Spatial Search in Two-Dimensional Waveguide Arrays. Phys. Rev. Appl. 2021, 16, 054036. [Google Scholar] [CrossRef]
  15. Qu, D.; Marsh, S.; Wang, K.; Xiao, L.; Wang, J.; Xue, P. Deterministic Search on Star Graphs via Quantum Walks. Phys. Rev. Lett. 2022, 128, 050501. [Google Scholar] [CrossRef]
  16. Qiang, X.; Loke, T.; Montanaro, A.; Aungskunsiri, K.; Zhou, X.; O’Brien, J.L.; Wang, J.B.; Matthews, J.C.F. Efficient quantum walk on a quantum processor. Nat. Commun. 2016, 7, 11511. [Google Scholar] [CrossRef] [PubMed]
  17. Loke, T.; Wang, J.B. Efficient quantum circuits for continuous-time quantum walks on composite graphs. J. Phys. A Math. Theor. 2017, 50, 055303. [Google Scholar] [CrossRef]
  18. Santos, J.; Chagas, B.; Chaves, R. Quantum Walks in a Superconducting Quantum Computer. In WQUANTUM; Sociedade Brasileira de Computação: Porto Alegre, Brasil, 2021; pp. 25–30. [Google Scholar] [CrossRef]
  19. Aharonov, Y.; Davidovich, L.; Zagury, N. Quantum random walks. Phys. Rev. A 1993, 48, 1687–1690. [Google Scholar] [CrossRef]
  20. Acasiete, F.; Agostini, F.P.; Moqadam, J.K.; Portugal, R. Implementation of quantum walks on IBM quantum computers. Quantum Inf. Process. 2020, 19, 426. [Google Scholar] [CrossRef]
  21. Nzongani, U.; Zylberman, J.; Doncecchi, C.E.; Pérez, A.; Debbasch, F.; Arnault, P. Quantum circuits for discrete-time quantum walks with position-dependent coin operator. Quantum Inf. Process. 2023, 22, 270. [Google Scholar] [CrossRef]
  22. Georgopoulos, K.; Emary, C.; Zuliani, P. Comparison of quantum-walk implementations on noisy intermediate-scale quantum computers. Phys. Rev. A 2021, 103, 022408. [Google Scholar] [CrossRef]
  23. Wing-Bocanegra, A.; Venegas-Andraca, S.E. Circuit implementation of discrete-time quantum walks via the shunt decomposition method. Quantum Inf. Process. 2023, 22, 146. [Google Scholar] [CrossRef]
  24. Razzoli, L.; Cenedese, G.; Bondani, M.; Benenti, G. Efficient Implementation of Discrete-Time Quantum Walks on Quantum Computers. Entropy 2024, 26. [Google Scholar] [CrossRef]
  25. Lugão, P.; Portugal, R.; Sabri, M.; Tanaka, H. Multimarked Spatial Search by Continuous-Time Quantum Walk. ACM Trans. Quantum Comput. 2024, 5. [Google Scholar] [CrossRef]
  26. Frigerio, M.; Benedetti, C.; Olivares, S.; Paris, M.G.A. Generalized quantum-classical correspondence for random walks on graphs. Phys. Rev. A 2021, 104, L030201. [Google Scholar] [CrossRef]
  27. Bezerra, G.A.; Lugão, P.H.G.; Portugal, R. Quantum-walk-based search algorithms with multiple marked vertices. Phys. Rev. A 2021, 103, 062202. [Google Scholar] [CrossRef]
  28. Silva, C.F.T.d.; Posner, D.; Portugal, R. Walking on vertices and edges by continuous-time quantum walk. Quantum Inf. Process. 2023, 22, 93. [Google Scholar] [CrossRef]
Figure 1. Circuit implementing the CTQW on the complete graph K N , where U ( t ) is given by Equation (8) and N = 16 .
Figure 1. Circuit implementing the CTQW on the complete graph K N , where U ( t ) is given by Equation (8) and N = 16 .
Entropy 27 00454 g001
Figure 2. The circuit that implements U ( t ) (18) on K 2 n with one marked vertex when n = 4 . The circuit of A λ ± is depicted in Figure 3.
Figure 2. The circuit that implements U ( t ) (18) on K 2 n with one marked vertex when n = 4 . The circuit of A λ ± is depicted in Figure 3.
Entropy 27 00454 g002
Figure 3. The circuit that implements A λ ± (20) when n = 4 . Angles θ k ± are given by Equation (21).
Figure 3. The circuit that implements A λ ± (20) when n = 4 . Angles θ k ± are given by Equation (21).
Entropy 27 00454 g003
Figure 4. Success probability 0 | ψ ( t ) 2 as a function of the number of steps t for the search on K 2 n with n = 8 using a Qiskit implementation of the circuit of Figure 2.
Figure 4. Success probability 0 | ψ ( t ) 2 as a function of the number of steps t for the search on K 2 n with n = 8 using a Qiskit implementation of the circuit of Figure 2.
Entropy 27 00454 g004
Figure 5. Circuit implementing the CTQW on the bipartite graph K n , n with n = 8 , where U ( t ) is given by Equation (26).
Figure 5. Circuit implementing the CTQW on the bipartite graph K n , n with n = 8 , where U ( t ) is given by Equation (26).
Entropy 27 00454 g005
Figure 6. The circuit that implements U ( t ) (35) on K n , n with one marked vertex when n = 8 . The circuit of A λ is depicted in Figure 7.
Figure 6. The circuit that implements U ( t ) (35) on K n , n with one marked vertex when n = 8 . The circuit of A λ is depicted in Figure 7.
Entropy 27 00454 g006
Figure 7. The circuit that implements A λ (37) when m = 4 . Angles θ k λ are given by Equation (38).
Figure 7. The circuit that implements A λ (37) when m = 4 . Angles θ k λ are given by Equation (38).
Entropy 27 00454 g007
Figure 8. Success probability 0 | ψ ( t ) 2 as a function of the number of steps t for the search on K n , n with n = 32 . The orange curve is obtained using the exact decomposition (35) and the blue curve using the approximate circuit, both in Qiskit.
Figure 8. Success probability 0 | ψ ( t ) 2 as a function of the number of steps t for the search on K n , n with n = 32 . The orange curve is obtained using the exact decomposition (35) and the blue curve using the approximate circuit, both in Qiskit.
Entropy 27 00454 g008
Figure 9. The circuit that implements U ( t ) (45) on the hypercube Q n with one marked vertex when n = 4 . The circuit of A λ ± is depicted in Figure 10.
Figure 9. The circuit that implements U ( t ) (45) on the hypercube Q n with one marked vertex when n = 4 . The circuit of A λ ± is depicted in Figure 10.
Entropy 27 00454 g009
Figure 10. The circuit that implements A λ ± (47) when n = 4 . Angles θ k ± are given by Equation (60).
Figure 10. The circuit that implements A λ ± (47) when n = 4 . Angles θ k ± are given by Equation (60).
Entropy 27 00454 g010
Figure 11. The first panel shows the success probability 0 | ψ ( t ) 2 as a function of the number of steps t for the search on Q n with n = 10 . The blue curve is obtained using the decomposition (45), which provides an approximation of the true success probability (orange curve), computed using the exact Hamiltonian (1). The second panel shows the average distance between the blue and orange curves as a function of the hypercube dimension.
Figure 11. The first panel shows the success probability 0 | ψ ( t ) 2 as a function of the number of steps t for the search on Q n with n = 10 . The blue curve is obtained using the decomposition (45), which provides an approximation of the true success probability (orange curve), computed using the exact Hamiltonian (1). The second panel shows the average distance between the blue and orange curves as a function of the hypercube dimension.
Entropy 27 00454 g011
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Portugal, R.; Moqadam, J.K. Efficient Circuit Implementations of Continuous-Time Quantum Walks for Quantum Search. Entropy 2025, 27, 454. https://doi.org/10.3390/e27050454

AMA Style

Portugal R, Moqadam JK. Efficient Circuit Implementations of Continuous-Time Quantum Walks for Quantum Search. Entropy. 2025; 27(5):454. https://doi.org/10.3390/e27050454

Chicago/Turabian Style

Portugal, Renato, and Jalil Khatibi Moqadam. 2025. "Efficient Circuit Implementations of Continuous-Time Quantum Walks for Quantum Search" Entropy 27, no. 5: 454. https://doi.org/10.3390/e27050454

APA Style

Portugal, R., & Moqadam, J. K. (2025). Efficient Circuit Implementations of Continuous-Time Quantum Walks for Quantum Search. Entropy, 27(5), 454. https://doi.org/10.3390/e27050454

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop