Debasis Sadhukhan M.Sc. Physics, IIT Bombay 1.Quantum Algorithm 2. Canonical Grover’s Quantum Search Algorithm 3. Generalized Quantum Search Operator: Selective Inversions of Two States 4. Generalized Quantum Search Operator: Selective Inversions of Three States *An algorithm is a well defined procedure or a set of instructions to perform an information processing task. *Complexity Classes: P , NP *Quantum algorithms are those that uses quantum mechanical principles at the time of it’s execution. *Advantage of Quantum Algorithm: Superposition principle allows a quantum algorithm to exploit an exponentially large number of quantum components using only polynomial recourses. Hard to design ! Unsorted Database Search Problem A database is nothing but a collection of items. Number of items: N Classical Search: Average number of query to succeed: N/2 In the worst case, we need N-1 query to succeed. If there are M solutions, then we require O(N/M) trials to succeed. But using Grover’s Quantum Search Algorithm require only π π π * trial to succeed. 1. 2. Start with 0 β¨π Apply Hadamard (π» β¨π ) gate on each state to get uniform superposition of all states 1 2π −1 π = π π=0 |πβ© 2 π = 3. Apply πΌπ‘ : 1 − 2|π‘β©β¨π‘| 4. Apply πΌπ : 1 − 2 π π π π t + * π−π |πππ‘βππ β© π *Let’s start with the uniform superposition of all the states. i.e. the source state |π β©. *Our solution is the target state |π‘β©. G = −πΌπ πΌπ‘ , where, πΌπ‘ : 1 − 2|π‘β©β¨π‘| & πΌπ : 1 − 2|π β©β¨π | Iteration Required (m): * * Now, π π‘ = cos so, π π π 2 −π = sinπ ≈ π * So, no. of iteration required is π = π4 π π − 1 2 ≡ π( π ) π Grover’s algorithm drives a quantum computer from a known initial state (source state) to an unknown final state (target state) by using selective phase inversions of these states. Grover's operator performs the selective inversions only on a unique source state and a unique target state. Here, in this project, we make our search operator to perform selective inversions on more than one source and target states. The generalized algorithm is simply a successive iteration of the new Generalized Grover's search operator πΊ2 = −πΌπ 1 ,π 2 πΌπ‘1,π‘2 , where πΌπ 1,π 2 = 1 − 2 π 1 π 1 − 2 π 2 π 2 and πΌπ‘1,π‘2 = 1 − 2 π‘1 π‘1 − 2|π‘2 β©β¨π‘2 | The generalized search operator: Selective phase inversions of two source states and two target states. The operator πΊ2 = −πΌπ 1 ,π 2 πΌπ‘1 ,π‘2 , where, πΌπ 1 ,π 2 = 1 − 2 π 1 π 1 − 2 π 2 π 2 and πΌπ‘1 ,π‘2 = 1 − 2 π‘1 π‘1 − 2|π‘2 β©β¨π‘2 | Here, By the property of Walsh-Hadamard transform, * Let us take, We need to construct a four dimensional orthonormal basis to analyze the operation. New Basis: |π‘⊥1 β©, |π‘⊥ 2 β©, |π‘1 β©, |π‘2 β© Where, and * The Generalized search operator found in the new four dimensional orthonormal basis is, = = 4 π Where π = cos −1 (1 − ). Analysis is similar to the case of canonical Grover’s Algorithm. Analysis for all β¨ππ |ππ β© to be positive or negative: We choose, Define, |π − β© is perpendicular to π‘1 , π‘2 & π + . So, πΊ2 does not induce any coupling between these states and |π − β©. Then the search problem effectively reduces to the conventional Grover's search problem where we have one unique source states |π + β© and multiple target sates |π‘1 β© and π‘2 . Summary: The results are mainly distributed in two main category: 1. The problem is reducible into two Grover's search problem in two different subspace, spanned by π‘⊥1 , π‘1 and π‘⊥2 , |π‘2 β© . 2. The analysis of the problem is similar to a Grover's search problem which can be analyzed in conventional π‘⊥ , |π‘β© basis for all β¨π π |π‘π β© to be positive or negative. Formulation: The new search operator is the selective phase inversions of three source states and three target states. The operator πΊ3 = −πΌπ 1 ,π 2 ,π 3 πΌπ‘1 ,π‘2 ,π‘3 , where, πΌπ 1 ,π 2 ,π 3 = 1 − 2 π 1 π 1 − 2 π 2 π 2 − 2 π 3 π 3 and πΌπ‘1 ,π‘2 ,π‘3 = 1 − 2 π‘1 π‘1 − 2|π‘2 β©β¨π‘2 | − 2|π‘3 β©β¨π‘3 | And Again we need to find out the new search operator πΊ3 in a 6 dimensional orthonormal basis. But, this problem is hard to analyze analytically, so we perform numerical calculations on some specific cases. We find orthogonal basis states π‘⊥1 , |π‘⊥ 2 β©, |π‘⊥ 3 β©, using Gram-Schmidt orthogonalization. The initial states in the be basis will Now, we construct the matrix πΊ3 in the new orthonormal basis and find the eigenvalues and eigenvectors. Result: So, for the three states also we can categorized our results in two different classes. Now, we have taken some specific examples of this two classes and analyze them numerically. * For the first example we have chosen π11 = 1, π12 = 0, π13 = 1, π21 = 0, π22 = 1, π23 = 0, π31 = 1, π32 = 0, π33 = 1. This case corresponds to the case of two different π. For n=16, we got, Same for all the target states. For different n, we have, Plot: Formula: For the second example we have chosen π11 = 1, π12 = 1, π13 = 0, π21 = 0, π22 = 1, π23 = 1, π31 = 0, π32 = 0, π33 = 1. This case corresponds to the case of three different π. For n=16, Plot: For |π‘1 β© & |π‘3 β©, For |π‘2 β©, For different n, we got Formula: For π‘1 &|π‘3 β©, For |π‘2 β©, 1. The maximum amplitude of the target states after the optimal number of iteration is independent of the dimension of the search space. 2. Depending on the maximum amplitude, we need to iterate the generalized Grover’s operator suitable number of times to make the maximum amplitude nearly equal to 1. 3. For each case, the required number of iteration to get the target states with almost 100% probability is the same as the time taken by the canonical Grover's search operator. 4. So, the performance of our new generalized algorithm is the same as the conventional Grover’s search algorithm that performs selective inversions only on a unique source state and a unique target state.