The Grover Circuit

Here's we'll have a look at how the algorithm is implemented through a quantum circuit.

Let’s reiterate the steps of the algorithm that we have covered. Then we’ll convert the steps into the language of quantum gates and circuits.

1. Equal superposition

Mostly the first step is to create our superposition state E|E\rangle. We need this to recreate our whole search space in the state space of our qubits. You’ve probably figured this out by now that we need to apply the Hadamard gate HH on each qubit. After application of HH, the state of our system looks like this:

ψ1=Hnψ0|\psi_1\rangle = H^{\otimes n}|\psi_0\rangle

ψ1=12nx=02n1x |\psi_1\rangle = \frac{1} {\sqrt{2^{n}}}\sum_{x=0}^{2^n-1} |x\rangle ...

Access this course and 1400+ top-rated courses and projects.