This project implements Grover’s Search Algorithm using Qiskit to efficiently search for a target value within an unstructured dataset of 16 elements.
The algorithm demonstrates quantum speedup, reducing search complexity from classical O(N) to O(√N).
- Simulate Grover’s Algorithm on a 4-qubit search space (16 elements)
- Compare classical vs quantum search performance
- Understand key quantum concepts such as:
- Superposition
- Phase kickback
- Amplitude amplification
- Python
- Qiskit
- Qiskit Aer Simulator
- Jupyter Notebook
- NumPy
- Matplotlib
Classical data is encoded into quantum states using controlled operations.
Marks the correct solution by applying a phase flip using phase kickback.
Reverses the data embedding to remove entanglement and isolate the marked state.
Amplifies the probability of the correct solution using reflection about the mean.
Extracts the most probable state (correct index) from the quantum system.
- Initialize qubits in superposition
- Encode classical data into quantum states
- Apply oracle to mark the target value
- Uncompute to clean entanglement
- Apply diffuser to amplify the correct state
- Repeat steps 2–5 for optimal iterations
- Measure the address qubits
- The algorithm successfully identifies the correct index with high probability
- Optimal number of iterations used: iterations = ((π / 4) * √(N / M))
- Measurement results show a dominant peak at the correct state
- Expected index: 1010
- Most probable result: 1010
Histogram visualization confirms the correct result with high probability.
- Quantum algorithm implementation
- Circuit design using Qiskit
- Reversible computation (uncomputation)
- Problem decomposition and algorithmic thinking
- Simulation and result validation
- Install dependencies:
pip install qiskit matplotlib numpy- Open the notebook:
jupyter notebook Grover_Algorithm_Perez_Galindo_Adrian.ipynb- Run all cells