Analysis
Halaman ini belum diterjemahkan. Anda sedang melihat versi asal dalam bahasa Inggeris.
Now we'll analyze Grover's algorithm to understand how it works. We'll start with what could be described as a symbolic analysis, where we calculate how the Grover operation acts on certain states, and then we'll tie this symbolic analysis to a geometric picture that's helpful for visualizing how the algorithm works.
Solutions and non-solutions
Let's start by defining two sets of strings.
The set contains all of the solutions to our search problem while contains the strings that aren't solutions (which we can refer to as non-solutions when it's convenient). These two sets satisfy and which is to say that this is a bipartition of
Next we'll define two unit vectors representing uniform superpositions over the sets of solutions and non-solutions.
Formally speaking, each of these vectors is only defined when its corresponding set is nonempty, but hereafter we're going to focus on the case that neither nor is empty. The cases that and are easily handled separately, and we'll do that later.
As an aside, the notation being used here is common: any time we have a finite and nonempty set we can write to denote the quantum state vector that's uniform over the elements of
Let's also define to be a uniform quantum state over all -bit strings: