Die Seite is noch nich übersetzt. Se kieken die englische Originalversion.
Quantum algorithms: Phase estimation
Kento Ueda (15 May 2024)
This notebook provides the fundamental concepts and implementation of the Quantum Fourier Transformation (QFT) and Quantum Phase Estimation (QPE).
Download the pdf of the original lecture. Note that some code snippets might become deprecated since these are static images.
Approximate QPU time to run this experiment is 7 seconds.
1. Introduction
Quantum Fourier Transformation (QFT)
The Quantum Fourier Transformation is the quantum counterpart of the classical discrete Fourier transform. It is a linear transformation applied to the quantum states, mapping computational bases into their Fourier basis representations. The QFT plays a key role in many quantum algorithms, offering an efficient method to extract periodicity information from quantum states. The QFT can be implemented with operations with quantum gates such as Hadamard gates and Control-Phase gates for qubits, enabling exponential speedup over classical Fourier transformation.
- Applications: It is a foundational part in quantum algorithms such as Shor's algorithm for factoring large integers and discrete logarithm.
Quantum Phase Estimation (QPE)
Quantum Phase Estimation is a quantum algorithm used to estimate the phase associated with an eigenvector of a unitary operator. This algorithm provides a bridge between the abstract mathematical properties of quantum states and their computational applications.
- Applications: It can solve problems such as finding eigenvalues of unitary matrices and simulating quantum systems.
Together, QFT and QPE form the essential backbone of many quantum algorithms solving problems that are infeasible for classical computers. By the end of this notebook, you will gain an understanding of how these techniques are implemented.
2. Basic of Quantum Fourier Transformation (QFT)
# Added by doQumentation — required packages for this notebook
!pip install -q numpy qiskit qiskit-aer qiskit-ibm-runtime
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit_aer import AerSimulator
from qiskit.visualization import plot_histogram, plot_bloch_multivector
from qiskit.quantum_info import Statevector
from qiskit.transpiler.preset_passmanagers import generate_preset_pass_manager
from qiskit_ibm_runtime import Sampler
from numpy import pi
From the analogy with the discrete Fourier transform, the QFT acts on a quantum state for qubits and maps it to the quantum state .
where .
Or the unitary matrix representation: