원시데이터 수집 시스템
선정목록으로

A Review on Quantum Search Algorithms

관련 필름·전자재료 · (11) 배리어 필름

기본 정보

저자
  1. Giri Pulak Ranjan
  2. Korepin, Vladimir E.
DOI
10.48550/arxiv.1602.02730
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
0
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.1602.02730
토픽
Chemical and Physical Properties of Materials
OpenAlex ID
W6928906809

평가 내용

관련도
관련
사업분야
필름·전자재료 · (11) 배리어 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 배리어 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

The use of superposition of states in quantum computation, known as quantum parallelism, has significant advantage in terms of speed over the classical computation. It can be understood from the early invented quantum algorithms such as Deutsch's algorithm, Deutsch-Jozsa algorithm and its variation as Bernstein-Vazirani algorithm, Simon algorithm, Shor's algorithms etc. Quantum parallelism also significantly speeds up the database search algorithm, which is important in computer science because it comes as a subroutine in many important algorithms. Quantum database search of Grover achieves the task of finding the target element in an unsorted database in a time quadratically faster than the classical computer. We review the Grover quantum search algorithms for a singe and multiple target elements in a database. The partial search algorithm of Grover and Radhakrishnan and its optimization by Korepin, called GRK algorithm are also discussed.

본문 88,176자

본문 펼치기
## A Review on Quantum Search Algorithms Pulak Ranjan Giri <sup>∗</sup> International Institute of Physics, Federal University of Rio Grande do Norte, Av. Audilon Gomes de Lima, 1722- Capim Macio - 59078- 400 - Natal-RN, Brazil Vladimir E. Korepin <sup>†</sup> C. N. Yang Institute for Theoretical Physics, State University of New York at Stony Brook, Stony Brook, NY 11794-3840, US (Dated: February 9, 2016) The use of superposition of states in quantum computation, known as quantum parallelism, has significant advantage in terms of speed over the classical compu tation. It can be understood from the early invented quantum algorithms such as Deutsch’s algorithm, Deutsch-Jozsa algorithm and its variation as Bernstein-Vazirani algorithm, Simon algorithm, Shor’s algorithms etc. Quantum parallelism also sig nificantly speeds up the database search algorithm, which is important in computer science because it comes as a subroutine in many important algorithms. Quan tum database search of Grover achieves the task of finding the target element in an unsorted database in a time quadratically faster than the classical computer. We re view the Grover quantum search algorithms for a singe and multiple target elements in a database. The partial search algorithm of Grover and Radhakrishnan and its optimization by Korepin, called GRK algorithm are also discussed. PACS numbers: 03.67.Ac, 03.67.Lx, 03.65.-w ∗Electronic address: [pulakgiri@gmail.com](mailto:pulakgiri@gmail.com) †Electronic address: [korepin@gmail.com](mailto:korepin@gmail.com) 2 Contents I. Introduction 3 II. First quantum algorithms 4 A. Deutsch’s algorithm 4 B. Deutsch-Jozsa algorithm 6 C. Bernstein-Vazirani algorithm 8 III. Full database search 9 A. Grover algorithm 9 1. Single target Grover algorithm 9 2. Multiple targets Grover algorithm 12 3. Generic unitary transformation for Grover search 15 4. Proof of optimization of Grover algorithm 19 B. Adiabatic evolution for database search 20 IV. Partial database search 23 A. Single target GRK partial search algorithm 24 1. Large database limit 28 2. Optimization of partial search 29 B. Multiple targets GRK partial search algorithm 31 1. Large database limit 35 2. Optimization of partial search 36 C. Success probability in partial search 37 1. Group formulation of search algorithm 37 2. Sure success partial search 39 V. Conclusion 41 Acknowledgements 42 References 42 3 I. INTRODUCTION Quantum computation has the advantage of speed [1, 2] over its classical counterpart which makes the quantum computation more favorable. Although building a full-fledged quantum computer [3] is still far from reality, some of the research works such as Shor’s algorithm and Grover algorithm have attracted much attention in the theoretical side. In the experimental side some success with a small number of quantum bits have already been achieved. Peter Shor showed [4, 5] that it is possible for a quantum algorithm to compute factor ization in polynomial-time. L. K. Grover, on the other hand, showed [6–8] that it is possible to search for a single target item in an unsorted database, i.e., the elements of the database are not arranged in any specific order, in a time which is quadratically faster than what a classical computer needs to complete the same task. Here time is measured in terms of the number of queries to the oracle one needs to complete a task. Grover algorithm needs N ) queries to the oracle. Although Grover algorithm can not perform a task expo O( √ nentially faster than classical computer still it is quite popular because of its wide rage of applications such as a subroutine of some large algorithms in computer science. It can be shown that the quantum algorithm of Grover is the fastest algorithm, i.e., optimal [9–11] to search in an unsorted database. Instead of looking for the target element in the whole database at once it is sometimes natural to divide the database into several blocks and then look for the particular block which contains the target element. This is called quantum partial search algorithm, first studied by Grover and Radhakrishnan [12], which can be optimized [13–16] and further generalized to hierarchical quantum partial search algorithm [2, 17, 18]. The purpose of this article is to review the basic concepts of quantum search algorithms. In our daily life we encounter databases which contain many elements. The database may be arranged in a particular order, i.e. sorted or may not have any order at all, i.e. unsorted. For example, consider the telephone directory which has a large number of contact details of individuals. This example is particularly interesting because it serves both as a sorted and an unsorted database. When we look for the names, which are arranged in lexicographical order, then the the telephone directory is an example of sorted database. However when we look for a telephone number then the telephone directory becomes an example of an unsorted 4 database. The job of a quantum search algorithm is to find a specific element, usually called the target item or the solution from the vast number of elements in a database. Typically classical computer takes a time proportional to the size of the database. Quantum search algorithms, which are based on the principle of quantum mechanics, promise to significantly reduce the computation time for the same database search. This review article is arranged in the following fashion. In section I we provide an introduction to the quantum search algorithms. To understand how quantum mechanics can be exploited in our favor a set of historically important quantum algorithms are discussed in II which distinguish between balanced and constant functions. In section III we give an elaborate account of the famous Grover search algorithm and in section IV we discuss the quantum partial search algorithm and its optimized version known as GRK algorithm [2]. Finally in section V we conclude. II. FIRST QUANTUM ALGORITHMS Here we discuss how quantum mechanics and its principle of superposition can have profound impact on computations. Algorithms such as Deutsch’s algorithm, Deutsch-Jozsa algorithm, Bernstein-Vazirani algorithm, Simon algorithm, Shor’s algorithm are the first algorithms which made use of quantum superposition to perform a certain task sufficiently faster than classical computer [19]. Therefore, before we move to quantum search algorithms we in this section discuss some of these algorithms. A. Deutsch’s algorithm Consider Boolean functions f which act on qubits as f : {0, 1} →{0, 1} (1) The four functions in eq. (1) are the following f (0) = 0, f (0) = 1, f (1) = 0 and f (1) = 1. Alternatively we can say there are two constant functions f (0) = f (1) = 0, f (0) = f (1) = 1 and two balanced functions f (0) = 0̸ = f (1) = 1, f (0) = 1̸ = f (1) = 0. If we use a classical computer to know what the functions f do then we have to run the classical computer twice. First we have to find f (0) which could be either 0 or 1 and then f (1) which could be again either 0 or 1. 5 However in quantum computing each input corresponds to a quantum state vector. So there are two state vectors |0⟩ and |1⟩. Instead of feeding single basis state we can prepare a superposition of these two states to extract global information regarding the function f . There is a quantum black box, called oracle, which does a unitary transformation on the input vectors. The unitary operator Uf corresponding to the function f acts on a two-qubit state as the following Uf |x⟩⊗|y⟩→|x⟩⊗|f (x) ⊕ y⟩, (2) where x, y ∈{0, 1}, ⊕ is the addition modulo 2 and ⊗ is the tensor product. Note that if we use |0⟩ or |1⟩ as the input state then still in quantum computer we have to query the oracle twice. It can be easily understood from the fact that the qubit |y⟩ flips if the input of the first qubit is mapped to f (x) = 1. For f (x) = 0 |y⟩ remains in the same state. Therefore the function is constant if for both inputs, which we have to provide twice, we see that |y⟩ either flip or remains unchanged. For balanced function |y⟩ will flip for one input and remains unchanged for other input. To speedup the process we can instead prepare a superposition of basis inputs which is done using Hadamard transform H to the qubits as 1 y=0 H|x⟩ = 1 2 (−1) <sup>xy</sup> |y⟩, x ∈{0, 1} (3) In |0⟩ and |1⟩ basis the matrix representation of the Hadamard transform is 1 −1   1  1  <sup>1</sup> H = 1 2  (4)   The state of the two qubits after the Hadamard transform becomes 1 2 <sup>(|0⟩−|1⟩)</sup> <sup>.</sup> (5) H|0⟩ = 1 2 <sup>(|0⟩</sup> <sup>+ |1⟩)</sup> <sup>,</sup> H|1⟩ = The unitary operator Uf acts on the state |x⟩⊗ H|1⟩ as the eigenvalue equation Uf |x⟩⊗ H|1⟩ = |x⟩⊗ 1 2 <sup>(|0 + f</sup> <sup>(x)⟩−|1 + f</sup> <sup>(x)⟩)</sup> = (−1) <sup>f</sup> <sup>(x)</sup> |x⟩⊗ 1 2 <sup>(|0⟩−|1⟩)</sup> = (−1) <sup>f</sup> <sup>(x)</sup> |x⟩⊗ H|1⟩ . (6) 6 Since the oracle state H|1⟩ is fixed we can discard it from eq. (6) and simply write Uf |x⟩ = (−1) <sup>f</sup> <sup>(x)</sup> |x⟩ . (7) Here we remark that eq. (7) can be regarded as the reflection about a plane perpendicular to the target element. We have considered x to be a single qubit here, however eq. (7) is also valid when x is a n-qubit. In Deutsch’s algorithm Hadamard transform is applied on the state of two qubits |0⟩⊗|1⟩ 1 2 <sup>(|0⟩−|1⟩)</sup> <sup>.</sup> (8) H|0⟩⊗ H|1⟩ = 1 2 <sup>(|0⟩</sup> <sup>+ |1⟩) ⊗</sup> Then using eq. (7) the oracle’s unitary transformation Uf on H|0⟩⊗ H|1⟩ can be written as - ⊗ 1 2 <sup>(|0⟩−|1⟩)</sup> <sup>.</sup> (9) Uf H|0⟩⊗ H|1⟩ = 1 2 (−1) <sup>f</sup> <sup>(0)</sup> |0⟩ + (−1) <sup>f</sup> <sup>(1)</sup> |1⟩ Hadamard transform on the first qubit of eq. (9) gives HUf H|0⟩⊗ H|1⟩ = <sup>1</sup> 2 |0⟩ + �(−1) <sup>f</sup> <sup>(0)</sup> - (−1) <sup>f</sup> <sup>(1)�</sup> |1⟩ ⊗ <sup>1</sup> 2 ��1 (−1) <sup>f</sup> <sup>(0)</sup> + (−1) <sup>f</sup> <sup>(1)�</sup> 1 2 <sup>(|0⟩−|1⟩)</sup> <sup>.</sup> (10) Measurement on the first qubit in eq. (10) shows that when the function f is constant, i.e. f (0) = f (1), we obtain the outcome |0⟩. On the other hand, when the function f is balanced, i.e. f (0)̸ = f (1), we obtain the outcome |1⟩. The superposition of |0⟩ and |1⟩ does the job of finding whether the function f is constant or balanced in just one query to the quantum oracle. This is called quantum parallelism. B. Deutsch-Jozsa algorithm In Deutsch’s algorithm we had a single qubit input to the quantum oracle, also known as quantum black box. However what happens if the input is a n-qubit, an element of a N = 2 <sup>n</sup> dimensional Hilbert space. Will the time to find out whether the function f is constant or balanced increase? Here the function is said to be constant if f (x) = 0 or f (x) = 1 for all N = 2 <sup>n</sup> n-qubit inputs. The function f is said to be balanced if f (x) = 0 for exactly half of the input n-qubits and f (x) = 1 for the other half of the inputs. With a classical computer we need a huge amount of time, i.e. 2 <sup>n−1</sup> + 1 numbers of queries in the worst case to find 7 out if the function is constant or balanced. However using Deutsch-Jozsa algorithm we can find the answer in just one oracle query. Since we have now n-qubit state |0⟩ <sup>n</sup> we have to apply n Hadamard transforms (11) H <sup>(n)</sup> = H ⊗1 H ⊗2 · · · ⊗n H, where ⊗i is the i-th direct product. The action of H <sup>(n)</sup> on a general n-qubit state |x⟩ is given by 1 yi=0 H <sup>(n)</sup> |x⟩ = = n i=1 1 2 <sup>n</sup> 1 2 i=1 yi=0 (−1) <sup>xiyi</sup> |yi⟩, xi ∈{0, 1}, 2 <sup>n</sup> −1 y=0 y=0 (−1) <sup>x.y</sup> |y⟩, (12) where x.y = ⊕i <sup>n</sup> i <sup>n</sup> =1 <sup>xi.yi</sup> <sup>is</sup> <sup>the</sup> <sup>scalar</sup> <sup>product</sup> <sup>modulo</sup> <sup>2.</sup> In Deutsch-Jozsa algorithm Hadamard transform is applied on the state |0⟩ <sup>n</sup> ⊗|1⟩ 1 2 <sup>(|0⟩−|1⟩)</sup> <sup>.</sup> (13) 2 <sup>n</sup> −1 |x⟩ x=0 ⊗ H <sup>(n)</sup> |0⟩ <sup>n</sup> ⊗ H|1⟩ = 1 2 <sup>n</sup> �� The unitary transformation Uf on H <sup>(n)</sup> |0⟩⊗ H|1⟩ can be written as 2 <sup>n</sup> −1 x=0 Uf H <sup>(n)</sup> |0⟩ <sup>n</sup> ⊗ H|1⟩ = 1 2 <sup>n</sup> �� x=0 (−1) <sup>f</sup> <sup>(x)</sup> |x⟩ ⊗ 1 2 <sup>(|0⟩−|1⟩)</sup> <sup>.</sup> (14) Now applying the Hadamard transform on the n-qubit in eq. (14) we obtain 2 <sup>n</sup> −1 y=0 2 <sup>n</sup> −1 x=0 y=0 HUf H <sup>(n)</sup> |0⟩ <sup>n</sup> ⊗ H|1⟩ = 1 2 <sup>n</sup> ⊗ 1 2 <sup>(|0⟩−|1⟩)</sup> <sup>.</sup> (15) (−1) <sup>f</sup> <sup>(x)</sup> (−1) <sup>x.y</sup> |y⟩ If the function f (x) is constant then 1 2 <sup>n</sup> 2 <sup>n</sup> −1 x=0 x=0 (−1) <sup>f</sup> <sup>(x)</sup> (−1) <sup>x.y</sup> = (−1) <sup>f</sup> <sup>(x)</sup> 2 <sup>1n</sup> 2 <sup>n</sup> −1 (16) (−1) <sup>x.y</sup> = (−1) <sup>f</sup> <sup>(x)</sup> δy,0 . x=0 2 <sup>n</sup> Using eq. (16) in eq. (15) we obtain HUf H <sup>(n)</sup> |0⟩ <sup>n</sup> ⊗ H|1⟩ = 2 <sup>n</sup> −1 y=0 y=0 (−1) <sup>f</sup> <sup>(x)</sup> δy,0|y⟩⊗ 1 2 <sup>(|0⟩−|1⟩)</sup> = (−1) <sup>f</sup> <sup>(x)</sup> |0⟩ <sup>n</sup> ⊗ 1 2 <sup>(|0⟩−|1⟩)</sup> <sup>.</sup> (17) 8 So for constant function we obtain |0⟩ <sup>n</sup> output state with unit probability (18) | <sup>n</sup> ⟨0|HUf H <sup>(n)</sup> |0⟩ <sup>n</sup> | <sup>2</sup> = |(−1) <sup>f</sup> <sup>(x)</sup> | <sup>2</sup> = 1 . We have dropped the second qubit H|1⟩ while evaluating the probability in eq. (18), because it remains fixed. On the other hand if the function f (x) is balanced then f (x) = 0 for half, i.e. 2 <sup>n−1</sup> values of x and f (x) = 1 for another half, i.e. 2 <sup>n−1</sup> values of x, which amounts to vanishing probability of obtaining |0⟩ <sup>n</sup> | <sup>n</sup> ⟨0|HUf H <sup>(n)</sup> |0⟩ <sup>n</sup> | <sup>2</sup> = | 2 <sup>1n</sup> 2 <sup>n</sup> −1 x=0 x=0 (19) (−1) <sup>f</sup> <sup>(x)</sup> | <sup>2</sup> = 0 . It is clear from the measurement in eq. (18) and eq. (19) that constant and balanced function can be distinguished by running the quantum black-box once. C. Bernstein-Vazirani algorithm This algorithm is just a variation of the above discussed Deutsch-Jozsa algorithm, where instead of the |0⟩ <sup>n</sup> output we get a constant n-bit output a. The problem is the following: We have a function fa(x) = a.x, (20) where we have to find out the n-bit constant a with the help of an algorithm. Replacing f (x) = a.x in eq. (15) we obtain 2 <sup>n</sup> −1 y=0 2 <sup>n</sup> −1 x=0 y=0 HUf H <sup>(n)</sup> |0⟩ <sup>n</sup> ⊗ H|1⟩ = However we note that 1 2 <sup>n</sup> (−1) <sup>a.x</sup> (−1) <sup>x.y</sup> |y⟩ ⊗ 1 2 <sup>(|0⟩−|1⟩)</sup> <sup>.</sup> (21) 1 2 <sup>n</sup> 2 <sup>n</sup> −1 x=0 x=0 (22) (−1) <sup>a.x</sup> (−1) <sup>x.y</sup> = δy,a . Using eq. (22) in eq. (21) we obtain 1 2 <sup>(|0⟩−|1⟩)</sup> <sup>.</sup> (23) HUf H <sup>(n)</sup> |0⟩ <sup>n</sup> ⊗ H|1⟩ = 2 <sup>n</sup> −1 y=0 δy,a|y⟩⊗ 1 2 <sup>(|0⟩−|1⟩) = |a⟩⊗</sup> When we measure the first n-bit we obtain the value of a in just a single quantum query. In classical computer we get just a single bit output each time. So classical computer would requires n queries to find the value of a. 9 III. FULL DATABASE SEARCH Let us consider a set D = {a0, a1, · · ·, aN −1} containing N number of elements. Assume that one of the N elements is a marked one, which we have to find out. One of the legitimate questions in computing is how fast one can find out the marked element or the solution. If the elements in the set are completely unsorted then the classical computer can find the marked element in O(N) queries/time. Grover investigated the same problem quantum mechanically and found that it is possible to devise a quantum algorithm, now known as the N ) queries. This is a quadratic Grover algorithm, which can find the marked element in O( √ speed up in time over the classical algorithm. Bellow we discuss the famous Grover algorithm which has been extensively investigated in the literature. A. Grover algorithm A database which we encounter in practice may have a single target item/element or sometimes it may have multiple target elements. Grover search can efficiently search both types of database, however the database with multiple target elements are faster to search than with single target element as can be understood from the following two sub-subsections. 1. Single target Grover algorithm We associate the N elements of the set D with the basis vectors of a N-dimensional Hilbert space H spanned by orthonormal basis vectors {|ai⟩|⟨ai|aj⟩ = δij, i = 0, 1, · · ·, N − 1}. Now consider an initial unit vector |Θ⟩, which can be written in terms of the basis vectors as |Θ⟩ = N −1 i=0 cos αi|ai⟩, (24) To start with an equal i=0 <sup>cos2 αi</sup> <sup>=</sup> <sup>1.</sup> i=0 probability for all the elements we assume the direction where the direction cosines cos(αi)s satisfy <sup>�N</sup> <sup>−1</sup> probability for all the elements we assume the direction cosines to be same in all directions, i.e., αi = π/2 − θ, which simplifies the initial unit vector (24) as |Θ⟩ = N −1 i=0 sin θ|ai⟩ = N −1 i=0 1 (25) �N <sup>|ai⟩</sup> <sup>,</sup> 10 One of the basis vectors let |aT ⟩ be assigned to the target element, which has a probability PT = |⟨aT |Θ⟩| <sup>2</sup> = sin <sup>2</sup> θ = N <sup>1</sup> <sup>,</sup> (26) of obtaining it if measured in the state |Θ⟩. In order to increase the probability of getting the marked state |aT ⟩ Grover exploited an unitary transformation G, which we call Grover iteration: G = −IΘIT, (27) where the two reflection operators IT and IΘ are given as IT = I − 2|aT ⟩⟨aT |, (28) IΘ = I − 2|Θ⟩⟨Θ| . (29) To understand the action of both the reflection operators let us consider a general vector |ψ⟩ = N −1 i=0 ci|ai⟩, (30) where cis are the constant coefficients. IT only reflects the |aT ⟩ component and keeps the other components unchanged as can be seen from the expression IT |ψ⟩ = −cT |aT ⟩ + N −1 i=0�,i̸=T ci|ai⟩ . (31) For the particular case of the state associated with the marked element |aT ⟩ it simply becomes IT |aT ⟩ = −|aT ⟩. On the other hand −IΘ inverts the coefficients ci of the vector |ψ⟩ about the double average of their coefficients as −IΘ|ψ⟩ = N −1 i=0 (2¯c − ci) |ai⟩, (32) where c¯ is the average of all the coefficients given by c¯ = 1 N G acts on a general vector |ψ⟩ as �iN=0−1 <sup>ci.</sup> <sup>One</sup> <sup>Grover</sup> <sup>iteration</sup> (2˜c − ci) |ai⟩, (33) G|ψ⟩ = −IΘIT |ψ⟩ = (2˜c + cT ) |aT ⟩ + N −1 i=0�,i̸=T 11 ̸ . For our purpose it is helpful to where now the average being c˜ = 1 N i=0,i̸ iteration G on −cT + <sup>�N</sup> <sup>−1</sup> i=0,i̸=T <sup>ci</sup> consider the action of the Grover iteration G on the initial state |Θ⟩ in eq. (25), which simply gives G|Θ⟩ = sin (2 + 1) θ|aT ⟩ + N −1 i=0�,i̸=T cos (2 + 1) θ tan θ|ai⟩ . (34) Applying the same Grover iteration j times on the initial state we obtain G <sup>j</sup> |Θ⟩ = sin (2j + 1) θ|aT ⟩ + N −1 i=0�,i̸=T cos (2j + 1) θ tan θ|ai⟩ . (35) Assuming that now the initial state is aligned with the target vector, i.e. G <sup>j</sup> |Θ⟩ = |aT ⟩ after j successive applications of the Grover iteration we obtain the optimal number of quantum query to the oracle necessary for large database N - <sup>1</sup> 2 N . (36) √ = <sup>π</sup> √ 4 j = lim N →∞ 4 - π This is clearly a quadratic speed up over the classical algorithm to search for a marked element on a set of N unsorted elements. Of course j estimated under the above assumption may make it a non-integer in general. In that case, we have to take the integer closest to <sup>π</sup> √ 4 the number <sup>π</sup> 4 N. To easily understand the action of G <sup>j</sup> on the initial state vector |Θ⟩ let us consider the eigenvalue problem G <sup>j</sup> |φ⟩ = E <sup>j</sup> |φ⟩ . (37) On the plane defined by the vectors |aT ⟩ and |Θ⟩ eq. (37) has the following two eigenvectors |φ⟩± = √ <sup>1</sup> 2 i 2 <sup>|aT</sup> <sup>⟩±</sup> √ N −1 i=0�,i̸=T tan θ|ai⟩, (38) with their corresponding eigenvalues E± <sup>j</sup> <sup>= e±i2θj.</sup> <sup>In</sup> <sup>terms</sup> <sup>of</sup> <sup>these</sup> <sup>eigenvectors</sup> <sup>the</sup> <sup>initial</sup> state vector can be expressed as √ |Θ⟩ = − 2i �e <sup>iθ</sup> |φ⟩+ − e <sup>−iθ</sup> |φ⟩− - . (39) Acting G <sup>j</sup> on the expression of eq. (39) we immediately obtain √ 2i �e <sup>i(2j+1)θ</sup> |φ⟩+ − e <sup>−i(2j+1)θ</sup> |φ⟩− -, (40) G <sup>j</sup> |Θ⟩ = − which once written in terms of the original basis |ai⟩ reduces to the expression of eq. (35). 12 a. Example with single target: Let us consider an example, where there are N = 4 elements and one of the element is marked. We need to find out the marked element among the four elements. Naively we may think that classically we can find the marked element in one search, two searches, three searches or in the worst case in four searches. On average <sup>1+2+3+4</sup> = 2 <sup>1</sup> 4 2 we need <sup>1+2+3+4</sup> 4 2 <sup>1</sup> <sup>searches</sup> <sup>to</sup> <sup>find</sup> <sup>the</sup> <sup>target</sup> <sup>element.</sup> <sup>However,</sup> <sup>since</sup> <sup>we</sup> <sup>know</sup> <sup>there</sup> <sup>is</sup> a marked element it is not necessary to perform a forth search. Therefore, on average we <sup>1+2+3+3</sup> = 2 <sup>1</sup> 4 4 only need to perform <sup>1+2+3+3</sup> 4 <sup>1</sup> 4 <sup>number</sup> <sup>of</sup> <sup>classical</sup> <sup>searches</sup> <sup>to</sup> <sup>find</sup> <sup>the</sup> <sup>target</sup> <sup>element.</sup> However quantum mechanically, using Grover algorithm, we can find the marked element in just a single query. In this case sin θ = N1 <sup>=</sup> 2 <sup>1</sup> state� is θ 2 <sup>1.</sup> <sup>So,</sup> <sup>the</sup> <sup>angle</sup> <sup>between</sup> <sup>the</sup> <sup>initial</sup> <sup>state</sup> and the state perpendicular to the target state is θ = 30 <sup>◦</sup> . One query to the black box will further rotate the initial state 2θ = 60 <sup>◦</sup> towards the target element. Now the total angle between the initial state and the sate perpendicular to the target state is 2θ + θ = 90 <sup>◦</sup>, which means the initial state is now completely aligned with the target state. We can also exploit eq. (31) and eq. (32) to understand the the above example in a alternative manner. Note that IT just inverts the sign of the amplitude of the target element and IΘ inverts the amplitudes of the basis vectors about the double average. For the database of N = 4 elements each basis element in the initial state |Θ⟩ has an amplitude 1N <sup>=</sup> 2 <sup>1</sup> ci = √1 cT = 2 <sup>1</sup> 2 <sup>1</sup> <sup>.</sup> <sup>After</sup> <sup>the</sup> <sup>action</sup> <sup>of</sup> <sup>IT</sup> <sup>the</sup> <sup>amplitude</sup> <sup>of</sup> <sup>only</sup> <sup>the</sup> <sup>target</sup> <sup>element</sup> <sup>changes</sup> <sup>from</sup> 2 <sup>1</sup> <sup>to</sup> <sup>−cT</sup> <sup>= −</sup> <sup>1</sup> 2 <sup>.</sup> <sup>The</sup> <sup>average</sup> <sup>of</sup> <sup>the</sup> <sup>four</sup> <sup>amplitudes</sup> <sup>then</sup> <sup>reduces</sup> <sup>from</sup> <sup>c¯ =</sup> <sup>1</sup> 2 <sup>to</sup> <sup>c˜ =</sup> 4 <sup>1.</sup> Then IΘ inverts the amplitude about the double average, which can be seen from state in eq. (33). The amplitude of the target element after one Grover iteration is thus amplified to 2˜c + cT = 1 and the amplitudes of all the other basis elements vanish 2˜c − ci = 0. 2. Multiple targets Grover algorithm In the above analysis there is just a single marked element in the set. We now consider the case when there are M number of marked elements in the set D of N number of elements. We discuss this algorithm with the help of a generalized method known as the amplitude amplification, which was studied by Brassard et al [3]. Let us first divide the Hilbert space H into two mutually orthogonal sub-spaces HT and HnT . HT is the target space of dimensions M, where the basis elements are associated with M target elements and HnT is the Hilbert space of non-target elements of dimensions N - M, where the basis vectors are associated 13 with all the N - M non-target elements. An unit vector in the target space can be written in terms of the basis elements of the target space as M i=1 |AT ⟩ = M a˜i|ai⟩, i=1 (41) |a˜i| <sup>2</sup> = 1, where we have rearranged the the basis vectors such that first M basis vectors correspond to the target space and rest belongs to the non-target space. Similarly, an unit vector in the non-target space can be written as N i=M +1 (42) |a¯i| <sup>2</sup> = 1 . |AnT ⟩ = N i=M +1 N =M a¯i|ai⟩, We again start with the same initial vector (25) but in terms of the unit basis vectors (41) 1 N −M with a˜i = M1 <sup>and</sup> <sup>(42)</sup> <sup>with</sup> <sup>a¯i</sup> <sup>=</sup> - M N |Θ <sup>˜</sup> ⟩ = N <sup>|AT</sup> <sup>⟩</sup> <sup>+</sup> N - M (43) N |AnT ⟩, The probability of obtaining a target element if measured in the initial state (43) would be equal to the probability obtaining the basis state (41) in the initial state (43) as (44) P˜T = |⟨AT |˜Θ⟩| <sup>2</sup> = sin <sup>2</sup> θ˜ = <sup>M</sup> N Here we remark that we chose specific coefficients in the basis vectors (41) and (42) so that the initial state becomes a state with same direction cosines in all directions. However we could have kept the coefficients arbitary. The probability of getting the marked state |AT ⟩ can be increased by the application Grover iteration G <sup>˜</sup>, which is defines as G˜ = −I˜ΘIAT, (45) where the two reflection operators IAT and I˜Θ are given as IAT = I − 2|AT ⟩⟨AT |, (46) (47) I˜Θ = I − 2|Θ <sup>˜</sup> ⟩⟨Θ <sup>˜</sup> | . To understand the action of G <sup>˜j</sup> on the initial state vector |Θ <sup>˜</sup> ⟩ let us consider the eigenvalue problem G˜ <sup>j</sup> |φ⟩ = E˜ <sup>j</sup> |φ⟩ . (48) 14 In terms of the unit vectors (41) and (42) the eigenvalue equation (48) has the following two eigenvectors i |φ <sup>˜</sup> ⟩± = √ <sup>1</sup> 2|AT ⟩± √2|AnT ⟩, (49) with their corresponding eigenvalues E <sup>˜</sup> ± <sup>j</sup> <sup>= e±i2˜θj.</sup> <sup>In</sup> <sup>terms</sup> <sup>of</sup> <sup>these</sup> <sup>eigenvectors</sup> <sup>the</sup> <sup>initial</sup> state vector can be expressed as √ |Θ <sup>˜</sup> ⟩ = − 2i �e <sup>iθ˜</sup> |φ <sup>˜</sup> ⟩+ − e <sup>−iθ˜</sup> |φ <sup>˜</sup> ⟩− . (50) Acting G <sup>˜j</sup> on the expression of eq. (50) we obtain √ G˜ <sup>j</sup> |Θ⟩ = − 2i �e <sup>i(2j+1)˜θ</sup> |φ <sup>˜</sup> ⟩+ − e <sup>−i(2j+1)˜θ</sup> |φ <sup>˜</sup> ⟩− , (51) which can be rewritten in terms of the basis vectors |AT ⟩ and |AnT ⟩ as (52) G˜ <sup>j</sup> |Θ⟩ = sin (2j + 1) ˜θ|AT ⟩ + cos (2j + 1) ˜θ|AnT ⟩ . After j successive application of the Grover iteration the initial state is aligned with the target unit vector, i.e. G <sup>˜j</sup> |Θ <sup>˜</sup> ⟩ = |AT ⟩. For a large database of N elements with M target items the optimal number of quantum queries necessary to find a target item becomes N M <sup>.</sup> (53) j = lim N →∞ j = lim π 4 N 2 - M <sup>−</sup> <sup>1</sup> N 2 - M <sup>−</sup> <sup>1</sup> = <sup>π</sup> 4 a. Example with multiple targets: Let us consider an example which is similar to the example of four elements in a database discussed in III A 1 a, however this time there are multiple target elements instead of just one. For our purpose only the ratio of the number of elements N in the database with the number of target elements M matters. We consider the ratio to be M <sup>N</sup> M <sup>N</sup> <sup>= 4.</sup> <sup>The angle between</sup> <sup>the orthogonal to unit vector</sup> <sup>|AT</sup> <sup>⟩</sup> <sup>in</sup> <sup>the target state</sup> and the initial state |Θ⟩ can be obtained from eq. (44) as θ <sup>˜</sup> = 30 <sup>◦</sup> . One Grover iteration rotates the initial state |Θ⟩ towards the target state |AT ⟩ by an amount 2θ <sup>˜</sup> = 60 <sup>◦</sup> . After one Grover search the angle between the orthogonal to the target state and the initial state is 2θ <sup>˜</sup> + θ <sup>˜</sup> = 90 <sup>◦</sup>, which means the initial state is now completely aligned with the unit target state. 15 3. Generic unitary transformation for Grover search In the discussion of Grover search algorithm in subsection III A 1 we have implicitly exploited the Walsh-Hadamard(WH) transformation H <sup>(n)</sup> as an unitary transformation. Note that the initial state in eq. (25), which is an equal weighted superposition of all basis states can be obtained from the state |0⟩ <sup>n</sup> by the application of WH transformation N −1 i=0 |ΘH (n)⟩ = |Θ⟩ = H <sup>(n)</sup> |0⟩ <sup>n</sup> = 1 N |ai⟩ . (54) Then the reflection operator IΘ in eq. (29) can be obtained as (55) IΘ = H <sup>n</sup> (I − 2|0⟩ <sup>nn</sup> ⟨0|) (H <sup>n</sup> ) <sup>−1</sup> = I − 2|Θ⟩⟨Θ| . Instead of using H <sup>(n)</sup> we can also choose any generic unitary operator U [20] which can act on the Hilbert space H of N basis states describing N = 2 <sup>n</sup> elements of the Grover search. The initial state we now consider for our purpose is given by (56) |ΘU ⟩ = U|0⟩ <sup>n</sup> . Then the reflection operator corresponding to the state in eq. (56) can be written as (57) IΘU = U (I − 2|0⟩ <sup>nn</sup> ⟨0|) U <sup>−1</sup> = I − 2|ΘU ⟩⟨ΘU | . As usual |aT ⟩ is the target element which we have to find out from the N elements and IT is the corresponding reflection operator. The amplitude of the target element |aT ⟩ in the initial state |ΘU ⟩ is (58) AT ΘU = sin θU = ⟨aT |ΘU ⟩ = ⟨aT |U|0⟩ <sup>n</sup> . When the probability of getting the target element in the initial state is low then eq. (58) can be approximated as AT ΘU = θlimU →0 <sup>sin θU</sup> <sup>= θU .</sup> (59) We can now construct the Grover iteration as GU = −IΘU IT . (60) 16 One Grover iteration moves the initial state by an angle 2θU towards the target element. Assuming that after jU number of iterations the initial state will align with the target element then we obtain = <sup>π</sup> 1 4 - AT ΘU jU = lim AT ΘU →0 1 4 �π AT ΘU - 2 <sup>1</sup> (61) When the unitary operator U = H <sup>(n)</sup> the amplitude of the target element in the initial state becomes AT ΘU = N1 <sup>,</sup> <sup>then</sup> <sup>eq.</sup> <sup>(61)</sup> <sup>reduces</sup> <sup>to</sup> <sup>the</sup> <sup>standard</sup> <sup>result</sup> <sup>in</sup> <sup>eq.</sup> <sup>(36).</sup> �that when there is no apparent knowledge of the Here we remark that when there is no apparent knowledge of the whereabouts of the target element in a database then the WH transformation is the most suitable unitary transformation because it produces an initial state which is an equal superposition of all the basis states. For many target elements the average amplitude of the target elements in the initial state is largest and the amplitude of the target elements are known. However there can have some problems where we may have more knowledge about the target element/elements or there are some order/structure in the database. The generic uni tary transformation then becomes important, because one can choose the unitary operator U accordingly so as to get faster search. The Grover search is then a search of a structured database as opposed to the unstructured search discussed in sections III A 1 and III A 2. a. Example of a structured Grover search: Here we consider an example of a structured Grover search which is discussed in refs. [21, 22]. Let us consider a function F (ai, bi) which takes two n-bits (ai, bi), i = 1, 2, · · ·, N as inputs and the output is zero for all (ai, bi)s except at (aT, bT ), where F (aT, bT ) = 1. This is an example of a database of N <sup>2</sup> elements and one of then (aT, bT ) is the target element. Classical computer needs O(N <sup>2</sup> ) time in the worst case to find the target element. However Grover algorithm needs O(N) oracle calls to find out the target element with close to one probability. The number of oracle calls can further be reduced if we know there is some structure which can help to minimize the time of search. Let us assume that there is another function G(ai) which takes one n-bits ai, i = 1, 2, · · ·, N as input and the output is zero for all ais except for M ≤ N ais, where G(ai) = 1 and aT also belongs to those M ai, i.e. G(aT ) = 1. The case M = N is not interesting because G(ai) = 1 for all the inputs and therefore does not reduce the search time for the target element (aT, bT ). For the case M = 1 we may <sup>π</sup> √ 2 first use G(ai) to find aT in <sup>π</sup> 4 √ <sup>π</sup> 4 √ <sup>π</sup> 4 N number of Grover iterations. Then we can use F (aT, bi) to find aT, bT in <sup>π</sup> 4 N number of Grover iterations, in total <sup>π</sup> 2 N iterations are needed. 17 Let us now consider the case 1 < M < N, and assume that M is known. The result is also valid for M = 1 and M = N cases. Now the classical computer can find the target element MN ) in O(MN) repetitions. The quantum algorithm can find the target element in O( oracle calls which is a quadratic speed up in time. √ The function F (ai, bi) acts on a tensor product space H12 = H1 ⊗H2 of dimensions N <sup>2</sup> and basis elements are |ai⟩⊗|bi⟩, where |ai⟩ are the basis elements of H1 and |bi⟩ are the basis elements of H2. Both of the Hilbert spaces H1 and H2 have dimensions N. The initial state we consider is given by |Θ12⟩ = |Θ1⟩⊗|Θ2⟩, (62) where the initial state on both the Hilbert spaces are given by N i=1 ⊗ I, (63) |Θ1⟩ = 1 N �� i=1 |ai⟩ N i=1 |Θ2⟩ = I ⊗ 1 N �� |bi⟩ . (64) With all the basis states corresponding to G(ai) = 1 we prepare another state by equal superposition G(ai)=1  (65)   ⊗ I . |Θ0⟩ =   1 M |ai⟩ We can now construct the reflection operators corresponding to |Θ1⟩, |Θ2⟩ and |Θ⟩ as IΘ1 = (I − 2|Θ1⟩⟨Θ1|) ⊗ I, (66) IΘ2 = I ⊗ (I − 2|Θ2⟩⟨Θ2|), (67) IΘ0 = (I − 2|Θ0⟩⟨Θ0|) ⊗ I . (68) The other two reflection operators we need are G(ai)=1 IT1 =   I − 2 (ai |ai⟩⟨ai| | (69) | ⊗ I, (70) IT12 = I ⊗ I − 2|aT ⟩⟨aT | ⊗|bT ⟩⟨bT | . (70) Firstly, the Grover iteration G1 = −IΘ1IT1, (71) 18 is performed j1 = <sup>π</sup> 4 MN <sup>times</sup> <sup>on</sup> <sup>the</sup> <sup>initial</sup> <sup>state</sup> <sup>|Θ12⟩,</sup> <sup>which</sup> <sup>only</sup> <sup>transforms</sup> <sup>the</sup> <sup>initial</sup> state vector |Θ1⟩ to the state |Θ0⟩ G1j1|Θ12⟩ = G1 (72) j1|Θ1⟩⊗|Θ2⟩∼= |Θ0⟩⊗|Θ2⟩, We now define a reflection operator IT0 as 12 <sup>j12</sup> †IT12G12j12 12 IT0 = G <sup>j12</sup> 12 <sup>,</sup> (73) j12 where G12 = −IΘ2IT12, (74) N iterations by G12 we can obtain the target state in the following √ Note that after j12 = <sup>π</sup> 4 √ <sup>π</sup> 4 way G12 j12|ai⟩⊗|Θ2⟩ = |ai⟩⊗|Θ2⟩, for ai̸ = aK, (75) = |aT ⟩⊗|bT ⟩, for ai = aK . (76) The reflection operator IT0 defined in eq. (73) will act on the M dimensional Hilbert space with basis elements ai for which G(ai) = 1. It reflects the target element aT about a plane perpendicular to |aT ⟩. In particular its action is given by IT0|ai⟩⊗|Θ2⟩ = |ai⟩⊗|Θ2⟩, for ai̸ = aK, (77) = −|aT ⟩⊗|Θ2⟩, for ai = aK . (78) We can now define a Grover iteration G0 = −IΘ0IT0, (79) which will find a target element |aT ⟩ from the database of M elements for which G(ai) = 1. √ 4 <sup>π</sup> 4 Applying G0 on the state of eq. (72) j = <sup>π</sup> M times we obtain 0 <sup>jG1</sup> j1|Θ12⟩∼= G0j G0 <sup>j</sup> (80) 0j <sup>|Θ0⟩⊗|Θ2⟩∼= |aT</sup> <sup>⟩⊗|Θ2⟩</sup> <sup>,</sup> Finally, iterating the state in eq. (80) j12 times by G12 we obtain 12 <sup>j12G</sup> 0 <sup>jG1</sup> j1|Θ12⟩∼= G12j12 G12 <sup>j12</sup> (81) 12j12 <sup>|aT</sup> <sup>⟩⊗|Θ2⟩∼= |aT</sup> <sup>⟩⊗|bT</sup> <sup>⟩</sup> <sup>.</sup> From the expansion 19 j1 . (82) 12 j12 G1 �j 12 12 <sup>j12G</sup> 0 <sup>jG1</sup> j1 = Gj12 12 12 <sup>j12</sup> †IT12Gj12 G12 <sup>j12</sup> 12 12 j12 �−IΘ0G <sup>j12</sup> we obtain the total oracle queries jT in large database N and large M limit jT = lim √ 8 N,M →∞ <sup>(j12 + 2j12j + j1) =</sup> <sup>π2</sup> NM . (83) This is quadratically faster than the classical time of O(NM) and even faster than the quantum unstructured Grover search for M < N which takes time of O(N). 4. Proof of optimization of Grover algorithm Grover search is the fastest algorithm for the problem of finding the target element from an unstructured database. No other algorithm can search for the target element shorter N) oracle queries. than O( √ Consider an initial state |ψ0⟩ which evolves to a state |ψJ <sup>ai</sup> J <sup>ai⟩</sup> <sup>=</sup> <sup>Ua</sup> i <sup>|ψ0⟩</sup> <sup>after</sup> <sup>J</sup> <sup>oracle</sup> queries. We assume that after J number of queries the evolved state is very very close to the target state |ai⟩ ⟨ψJ <sup>ai|ai⟩≈</sup> <sup>1,</sup> for i = 1, 2, · · ·, N . (84) The same initial state |ψ0⟩ evolves to a state |ψJ ⟩ = U|ψ0⟩ after J empty oracle queries. Question is how far the state |ψJ <sup>ai</sup> lower bound as J <sup>ai⟩</sup> <sup>has has drifted</sup> <sup>from |ψJ</sup> <sup>⟩</sup> <sup>can</sup> <sup>be qualified</sup> <sup>in terms of the</sup> N i=1 | |ψJ <sup>ai⟩−|ψJ</sup> <sup>⟩|2≥</sup> <sup>2N</sup> <sup>−</sup> <sup>2</sup> | |ψJ <sup>ai</sup> √ N . (85) In Grover’s algorithm |ψ0⟩ = |Θ⟩ is the state with equal superposition of all the basis elements. The unitary operator Uai is the Grover iteration applied J times (86) Uai = (−IΘIai) <sup>J</sup> = [−(I − 2|Θ⟩⟨Θ|)(I − 2|ai⟩⟨ai|)] <sup>J</sup> . Then |ψJ <sup>ai⟩</sup> <sup>= Ua</sup> i <sup>|ψ0⟩</sup> <sup>= (−IΘIa</sup> i <sup>)J</sup> <sup>|Θ⟩≈|ai⟩</sup> <sup>.</sup> (87) 20 The empty oracle operator U is given by (88) U = (−IΘI) <sup>J</sup> = [−(I − 2|Θ⟩⟨Θ|)I] <sup>J</sup>, where the oracle operator is just the identity operator. U does not change the initial state at all |ψJ ⟩ = U|ψ0⟩ = U|Θ⟩ = |Θ⟩ . (89) Substituting the the results from eq. (87) and eq. (89) in the left hand side of eq. (85) we N, which saturates the inequality. i Given obtain <sup>�N</sup> i <sup>N</sup> =1 <sup>| |ψ</sup> J <sup>ai</sup> J <sup>ai⟩−|ψJ</sup> <sup>⟩|2= 2N</sup> <sup>−</sup> <sup>2</sup> √ Given the inequality in eq. (85) in terms of the the number of elements in a database N we now need another inequality which will provide a bound in terms of the number of iterations J. This inequality is given in terms of the lower bound as N i=1 | |ψJ <sup>ai⟩−|ψJ</sup> <sup>⟩|2≤</sup> <sup>4J</sup> <sup>2 .</sup> (90) From eq. (85) and eq. (90) we obtain in large N limit J ≥ N √ 2 <sup>= O(</sup> N) . (91) In this proof we have assumed the probability of obtaining a target state to be unity. In general by considering probability close to unity one can refine the lower bound on the number of searches J in eq. (91). However upto some small factor the query time is N ), which can not be reduced by any algorithm. B. Adiabatic evolution for database search O( √ In recent years there have been several attempts to realize Grover search algorithm by adiabatic evolution [23–25] of a suitably chosen Hamiltonian. In this subsection we state one such work which shows that adiabatic approximation can be utilized to find a target √ N ) time which is equivalent to what Grover algorithm needs. item in O( According to the adiabatic theorem if a Hamiltonian changes slowly with time then the system initially in a ground state will always remain in the instantaneous ground state of the system. We can exploit it by starting from a Hamiltonian whose states are known and 21 then adiabatically evolving the Hamiltonian to a Hamiltonian whose ground state would be the desired state we are looking for, i.e. the target state. Let us start with the Schr¨odinger equation of a time dependent system with Hamiltonian H(t) iℏ ∂t <sup>∂</sup> <sup>ψA(t) = H(t)ψA(t),</sup> (92) where ψA(t) is a state of the system. The eigenvalue equation for this system is given by H(t)ψn(t) = En(t)ψn(t), (93) where En(t), n = 1, 2, · · · are the time dependent eigenvalues corresponding to the time dependent eigenstates ψn(t). Note that if the Hamiltonian is time independent then the eigenvalues are also time independent and the eigenstates only acquire phase factor when it evolves. After a long time of evolution the system initially in ψ1(t) state will be found in ψ2(t) state with amplitude ǫ (94) dt <sup>|ψ1(t)⟩</sup> ǫ ∼| <sup>⟨ψ2(t)| dH(t)</sup> |≪ 1 . (E2(t) − E1(t)) <sup>2</sup> It is useful to consider even more strict condition to ensure that the system remains in its instantaneous ground state. Is is assumed that the maximum of the numerator and the minimum of the denominator in the interval T in eq. (94) satisfy max0≤t≤T | ⟨ψ2(t)| <sup>dH</sup> dt <sup>(t)</sup> <sup>|ψ1(t)⟩|</sup> (95) ≤ ǫ . min0≤t≤T (E2(t) − E1(t)) <sup>2</sup> One can exploit the condition (95) to obtain a lower bound on time T to evolve the state from ψ1(0) to ψ1(T ). As an explicit example consider the Hamiltonian HΘ = I −|Θ⟩⟨Θ|, (96) whose ground state |Θ⟩ is the uniform superposition of all the basis elements in the Hilbert space of dimension N defined in eq. (25). It is assumed that the system is initially in the this ground state. Then to evolve the state |Θ⟩ to the target state |aT ⟩ we have to consider a Hamiltonian of the form HT = I −|aT ⟩⟨aT |, (97) 22 whose ground state is the target state |aT ⟩. The Hamiltonian which will evolve the state |Θ⟩ to the target state |aT ⟩ is given by H(t) = (1 − s(t))HΘ + s(t)HT, (98) where the parameter s(t) depends on time. Consider a simple liner form s(t) = T <sup>t</sup> <sup>,</sup> <sup>where</sup> <sup>T</sup> is the time over which the system evolves. The difference between the lowest two eigenvalues E1(t), E2(t) is given by 1 E2(t) − E1(t) = √N �N - 4(N - 1)s(1 − s) . (99) The difference in eigenvalues is minimum i.e, min0≤t≤T (E2(t) − E1(t)) <sup>2</sup> = 1/N at s = 1/2. The matrix element in the numerator in eq. (95) can be simplified as dt <sup>(t)</sup> |ψ1(t)⟩ = <sup>ds</sup> dt ds <sup>(t)</sup> |ψ1(t)⟩ = T <sup>1</sup> T <sup>1</sup> <sup>⟨ψ2(t)|</sup> <sup>dH</sup> ds <sup>(t)</sup> ds <sup>(t)</sup> |ψ1(t)⟩∼ T <sup>1</sup> ⟨ψ2(t)| <sup>dH</sup> dt <sup>(t)</sup> <sup>ds</sup> dt <sup>⟨ψ2(t)|</sup> <sup>dH</sup> ds <sup>(t)</sup> T <sup>1</sup> <sup>.</sup> (100) Here we have assumed that the matrix element ⟨ψ2(t)| <sup>dH</sup> ds <sup>(t)</sup> ds <sup>(t)</sup> <sup>|ψ1(t)⟩∼</sup> <sup>1.</sup> <sup>Putting</sup> <sup>the</sup> <sup>result</sup> of eq. (100) and the minimum eigenvalue difference in eq. (95) we obtain the time required T ≥ <sup>N</sup> ǫ <sup>,</sup> (101) which is equivalent to what a classical computer would take to find the target element. Since s = t/T does not solve the purpose, we assume that the dependence of s on time t is governed by the the adiabatic approximation eq. (94), which can be rewritten as ds N dt <sup>≃</sup> <sup>ǫ(E2(t) −</sup> <sup>E1(t))2</sup> <sup>= ǫ 1</sup> ds N <sup>(N</sup> <sup>−</sup> <sup>4(N</sup> <sup>−</sup> <sup>1)s(1 −</sup> <sup>s))</sup> <sup>,</sup> (102) where again we have assumed ⟨ψ2(t)| <sup>dH</sup> ds <sup>(t)</sup> N - 1(2s − 1) + arctan <sup>1</sup> N 2ǫ √N <sup>dH</sup> ds <sup>(t)</sup> <sup>|ψ1(t)⟩∼</sup> <sup>1.</sup> <sup>Integrating</sup> <sup>eq.</sup> <sup>(102)</sup> <sup>we</sup> <sup>obtain</sup> t = <sup>1</sup> N - 1 √ √ N - 1 . (103) arctan The evolution time T can be obtained by setting s = 1 in eq. (103) N - 1 . (104) √ t = <sup>1</sup> ǫ N √N - 1 <sup>arctan</sup> When the number of elements in a database is large N ≫ 1 we get the time required to find the target element from eq. (104) as N . (105) T = <sup>π</sup> 2ǫ T = <sup>π</sup> √ 23 The is a quadratic speed up apart from a factor of inverse of error probability. This algorithm by adiabatic evolution can be extended to the cases when there are many target elements. This time we consider a Hamiltonian of the form H˜T = I − target elements |ai⟩⟨ai| . (106) Then the time dependent Hamiltonian under which the initial state |Θ⟩ will be evolved is given by H˜ (t) = (1 − s(t))HΘ + s(t) ˜HT . (107) The difference in energy between the ground state and the first excited state is now given by 1 E2(t) − E1(t) = √N If we consider s = t/T then we obtain �N - 4(N - M)s(1 − s) . (108) T ≥ Mǫ <sup>N</sup> <sup>,</sup> (109) However if the adiabatic change is considered to be local in the parameter s, then the required evolution time becomes T = <sup>π</sup> 2ǫ N M <sup>,</sup> (110) which is in agreement with the Grover algorithm with multiple targets. IV. PARTIAL DATABASE SEARCH In reality sometimes we do not need a full search of a database rather only a partial search is enough. For example, suppose we want to look for details of contacts of a specific surname in a telephone directory. If there are eight different surnames in the telephone directory then it can be divided into eight blocks each associated with a surname. In terms of binary the state of an element of the telephone directory with N = 2 <sup>n</sup> entries can be written as |a1, a2, a3, · · ·, an⟩. Since there are only eight blocks we can assign first three binaries a1, a2, a3 to the surnames. Since all the entries in a block share the same surname the first three binaries of the states in a block will be same. 24 a. Some attempts to partial search: The purpose of a partial search instead of a full Grover search is to achieve a grater speed than the Grover search. However not all partial searches are always advantageous. Let us consider a naive partial search in which first the database of N elements is divided into K blocks. Just randomly choose a block and make KN <sup>queries.</sup> <sup>To</sup> <sup>obtain</sup> <sup>the</sup> <sup>target</sup> <sup>item</sup> <sup>and</sup> <sup>the</sup> <sup>target</sup> a full Grover search which requires <sup>π</sup> 4 a full Grover search which requires <sup>π</sup> 4 block one has to perform full Grover search in K - 1 blocks separately in the worst case, N <sup>π</sup> 4 K <sup>queries.</sup> <sup>One</sup> <sup>can</sup> <sup>see</sup> <sup>that</sup> <sup>this</sup> <sup>is</sup> <sup>K</sup> √ <sup>−</sup> K <sup>1</sup> the� factor <sup>K−1</sup> √K <sup>is</sup> <sup>less</sup> <sup>than</sup> <sup>one.</sup> <sup>For</sup> <sup>more</sup> 4 which requires (K - 1) <sup>π</sup> <sup>−</sup> K <sup>1</sup> <sup>times</sup> <sup>the</sup> <sup>full</sup> <sup>Grover</sup> search. Only for K = 2 the factor <sup>K−1</sup> √K <sup>−</sup> K <sup>1</sup> <sup>is</sup> <sup>less</sup> <sup>than</sup> <sup>one.</sup> <sup>For</sup> <sup>more</sup> <sup>than</sup> <sup>two</sup> <sup>blocks</sup> <sup>therefore</sup> this naive partial search is not faster than the full Grover search. Another example which is also inefficient for database search with more than two blocks is the binary search. In this search the number of blocks should be of the form K = 2 <sup>k</sup> for some positive number k. First divide the whole database in two blocks and perform a standard Grover search in any one of the blocks which requires <sup>π</sup> 4 N2 N2 <sup>iterations.</sup> <sup>If the target</sup> item is not found then take the remaining block and divide that into two sub-blocks and repeat the previous procedure. We keep on repeating this procedure until we are left with the last block. The total number of queries is obtained by taking the sum of all the searches <sup>π</sup> √ 4 1 2 <sup>i</sup> i �inefficient� compared to the . Again the factor <sup>�k</sup> as <sup>π</sup> 4 N i=1 ��searchk i=1 21 <sup>i</sup> <sup>is</sup> <sup>greater</sup> <sup>than</sup> <sup>one</sup> <sup>for</sup> <sup>K</sup> <sup>≥</sup> <sup>4,</sup> <sup>making</sup> Grover� search for more than two blocks. the binary search inefficient compared to the Grover search for more than two blocks. b. Grover and Radhakrishnan’s simple partial search: The fact that the partial search can be advantageous over the full Grover search can be understood from a simple algorithm discussed by Grover and Radhakrishnan. Let us divide the database into K blocks and perform a full Grover search on elements of K - 1 randomly chosen blocks which requires π √ 4 queries. Note that the factor partial search� algorithm is always K−1 K N K−1 K �� K −1 is always less than one which suggests K that this partial search algorithm is always more efficient than the Grover search algorithm. A. Single target GRK partial search algorithm Partial search algorithm is a combination of both global search and simultaneous local search in each block. Grover and Radhakrishnan first devised a scheme for a partial database search which was latter optimized by Korepin. The database of N elements which are divided into K blocks are first subjected to a global Grover search G. After j1 Grover iterations the initial state |Θ⟩ defined in eq. (25) becomes G <sup>j1</sup> |Θ⟩ = sin (2j1 + 1) θ|aT ⟩ + N −1 i=0�,i̸=T 25 cos (2j1 + 1) θ tan θ|ai⟩ . (111) Then to perform the local iterations let us consider the initial state of α block as |Θα⟩ = N/K elements αblock K α = 1, 2, · · ·, K, (112) N <sup>|ai⟩</sup> <sup>,</sup> which is obtained by equal superposition of all the elements in the block. The target element |aT ⟩ should belong to one block which we call target block. If we measure the probability of obtaining the target element in the initial state of a block then for all initial states of individual blocks the probability will vanish except for the initial state |ΘT ⟩ of the target block the finite probability is given by PT = |⟨aT |ΘT ⟩| <sup>2</sup> = sin <sup>2</sup> θ1 = <sup>K</sup> N <sup>.</sup> (113) The local iteration in each block Gα can be written as Gα = −IΘαIT, α = 1, 2, · · ·, K, (114) where the local reflections IΘα are given by IΘα = I − 2|Θα⟩⟨Θα|, α = 1, 2, · · ·, K . (115) Taking a direct sum of all the local iterations we obtain the local Grover iteration G <sup>L</sup> G <sup>L</sup> = ⊕ <sup>K</sup> α=1 <sup>Gα</sup> <sup>= −</sup> �⊕ <sup>K</sup> α <sup>K</sup> α=1 <sup>IΘ</sup> α - IT . (116) Note that except from GT, which act on the target block component, all the other local iterations Gα act trivially on G <sup>j1</sup> |Θ⟩. The action of Gα on the respective initial states are given by Gα|Θα⟩ = −IΘαIT |Θα⟩ = −IΘα|Θα⟩ = |Θα⟩, α̸ = T, α = 1, 2, · · ·, K . (117) To know how GT acts on the target block state let us consider the eigenvalue equation GT |φ1⟩ = E|φ1⟩, (118) which has the following two eigenvalues 26 tan θ1|ai⟩, (119) |φ1⟩± = √ <sup>1</sup> 2 i 2 <sup>|aT</sup> <sup>⟩±</sup> √ target block �i̸=T with their corresponding eigenvalues E± = e <sup>±i2θ1</sup> . Let us now write the state G <sup>j1</sup> |Θ⟩ in eq. (111) in terms of the eigenvectors |φ1⟩± and the initial states of the non-target blocks |Θα⟩, α̸ = T as |φ1⟩+ |φ1⟩− 1 G <sup>j1</sup> |Θ⟩ = √2 tan θ1 1 + √2 sin (2j1 + 1) θ − i <sup>cos (2j1</sup> tan <sup>+ 1)</sup> θ1 <sup>θ1 tan θ</sup> sin (2j1 + 1) θ + i <sup>cos (2j1 + 1) θ1 tan θ</sup> tan θ1 tan θ1 + K =1�,α≠ α=1,α≠ T cos (2j1 + 1) θ tan θ sin θ1 |Θα⟩ . (120) After j2 operations with the local Grover operator G <sup>L</sup> on the expression of eq. (120) we immediately obtain e <sup>i2j2θ1</sup> G <sup>Lj2</sup> G <sup>j1</sup> |Θ⟩ = √2 sin (2j1 + 1) θ − i <sup>cos (2j1</sup> tan <sup>+ 1)</sup> θ1 <sup>θ1 tan θ</sup> tan θ1 |φ1⟩+ √ 2 + <sup>e−i2j2θ1</sup> √ tan θ1 |φ1⟩− <sup>i2j</sup> √ 2 sin (2j1 + 1) θ + i <sup>cos (2j1 + 1) θ1 tan θ</sup> tan θ1 + K α=1�,α≠ T cos (2j1 + 1) θ tan θ sin θ1 |Θα⟩ . (121) It is useful to write the above state G <sup>Lj2</sup> G <sup>j1</sup> |Θ⟩ in terms of the basis vectors |ai⟩ as G <sup>Lj2</sup> G <sup>j1</sup> |Θ⟩ = CT |aT ⟩ + CTB target block �i̸=T i̸=T tan θ1|ai⟩ + CNTB ̸ non-target blocks |ai⟩, (122) where the constant coefficients are given by CT = sin (2j1 + 1) θ cos 2j2θ1 + <sup>cos (2j1</sup> tan <sup>+ 1)</sup> θ1 <sup>θ tan θ</sup> sin 2j2θ1, (123) CTB = - sin (2j1 + 1) θ sin 2j2θ1 + <sup>cos (2j1</sup> tan <sup>+ 1)</sup> θ1 <sup>θ tan θ</sup> cos 2j2θ1, (124) CNTB = cos (2j1 + 1) θ tan θ . (125) 27 To eliminate the components associated with the non-target blocks we make a final global (122). For convenience we perform a Grover iteration to the vector G <sup>Lj2</sup> G <sup>j1</sup> |Θ⟩ in eq. transformation with −IT IΘ instead of the Grover iteration G however in large blocks limit both the results are equivalent. There is also other operator such as IΘ which has been used by Grover and Radhakrishnan to perform the final operation. However in this case the amplitude of the target element becomes negative. The state after final transformation becomes |F⟩ = (−IT IΘ)G <sup>Lj2</sup> G <sup>j1</sup> |Θ⟩ = �CT - 2 C <sup>¯</sup> - |aT ⟩ + i̸=T 2 C −C <sup>¯</sup> TB tan θ1 - - <sup>target</sup> �i̸=T <sup>block</sup> |ai⟩ + ̸ �2 C −C <sup>¯</sup> NTB� <sup>non-target</sup> - <sup>blocks</sup> |ai⟩, (126) where the average amplitude is given by . (127) C¯ = N <sup>1</sup> CT + CTB cot θ1 + (K - 1) sin <sup>CNTB2</sup> θ1 To evaluate eq. (126) we have used the formula of eq. (32) for the action of −IΘ on a generic state. Since the projection of the state (−IT IΘ)G <sup>Lj2</sup> G <sup>j1</sup> |Θ⟩ on non-target blocks should vanish we obtain from eq. (126) . (128) CNTB = N <sup>2</sup> CT + CTB cot θ1 + (K − 1) sin <sup>CNTB2</sup> θ1 Substituting the values of CT, CTB and CNTB in eq. (128) and simplifying we obtain a condition 1 - sin θ cos θ sin <sup>2</sup> θ1 - 12 <sup>−</sup> <sup>sin2 θ</sup> cos (2j1 + 1) θ = sin (2j1 + 1) θ cos 2j2θ1 + <sup>tan θ</sup> tan θ1 cos (2j1 + 1) θ sin 2j2θ1 - cot θ1 sin (2j1 + 1) θ sin 2j2θ1 + tan <sup>tan2 θ</sup> θ1 cos (2j1 + 1) θ cos 2j2θ1, (129) which ensures that the non-target elements vanish from the final state. Thus we obtain the final state |FT ⟩, which is aligned with the target block |FT ⟩ = sin ω|aT ⟩ + cos ω target block �i̸=T tan θ1|ai⟩ = (CT −CNTB) |aT ⟩ + (CNTB cot θ1 −CTB) target block �i̸=T tan θ1|ai⟩ . (130) 28 The block angle ω which only depends on the number of blocks K of a database is given by sin 2tanj θ21θ1 tanj θ21θ1 <sup>−</sup> <sup>1</sup> tan ω = sin (2j1 + 1) θ cos 2j2θ1 + cos (2j1 + 1) θ tan θ sin (2j1 + 1) θ sin 2j2θ1 + <sup>cos(2j</sup> tan <sup>1+1)</sup> θ1 <sup>θ tan θ</sup> tan <sup>1+1)</sup> θ1 <sup>θ tan θ</sup> (1 − cos 2j2θ1) . (131) 1. Large database limit Let us now consider the large database limit N →∞. We also consider the blocks of the database to be very large <sup>N</sup> <sup>N</sup> K <sup>→∞</sup> <sup>so</sup> <sup>that</sup> <sup>the</sup> <sup>number</sup> <sup>of</sup> <sup>blocks</sup> <sup>K</sup> <sup>in</sup> <sup>a</sup> <sup>database</sup> <sup>remains</sup> finite. In these limits the two rotation angles in eq. (26) and eq. (113) respectively reduce to K N <sup>.</sup> (132) θlim→0 <sup>sin θ</sup> <sup>→</sup> <sup>θ →</sup> 1 �N <sup>,</sup> θlim1→0 <sup>sin θ1</sup> <sup>→</sup> <sup>θ1</sup> <sup>→</sup> Following ref. [2] we write the number of iterations j1 and j2 in terms of two new parameters η and β as √N . (133) β N, j2 = √K - √ j1 = η √K - π4 <sup>−</sup> Putting the expression for j1 and j2 of eq. (133) in the condition for cancellation of ampli tudes eq. (129) of non-target blocks and taking the large database limit we obtain N sin <sup>2η</sup> √K √ K �12 <sup>−</sup> <sup>1</sup> K = cos <sup>2η</sup> √K K 1 cos 2β + √ K sin <sup>2η</sup> √K √ sin 2β K N K <sup>cos</sup> √ <sup>2</sup> K <sup>η</sup> sin 2β + N K <sup>sin</sup> √ <sup>2</sup> K <sup>η</sup> K cos 2β . (134) Notice that the left hand side of the above equation is proportional to √N, which is a large number in our case. On the right hand side the last two terms are proportional to √N, however the first two terms are very small compared to the last two terms. Neglecting these small two terms a simple form for the cancellation of the amplitude corresponding to non-target blocks is obtained as tan <sup>2η</sup> √K = <sup>2</sup> K <sup>2</sup> −K4 sin sin 2 <sup>2</sup> ββ <sup>.</sup> (135) √ 29 The block angle in eq. (131) can be simplified using eq. (135) as 2 <sup>cot β +</sup> 2 <sup>1</sup> �K2 <sup>−</sup> <sup>1</sup> lim 2 N →∞ <sup>tan ω</sup> <sup>=</sup> <sup>1</sup> tan β . (136) 2 Exploiting the physical constraints we can calculate the bounds of the two parameters η and β. Since the number of queries for the global iteration as well as the number of queries for the local iteration given in eq. (133) should be non-negative j1, j2 ≥ 0 we obtain √ η ≤ <sup>π</sup> 4 K, β ≥ 0 . (137) The partial search algorithm have to have less number of total iterations j1 +j2 +1 compared to the Grover’s full search algorithm - √N ≤ <sup>π</sup> 4 √ j1 + j2 + 1 = 4 <sup>+</sup> <sup>β</sup> √ <sup>−</sup> K <sup>η</sup> - π N, (138) which implies From eq. (137) and eq. (139) we obtain β ≤ η (139) K . (140) 0 ≤ β ≤ η ≤ <sup>π</sup> 4 √ The expression for the parameter η for the global iteration can be readily obtained from eq. (135) as 2√K sin 2β K − 4 sin <sup>2</sup> β η = √K arctan 2 , (141) where the arctan(x) is restricted to the principal branch only because of the constraint in eq. (137). The bound for the parameter β then becomes √ ≤ <sup>π</sup> 4 0 ≤ β ≤ √K arctan 2 2√K sin 2β K − 4 sin <sup>2</sup> β 2√ K K . (142) 2. Optimization of partial search As mentioned in the introduction the partial search of Grover and Radhakrishnan has been optimized by Korepin and the optimized version of the partial search is known as the 30 GRK partial search. In large database limit N →∞ the total number of queries to the quantum oracle by a partial search algorithm is given by N . (143) - √ J(K) = Nlim→∞ <sup>(j1 + j2 + 1) =</sup> 4 <sup>+</sup> <sup>β</sup> √ <sup>−</sup> K <sup>η</sup> - π To obtain least number of queries J(K) we have to minimize Λ(β) = β − η(β) . (144) Note that the partial search will be more efficient than the full global search if the parameter Λ(β) defined above is negative. Let us assume that the function Λ(β) has a minima at some point and the first derivative with respect to β vanishes d (145) dβ <sup>Λ(β) =</sup> <sup>16(K −</sup> <sup>1) sin4 β −</sup> <sup>4K</sup> <sup>2 sin2 β + K</sup> <sup>2</sup> 16(K − 1) sin <sup>4</sup> β − 8K sin <sup>2</sup> β − K <sup>2</sup> <sup>= 0 .</sup> The two solutions of eq. (145) are given by (146) sin <sup>2</sup> β =    4(KK−1) <sup>,</sup> K4 <sup>,</sup> for K ≤ 4 .  by The second derivative of Λ(β) is given by d <sup>2</sup> 16K sin 2β(K − 1)(K − 2) cos <sup>2</sup> 2β dβ <sup>2</sup> <sup>Λ(β)</sup> <sup>=</sup> �16(K − 1) sin <sup>4</sup> β − 8K sin <sup>2</sup> β − K <sup>2�2</sup> + <sup>4K sin 2β [16(K −</sup> <sup>1) cos 2β + (K −</sup> <sup>2)</sup> d <sup>2</sup> + <sup>4K sin 2β [16(K −</sup> <sup>1) cos 2β + (K −</sup> <sup>2)2(K + 2)]</sup> . (147) of blocks�16(KK −= 21) sin, 3 <sup>4</sup> andβ −48weK sinhave <sup>2</sup> β −to Kconsider <sup>2�2</sup> the two solutions Note that for the number of blocks K = 2, 3 and 4 we have to consider the two solutions K in eq. (146), where as for K ≥ 5 only one solution sin <sup>2</sup> β = 4(K−1) <sup>is</sup> <sup>valid.</sup> For K = 2 we notice from eq. (146) that the two solutions coincide. In this case sin <sup>2</sup> β = K K 4(K−1) <sup>=</sup> 4 K N. For K = 3 and 4 the global minimum is at sin <sup>2</sup> β = 4(K−1) <sup>.</sup> <sup>Therefore</sup> <sup>for</sup> K4 <sup>=</sup> 21 =⇒ β = π4 <sup>and</sup> <sup>η</sup> <sup>=</sup> 2√π 2 <sup>,</sup> <sup>which</sup> <sup>correspond</sup> <sup>to</sup> <sup>j1</sup> <sup>=</sup> <sup>0</sup> <sup>and</sup> j2 = 4√π √ 2 K ≥ 2 the global minimum is achieved for β = arcsin , (148) K �� 4(K − 1) 3K − 4 �√K − 2 . (149) η = √ K arctan 2 31 B. Multiple targets GRK partial search algorithm In the previous section we considered only one target element and therefore partial search was to find out the single target blocks. However there may have several target elements and several target blocks. Here we provide a generalization of the partial search to find one of the target blocks. Let us assume that we have a database of N elements with K blocks. Blocks with target elements are called target blocks and rest of the blocks without target elements are called non-target blocks. There are B = M <sup>N</sup> <sup>numbers</sup> <sup>of</sup> <sup>elements</sup> <sup>in</sup> <sup>each</sup> <sup>block.</sup> There are KT target blocks and each target block has BT number of target elements. So in total there are M = KT BT target elements. The initial state we consider here is |Θ <sup>˜</sup> ⟩ of eq. (43) with equal superposition of all the basis states. Iterating j1 times with the global Grover operator G <sup>˜</sup> we obtain from eq. (52) (150) G˜ <sup>j1</sup> |˜Θ⟩ = sin (2j1 + 1) ˜θ|AT ⟩ + cos (2j1 + 1) ˜θ|AnT ⟩, where angle between the initial state |Θ <sup>˜</sup> ⟩ and the normal to the unite target state |AT ⟩ is given by <sup>M</sup> N <sup>=</sup> <sup>KT</sup> N <sup>BT</sup> sin <sup>2 ˜</sup> θ = <sup>M</sup> N (151) <sup>T</sup> N <sup>BT</sup> Now we have to consider the local Grover iteration in each block for which we define the local iteration in each block Gα as G˜α = −I˜ΘαIT α, α = 1, 2, · · ·, K, (152) The local reflections I˜Θα and IT α are given by I˜Θα = I − 2|Θ <sup>˜</sup> α⟩⟨Θ <sup>˜</sup> α|, (153) IT α = I − 2|AT α⟩⟨AT α|, (154) where (155) |Θ <sup>˜</sup> α⟩ = sin θ <sup>˜</sup> 1|AT α⟩ + cos θ <sup>˜</sup> 1|AnT α⟩, α = 1, 2, · · ·, K, target elements αblock αblock |AT α⟩ = 1 BT |ai⟩, α = 1, 2, · · ·, K . (156) We also define |AnT α⟩ = - B −1 BT 32 |ai⟩, α = 1, 2, · · ·, K . (157) non-target elements αblock Note that for blocks which do not have target elements IT α simply becomes the identity operator. The angle θ <sup>˜</sup> 1 which measures the probability of obtaining the target unit state within a target block is given by sin θ <sup>˜</sup> 1 = BT B B <sup>.</sup> (158) Taking a direct sum of all the local iterations we obtain the local Grover iteration G <sup>˜L</sup> (159) G˜ <sup>L</sup> = ⊕ <sup>K</sup> α=1 <sup>G˜α .</sup> Note that except from those G <sup>˜</sup> αs, which act on the target blocks, all the other local iterations G˜α act trivially on G˜ <sup>j</sup> 1|˜Θ⟩. Without loss of generality we assume that first KT blocks are target blocks and the rest K - KT are non-target blocks. Then the action of G <sup>˜</sup> α on the respective initial states are given by G˜α|˜Θα⟩ = −I˜ΘαIT α|˜Θα⟩ = −I˜Θα|˜Θα⟩ = |˜Θα⟩, α = KT + 1, KT + 2, · · ·, K . (160) To know how G <sup>˜</sup> α, α = 1, 2, · · ·, KT, act on the target blocks let us consider the eigenvalue equations G˜α|φ1α⟩ = E˜α|φ1α⟩, (161) which have the following two eigenvectors i |φ1α⟩± = √ <sup>1</sup> 2 <sup>|AT α⟩±</sup> √ 2 <sup>|AnT α⟩</sup> <sup>,</sup> (162) with their corresponding eigenvalues E± = e <sup>±i2˜θ1</sup> . Let us now write the state G <sup>˜j1</sup> |Θ <sup>˜</sup> ⟩ in eq. (150) in terms of the eigenvectors |φ1α⟩± and the initial states of the non-target blocks B − BT i - N - M 1 - √KT B − BT N - M <sup>cos (2j1 + 1) ˜θ1</sup> G˜ <sup>j1</sup> |˜Θ⟩ = KT α=1 α=1 1 �√2 sin (2j1 + 1) θ <sup>˜</sup> - i |φ1α⟩+ - BN −−BMT + <sup>1</sup> √ B − BT N - M <sup>cos (2j1 + 1) ˜θ1</sup> |φ1α⟩− 2 1 - √KT sin (2j1 + 1) θ <sup>˜</sup> + i + K α=KT +1 K =KT B (163) �N - M <sup>cos (2j1 + 1) ˜θ|˜Θα⟩</sup> <sup>.</sup> 33 After j2 operations with the local Grover operator G <sup>˜L</sup> on the expression of eq. (163) we immediately obtain - BN −−BMT 1 - √KT ( G <sup>˜L</sup> ) <sup>j2 ˜</sup> G <sup>j1</sup> |Θ <sup>˜</sup> ⟩ = KT α=1 α=1 B − BT N - M <sup>cos (2j1 + 1) ˜θ</sup> sin (2j1 + 1) θ <sup>˜</sup> - i |φ1α⟩+ e <sup>i2˜θ1j2</sup> - √2 √ 2 - BN −−BMT + <sup>e−i2˜θ1j2</sup> √ 1 �√KT sin (2j1 + 1) θ <sup>˜</sup> + i B − BT N - M <sup>cos (2j1 + 1) ˜θ</sup> |φ1α⟩− <sup>i</sup> √ 2 + K α=KT +1 K =KT B (164) �N - M <sup>cos (2j1 + 1) ˜θ|˜Θα⟩</sup> <sup>.</sup> It is useful to write the above state ( G <sup>˜L</sup> ) <sup>j2</sup> G <sup>j1</sup> |Θ <sup>˜</sup> ⟩ in terms of the basis vectors |ai⟩ as non-target elements target blocks |ai⟩ ( G <sup>˜L</sup> ) <sup>j2</sup> G <sup>j1</sup> |Θ <sup>˜</sup> ⟩ = C˜T target elements target blocks |ai⟩ + C <sup>˜</sup> TB + C <sup>˜</sup> NTB all elements non-target blocks |ai⟩, (165) where the constant coefficients are given by C˜T = + 1 M <sup>sin (2j1 + 1) ˜θ cos 2j2θ˜1</sup> B − BT (166) BT (N - M) <sup>cos (2j1 + 1) ˜θ sin 2j2θ˜1,</sup> 1 KT (B − BT ) <sup>sin (2j1 + 1) ˜θ sin 2j2θ˜1</sup> C˜TB = + C˜NTB = 1 (167) �N - M <sup>cos (2j1 + 1) ˜θ cos 2j2θ˜1,</sup> 1 (168) �N - M <sup>cos (2j1 + 1) ˜θ .</sup> To eliminate the components associated with the non-target blocks we make a final global Grover iteration to the vector (G <sup>˜L</sup> ) <sup>j2 ˜</sup> G <sup>j1</sup> |Θ <sup>˜</sup> ⟩ in eq. (165). For convenience we perform a transformation with −IT I˜Θ instead of the Grover iteration G <sup>˜</sup> however in large blocks limit both the results are equivalent. There is also other operator such as I˜Θ which has been used by Grover and Radhakrishnan to perform the final operation as mentioned before. However 34 in this case the amplitude of the target element becomes negative. Thus the state becomes |F⟩ <sup>˜</sup> = (−IT I˜Θ)( G <sup>˜L</sup> ) <sup>j2 ˜</sup> G <sup>j1</sup> |Θ <sup>˜</sup> ⟩ = where the average amplitude is given by �C˜T - 2 C <sup>¯</sup> ˜ - <sup>target</sup> target� <sup>elements</sup> blocks target blocks |ai⟩ + + 2 C − <sup>¯˜</sup> C <sup>˜</sup> TB - - <sup>non-target</sup> target�blocks <sup>elements</sup> all elements 2 C − <sup>¯˜</sup> C <sup>˜</sup> NTB - - non-target� blocks |ai⟩, (169) |ai⟩ C¯˜ = N <sup>1</sup> �MC <sup>˜</sup> T + KT (B − BT ) C <sup>˜</sup> TB + (K − KT )BC <sup>˜</sup> NTB . (170) To evaluate eq. (169) again we have used the formula of eq. (32) for the action of −I˜Θ on a generic state. Since the projection of the state (−IT I˜Θ)( G <sup>˜L</sup> ) <sup>j2 ˜</sup> G <sup>j1</sup> |Θ <sup>˜</sup> ⟩ on non-target blocks should vanish we obtain from eq. (169) C˜NTB = N <sup>2</sup> �MC <sup>˜</sup> T + KT (B − BT ) C <sup>˜</sup> TB + (K − KT )BC <sup>˜</sup> NTB . (171) Substituting the values of C <sup>˜</sup> T, C <sup>˜</sup> TB and C <sup>˜</sup> NTB in eq. (171) and simplifying we obtain a condition 1 - sin θ <sup>˜</sup> cos θ <sup>˜</sup> 1 - 2 <sup>−</sup> sin <sup>sin22 ˜ ˜</sup> θ <sup>θ</sup> 1 cos (2j1 + 1) θ <sup>˜</sup> = sin (2j1 + 1) θ <sup>˜</sup> cos 2j2θ <sup>˜</sup> 1 + <sup>tan ˜θ</sup> tan θ <sup>˜</sup> 1 cos (2j1 + 1) θ <sup>˜</sup> sin 2j2θ <sup>˜</sup> 1 - cot θ <sup>˜</sup> 1 sin (2j1 + 1) θ <sup>˜</sup> sin 2j2θ <sup>˜</sup> 1 + tan <sup>tan ˜2 ˜θ</sup> θ1 cos (2j1 + 1) θ <sup>˜</sup> cos 2j2θ <sup>˜</sup> 1 . (172) which ensures that the non-target elements vanish from the final state. Thus we obtain the final state |F <sup>˜</sup> T ⟩, which is aligned with the target block, as |F <sup>˜</sup> T ⟩ = sin ˜ω|AT ⟩ + cos˜ ω|AnTT ⟩ M (CT −CNTB) |AT ⟩ + = √ �KT (B − BT ) (CNTB −CTB) |AnTT ⟩ . (173) where non-target elements target blocks |AnTT ⟩ = 1 KT (B − BT ) |ai⟩, (174) The block angle ω˜ is given by sin (2j1 + 1) θ <sup>˜</sup> cos 2j2θ <sup>˜</sup> 1 + cos (2j1 + 1) θ <sup>˜</sup> cot θ <sup>˜</sup> tan ˜ω = sin (2j1 + 1) θ <sup>˜</sup> sin 2j2θ <sup>˜</sup> 1 + cos (2j1 + 1) θ <sup>˜</sup> tan θ <sup>˜</sup> cot θ <sup>˜</sup> 1(1 − cos 2j2θ <sup>˜</sup> 1) 1. Large database limit 35 . (175) Let us now consider the large database limit N →∞. We also consider the blocks of the database to be very large B = <sup>N</sup> K <sup>N</sup> <sup>→∞</sup> <sup>so</sup> <sup>that</sup> <sup>the</sup> <sup>number</sup> <sup>of</sup> <sup>blocks</sup> <sup>K</sup> <sup>in</sup> <sup>a</sup> <sup>database</sup> remains finite. In these limits the two rotation angles in eq. (151) and eq. (158) respectively reduces to M N <sup>,</sup> lim - θ˜1→0 <sup>sin ˜θ1</sup> <sup>→</sup> <sup>θ˜1</sup> <sup>→</sup> M N BK B <sup>.</sup> (176) lim θ˜→0 <sup>sin ˜θ</sup> <sup>→</sup> <sup>θ˜</sup> <sup>→</sup> Following ref. [2] we write the number of iterations j1 and j2 in terms of two new parameters η˜ and β <sup>˜</sup> as √ N M <sup>,</sup> j2 = �� β˜ β˜ M √K K N M <sup>.</sup> (177) j1 = π 4 π √ √K 4 <sup>−</sup> <sup>η˜</sup> M √K K Putting the expression for j1 and j2 of eq. (177) in the condition for cancellation of ampli tudes eq. (172) of non-target blocks and taking the large database limit we obtain M cos <sup>2˜η</sup> <sup>η</sup> M √K sin <sup>2˜η</sup> √ √ K �12 <sup>−</sup> <sup>KT</sup> √ = √ √ N K N KT cos <sup>2˜η</sup> - √ K √ <sup>η</sup> M √K K √ √ K K √ √ √KT √K sin <sup>2˜η</sup> �BT cos 2β <sup>˜</sup> sin 2β <sup>η</sup> M √K M <sup>η</sup> √K <sup>η</sup> M √K <sup>˜</sup> �BT + K N K <sup>KT</sup> <sup>sin 2˜η</sup> √ �BT + �BT . (178) sin 2β cos 2β N, which is a large Notice that the left hand side of the above equation is proportional to √ number in general. The last two terms on right hand side are proportional to √ N but the first two terms are small compared to the last two terms. Neglecting these small two terms and re-scaling by K <sup>¯</sup> = K KT <sup>, ¯η</sup> <sup>=</sup> <sup>η˜√BT</sup> <sup>,</sup> <sup>β¯</sup> <sup>=</sup> <sup>β˜√BT</sup> <sup>a</sup> <sup>simple</sup> <sup>form</sup> <sup>for</sup> <sup>the</sup> <sup>cancellation</sup> <sup>of</sup> <sup>the</sup> amplitude correcting to non-target blocks is obtained as tan <sup>2¯η</sup> √K¯ √K¯ sin 2¯β = K <sup>2</sup> ¯ - 4 sin <sup>2</sup> β¯ <sup>.</sup> (179) 36 2. Optimization of partial search Similar to the previous subsection, exploiting the physical constraints, we can calculate the bounds of the two parameters η¯ and β <sup>¯</sup> . Since the number of queries for the global iteration as well as the number of queries for the local iteration given in eq. (177) should be non-negative j1, j2 ≥ 0 we obtain η¯ ≤ <sup>π</sup> 4 K,¯ (180) - β¯ ≥ 0 . The partial search algorithm have to have less number of total iterations j1 +j2 +1 compared to the Grover’s full search algorithm, i.e. N N 4 M <sup>,</sup> (181) - <sup>�</sup> M <sup>≤</sup> <sup>π</sup> j1 + j2 + 1 = β¯ − η¯ 4 <sup>+</sup> √K¯ �π which implies From eq. (180) and eq. (182) we obtain (182) β¯ ≤ η .¯ 0 ≤ β <sup>¯</sup> ≤ η¯ ≤ <sup>π</sup> 4 K .¯ (183) The expression for the parameter η¯ for the global iteration can be readily obtained from eq. (179) as 2√K¯ sin 2¯β - K¯ − 4 sin <sup>2</sup> β¯ η¯ = √K¯ arctan 2 , (184) where the arctan(x) is restricted to the principal branch only because of the constraint in eq. (180). The bound for the parameter β <sup>¯</sup> then becomes 2√K¯ sin 2¯β K − 4 sin <sup>2</sup> β <sup>¯</sup> ≤ <sup>π</sup> 4 K .¯ (185) 0 ≤ β <sup>¯</sup> ≤ √K¯ arctan 2 In large database limit N →∞ the total number of queries to the quantum oracle by a partial search algorithm is given by J˜( ¯K) = N/Mlim→∞ <sup>(j1 + j2 + 1) =</sup> β¯ − η¯ 4 <sup>+</sup> √K¯ �π N M <sup>.</sup> (186) - <sup>�</sup> To obtain least number of queries J <sup>˜</sup> ( K <sup>¯</sup> ) we have to minimize (187) ˜Λ(¯β) = β¯ − η¯(¯β) The global minimum is achieved for K <sup>¯</sup> ≥ 2 at 37 , (188) β¯ = arcsin - <sup>�</sup> K¯ 4( K <sup>¯</sup> - 1) . (189) η¯ = √K¯ arctan 2 3 K <sup>¯</sup> - 4 - √ K¯ − 2 C. Success probability in partial search In partial search and even in full Grover search usually the number of queries are not integers. In practical purpose what we do is just take the integral value nearest to the number of queries obtained from full or partial search. This introduces some error in the final state obtained after the iterations are done. This problem can be fixed to obtain the target state or the target block with cent percent success probability. In the case of partial search we will discuss here how to obtain the target block with unit success probability. Since we need the group formulation for this purpose let us first briefly discuss the group aspect of the search algorithm. 1. Group formulation of search algorithm The whole discussion of full Grover search discussed in III A 1 and III A 2 can be under stood by O(2) transformation on the initial state. Let us write the initial state |Θ⟩ in terms of the unit basis vectors |AT ⟩ and |AnT ⟩ of eqs. (41) and (42) respectively as cos θ <sup>˜</sup> |Θ <sup>˜</sup> ⟩ =    cos θ <sup>˜</sup>  <sup>sin ˜θ</sup>  (190)   . In the same basis the Grover iteration G <sup>˜</sup> can be represented as a rotation matrix in two dimensions - sin 2θ <sup>˜</sup> cos 2θ <sup>˜</sup>  (191)   . G˜ =   sin 2θ <sup>˜</sup>  - sin 2θ <sup>˜</sup> cos 2θ <sup>˜</sup>  <sup>cos 2˜θ</sup> Action of the Grover iteration j times successively on the initial state becomes - sin 2jθ <sup>˜</sup> cos 2jθ <sup>˜</sup>  cos θ <sup>˜</sup>  <sup>sin ˜θ</sup> cos θ <sup>˜</sup>  cos(2j + 1)θ <sup>˜</sup>  <sup>sin(2j + 1)˜θ</sup> cos(2j + 1)θ <sup>˜</sup> G˜ <sup>j</sup> |˜Θ⟩ =   sin 2jθ <sup>˜</sup>  - sin 2jθ <sup>˜</sup> cos 2jθ <sup>˜</sup>  <sup>cos 2jθ˜</sup>       =   (192)   . 38 By assuming that the initial state has evolved to the target state, i.e., 0   cos(2j + 1)θ <sup>˜</sup>  cos(2j + 1)θ <sup>˜</sup>  <sup>sin(2j + 1)˜θ</sup>    0  <sup>1</sup>    =  (193)  , we can arrive at the same result in eq. (53) and when there is only one target element then we arrive at eq. (36). This formalism can be extended to partial database search problem which has O(3) group representation. Again we will discuss the multiple targets and multiple target blocks case but the discussion is equally valid for single target partial search also. In partial search there are three mutually orthogonal basis vectors. The unit vector AT with equal superposition of all the target elements, the unit vector AnTT with equal superposition of all the non target elements in the target blocks and the unit vector AN with equal superposition of all the elements in non-target blocks. First two unit vectors AT and AnTT have already been defined in eqs. (41) and (174) respectively. We now define the unit vector AN as all elements non-target blocks |AN ⟩ = 1 B(K − KT ) |ai⟩ . (194) These three vectors form a three dimensional vector space on which the initial state |Θ <sup>˜</sup> ⟩ can be expressed as  (195)     <sup>,</sup> sin γ sin θ <sup>˜</sup> sin γ cos θ <sup>˜</sup> cos γ |Θ <sup>˜</sup> ⟩ =      �M/N. The global Grover iteration G <sup>˜j1</sup> can be represented where sin γ = as �KT /K, sin θ <sup>˜</sup> = (196) G˜ <sup>j1</sup> = TMj1T, where T and Mj1 are given by  (197)     <sup>,</sup> T =      1 0 0 0 cos θ <sup>˜</sup> 1 sin γ/ cos θ <sup>˜</sup> cos γ/ cos θ <sup>˜</sup> 0 cos γ/ cos θ <sup>˜</sup> - cos θ <sup>˜</sup> 1 sin γ/ cos θ <sup>˜</sup> and 39  (198)     <sup>.</sup> cos 2j1θ <sup>˜</sup> sin 2j1θ <sup>˜</sup> 0 0 - sin 2j1θ <sup>˜</sup> cos 2j1θ <sup>˜</sup> 0 0 (−1) <sup>j1</sup> Mj1 =      The global Grover iteration G <sup>˜j1</sup> reads as  (199)     <sup>,</sup> a11 a12 a13 a21 a22 a23 a31 a32 a33 G˜ <sup>j1</sup> =      where a11 = cos 2j1θ <sup>˜</sup>, a12 = sin 2j1θ <sup>˜</sup> sin γ, a13 = sin 2j1θ <sup>˜</sup> cos γ, a21 = −a12, a22 = (−1) <sup>j1</sup> cos <sup>2</sup> γ + cos 2j1θ <sup>˜</sup> sin <sup>2</sup> γ, a23 = sin γ cos γ �(−1) <sup>j1+1</sup> + cos 2j1θ <sup>˜</sup> (199) is <sup>˜</sup> �, a31 = −a13, a32 = a23 for large N and large and a33 = (−1) <sup>j1</sup> sin <sup>2</sup> γ + cos 2j1θ <sup>˜</sup> cos <sup>2</sup> γ. Representation (199) is valid for large N and large B limit. The local Grover iteration ( G <sup>˜L</sup> ) <sup>j2</sup> is represented as  (200)     <sup>.</sup> cos 2j2θ <sup>˜</sup> 1 sin 2j2θ <sup>˜</sup> 1 0 - sin 2j2θ <sup>˜</sup> 1 cos 2j2θ <sup>˜</sup> 1 0 0 0 1 ( G <sup>˜L</sup> ) <sup>j2</sup> =      The full partial search operation can also be represented in a compact form  (201)     <sup>,</sup> 0 ξ1 ξ2 0 ξ2 −ξ1 −1 0 0 G˜( ˜G <sup>L</sup> ) <sup>j2</sup> ˜G <sup>j1</sup> =      where ξ1 = 1 2 2 <sup>√</sup> K−1 <sup>−</sup> <sup>1</sup> 3KK−4 and ξ2 = <sup>1</sup> 2 <sup>1</sup> 2 <sup>+</sup> 2 <sup>1</sup> K3(KK−−41) <sup>satisfying</sup> <sup>ξ</sup> 1 <sup>2</sup> 1 <sup>2</sup> <sup>+ ξ</sup> 2 <sup>2</sup> <sup>= 1.</sup> 2. Sure success partial search It has been shown in ref. [26] that the partial search of Grover-Radhakrishnan-Korepin can be performed in such a way that the probability of success is unity. In multiple targets partial search we here discuss the method of obtaining the target block with certainty. In this case the process of partial search is followed as it is except in the final Grover iteration IT and I˜Θ are modified by phase factors, which are suitably adjusted to obtain the target block. 40 After the first global Grover iteration the initial state |Θ <sup>˜</sup> ⟩ becomes  (202)     <sup>,</sup> 1 G˜ <sup>j1</sup> |˜Θ⟩ = cos <sup>2 ˜</sup> θ      kg cos θ <sup>˜</sup> lg cos θ <sup>˜</sup> 1 sin γ lg cos γ + cos 2j1θ <sup>˜</sup> cos θ <sup>˜</sup> sin θ <sup>˜</sup> and lg = where kg = sin 2j1θ <sup>˜</sup> �cos <sup>2 ˜</sup> θ1 sin <sup>2</sup> γ + cos <sup>2</sup> γ γ - - sin 2j1θ <sup>˜</sup> cos θ <sup>˜</sup> sin θ <sup>˜</sup> . on G <sup>˜j1</sup> |Θ <sup>˜</sup> ⟩ gives cos 2j1θ <sup>˜</sup> �cos <sup>2 ˜</sup> θ1 sin <sup>2</sup> γ + cos <sup>2</sup> γ j2 local Grover Then j2 local Grover iterations on G <sup>˜j1</sup> |Θ <sup>˜</sup> ⟩ gives us [13]            <sup>=</sup>      <sup>.</sup> <sup>(203)</sup> 1 ( G <sup>˜L</sup> ) <sup>j2 ˜</sup> G <sup>j1</sup> |Θ <sup>˜</sup> ⟩ = cos <sup>2 ˜</sup> θ     kg cos θ <sup>˜</sup> cos 2j2θ <sup>˜</sup> 1 + lg sin γ cos θ <sup>˜</sup> 1 sin 2j2θ <sup>˜</sup> 1 −kg cos θ <sup>˜</sup> sin 2j2θ <sup>˜</sup> 1 + lg sin γ cos θ <sup>˜</sup> 1 cos 2j2θ <sup>˜</sup> 1 lg cos γ c11 c21 c31 Two reflection operators in the final Grover iteration are modified as T (204) I <sup>ph</sup> = I − (I − e <sup>2iφ1</sup> )|AT ⟩⟨AT |, (205) ˜Θ I <sup>ph</sup> = I − (I − e <sup>i(φ1−φ2)</sup> )|Θ <sup>˜</sup> ⟩⟨Θ <sup>˜</sup> | . Now as stated above, the final modified global Grover iteration is given by  (206)     <sup>,</sup> b11 b12 b13 b21 b22 b23 b31 b32 b33 G˜ <sup>final</sup> = −I˜Θ <sup>ph</sup> T ˜Θ <sup>phI</sup> <sup>ph</sup> T <sup>ph</sup> <sup>=</sup>      b13 = where b11(1 =− e− <sup>2</sup> e <sup>iφi1(φ</sup> ) sin <sup>1−φ2</sup> γ <sup>) �</sup> 1 − (1 − e <sup>2iφ1</sup> ) sin= <sup>2</sup> γ sin <sup>2 ˜</sup> θ1�, b12 = (1 - e <sup>2iφ1</sup> ) sin <sup>2</sup> γ sin θ <sup>˜</sup> 1 cos θ <sup>˜</sup> =1, γ sin θ <sup>˜</sup> 1, b21 e <sup>i(φ1−φ2)</sup> (1 - e <sup>2iφ1</sup> ) sin <sup>2</sup> γ sin θ <sup>˜</sup> 1 cos θ <sup>˜</sup> 1, b22 b13 = = = where b11(1 =− e− <sup>2</sup> e <sup>iφi1(φ</sup> ) sin <sup>1−φ2</sup> γ <sup>) �</sup> cos γ sin θ <sup>˜</sup> 1, b21 e <sup>i(φ1−φ2)</sup> (1 - e <sup>2iφ1</sup> ) sin <sup>2</sup> γ sin θ <sup>˜</sup> 1 cos θ <sup>˜</sup> 1, b22 = = (1 - e <sup>2iφ1</sup> ) sin <sup>2</sup> γ cos <sup>2 ˜</sup> θ1 - 1, b23 (1 - e <sup>2iφ1</sup> ) sin γ cos γ cos θ <sup>˜</sup> 1, b31 e <sup>i(φ1−φ2)</sup> (1 e <sup>2iφ1</sup> ) sin γ cos γ sin θ <sup>˜</sup> 1, b32 = b23 and b33 = (1 − e <sup>2iφ1</sup> ) cos <sup>2</sup> γ − 1. The projection of the final state G <sup>˜final</sup> ( G <sup>˜L</sup> ) <sup>j2 ˜</sup> G <sup>j1</sup> |Θ <sup>˜</sup> ⟩ in the direction of unit vector |AN ⟩ of non-target blocks should vanish (207) | ⟨AN |G <sup>˜final</sup> ( G <sup>˜L</sup> ) <sup>j2 ˜</sup> G <sup>j1</sup> |Θ <sup>˜</sup> ⟩|= 0 . We obtain from eq. (207) the following condition on the phases c11e <sup>i(φ1−φ2)</sup> (1 − e <sup>2iφ1</sup> ) sin γ cos γ sin θ <sup>˜</sup> + c21(1 − e <sup>2iφ1</sup> ) sin γ cos γ cos θ <sup>˜</sup> - = 0, (208) + c31 (1 − e <sup>2iφ1</sup> ) cos <sup>2</sup> γ − 1 41 where c11, c21, c31 are the three components of the state in eq. (203). For simplicity we rewrite the condition in eq. (208) in the following fashion e <sup>i(φ1−φ2)</sup> (1 − e <sup>2iφ1</sup> )x + (1 − e <sup>2iφ1</sup> )y + 2z = 0, (209) where x = c11 sin γ cos γ sin θ <sup>˜</sup>, y = c21 sin γ cos γ cos θ <sup>˜</sup> + c31 cos <sup>2</sup> γ and z = −c/2. Separating the real and imaginary part from eq. (209) we obtain x <sup>y</sup> <sup>sin φ1 −</sup> x sinz φ1 sin φ2 = −x <sup>y</sup> cos φ2 = −x <sup>y</sup> , x <sup>y</sup> <sup>cos φ1 .</sup> (210) Eliminating φ2 from eq. (210) we get a condition on phase φ1 as cos <sup>2</sup> φ1 = <sup>x2 −</sup> <sup>(y + z)2</sup> (211) x <sup>2</sup> - y <sup>2</sup> - 2yz <sup>.</sup> Note that in order to have a solution for φ1 from eq. (211) the following inequality have to be satisfied (212) x <sup>2</sup> ≥ (y + z) <sup>2</sup> . The solution for φ2 then can be obtained from eq. (210). Numerical study for sure success partial search has been performed in [26]. It has been shown that it is always possible to find the phases φ1, φ2 if the number of global and local iterations are chosen as j˜1 = ⌊j1⌋, (213) j˜2 = ⌊j2⌋ + {0, 1, 2}, (214) where ⌊x⌋ is the integer nearest to x. For the local Grover iteration it may require to perform one or two extra steps as given in eq. (214). Numerically it works well for N ≤ 10 <sup>6</sup> except for K = 2, B = 2 case. V. CONCLUSION We have provided a detailed discussion on database search algorithms in this review. To understand how quantum mechanics can be exploited to expedite the process of computing we started our discussion with the Deutsch’s algorithm and Deutsch-Jozsa algorithm which 42 can find whether a function is constant or balanced in just one oracle call compared to O(N) oracle calls by a classical computer. Bernstein-Vazirani algorithm, which is one variation of the Deutsch-Jozsa algorithm, is also discussed. We then discussed Grover algorithm for database search. The database of N elements can have a single or multiple target elements in it. The elements in a database can have some order(sorted database) or no order(unsorted database) at all. The unsorted database with N) steps compared to single target element can be searched with Grover algorithm in O( √ O(N) steps by a classical computer. This is an example of quadratic speed up in computation time. Similarly in the unsorted database with M target elements one of the target elements can be obtained in O( MN <sup>)</sup> <sup>steps</sup> <sup>by</sup> <sup>Grover</sup> <sup>algorithm.</sup> <sup>If</sup> <sup>there</sup> <sup>is</sup> <sup>any</sup> <sup>structure/order</sup> <sup>in</sup> exploiting� the structure the target element can be searched even in the database then by exploiting the structure the target element can be searched even in less time by Grover algorithm. It is not possible to devise an algorithm which can search in N ) oracle calls. less time than what Grover algorithm needs, i.e O( √ Instead of searching the whole database for the target element sometimes it is reasonable to divide the whole database in several blocks and then look for the block which contains the target element. Grover and Radhakrishnan found an algorithm for this type of partial N steps. Korepin latter improved the partial - √ search, which takes j = π 4 <sup>+</sup> <sup>β(K</sup> √ <sup>)−</sup> K <sup>η(K)</sup> K search algorithm by optimizing the coefficient β(K) - η(K). This can further be generalized to include several target elements and the final global iteration can be modified by including phase factors so that the target block is obtained with unit success probability. Acknowledgements P. R. Giri is supported by International Institute of Physics, UFRN, Natal, Brazil. [1] M. A. Nielsen and I.L. Chuang, “Quantum Computation and Quantum Information”, (Cam bridge: Cambridge University Press) (2000). [2] V. E. Korepin and Y. Xu, Int. J. Mod. Phys. B 31 5727-5758 (2009). [3] G. Brassard, P. Høyer, M. Mosca and A. Tapp, Quantum Amplitude Amplification and Esti mation, Quantum computation and Quantum information, 305 53-74 (2000). 43 [4] P. W. Shor, Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer, Proc: 35th Annual Symposium on Foundations of Computer Science, Santa Fe, NM, 20-22, Nov. (1994). [5] P. W. Shor, SIAM J. Sci. Stat. Comput. 26 1484 (1997). [6] L. K. Grover, A fast quantum mechanical algorithm for database search, Pro. 28th Annual ACM Symp. Theor. Comput. (STOC) 212 (1996). [7] L. K. Grover, Phys. Rev. Lett. 79 325 (1997). [8] R. Cleve, A. Ekert, L. Henderson, C. Macchiavello and M. Mosca, Complexity 4 33 (1998). [9] C. H. Bennett, E. Bernstein, G. Brassard and U. Vazirani, SIAM J. Comput. 26(5) 1510 (1997). [10] M. Boyer, G. Brassard, P. Høyer and A. Tapp, Frotsch. Phys. 46 493 (1998). [11] C. Zalka, Phys. Rev. A 60 2746 (1999). [12] L. K. Grover and J. Radhakrishnan, ACM Symp. Parallel Algorithms and Architectures, Las Vegas, Nevada, USA 186 (2005). [13] B. S. Choi and V. E. Korepin, Quantum Inf. Process. 6 37 (2007). [14] V. E. Korepin, J. Phys. A 38 L731 (2005). [15] V. E. Korepin and J. Liao, Quantum Inf. Process. 5 1573 (2006). [16] V. E. Korepin and B. C. Vallilo, Prog. Theor. Phys. 116 783 (2006). [17] V. E. Korepin and Y. Xu, Proc. SPIE (Quantum Information and Computation V) 6573 65730C (2007). [18] V. E. Korepin and Y. Xu, Int. J. Mod. Phys. B 21 5187 (2007). [19] J. Preskill, Lecture notes on quantum information and computation, [http://www.theory.caltech.edu/people/preskill/ph229/index.html.](http://www.theory.caltech.edu/people/preskill/ph229/index.html) [20] L. K. Grover, Phys. Rev. Lett. 80 4329-4332 (1998). [21] E. Farhi and S. Gutmann, arXiv: [quant-ph/9711035.](http://arxiv.org/abs/quant-ph/9711035) [22] L. K. Grover, Chaos, Solitons and Fractals 10 16951705 (1999). [23] E. Farhi and S. Gutmann, arXiv: [quant-ph/9612026.](http://arxiv.org/abs/quant-ph/9612026) [24] E. Farhi, J. Goldstone, S. Gutmann and M. Sipser, arXiv: [quant-ph/0001106.](http://arxiv.org/abs/quant-ph/0001106) [25] J. Roland and N. J. Cerf, Phys. Rev. A 65 042308 (2002). [26] B.-S. Choi, T. A Walker and S. L. Braunstein, Quantum Information Processing, 6 1-8 (2007).

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.