The phase estimation problem
This section of the lesson explains the phase estimation problem. We'll begin with a short discussion of the spectral theorem from linear algebra, and then move on to a statement of the phase estimation problem itself.
Spectral theorem
The spectral theorem is an important fact from linear algebra that states that matrices of a certain type, called normal matrices, can be expressed in a simple and useful way. We'll only need this theorem for unitary matrices in this lesson, but down the road in this series we'll apply it to Hermitian matrices as well.
Normal matrices
A square matrix with complex number entries is said to be a normal matrix if it commutes with its conjugate transpose:
Every unitary matrix is normal because
Hermitian matrices, which are matrices that equal their own conjugate transpose, are another important class of normal matrices. If is a Hermitian matrix, then
so is normal.
Not every square matrix is normal. For instance, this matrix isn't normal:
(This is a simple but great example of a matrix that's often very helpful to consider.) It isn't normal because
while
Theorem statement
Now here's a statement of the spectral theorem.
Theorem (spectral theorem). Let be a normal complex matrix. There exists an orthonormal basis of -dimensional complex vectors along with complex numbers such that
The expression of a matrix in the form
is commonly called a spectral decomposition. Notice that if is a normal matrix expressed in the form then the equation
must be true for every This is a consequence of the fact that is orthonormal:
That is, each number is an eigenvalue of and is an eigenvector corresponding to that eigenvalue.
-
Example 1. Let
which is normal. The theorem implies that can be written in the form for some choice of and There are multiple choices that work, including
Notice that the theorem does not say that the complex numbers are distinct — we can have the same complex number repeated, which is necessary for this example. These choices work because
Indeed, we could choose to be any orthonormal basis and the equation will be true. For instance,
-
Example 2. Consider a Hadamard operation.
This is a unitary matrix, so it is normal. The spectral theorem implies that can be written in the form and in particular we have
where
More explicitly,
We can check that this decomposition is correct by performing the required calculations:
As the first example above reveals, there can be some freedom in how eigenvectors are selected. There is, however, no freedom at all in how the eigenvalues are chosen, except for their ordering: the same complex numbers which can include repetitions of the same complex number, will always occur in the equation for a given choice of a matrix
Now let's focus in on unitary matrices. Suppose we have a complex number and a non-zero vector that satisfy the equation
That is, is an eigenvalue of and is an eigenvector corresponding to this eigenvalue.
Unitary matrices preserve Euclidean norm, and so we conclude the following from
The condition that is non-zero implies that so we can cancel it from both sides to obtain
This reveals that eigenvalues of unitary matrices must always have absolute value equal to one, so they lie on the unit circle.
(The symbol is a common name for the complex unit circle. The name is also common.)
Phase estimation problem statement
In the phase estimation problem, we're given a quantum state of qubits, along with a unitary quantum circuit that acts on qubits. We're promised that is an eigenvector of the unitary matrix that describes the action of the circuit, and our goal is to compute or approximate the eigenvalue to which corresponds. More precisely, because lies on the complex unit circle, we can write
for a unique real number satisfying The goal of the problem is to compute or approximate this real number
Phase estimation problem
Input: A unitary quantum circuit for an -qubit operation along with an -qubit quantum state
Promise: is an eigenvector of
Output: an approximation to the number satisfying
Here are a few remarks about this problem statement:
-
The phase estimation problem is different from other problems we've seen so far in the course in that the input includes a quantum state. Typically we focus on problems having classical inputs and outputs, but nothing prevents us from considering quantum state inputs like this. In terms of its practical relevance, the phase estimation problem is typically encountered as a subproblem inside of a larger computation, like we'll see in the context of integer factorization later in the lesson.
-
The statement of the phase estimation problem above isn't specific about what constitutes an approximation of but we can formulate more precise problem statements depending on our needs and interests. In the context of integer factorization, we'll demand a very precise approximation to but in other cases we might be satisfied with a very rough approximation. We'll discuss shortly how the precision we require affects the computational cost of a solution.
-
Notice that as we go from toward in the phase estimation problem, we're going all the way around the unit circle, starting from and moving counter-clockwise toward That is, when we reach we're back where we started at So, as we consider the accuracy of approximations, choices of near should be considered as being near For example, an approximation should be considered as being within of