Distributed exact Grover’s algorithm

Xu Zhou, Daowen Qiu, Le Luo

Front. Phys. ›› 2023, Vol. 18 ›› Issue (5) : 51305.

PDF(14522 KB)
Front. Phys. All Journals
PDF(14522 KB)
Front. Phys. ›› 2023, Vol. 18 ›› Issue (5) : 51305. DOI: 10.1007/s11467-023-1327-x
RESEARCH ARTICLE

Distributed exact Grover’s algorithm

Author information +
History +

Abstract

Distributed quantum computation has gained extensive attention. In this paper, we consider a search problem that includes only one target item in the unordered database. After that, we propose a distributed exact Grover’s algorithm (DEGA), which decomposes the original search problem into n/2 parts. Specifically, (i) our algorithm is as exact as the modified version of Grover’s algorithm by Long, which means the theoretical probability of finding the objective state is 100%; (ii) the actual depth of our circuit is 8(nmod2)+9, which is less than the circuit depths of the original and modified Grover’s algorithms, 1+8π42n and 9+8π42n12, respectively. It only depends on the parity of n, and it is not deepened as n increases; (iii) we provide particular situations of the DEGA on MindQuantum (a quantum software) to demonstrate the practicality and validity of our method. Since our circuit is shallower, it will be more resistant to the depolarization channel noise.

Graphical abstract

Keywords

distributed quantum computation / search problem / distributed exact Grover’s algorithm (DEGA) / MindQuantum / the depolarization channel noise

Cite this article

Download citation ▾
Xu Zhou, Daowen Qiu, Le Luo. Distributed exact Grover’s algorithm. Front. Phys., 2023, 18(5): 51305 https://doi.org/10.1007/s11467-023-1327-x

1 Introduction

Quantum computation is a novel computing model based on quantum mechanics. It has gained considerable attention over the past few decades since Benioff [1,2] proposed the concept of the quantum Turing machine in 1980. Subsequently, rapid progress has been made in quantum computation, so that numerous impressive quantum algorithms have been presented, such as Deutsch’s algorithm [3], Deutsch−Jozsa (DJ) algorithm [4], Bernstein-Vazirani (BV) algorithm [5], Simon’s algorithm [6], Shor’s algorithm [7], Grover’s algorithm [8], HHL algorithm [9] and so on. For some specific problems, due to the unique properties of quantum superposition and quantum entanglement, quantum algorithms have shown incomparable advantages over classical algorithms.
Grover’s algorithm was proposed by Grover [8] in 1996, which is a quantum search algorithm that solves the search problem in an unordered database with 2n elements. Specifically, let Boolean function f:{0,1}n{0,1}. For the m targets search problem, it aims to find out one target string xi{0,1}n satisfying f(xi)=1, where i{0,1,,m1}. Suppose we have a black box (Oracle) that can recognize the inputs, which means it will return f(x)=1 when x is a target string, and output f(x)=0 otherwise. The classical algorithms have to query Oracle O(2n/m) times, while Grover’s algorithm needs to query O(2n/m) times to figure out the target string with great probability, which has square acceleration compared with the classical algorithms.
Grover’s algorithm is widely regarded as one of the most prominent quantum algorithms. Furthermore, it is widely used in the minimum search problem [10], string matching problem [11], quantum dynamic programming [12] and computational geometry problem [13], etc. Subsequently, a generalization of Grover’s algorithm known as the quantum amplitude amplification and estimation algorithms [14] were presented.
However, Grover’s algorithm is unable to search for the target state accurately, except in the case of 1/4 of the data in the database meet the search conditions, which has been strictly proved [15]. In 2001, Long [16] improved Grover’s algorithm and proposed the modified version, which will acquire the goal state with a probability of 100%. Its main idea is to extend Grover operator G to operator L. The adjustment is carried out by three steps: (i) substitute phase rotation for phase inversion; (ii) let the phase rotation angles of two reflections in L equal, which is called phase-matching condition; (iii) iterate J+1 times for operator L, where J=(π/2θ)/(2θ) and θ=arcsin(m/2n). Actually, J can be any integer equal to or greater than (π/2θ)/(2θ).
In 2017, Preskill [17] declared that quantum computation is entering the noisy intermediate-scale quantum (NISQ) era. To deploy quantum computers, various physical systems are taken into consideration, such as ions [18], photons [19], superconduction [20], and other quantum systems [21,22]. Currently, small-qubit quantum computers are much easier to implement than large-scale universal quantum computers. Hence, researchers are considering how several small-scale devices might collaborate to accomplish a task on a large scale.
Distributed quantum computation, combining distributed computing and quantum computation, has gained extensive attention. In order to process a huge issue efficiently, it attempts to break it up into many subproblems that are distributed across several quantum computers. In this way, each component needs fewer qubits and has a shallower quantum circuit.
This research field has seen a significant amount of theoretical and experimental work [23-26]. Avron et al. [27] proposed a distributed method for constructing Oracle and then illustrated the advantage in the case of a Grover research. In their Grover’s algorithm experiment, however, they only acquired n1 qubits of the target state rather than the target state itself directly. The total number of qubits used in their scheme is 2(n1).
Qiu et al. [28] proposed two distributed Grover’s algorithms (parallel and serial) and these algorithms require fewer qubits and have shallower depth of circuits. Notably, the distributed algorithms by Qiu et al. [28] can solve the search problem with multiple targets. They divided a Boolean function f into 2k subfunctions, where 2k represents the number of computing nodes. By employing the quantum counting algorithm, the number of solutions in each subfunction can be determined, and then the solution for each subfunction can be obtained. Particularly, Qiu et al. [28] proposed an efficient algorithm of constructing quantum circuits for realizing the Oracle corresponding to any Boolean function with conjunctive normal form (CNF). The total number of qubits used in their parallel scheme is 2k(nk).
Tan et al. [29] presented an interesting and novel distributed Simon’s algorithm, which improves essentially the number of qubits for inputs and the depth of circuits compared to the famous Simon’s algorithm. Recently, Xiao et al. [30] proposed a distributed Shor’s algorithm, which can separately estimate patrial bits of s/r for some s{0,1,,r1} by two quantum computers during solving order-finding. Later, they extended this method to multiple nodes [31]. Zhou et al. [32] designed a distributed BV algorithm (DBVA) with 2tn nodes. Comparing with the original BV algorithms, their scheme is easier to verify in experiments. Li et al. [33] proposed a multi-node distributed exact quantum algorithm for solving the DJ problem with super-exponential speedup compared to distributed classical deterministic algorithms.
In this paper, we consider a search problem that includes only one target item in the unordered database (we still do not know how to solve it for the case of multiple targets). After that, we propose a distributed exact Grover’s algorithm (DEGA), which decomposes the original search problem into n/2 parts. Specifically, (i) our algorithm is as exact as the modified version of Grover’s algorithm by Long, which means the theoretical probability of finding the objective state is 100%; (ii) the actual depth of our circuit is 8(nmod2)+9, which is less than the circuit depths of the original and modified Grover’s algorithms, 1+8π42n and 9+8π42n12, respectively. It only depends on the parity of n, and it is not deepened as n increases.
MindQuantum (a quantum software) [34] is a general software library supporting the development of applications for quantum computation. Eventually, we provide particular situations of the DEGA on MindQuantum. These experiments will further demonstrate the correctness of the DEGA and explicate the specific steps of implement n-qubit DEGA, where n{2,3,4,5}. After that, we will simulate a 5-qubit DEGA running in the depolarization channel and compare with the original and modified Grover’s algorithms. Since our circuit is shallower, it will be more resistant to the depolarization channel noise.
The rest of the paper is organized as follows. We will briefly review the original and modified Grover’s algorithms in Section 2 and primarily describe the DEGA in Section 3. Next, the analysis of our the algorithm will be presented in Section 4. After that, we will provide particular situations of the DEGA on MindQuantum in Section 5. Finally, we will give a brief conclusion in Section 6.

2 Preliminaries

In this section, we briefly review the original [8] and modified [16] Grover’s algorithms.

2.1 Grover’s algorithm [8]

Suppose that the search task is carried out in an unordered set (or database) with 2n elements. We establish a one-to-one correspondence between the elements in the database and the indexes (integers from 0 to 2n1). We focus on searching the indexes of these elements.
Let Boolean function f:{0,1}n{0,1}. Define a function for the search problem as follows:
f(x)={1,x=τ,0,xτ,
where x{0,1}n and τ is the target index. In a quantum system, indexes are represented by quantum states |0,|1,,|2n1 (or |000,|001,,|111).
Without loss of generality, we consider a search problem that includes only one target item in the unordered database throughout this paper. Suppose we have a black box (Oracle Uf(x):|x(1)f(x)|x, where x{0,1}n) that can recognize the inputs. The purpose of Grover’s algorithm is to find out |τ with high probability.
Here, we briefly review Grover’s algorithm in Algorithm 1. The whole quantum circuit is shown in Fig.1.
Fig.1 Quantum circuit of Grover’s algorithm.

Full size|PPT slide

Full size|PPT slide

Next, we analyse Grover’s algorithm.
Denote
|x~12n1xτ|x,
|hHn(|0n)=12nx{0,1}n|x.
Then we can write
|h=2n12n|x~+12n|τcosθ|x~+sinθ|τ,
where
θ=arcsin(12n)(0,π2).
Since U0=In2(|00|)n and Uf(x)=In2|ττ|, we have
G=HnU0HnUf(x)=Hn(In2(|00|)n)Hn(In2|ττ|)=(In2|hh|)(In2|ττ|).
Therefore, the effect of one iteration of Grover operator G is two successive reflections in the space spanned by {|x~,|τ}, around |x~ and |h, respectively. In other words, one iteration of G causes a rotation by an angle 2θ from the initial state |h to the target state |τ (see Fig.2).
Fig.2 Visualization of Grover’s algorithm. In the two-dimensional plane space spanned by {|x~,|τ}, one iteration of G causes a rotation by an angle 2θ from the initial state |h to the target state |τ.

Full size|PPT slide

After k iterations of G, the state will be
Gk|h=cos((2k+1)θ)|x~+sin((2k+1)θ)|τ.
The goal is to make
sin((2k+1)θ)1,
then
(2k+1)θπ2,
will suffice, so we should choose
kπ/2θ2θ=π4θ12.
Note that k must be a positive integer.
Since we have assumed there is only one target item, then
θ=arcsin(12n)12n,
so
k=π42n
is a suitable choice for Grover’s algorithm. The success probability is
sin2((2π42n+1)arcsin(12n)).

2.2 The modified Grover’s algorithm by Long [16]

In 2001, Long improved Grover’s algorithm and proposed a modified version of Grover’s algorithm, which will acquire the goal state with a probability of 100%. Its main idea is to extend Grover operator G to operator L. The adjustment is carried out by three steps: (1) substitute phase rotation for phase inversion; (2) let the phase rotation angles of two reflections in L equal, which is called phase-matching condition; (3) iterate J+1 times for operator L, where J=(π/2θ)/(2θ) and θ=arcsin(1/2n). Actually, J can be any integer equal to or greater than (π/2θ)/(2θ).
Here, we briefly review the modified Grover’s algorithm by Long in Algorithm 2. The whole quantum circuit is shown in Fig.3.
Fig.3 Quantum circuit of the modified Grover’s algorithm.

Full size|PPT slide

Full size|PPT slide

Obviously, the modified Grover’s algorithm is a Grover’s algorithm when ϕ=π.
Next, we analyse the modified Grover’s algorithm.
In Grover’s algorithm, iterate
jop=(π/2θ)/(2θ)
or jop+1 times of the Grover operator G, so that (2jop+1)θ and [2(jop+1)+1]θ are close to π/2, where θ=arcsin(1/2n). However, Grover’s algorithm is unable to search for the target state accurately, except in the case of 1/4 of the data in the database meet the search conditions.
After substituting phase rotation R0=In+(eiϕ1)(|00|)n and Rf(x)=In+(eiϕ1)|ττ| for phase inversion U0=In2(|00|)n and Uf(x)=In2|ττ|, we have
L=HnR0HnRf(x)=Hn[In+(eiϕ1)(|00|)n]Hn[In+(eiϕ1)|ττ|)]=[In+(eiϕ1)|hh|][In+(eiϕ1)|ττ|]=(eiϕ(1+(eiϕ1)sin2θ)eiϕ(1eiϕ)sinθcosθeiϕ(eiϕ1)sinθcosθeiϕ(1(1eiϕ)sin2θ))
=eiϕ[cos(α2)I+isin(α2)(nxX+nyY+nzZ)],
where
α=4β,sinβ=sin(ϕ2)sinθ,θ=arcsin(1/2n),
and
nx=cosθcosβcos(ϕ2),ny=cosθcosβsin(ϕ2),nz=cosθcosβcos(ϕ2)tanθ,
and I, X, Y, Z represent the Pauli gates,
I=(1001),X=(0110),Y=(0ii0),Z=(1001).
The equivalence of Eq. (15) and Eq. (16) will be detailed in Appendix A. It can be seen that the phase rotation angles of two reflections in L are equal, which is called phase-matching condition. Furthermore, L can be regarded as the three-dimensional rotation about the axis l in the Bloch sphere spanned by {|x~,|τ} and the rotation angel is α, where
l=[nx,ny,nz]T=cosθcosβ[cos(ϕ2),sin(ϕ2),cos(ϕ2)tanθ]T.
The initial state |h and the target state |τ in the three-dimensional Bloch sphere can represent by the following vectors
ri=[sin(2θ),0,cos(2θ)]T,
rf=[0,0,1]T.
Denote r0 as the projections of ri and rf on axis l,
r0=c[cos2(ϕ2)tanθ,sin(ϕ2)cos(ϕ2)tanθ,cos2(ϕ2)tan2θ]T,
where
c=11+(cos2(ϕ2)/tan2θ).
As shown in Fig.4, the desired rotation angle ω between rir0 and rfr0 satisfies
Fig.4 Visualization of the modified Grover’s algorithm. In the three-dimensional Bloch sphere spanned by {|x~,|τ}, the initial state ri rotate ω around axis l, and then rf is obtained, where ω is the desired rotation angle.

Full size|PPT slide

cosω=(rir0)(rfr0)|rir0||rfr0|=cos(2arccos(sin(ϕ2)sinθ)),
then we will have
ω=2arccos(sin(ϕ2)sinθ)=2[π2arcsin(sin(ϕ2)sinθ)].
Besides, in order to obtain the target state with certainty, angle ω ought to satisfy
ω=(J+1)α=4(J+1)arcsin(sin(ϕ2)sinθ)
after J+1 times iteration of operator L. Combining Eq. (25) and Eq. (27), we can get
sin(π4J+6)=sin(ϕ2)sinθ.
In other words, we have
ϕ=2arcsin(sin(π4J+6)/sinθ).

3 Distributed exact Grover’s algorithm

In this section, we mainly describe the distributed exact Grover’s algorithm (DEGA), which decomposes the original search problem into n/2 parts.

3.1 Subfunctions

As mentioned in [27], an n-qubit Boolean function f:{0,1}n{0,1} can be split into two subfunctions feven/odd:{0,1}n1{0,1},
feven(x)=f(x0x1xi10xi+1xn2xn1),
fodd(x)=f(x0x1xi11xi+1xn2xn1),
where x=x0x1xi1xi+1xn2xn1{0,1}n1.
Furthermore, we can divide the original function into 2k subfunctions fp:{0,1}nk{0,1}:
fp(x)=f(x0x1xnk1nkyp0yp1ypk1k),
where k{1,2,,n1}, x=x0x1xnk1{0,1}nk, and yp0yp1ypk1{0,1}k is the binary representation of p{0,1,,2k1}.
More generally, yp0yp1ypk1 can be at any k positions in x of the original function f. For instance, we can also obtain another 2k subfunctions fq:{0,1}nk{0,1}:
fq(x)=f(yq0yq1yqk1kxkxk+1xn1nk),
where k{1,2,,n1}, x=xkxk+1xn1{0,1}nk, and yq0yq1yqk1{0,1}k is the binary representation of q{0,1,,2k1}.
Next, we need to describe our partitioning strategy for the original function before providing our algorithm. We will generate a total of n/2 subfunctions gi(mi) for our algorithm, where i{0,1,,n/21}. The specific generation method is as follows.
When i{0,1,,n/22}, we choose first 2i and last n2(i+1) bits in x to divide f, then we can get 2n2 subfunctions fi,j:{0,1}2{0,1}:
fi,j(mi)=f(yj0yj1yj2i12imiyj2iyj2i+1yjn3n2(i+1)),
where mi{0,1}2 and yj0yj1yj2i1yj2iyj2i+1yjn3{0,1}n2 is the binary representation of j{0,1,, 2n21}. Afterwards, we generate a new function gi:{0,1}2{0,1} through these subfunctions,
gi(mi)=OR(fi,0(mi),fi,1(mi),,fi,2n21(mi)),
where mi{0,1}2. Besides,
OR(x)={1,|x|1,0,|x|=0,
where |x| is the Hamming weight of x{0,1}n (its number of 1’s). It means we have acquired n/21 subfunctions gi:{0,1}2{0,1}, where i{0,1,,n/22}.
When i=n/21, we choose first 2i bits in x to divide f, then we can get 22i subfunctions fi,j:{0,1}n2i{0,1}:
fi,j(mi)=f(yj0yj1yj2i12imin2i),
where mi{0,1}n2i and yj0yj1yj2i1{0,1}2i is the binary representation of j{0,1,, 22i1}. Afterwards, we also generate a new function gi:{0,1}n2i{0,1} by these subfunctions,
gi(mi)=OR(fi,0(mi),fi,1(mi),,fi,22i1(mi)),
where mi{0,1}n2i. Specifically, when n is an even number, we have
n2i=n2(n/21)=n2(n21)=2.
When n is an odd number, we have
n2i=n2(n/21)=n2(n121)=3.
It means we have acquired the last subfunction gi:{0,1}n2i{0,1}, where i=n/21.

3.2 Distributed exact Grover’s algorithm

So far, we have successfully generated a total of n/2 subfunctions gi(mi) according to the original function f(x) and n, where i{0,1,, n/21}. Additionally, we assume that obtaining the Oracle for each subfunction is simple. In other words, we can have n/21 Oracles
Ugi(x):|x(1)gi(x)|x,
where x{0,1}2, i{0,1,, n/22}, and τi is the target string of gi(x) such that gi(τi)=1.
For the last subfunctions gi:{0,1}n2i{0,1}, we first need to determine the parity of n. If n is an even number, we can also have the Oracle as in Eq. (41), where i=n/21. Otherwise, we can have another Oracle
Rgi(x):|xeiϕgi(x)|x,
where x{0,1}3, i=n/21, τi is the target string of gi(x) such that gi(τi)=1, ϕ=2arcsin(sin(π4J+6)/sinθ), J=(π/2θ)/(2θ), and θ=arcsin(1/23).
Next, we provide a detailed introduction to the DEGA in Algorithm 3. The whole quantum circuit is shown in Fig.5.
Fig.5 Quantum circuit of the distributed exact Grover’s algorithm (DEGA).

Full size|PPT slide

Full size|PPT slide

The target index string τ=τ0τ1τn/21{0,1}n will be successfully searched exactly after following the above algorithm steps. Therefore, the entire process of the DEGA is accomplished.

4 Analysis

In this section, we will first demonstrate the correctness of the DEGA. The original and modified Grover’s algorithms, and existing distributed Grover’s algorithms will next be compared to the approach.

4.1 Correctness

To verify the correctness of the DEGA, it is equivalent to proving that we can obtain the target index string τ{0,1}n by Algorithm 3 exactly. Firstly, we give the following theorem.
Theorem 1. Each subfunction gi(x) [as in Eq. (35) and Eq. (38)] has its corresponding target string τi such that gi(τi)=1, which satisfies
τ=τ0τ1τn/21,
where i{0,1,,n/21} and τ{0,1}n is the target string of the original function f(x).
Proof. Without losing generality, suppose the target string can be expressed as τ=x0x1xn1{0,1}n.
The proof is divided into two parts.
Part 1: For i{0,1,, n/22}, we first prove τi=x2ix2i+1{0,1}2.
As can be seen from Eq. (34), we can get 2n2 subfunctions fi,j:{0,1}2{0,1}:
fi,j(mi)=f(yj0yj1yj2i12imiyj2iyj2i+1yjn3n2(i+1)),
where mi{0,1}2 and yj0yj1yj2i1yj2iyj2i+1yjn3{0,1}n2 is the binary representation of j{0,1,, 2n21}. Thus, there exists j=yj0yj1yj2i1yj2iyj2i+1yjn3{0,1}n2, such that
yj0yj1yj2i12iyj2iyj2i+1yjn3n2(i+1)=x0x1x2i1x2i+2xn1,
where x0x1x2i1x2i+2xn1{0,1}n2 represents τ=x0x1x2i1x2ix2i+1x2i+2xn1{0,1}n removes x2ix2i+1{0,1}2.
In other words, we have a subfunction fi,j:{0,1}2{0,1}:
fi,j(mi)={1,mi=x2ix2i+1,0,otherwise,
where mi{0,1}2. For the remaining subfunctions fi,jj:{0,1}2{0,1}:
fi,jj(mi)0,
where mi{0,1}2.
Afterwards, we generate a new function gi:{0,1}2{0,1} by these subfunctions,
gi(mi)=OR(fi,0(mi),fi,1(mi),,fi,2n21(mi))
={1,mi=x2ix2i+1,0,otherwise,
where mi{0,1}2. Therefore, let τi=x2ix2i+1. It is the target string of gi(mi) such that gi(τi)=1.
Part 1 has been proved.
Part 2: For i=n/21, we prove that
τi=x2ix2i+1xn1={x2ix2i+1=xn2xn1{0,1}2,nis even,x2ix2i+1x2i+2=xn3xn2xn1{0,1}3,nis odd.
The proof of Part 2 is similar to Part 1. As can be seen from Eq. (37), we can get 22i subfunctions fi,j:{0,1}n2i{0,1}:
fi,j(mi)=f(yj0yj1yj2i12imin2i),
where mi{0,1}n2i and yj0yj1yj2i1{0,1}2i is the binary representation of j{0,1,, 22i1}.
Thus, there exists j=yj0yj1yj2i1{0,1}2i, such that
yj0yj1yj2i12i=x0x1x2i1,
where x0x1x2i1{0,1}2i represents τ=x0x1x2i1x2ix2i+1xn1{0,1}n removes x2ix2i+1 xn1{0,1}n2i.
In other words, we have a subfunction fi,j:{0,1}n2i{0,1}:
fi,j(mi)={1,mi=x2ix2i+1xn1,0,otherwise,
where mi{0,1}n2i. For the remaining subfunctions fi,jj:{0,1}n2i{0,1}:
fi,jj(mi)0,
where mi{0,1}n2i.
Afterwards, we also generate a new function gi:{0,1}n2i{0,1} by these subfunctions,
gi(mi)=OR(fi,0(mi),fi,1(mi),,fi,22i1(mi))
={1,mi=x2ix2i+1xn1,0,otherwise,
where mi{0,1}n2i. Specifically, when n is an even number, we have
n2i=n2(n/21)=n2(n21)=2.
When n is an odd number, we have
n2i=n2(n/21)=n2(n121)=3.
Therefore, let
τi=x2ix2i+1xn1={x2ix2i+1=xn2xn1{0,1}2,nis even,x2ix2i+1x2i+2=xn3xn2xn1{0,1}3,nis odd.
It is the target string of gi(mi) such that gi(τi)=1.
Part 2 has been proved.
Gather all subfunction target strings, then the target string of the original function f(x) is
τ=τ0τ1τn/21=x0x1xn1{0,1}n.
So far, we have proved that the target string corresponding to each subfunction gi(mi) is τi, which satisfies τ=τ0τ1τn/21, where i{0,1,, n/21}.
In addition, only when 1/4 of the data in the database meet the search conditions, the success probability of Grover’s algorithm is 1, which has been strictly proved mathematically [15]. In other words, a 2-qubit Grover’s algorithm of finding one in four is exact. The modified version of Grover’s algorithm [16] searches a target state with full successful rate. In particular, a 3-qubit modified Grover’s algorithm is also exact when n=3.
Next, we demonstrate the correctness of Algorithm 3 by the following Theorem 2.
Theorem 2. (Correctness of DEGA) For an n-qubit search problem that includes only one target index string, suppose that the goal can be expressed as τ=x0x1xn1{0,1}n of the original function f(x). Then we can obtain τ=τ0τ1τn/21 by Algorithm 3 exactly, where τi is the target string of gi(x) and satisfies
τi={x2ix2i+1,i{0,1,,n/22},x2ix2i+1xn1,i=n/21,
where
x2ix2i+1xn1={x2ix2i+1=xn2xn1,niseven,x2ix2i+1x2i+2=xn3xn2xn1,nisodd.
Proof. From Section 3.1, we have declared how to generate n/2 subfunctions gi(x) as in Eq. (35) and Eq. (38) according to f(x) and n, which decomposes the original search problem into n/2 parts, where i{0,1,, n/21}.
Furthermore, suppose that the goal can be expressed as τ=x0x1xn1{0,1}n of the original function f(x). Theorem 1 has already explained each subfunction gi(x) has its corresponding target string τi such that gi(τi)=1, which satisfies
τ=τ0τ1τn/21.
Last but not least, we will accurately obtain the solution of each part. For i{0,1,, n/22}, by running the 2-qubit Grover’s algorithm, we can precisely determine τi=x2ix2i+1{0,1}2. For i=n/21, by running the 2-qubit Grover’s algorithm when n is even or the 3-qubit modified Grover’s algorithm when n is odd, we can exactly obtain
τi=x2ix2i+1xn1={x2ix2i+1=xn2xn1{0,1}2,nis even,x2ix2i+1x2i+2=xn3xn2xn1{0,1}3,nis odd.
In conclusion, we can obtain τ=τ0τ1τn/21 through Algorithm 3 with a probability of 100%, where τi is the target string of gi(x), where i{0,1,, n/21}.□

4.2 Comparison

In this subsection, the original and modified Grover’s algorithms, and existing distributed Grover’s algorithms will be compared to our approach.
Compared with the original Grover’s algorithm, the DEGA is as exact as the modified version of Grover’s algorithm by Long, which means the theoretical probability of finding the objective state is 100%.
In order to compare the circuit depth, we give the following definition.
Definition 1. (Depth of circuit) The depth of circuit is defined as the longest path from the input to the output, moving forward in time along qubit wires.
The depth of the circuit on the left, for example, is 1, whereas the right is 11 (see Fig.6).
Fig.6 Equivalent quantum circuit of Toffoli gate (or C2Z gate), where T represent π/8 gate and T represents the conjugate transpose of T.

Full size|PPT slide

Furthermore, the depth of the quantum circuit depends on the circuit composed of specific quantum gates. Then we need to clarify the construction circuit of the Oracle in the quantum search algorithms. Due to the method by Qiu et al. [28], we will introduce a construction for the Oracle in the original and modified Grover’s algorithms.
Uf(x)=In2|ττ| is employed in the Grover operator G=HnU0HnUf(x) to flip the phase of the target state |τ=|x0x1xn1, where τ=x0x1xn1{0,1}n. Thus, the specific construction circuit of Uf(x) (see Fig.7) is as follows:
Fig.7 The quantum circuit corresponding to the Oracle Uf(x).

Full size|PPT slide

Uf(x)=(i=0n1X1xi)(Cn1Z)(i=0n1X1xi),
where Cn1Z will only flip the phase of |1n,
(Cn1Z)|x={|x,|x=|1n,|x,otherwise,
where x=x0x1xn1{0,1}n. Besides, it should be noted that
X1xi={X,xi=0,I,xi=1,
where i{0,1,,n1}. In particular, the construction circuit of U0=In2(|00|)n (see Fig.8) is
Fig.8 The quantum circuit corresponding to the Oracle U0.

Full size|PPT slide

U0=(Xn)(Cn1Z)(Xn).
It can be found that the quantum circuit in Fig.7 or Fig.8 has a circuit depth of 3.
Similarly, we can also give the specific construction circuit of Rf(x)=In+(eiϕ1)|ττ| in the operator L=HnR0HnRf(x) (see Fig.9) as follows:
Fig.9 The quantum circuit corresponding to the Oracle Rf(x).

Full size|PPT slide

Rf(x)=(i=0n1X1xi)(Cn1R(ϕ))(i=0n1X1xi),
where R(ϕ) represents the rotation gate,
R(ϕ)=(100eiϕ),
and Cn1R(ϕ) will only rotate the phase of |1n,
(Cn1R(ϕ))|x={eiϕ|x,|x=|1n,|x,otherwise,
where x=x0x1xn1{0,1}n. In particular, the construction circuit of R0=In+(eiϕ1)(|00|)n in operator L (see Fig.10) is
Fig.10 The quantum circuit corresponding to the Oracle R0.

Full size|PPT slide

R0=(Xn)(Cn1R(ϕ))(Xn).
Quantum circuit in Fig.9 or Fig.10 also has a circuit depth of 3.
If the target state is |1n, then the depth of circuit is only 1. We ignore this special case. By the way, perhaps there are other better methods to construct the quantum circuits of Oracle, but we will not cover it here. Throughout this paper, we use the same methods described above to construct the Oracle circuits in the Grover operator G and operator L.
After identifying the specific quantum gates in the original and modified Grover’s algorithms, we might calculate the circuit depth of these two methods.
Theorem 3. The circuit depths for the original and modified Grover’s algorithms are 1+8π42n and 9+8π42n12, respectively.
Proof. In Grover’s algorithm, Grover operator G=HnU0HnUf(x) is executed with π42n times, where dep(Uf)=dep(U0)=3 and dep(Hn)=1. Thus, the circuit depth of Grover’s algorithm is
dep(Grover)=1+π42n(3+1+3+1)=1+8π42n.
Similarly, since operator L=HnR0HnRf(x) is executed with J+1 times, where J=(π/2θ)/(2θ), θ=arcsin(1/2n), and dep(Rf)=dep(R0)=3, the circuit depth of the modified Grover’s algorithm is
dep(modified Grover)=1+(π42n12+1)(3+1+3+1)=9+8π42n12.
It has been discovered that the circuit depths of the original and modified Grover’s algorithms deepen as n increases.
Next, we give the circuit depth of the DEGA by the following theorem.
Theorem 4. The circuit depth of Algorithm 3 is 8(nmod2)+9.
Proof. When n is an even number, the DEGA will run n/2 parts 2-qubit Grover’s algorithm, and each part only needs to iterate the Grover operator G once, so the circuit depth is
dep(DEGA,nis even)=1+1(3+1+3+1)=9.
When n is an odd number, the DEGA will run n/21 parts 2-qubit Grover’s algorithm and 1 part 3-qubit modified Grover’s algorithm, and the last part needs to iterate the operator L twice, so the circuit depth is
dep(DEGA,nis odd)=1+2(3+1+3+1)=17.
In other words, the actual depth of our circuit is
dep(DEGA)=8(nmod2)+9={9,nis even,17,nis odd.
Besides, each portion of the DEGA only comprises two or three qubits, making physical experiment verification trivial.
Therefore, the actual circuit depth will be shallower comparing with the original and modified Grover’s algorithms. The circuit depth of the DEGA only depends on the parity of n, and it is not deepened as n increases.
Next, we will contrast the DEGA with the existing distributed Grover’s algorithms.
In Ref. [27], they split the original n-qubit Boolean function f:{0,1}n{0,1} two subfunctions feven/odd:{0,1}n1{0,1} as in Eq. (30) and Eq. (31), and then executed (n1)-qubit Grover’s algorithm for each subfunction. After that, they will decide whether 0 or 1 to add to the i-th bit based on which subfunction can correctly run the result (0 for feven and 1 for fodd). That is to say, they only acquired n1 qubits of the target state rather than the target state itself directly. The total number of qubits used in their scheme is 2(n1).
In Ref. [28], they have solved the case of multiple targets, and presented the serial and parallel distributed Grover’s algorithms and divided the original function f into 2k subfunctions fp:{0,1}nk{0,1} as in Eq. (32), where 2k represents the number of computing nodes. The total number of qubits used in their parallel scheme is 2k(nk).
Finally, we will analyse why DEGA is not suitable for solving multiple target strings. To begin with, when the target string is a single string, the final state is a direct product state, which may be thought of as the direct product of several quantum states. At this stage, each node can accurately search for some information of the initial target string, yielding the original target string. However, when the target string consists of multiple strings, the final state may be an entangled state, which cannot be decomposed into a direct product of multiple quantum states at this point. In other words, DEGA is not applicable when the target string includes several strings and its related quantum state is an entangled state. Therefore, how to design a distributed quantum algorithm to solve the exact search problem with the case of multiple targets is still an open problem. Perhaps additional quantum operations, such as performing quantum gates between nodes, are needed to enable entanglement of the final state.

5 Experiment

In this section, we will provide particular situations of the DEGA on MindQuantum (a quantum software). These experiments will further demonstrate the correctness of the DEGA and explicate the specific steps of implement n-qubit DEGA, where n{2,3,4,5}. After that, we will simulate the 5-qubit DEGA running in the depolarization channel and compare with the original and modified Grover’s algorithms. Since our circuit is shallower, it will be more resistant to the depolarization channel noise.

5.1 The 2-qubit DEGA, the target string τ = 01

Let Boolean function f:{0,1}2{0,1}. Suppose
f(x)={1,x=01,0,x01,
where x{0,1}2 and τ=01 is the target string. When n=2, the DEGA is a 2-qubit Grover’s algorithm. Thus, we can build its circuit (see Fig.11).
Fig.11 Quantum circuit of the 2-qubit DEGA (target string τ=01).

Full size|PPT slide

By sampling the circuit in Fig.11 10 000 times, the sampling results can be found in Fig.12.
Fig.12 The sampling results of the 2-qubit DEGA (target string τ=01).

Full size|PPT slide

The sampling results demonstrate that τ=01 is obtained exactly after measurement. Besides, the total number of quantum gates is 14 and the circuit depth is 9.

5.2 The 3-qubit DEGA, the target string τ = 101

Let Boolean function f:{0,1}3{0,1}. Suppose
f(x)={1,x=101,0,x101,
where x{0,1}3 and τ=101 is the target string. When n=3, the DEGA is a 3-qubit modified Grover’s algorithm. Thus, we can build its circuit (see Fig.13). Note that PhaseShift (called the PS gate) is a single-qubit gate, whose matric is as follows:
Fig.13 Quantum circuit of the 3-qubit DEGA (target string τ=101). The parameter in the circuit is ϕ=2arcsin(sin(π4J+6)/sinθ)=2.12688004715550342.1269, where J=(π/2θ)/(2θ) and θ=arcsin(1/23).

Full size|PPT slide

PS(ϕ)=(100eiϕ).
By sampling the circuit in Fig.13 10 000 times, the sampling results can be found in Fig.14.
Fig.14 The sampling results of the 3-qubit DEGA (target string τ=101).

Full size|PPT slide

The sampling results demonstrate that τ=101 is obtained exactly after measurement. Besides, the total number of quantum gates is 35 and the circuit depth is 17.

5.3 The 4-qubit DEGA, the target string τ = 1001

Let Boolean function f:{0,1}4{0,1}. Suppose
f(x)={1,x=1001,0,x1001,
where x{0,1}4 and τ=1001 is the target string. When n=4, we can decomposes the original search problem into n/2=2 parts. To be specific, we choose last 2 bits in x to divide f, then we can get 22=4 subfunctions f0,j:{0,1}2{0,1}:
f0,0(m0)=f(m000),
f0,1(m0)=f(m001),
f0,2(m0)=f(m010),
f0,3(m0)=f(m011),
where m0{0,1}2 and j{0,1,2,3}. Obviously, f0,0(m0)=f0,2(m0)=f0,3(m0)0, and
f0,1(m0)={1,m0=10,0,m010,
where m0{0,1}2 and 10 is the target substring.
Afterwards, we generate a new function g0:{0,1}2{0,1} through above four subfunctions,
g0(m0)=OR(f0,0(m0),f0,1(m0),f0,2(m0),f0,3(m0))={1,m0=10,0,m010,
where m0{0,1}2.
Similarly, we choose first 2 bits in x to divide f, then we can get 22=4 subfunctions f1,j:{0,1}2{0,1}:
f1,0(m1)=f(00m1),
f1,1(m1)=f(01m1),
f1,2(m1)=f(10m1),
f1,3(m1)=f(11m1),
where m1{0,1}2 and j{0,1,2,3}. Obviously, f1,0(m1)=f1,1(m1)=f1,3(m1)0, and
f1,2(m1)={1,m1=01,0,m101,
where m1{0,1}2 and 01 is the target substring.
Afterwards, we generate a new function g1:{0,1}2{0,1} through above four subfunctions,
g1(m1)=OR(f1,0(m1),f1,1(m1),f1,2(m1),f1,3(m1))={1,m1=01,0,m101,
where m1{0,1}2.
So far, we have successfully obtained the subfunctions of two parts, g0(m0) and g1(m1). Next, we need to run the 2-qubit Grover’s algorithm for each part. Thus, we can build the completed circuit (see Fig.15). Note that since the reading order on MindQuantum is from right to left, which is the opposite of our reading order from left to right, the 2-qubit Grover’s algorithm corresponding to g1(m1) is located on the top of the circuit.
Fig.15 Quantum circuit of the 4-qubit DEGA (target string τ=1001).

Full size|PPT slide

By sampling the circuit in Fig.15 10 000 times, the sampling results can be found in Fig.16.
Fig.16 The sampling results of the 4-qubit DEGA (target string τ=1001).

Full size|PPT slide

The sampling results demonstrate that τ=1001 is obtained exactly after measurement. Besides, the total number of quantum gates is 28 and the circuit depth is 9.
If the original or modified Grover’s algorithm is employed to search 1001, we can build the completed circuits (see Fig.17 and Fig.18) respectively. By sampling the circuits in Fig.17 and Fig.18 10 000 times respectively, the sampling results can be found in Fig.19 and Fig.20.
Fig.17 Quantum circuit of the 4-qubit Grover’s algorithm (target string τ=1001).

Full size|PPT slide

Fig.18 Quantum circuit of the 4-qubit modified Grover’s algorithm (target string τ=1001). The parameter in the circuit is ϕ=2arcsin(sin(π4J+6)/sinθ)=2.1950576990901152.1951, where J=(π/2θ)/(2θ) and θ=arcsin(1/24).

Full size|PPT slide

Fig.19 The sampling results of the 4-qubit Grover’s algorithm (target string τ=1001).

Full size|PPT slide

Fig.20 The sampling results of the 4-qubit modified Grover’s algorithm (target string τ=1001).

Full size|PPT slide

It can be found that the probability of Grover’s algorithm acquiring target string τ=1001 is 0.9627, which is not exact, while the modified Grover’s algorithm can accurately obtain τ=1001. The number of quantum gates required by two algorithms is 70, and the circuit depth is 25.

5.4 The 5-qubit DEGA, the target string τ = 01001

Let Boolean function f:{0,1}5{0,1}. Suppose
f(x)={1,x=01001,0,x01001,
where x{0,1}5 and τ=01001 is the target string. When n=5, we can decomposes the original search problem into n/2=2 parts. To be specific, we choose last 2 bits in x to divide f, then we can get 22=4 subfunctions f0,j:{0,1}3{0,1}:
f0,0(m0)=f(m000),
f0,1(m0)=f(m001),
f0,2(m0)=f(m010),
f0,3(m0)=f(m011),
where m0{0,1}3 and j{0,1,2,3}. Obviously, f0,0(m0)=f0,2(m0)=f0,3(m0)0, and
f0,1(m0)={1,m0=010,0,m0010,
where m0{0,1}3 and 010 is the target substring.
Afterwards, we generate a new function g0:{0,1}3{0,1} through above four subfunctions,
g0(m0)=OR(f0,0(m0),f0,1(m0),f0,2(m0),f0,3(m0))={1,m0=010,0,m0010,
where m0{0,1}3.
Similarly, we choose first 3 bits in x to divide f, then we can get 23=8 subfunctions f1,j:{0,1}2{0,1}:
f1,0(m1)=f(000m1),f1,4(m1)=f(100m1),
f1,1(m1)=f(001m1),f1,5(m1)=f(101m1),
f1,2(m1)=f(010m1),f1,6(m1)=f(110m1),
f1,3(m1)=f(011m1),f1,7(m1)=f(111m1),
where m1{0,1}2 and j{0,1,,7}. Obviously, f1,0(m1)=f1,1(m1)=f1,3(m1)=f1,4(m1)=f1,5(m1)=f1,6(m1)=f1,7(m1)0, and
f1,2(m1)={1,m1=01,0,m101,
where m1{0,1}2 and 01 is the target substring.
Afterwards, we generate a new function g1:{0,1}2{0,1} through above eight subfunctions,
g1(m1)=OR(f1,0(m1),f1,1(m1),,f1,7(m1))={1,m1=01,0,m101,
where m1{0,1}2.
So far, we have successfully obtained the subfunctions of two parts, g0(m0) and g1(m1). Next, we need to run the 3-qubit modified Grover’s algorithm for the part of subfunction g0(m0), and the 2-qubit Grover’s algorithm for the part of subfunction g1(m1). Thus, we can build the completed circuit (see Fig.21). Once again since the reading order on MindQuantum is from right to left, which is the opposite of our reading order from left to right, the 2-qubit Grover’s algorithm corresponding to g1(m1) is located on the top of the circuit.
Fig.21 Quantum circuit of the 5-qubit DEGA (target string τ=01001). The parameter in the circuit is ϕ=2arcsin(sin(π4J+6)/sinθ)=2.12688004715550342.1269, where J=(π/2θ)/(2θ) and θ=arcsin(1/23).

Full size|PPT slide

By sampling the circuit in Fig.21 10 000 times, the sampling results can be found in Fig.22.
Fig.22 The sampling results of the 4-qubit DEGA (target string τ=01001).

Full size|PPT slide

The sampling results demonstrate that τ=01001 is obtained exactly after measurement. Besides, the total number of quantum gates is 53 and the circuit depth is 17.
If the original or modified Grover’s algorithm is employed to search τ=01001, we can build the completed circuits (see Fig.23 and Fig.24 respectively). By sampling the circuits in Fig.23 and Fig.24 10 000 times respectively, the sampling results can be found in Fig.25 and Fig.26.
Fig.23 Quantum circuit of the 5-qubit Grover’s algorithm (target string τ=01001).

Full size|PPT slide

Fig.24 Quantum circuit of the 5-qubit modified Grover’s algorithm (target string τ=01001). The parameter in the circuit is ϕ=2arcsin(sin(π4J+6)/sinθ)=2.7647636030603912.7648, where J=(π/2θ)/(2θ) and θ=arcsin(1/25).

Full size|PPT slide

Fig.25 The sampling results of the 5-qubit Grover’s algorithm (target string τ=01001).

Full size|PPT slide

Fig.26 The sampling results of the 5-qubit modified Grover’s algorithm (target string τ=01001).

Full size|PPT slide

It can be found that the probability of Grover’s algorithm acquiring target string τ=01001 is 0.9993, which is not exact, while the modified Grover’s algorithm can accurately obtain τ=01001. The number of quantum gates required by two algorithms is 117, and the circuit depths are 33.
Through the above experiments, we can know the specific steps of implement n-qubit DEGA, where n{2,3,4,5}. Besides, we found that the modified Grover’s algorithm and the DEGA can achieve exact search, while the Grover’s algorithm can obtain target strings with high probability (see Fig.27). In addition, the number of quantum gates and circuit depth required by the original and modified Grover’s algorithms are the same, which will deepen as n increases. However, the DEGA requires fewer quantum gates (see Fig.28) and shallower circuit depth (Fig.29). The circuit depth of the DEGA only depends on the parity of n, and it does not deepen as n increases.
Fig.27 The probability of obtaining the target string by different algorithms.

Full size|PPT slide

Fig.28 The number of quantum gates required by different algorithms.

Full size|PPT slide

Fig.29 The depth of quantum circuit of different algorithms.

Full size|PPT slide

5.5 The depolarization channel

In the above experiments, we ignore the influence of noise, which means that we can achieve theoretically exact or high probability search. However, due to the existence of noise, there are certain errors in the operation of each type of quantum gate on a real quantum computer.
In this subsection, we consider the depolarization channel that is a essential type of quantum noise. After that, we will simulate the 5-qubit DEGA running in the depolarization channel and compare with the original and modified Grover’s algorithms. Through such simulations, it shows the DEGA will be more resistant to the depolarization channel noise.
In the depolarization channel [35], a single qubit will be replaced by the completely mixed state I/2 with a probability of p and remain unaltered with a probability of 1p. It means the state of the quantum system has changed to
ε(ρ)=(1p)ρ+p(I2),
where ρ represents the initial quantum state. For arbitrary state ρ, we have
I2=ρ+XρX+YρY+ZρZ4,
where X,Y and Z are Pauli operators. Inserting Eq. (108) into Eq. (107) gives
ε(ρ)=(13p4)ρ+p4(XρX+YρY+ZρZ).
For simplicity, the depolarization channel is sometimes written as
ε(ρ)=(1p)ρ+p3(XρX+YρY+ZρZ),
which indicates the state ρ will remain unaltered with the a probability of 1p, and the Pauli operators X,Y,Z will be applied with a probability of p/3 for each operators.
Furthermore, the depolarizing channel can be extended to a d-dimensional (d>2) quantum system. Similarly, the depolarizing channel of a d-dimensional quantum system replaces the completely mixed state I/d with a probability of p, and remains unaltered with a probability of 1p. The corresponding quantum operation is
ε(ρ)=(1p)ρ+p(Id).
On MindQuantum, we simulate the quantum algorithms running in the depolarization channel by adding noise behind each quantum gate. That is, we can rebuild the quantum circuits of the original and modified Grover’s algorithms and the DEGA in the depolarization channel (see Fig.30 to Fig.32). In the process of simulation, we set the noise parameter p=0.01 and DC represents the depolarization channel.
Fig.30 Quantum circuit of the 5-qubit Grover’s algorithm (target string τ=01001) in the depolarizing channel.

Full size|PPT slide

Fig.31 Quantum circuit of the 5-qubit modified Grover’s algorithm (target string τ=01001) in the depolarizing channel. The parameter in the circuit is ϕ=2arcsin(sin(π4J+6)/sinθ)=2.7647636030603912.7648, where J=(π/2θ)/(2θ) and θ=arcsin(1/25).

Full size|PPT slide

Fig.32 Quantum circuit of the 5-qubit DEGA (target string τ=01001) in the depolarizing channel. The parameter in the circuit is ϕ=2arcsin(sin(π4J+6)/sinθ)=2.12688004715550342.1269, where J=(π/2θ)/(2θ) and θ=arcsin(1/23).

Full size|PPT slide

By sampling the above three circuits 10 000 times, respectively. In order to better reproduce the experimental results, we set the random seeds of simulator and sampling both being 42. It is worth noting that modifying the random seed will alter the sampling outcome. In actuality, the random seed is a function to generate random number. The simulator will sample the quantum circuit according to the generated random number. As a result, various random numbers provide varied sampling outcomes in the simulator. Then, if we set the random seed to a fixed value (set the random seed being 42 in the full text), the experimental results in this paper can be reproduced when repeating the same experiment. At last, the sampling results can be found in Fig.33 to Fig.35, respectively.
Fig.33 The sampling results of the 5-qubit Grover’s algorithm in the depolarizing channel. The noise parameter p=0.01.

Full size|PPT slide

Fig.34 The sampling results of the 5-qubit modified Grover’s algorithm in the depolarizing channel. The noise parameter p=0.01.

Full size|PPT slide

Fig.35 The sampling results of the 5-qubit DEGA in the depolarizing channel. The noise parameter p=0.01.

Full size|PPT slide

It can be seen that due to the existence of noise, it will not achieve exact search. Compared with other states, τ=01001 can be obtained with a higher probability, which means that the target string can be successfully searched. The probability obtained by Grover’s algorithm is 0.3495, the probability by the modified Grover’s algorithm is 0.3501, and the probability by the DEGA is 0.6208. Obviously, the probability of the DEGA is higher.
Furthermore, we set the noise parameter p as 0,0.01,,0.09, and count the probability of obtaining τ=01001 in each sampling by different algorithms. The statistical chart as shown in Fig.36.
Fig.36 The probability of obtaining τ=01001 by different algorithms.

Full size|PPT slide

With the increase of noise parameter p, the probability of obtaining τ=01001 decreases. In addition, in the noisy environment, the probabilities of getting target string by the original and modified Grover’s algorithms are close. At the same time, under the premise of the same noise parameter, the probability of acquiring τ=01001 by the DEGA is higher than those of the original and modified Grover’s algorithms.
When p=0.07, the sampling results can be found in Fig.37 to Fig.39, respectively. The probability of obtaining the target string τ=01001 are 0.0363, 0.0366 and 0.0899, respectively. The desired results were drown out by the channel noise in the original and modified Grover’s algorithms. However, τ=01001 can still be obtained with a higher probability than other states in the DEGA. Even if p=0.09, the DEGA still works (see Fig.40 to Fig.42).
Fig.37 The sampling results of the 5-qubit Grover’s algorithm in the depolarizing channel. The noise parameter p=0.07.

Full size|PPT slide

Fig.38 The sampling results of the 5-qubit modified Grover’s algorithm in the depolarizing channel. The noise parameter p=0.07.

Full size|PPT slide

Fig.39 The sampling results of the 5-qubit DEGA in the depolarizing channel. The noise parameter p=0.07.

Full size|PPT slide

Fig.40 The sampling results of the 5-qubit Grover’s algorithm in the depolarizing channel. The noise parameter p=0.09.

Full size|PPT slide

Fig.41 The sampling results of the 5-qubit modified Grover’s algorithm in the depolarizing channel. The noise parameter p=0.09.

Full size|PPT slide

Fig.42 The sampling results of the 5-qubit DEGA in the depolarizing channel. The noise parameter p=0.09.

Full size|PPT slide

It can be found that although the number of qubits of the DEGA is the same as those of the original and modified Grover’s algorithms, our circuit depth is shallower, so that our scheme is more resistant to the depolarization channel noise. In other words, it further illustrates that distributed quantum algorithm has the superiority of resisting noise.

6 Conclusion

Quantum computation is entering the noisy intermediate-scale quantum (NISQ) era. Currently, small-qubit quantum computers are much easier to implement than large-scale universal quantum computers. Hence, researchers are considering how several small-scale devices might collaborate to accomplish a task on a large scale.
In this paper, we have focused on the combination of distributed computing and the exact Grover’s algorithm, and considered a search problem that includes only one target item in the unordered database. After that, we have proposed a distributed exact Grover’s algorithm (DEGA), which decomposes the original search problem into n/2 parts.
Specifically, (i) our algorithm is as exact as the modified version of Grover’s algorithm by Long, which means the theoretical probability of finding the objective state is 100%; (ii) the actual depth of our circuit is 8(nmod2)+9, which is less than the circuit depths of the original and modified Grover’s algorithms, 1+8π42n and 9+8π42n12, respectively. It only depends on the parity of n, and it does not deepen as n increases; (iii) additional auxiliary qubits will not be employed. In our framework, the total number of qubits is n rather than 2k(nk), where 2k represents the number of computing nodes in the previous distributed method.
Eventually, we have provided particular situations of the DEGA on MindQuantum (a quantum software). It has further demonstrated the correctness of the DEGA and explicated the specific steps of implement n-qubit DEGA, where n{2,3,4,5}. Through the experiments, we have found that the modified Grover’s algorithm and the DEGA can achieve exact search, while Grover’s algorithm can obtain target strings with high probability. In addition, the number of quantum gates and circuit depth required by the original and modified Grover’s algorithms are the same, which will deepen as n increases. However, the DEGA requires fewer quantum gates and shallower circuit depth. The circuit depth of the DEGA only depends on the parity of n, and it does not deepen as n increases.
After that, we have simulated a 5-qubit DEGA running in the depolarization channel and compared with the original and modified Grover’s algorithms. Through such simulations, it shows the DEGA will be more resistant to the depolarization channel noise. In other words, it further illustrates that distributed quantum algorithm has the superiority of resisting noise.
However, we have only designed a distributed exact quantum algorithm for the case of unique target in search problem, so it is still open that designing a distributed exact quantum algorithm solves the search problem with the case of multiple targets.

7 Appendix A: The equivalence of Eq. (15) and Eq. (16)

Let
(L11L12L21L22)=eiϕ[cos(α2)I+isin(α2)(nxX+nyY+nzZ)].
In order to prove the equivalence of Eq. (15) and Eq. (16), it is equivalent to proving
(L11L12L21L22)=(eiϕ(1+(eiϕ1)sin2θ)eiϕ(1eiϕ)sinθcosθeiϕ(eiϕ1)sinθcosθeiϕ(1(1eiϕ)sin2θ)).
Inserting Pauli gates to the right of Eq. (112), we have
eiϕ[cos(α2)I+isin(α2)(nxX+nyY+nzZ)]=eiϕ[cos(α2)(1001)+isin(α2)(nx(0110)+ny(0ii0)+nz(1001))]=eiϕ(cos(α2)+isin(α2)nzisin(α2)nx+sin(α2)nyisin(α2)nxsin(α2)nycos(α2)isin(α2)nz)=(L11L12L21L22),
where
nx=cosθcosβcos(ϕ2),ny=cosθcosβsin(ϕ2),nz=cosθcosβcos(ϕ2)tanθ.
Besides, we know that
α=4β,sinβ=sin(ϕ2)sinθ.
Furthermore, we have
L11=eiϕ(cos(α2)+isin(α2)nz)=eiϕ(cos(α2)+isin(α2)cosθcosβcos(ϕ2)tanθ)
=eiϕ(cos(2β)+isin(2β)\bcancelcosθcosβcos(ϕ2)sinθ\bcancelcosθ)=eiϕ(12sin2β+2isinβ\bcancelcosβ1\bcancelcosβcos(ϕ2)sinθ)=eiϕ(12(sin(ϕ2)sinθ)2+2i(sin(ϕ2)sinθ)cos(ϕ2)sinθ)=eiϕ(12sin2(ϕ2)sin2θ+isinϕsin2θ)=eiϕ(1+(12sin2(ϕ2)+isinϕ1)sin2θ)=eiϕ(1+(cosϕ+isinϕ1)sin2θ)=eiϕ(1+(eiϕ1)sin2θ),
L12=eiϕ(isin(α2)nx+sin(α2)ny)=eiϕ(isin(α2)cosθcosβcos(ϕ2)+sin(α2)cosθcosβsin(ϕ2))=eiϕ(isin(2β)cosθcosβcos(ϕ2)+sin(2β)cosθcosβsin(ϕ2))=eiϕ(2isinβ\bcancelcosβcosθ\bcancelcosβcos(ϕ2)+2sinβ\bcancelcosβcosθ\bcancelcosβsin(ϕ2))=eiϕ(2i(sin(ϕ2)sinθ)cosθcos(ϕ2)+2(sin(ϕ2)sinθ)cosθsin(ϕ2))=eiϕ(isinϕ+1+2sin2(ϕ2)1)sinθcosθ=eiϕ(1(cosϕisinϕ))sinθcosθ=eiϕ(1eiϕ)sinθcosθ,
L21=eiϕ(isin(α2)nxsin(α2)ny)=eiϕ(isin(α2)cosθcosβcos(ϕ2)sin(α2)cosθcosβsin(ϕ2))=eiϕ(isin(2β)cosθcosβcos(ϕ2)sin(2β)cosθcosβsin(ϕ2))=eiϕ(2isinβ\bcancelcosβcosθ\bcancelcosβcos(ϕ2)2sinβ\bcancelcosβcosθ\bcancelcosβsin(ϕ2))=eiϕ(2i(sin(ϕ2)sinθ)cosθcos(ϕ2)2(sin(ϕ2)sinθ)cosθsin(ϕ2))=eiϕ(isinϕ+12sin2(ϕ2)1)sinθcosθ=eiϕ((cosϕ+isinϕ)1)sinθcosθ=eiϕ(eiϕ1)sinθcosθ,
L22=eiϕ(cos(α2)isin(α2)nz)=eiϕ(cos(α2)isin(α2)cosθcosβcos(ϕ2)tanθ)=eiϕ(cos(2β)isin(2β)\bcancelcosθcosβcos(ϕ2)sinθ\bcancelcosθ)
=eiϕ(12sin2β2isinβ\bcancelcosβ1\bcancelcosβcos(ϕ2)sinθ)=eiϕ(12(sin(ϕ2)sinθ)22i(sin(ϕ2)sinθ)cos(ϕ2)sinθ)=eiϕ(12sin2(ϕ2)sin2θisinϕsin2θ)=eiϕ(1(2sin2(ϕ2)1+isinϕ+1)sin2θ)=eiϕ(1(cosϕ+isinϕ+1)sin2θ)=eiϕ(1(1eiϕ)sin2θ).
To sum up, it can be seen from Eq. (117) to Eq. (120) that Eq. (15) and Eq. (16) are equivalent.

References

[1]
P. Benioff. The computer as a physical system: A microscopic quantum mechanical Hamiltonian model of computers as represented by Turing machines. J. Stat. Phys., 1980, 22(5): 563
CrossRef ADS Google scholar
[2]
P. Benioff. Quantum mechanical Hamiltonian models of Turing machines. J. Stat. Phys., 1982, 29(3): 515
CrossRef ADS Google scholar
[3]
D. Deutsch. Quantum theory, the Church–Turing principle and the universal quantum computer. Proc. R. Soc. Lond. A, 1985, 400(1818): 97
CrossRef ADS Google scholar
[4]
D. Deutsch, R. Jozsa. Rapid solution of problems by quantum computation. Proc. R. Soc. Lond. A, 1992, 439(1907): 553
CrossRef ADS Google scholar
[5]
E.BernsteinU. Vazirani, Quantum complexity theory, in: Proceedings of the Twenty-Fifth Annual ACM Symposium on Theory of Computing (STOC’93), 1993, pp 11–20
[6]
D. R. Simon. On the power of quantum computation. SIAM J. Comput., 1997, 26(5): 1474
CrossRef ADS Google scholar
[7]
P.W. Shor, Algorithms for quantum computation: Discrete logarithms and factoring, in: Proceedings 35th Annual Symposium on Foundations of Computer Science, IEEE, 1994, pp 124–134
[8]
L. K. Grover. Quantum mechanics helps in searching for a needle in a haystack. Phys. Rev. Lett., 1997, 79(2): 325
CrossRef ADS Google scholar
[9]
A. W. Harrow, A. Hassidim, S. Lloyd. Quantum algorithm for linear systems of equations. Phys. Rev. Lett., 2009, 103(15): 150502
CrossRef ADS Google scholar
[10]
D.ChristophH. Peter, A quantum algorithm for finding the minimum, arXiv: quant-ph/9607014v2 (1996)
[11]
H. Ramesh, V. Vinay. String matching in O~(n+m) quantum time. J. Discrete Algorithms, 2003, 1(1): 103
CrossRef ADS Google scholar
[12]
A.AmbainisK. BalodisJ.Iraids, ., Quantum speedups for exponential-time dynamic programming algorithms, in: Proceedings of the 13th Annual ACM-SIAM Symposium on Discrete Algorithms. San Diego: SIAM, 2019, pp 1783–1793
[13]
A.AndrisL. Nikita, Quantum algorithms for computational geometry problems, in: 15th Conference on the Theory of Quantum Computation, Communication and Cryptography, 2020
[14]
G. Brassard, P. Hoyer, M. Mosca. . Quantum amplitude amplification and estimation. Contemp. Math., 2002, 305: 53
CrossRef ADS Google scholar
[15]
Z. J. Diao. Exactness of the original Grover search algorithm. Phys. Rev. A, 2010, 82(4): 044301
CrossRef ADS Google scholar
[16]
G. L. Long. Grover algorithm with zero theoretical failure rate. Phys. Rev. A, 2001, 64(2): 022307
CrossRef ADS Google scholar
[17]
J. Preskill. Quantum computing in the NISQ era and beyond. Quantum, 2018, 2: 79
CrossRef ADS Google scholar
[18]
J. I. Cirac, P. Zoller. Quantum computations with cold trapped ions. Phys. Rev. Lett., 1995, 74(20): 4091
CrossRef ADS Google scholar
[19]
C. Y. Lu, X. Q. Zhou, O. Guhne, W. B. Gao, J. Zhang, Z. S. Yuan, A. Goebel, T. Yang, J. W. Pan. Experimental entanglement of six photons in graph states. Nat. Phys., 2007, 3(2): 91
CrossRef ADS Google scholar
[20]
Y. Makhlin, G. Schön, A. Shnirman. Quantum-state engineering with Josephson-junction devices. Rev. Mod. Phys., 2001, 73(2): 357
CrossRef ADS Google scholar
[21]
J. Berezovsky, M. H. Mikkelsen, N. G. Stoltz, L. A. Coldren, D. D. Awschalom. Picosecond coherent optical manipulation of a single electron spin in a quantum dot. Science, 2008, 320(5874): 349
CrossRef ADS Google scholar
[22]
R. Hanson, D. D. Awschalom. Coherent manipulation of single spins in semiconductors. Nature, 2008, 453(7198): 1043
CrossRef ADS Google scholar
[23]
H.BuhrmanH. Röhrig, Distributed quantum computing, in: Mathematical Foundations of Computer Science 2003: 28th International Symposium, Berlin Heidelberg, Springer, 2003, pp 1–20
[24]
A. Yimsiriwattan, Jr Lomonaco. Distributed quantum computing: A distributed Shor algorithm. Quantum Inf. Comput. II., 2004, 5436: 360
CrossRef ADS Google scholar
[25]
R. Beals, S. Brierley, O. Gray. . Efficient distributed quantum computing. Proc. R. Soc. A, 2013, 469(2153): 0120686
CrossRef ADS Google scholar
[26]
K. Li, D. W. Qiu, L. Li, S. Zheng, Z. Rong. Application of distributed semiquantum computing model in phase estimation. Inf. Process. Lett., 2017, 120: 23
CrossRef ADS Google scholar
[27]
J. Avron, O. Casper, I. Rozen. Quantum advantage and noise reduction in distributed quantum computing. Phys. Rev. A, 2021, 104(5): 052404
CrossRef ADS Google scholar
[28]
D.W. QiuL. LuoL.G. Xiao, Distributed Grover’s algorithm, arXiv: 2204.10487v3 (2022)
[29]
J. W. Tan, L. G. Xiao, D. W. Qiu, L. Luo, P. Mateus. Distributed quantum algorithm for Simon’s problem. Phys. Rev. A, 2022, 106(3): 032417
CrossRef ADS Google scholar
[30]
L.G. XiaoD. W. QiuL.LuoP.Mateus, Distributed Shor’s algorithm, Quantum Inf. Comput. 23(1&2), 27 (2023)
[31]
L.G. XiaoD. W. QiuL.Luo, ., Distributed quantum−classical hybrid Shor’s algorithm, arXiv: 2304.12100 (2023)
[32]
X.ZhouD. W. QiuL.Luo, Distributed exact quantum algorithms for Bernstein−Vazirani and search problems, arXiv: 2303.10670 (2023)
[33]
H.LiD.W. Qiu L.Luo, Distributed exact quantum algorithms for Deutsch−Jozsa problem, arXiv: 2303.10663 (2023)
[34]
[35]
M.A. NielsenI.L. Chuang, Quantum Computation and Quantum Information, Cambridge: Cambridge University Press, 2002

Declarations

The authors declare that they have no competing interests and there are no conflicts.

Data availability statement

No data associated in the manuscript.

Acknowledgements

This work was supported in part by the National Natural Science Foundation of China (Nos. 61572532 and 61876195) and the Natural Science Foundation of Guangdong Province of China (No. 2017B030311011).

RIGHTS & PERMISSIONS

2023 Higher Education Press
AI Summary AI Mindmap
PDF(14522 KB)

Part of a collection:

Potential Physics at a Super τ-Charm Factory (Ed. Hai-Bo Li)

1082

Accesses

8

Citations

1

Altmetric

Detail

Sections
Recommended

/