The University of Birmingham School of Computer Science
The University of Birmingham School of Computer Science
The University of Birmingham School of Computer Science
October 2003 1
Outline
2
Satisfiability Problem-1
3
Satisfiability Problem-2
4
Satisfiability Problem-3
6
Representation of Boolean Functions on QC -2
7
Representation of Boolean Functions on QC -3
8
Representation of Boolean Functions on QC -4
9
Representation of Boolean Functions on QC -5
10
The Algorithm -1
11
The Algorithm -2
1-Register Preparation:
2-Register Initialization:
12
The Algorithm -3
4- Completing Superposition and Changing Sign :
13
The Algorithm -4
n Let M be the number of possible
variable assignments that will make
the Boolean expression evaluate to
TRUE.
n : no solution: f(i) = 0
n : there exist at least one
solution within the superposition.
14
The Algorithm -5
Case 1:
−1
(M) states with amplitude : P
16
The Algorithm -7
5- Inversion About the Mean: Apply Diffusion
Operator D on the n+1 qubit system:
17
The Algorithm -8
nFor the case where:
Applying D will transform amplitudes as follows:
18
The Algorithm -9
nFor the case where:
Applying D will not change the amplitudes:
19
Algorithm Performance - 1
20
Algorithm Performance - 2
n To verify this results, the average
probability that the algorithm can find a
solution can be calculated as follows:
21
Algorithm Performance - 3
n The average probability that the
algorithm will find non-solution can be
calculated as follows:
22
Algorithm Performance - 4
n Classically if we tried to guess the solution,
we may succeed with probability M/N, so the
average probability by guessing can be
calculated as follows:
23
Algorithm Performance - 5
n Similarly, The average probability that
Grover’s algorithm can find a solution after
any arbitrary t of iterations can be
calculated as follows:
24
Algorithm Performance - 6
25
Algorithm Performance - 7
27
Iterating the Algorithm - Performance-1
30
Iterating the Algorithm – Performance-4
n It means the algorithm has the following
behaviour:
N
* O(1) : ≤M ≤N
8 N
*O(N/M) : 1≤ M <
8
31
Conclusion-1
n We propose a hybrid quantum search
engine which works as follows:
n If the number of solutions M is known in
advance, so we can pick which algorithm
to use as follows:
• If N / 8 ≤ M ≤ N : We use the proposed
algorithm in O (1) .
• If 1 ≤ M < N / 8 : We use Grover’s algorithm
in O( N / M ) .
32
Conclusion - 2
n If the number of solutions M is unknown,
so the proposed algorithm may succeed
to solve the problem with probability
87.5% after one iteration.
n Special cases:
n If M = N / 2 : The proposed algorithm
with find a solution with certainty.
n If M = N / 4 : Grover’s algorithm with find
a solution with certainty after one
iteration.
33
Conclusion - 3
n It would be better to have a single
quantum algorithm which combines
both behaviours (Grover’s for few
number of solutions and the
proposed algorithm here):
i.e.
n If N / 8 ≤ M ≤ N : It runs in O (1) .
n If 1 ≤ M < N / 8 : It runs in O ( N / M ).
(current research)
34
References
[1] L. K. Grover (1996). A Fast Quantum Mechanical Algorithm for Database Search.
Search.
Proceedings of the Twenty-
Twenty-Eighth Annual ACM Symposium on the Theory of Computing,
212--219.
212
[2] M.Boyer, G. Brassard, P. H øyer and A. Tapp(1998), Tight Bounds on Quantum Searching.
Searching.
Fortschritte der Physik
Physik,, vol. 46(4-
46(4-5), pp. 493-
493- 505.
[3] M. Nielsen and I. Chuang (2000), Quantum Computation and Quantum Information.
Information .
Cambridge University Press, Cambridge, United Kingdom.
[4] A. Younes, J. Miller (2003), Automated Method for Building CNOT Based Quantum Circuits
for Boolean Function.
Function . Los Alamos Physics preprint archive, quant-
quant-ph/0304099.
[5] A. Younes, and J. Miller (2003), Representation of Boolean Quantum Circuits as Reed-
Reed-
Muller Expansions.
Expansions. Los Alamos Physics preprint archive,quant-
archive,quant-ph/0305134.
[6] A. Younes, and J. Miller (2003), A Constant Complexity Algorithm for Solving the Boolean
Satisfiability Problem on Quantum Computers.
Computers. Los Alamos Physics preprint archive,quant-
archive,quant-
ph/0305134.
35