| Gates |
|---|
Barrier |
Hadamard |
Identity |
Measure |
Pauli X |
Pauli Y |
Pauli Z |
Phase |
Quantum Fourier Transform |
Rotate about X |
Rotate about Y |
Rotate about Z |
S |
Swap |
T |
| Circuits |
|---|
Quantum Phase Estimation |
Test circuit with basic gates |
Harrow-Hassidim-Lloyd Algorithm |
| Documentation |
|---|
Adding circuits |
Adding gates |
Gates and operations |
Getting started |
Interactive circuits |
Project structure |
Schemas |
Terminology |
Quantum Phase Estimation is a quantum circuit that solves the phase estimation problem in a quantum circuit.
QPE can be used to find the spectral decomposition of a unitary matrix, encoding its eigenvalues into binary format.
We are given, as input, a description of a unitary quantum operation
The output is an approximation of
In the following, consider an
By the Spectral theorem, which applies to all normal matrices (a superset of unitary matrices),
where
Additionally, all eigenvalues are complex numbers with magnitude 1:
where
where
Phase kickback is the primary mechanism making QPE work, allowing some information
about
Consider a circuit with a controlled-unitary operation,
Additionally, the input state of all the qubits except for the control qubit is an eigenvector,
[Future: Insert Phase kickback circuit]
The initial state of the circuit is:
After the first Hadamard gate, the state becomes:
After the controlled-U operation is performed, the state becomes:
Since we know that
After the second Hadamard gate is performed, the final state is:
In the case of phase kickback, the control qubit is the only qubit whose state is changed — the eigenvector register remains unchanged. This means that the eigenvector state can be reused.
If the control qubit is measured, the probability of each outcome is as follows:
Hence, by measuring this control qubit, we gain some information about the value of
If we apply the controlled
Repeating it four times changes the coefficient of
Hence, by using multiple (
Looking at the central section of the QPE circuit, you can see how phase kickback
is performed with different numbers of controlled
Finally, the inverse QFT is performed on the clock register to convert the frequency information
about
Quantum Phase Estimation is used as a subcircuit in Shor's Algorithm, the Harrow-Hassidim-Lloyd algorithm, and others.