Tato stránka zatím nebyla přeložena do češtiny. Zobrazujete původní anglickou verzi.
Quantum algorithms: Grover Search and applications
Atsushi Matsuo (May 10, 2024)
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 2 seconds.
1. Introduction to Grover's algorithm
This notebook is the fourth in a series of lectures on the Path to Utility in Quantum Computing. In this notebook, we will learn about Grover's algorithm.
Grover's algorithm is one of the most well-known quantum algorithms due to its quadratic speedup over classical search methods. In classical computing, searching an unsorted database of items requires time complexity, meaning that in the worst case, one might have to examine each item individually. However, Grover's algorithm allows us to achieve this search in time, leveraging the principles of quantum mechanics to identify the target item more efficiently.
The algorithm uses amplitude amplification, a process that increases the probability amplitude of the correct answer state in a quantum superposition, allowing it to be measured with higher probability. This speedup makes Grover's algorithm valuable in various applications beyond simple database search, especially when the dataset size is large. Detailed explanations of the algorithm is provided in the Grover's algorithm notebook.
The Basic Structure of Grover's Algorithm
Grover's algorithm comprises four main components:
- Initialization: Setting up the superposition over all possible states.
- Oracle: Applying an oracle function that marks the target state by flipping its phase.
- Diffusion Operator: Applying a series of operations to amplify the probability of the marked state.
Each of these steps plays a critical role in making the algorithm work efficiently. Detailed explanations for each step are provided later.