Implementing Grover’s search algorithm with Qiskit
Kokko, Pekka (2024-02-27)
Kokko, Pekka
P. Kokko
27.02.2024
© 2024 Pekka Kokko. Ellei toisin mainita, uudelleenkäyttö on sallittu Creative Commons Attribution 4.0 International (CC-BY 4.0) -lisenssillä (https://creativecommons.org/licenses/by/4.0/). Uudelleenkäyttö on sallittua edellyttäen, että lähde mainitaan asianmukaisesti ja mahdolliset muutokset merkitään. Sellaisten osien käyttö tai jäljentäminen, jotka eivät ole tekijän tai tekijöiden omaisuutta, saattaa edellyttää lupaa suoraan asianomaisilta oikeudenhaltijoilta.
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:oulu-202402272006
https://urn.fi/URN:NBN:fi:oulu-202402272006
Tiivistelmä
Quantum algorithms can solve certain problems faster than classical algorithms. One such problem is finding a marked item from an unstructured database. Classical algorithms need O(N) trials to find the marked item from a database of N items but Grover’s search algorithm, also called the quantum search algorithm, finds the marked item with O(√N) trials.
This thesis presents the theoretical background of qubits, quantum gates, quantum circuits and Grover’s algorithm. Grover’s algorithm uses an equal superposition of states of the items in the database and then amplifies the amplitude of the state of the marked item. IBM’s software development kit, Qiskit, is used to program quantum circuits that implement Grover’s algorithm. The programs are run on an ideal quantum computer simulator and on IBM’s actual superconducting quantum computer. The results of the simulations match with the theoretical results, but the experiments on real hardware show different results because of gate errors and noise from interactions with the environment. To have the quantum advantage over classical computers, quantum computers need a larger number of qubits and quantum error correction.
This thesis presents the theoretical background of qubits, quantum gates, quantum circuits and Grover’s algorithm. Grover’s algorithm uses an equal superposition of states of the items in the database and then amplifies the amplitude of the state of the marked item. IBM’s software development kit, Qiskit, is used to program quantum circuits that implement Grover’s algorithm. The programs are run on an ideal quantum computer simulator and on IBM’s actual superconducting quantum computer. The results of the simulations match with the theoretical results, but the experiments on real hardware show different results because of gate errors and noise from interactions with the environment. To have the quantum advantage over classical computers, quantum computers need a larger number of qubits and quantum error correction.
Kokoelmat
- Avoin saatavuus [37575]