Grover's Algorithm

1. Universality & Efficiency

A quantum computer that can imlement any unitary operation on bits is called universal. Single qubit gates and CNOT between any pair of qubits are universal (i.e. can implement any unitary operation on qubits).

Quantum algorithms usually start from and make a classical output state. A quantum algorithm is efficient if the number of elementary gates is a polynomial function of the number of input bits (i.e. ).

2. General Computational Problem

Goal is to determine a property of a black-box function using the least number of queries. For example, searching would have black box function if is the solution and otherwise. We need a unitary implementation of reversible : :

3. Quantum Parallelism

  1. for generla case . For example, .
  2. By linearity of , , .

We have computed values of in a single call!

3.1 Challenges & No-Clone

However, if we measure we project onto for some . This is no better than simpling uniformly at random and computing .

We could do better if we can copy this state times, i.e.:

This is impossible (No-cloning theorem!)!

PROOF

Suppose s.t. and for all and . Then:

  • Also,

Hence, only equal if , , . This is only possible for or . Hence, no such exists.

4. Grover's Algorithm

Problem: given black box , with for a unique and otherwise, find . Classically, query complexity is , but Grover's algorithm can do it in .

Let . We start with qubits and apply:

  1. .
  2. which can be shown by enumeration to be equal to .

We can now derive the following identity:

We can say that , as:

Now we introduce matrix (inversion by the mean). Remember .

Given a vector , with mean , then :

Hence, inverts each amplitude about the mean.

Grover's algorithm says if we do , where . and act in a 2D space spanned by and .

We can define the 2D space by orthogonal and .

We can then see that , where is the angle between and . Now, in this space:

We can graphically see that as , . More specifically, forms angle with so that:

The probability of measuring is . We hence choose s.t. . If is large, .

So, Grover's algorithm.

Back to Home