Skip to content

An implementation of Shor's quantum factoring algorithm on the number 15.

Notifications You must be signed in to change notification settings

aklein4/Shors-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shors-Algorithm

An implementation of Shor's quantum factoring algorithm on the number 15:

  • Uses IBM's qiskit python API for quantum circuit contruction and simulation. qiskit can be found here: https://qiskit.org/

  • Successfully finds the factors of 15 (3 and 5) using the properties of quantum superposition and phase estimation.

Included are a .py file containing the raw code, a Jupyter Notebook file (.ipynb) which contains both the code and the output, and a slide deck which contains an explaination of the algorithm, its implentation, and the underlying math.

Examples of different amod15 gate circuits:

amod15 gate circuits.

Example of a QFT inversion gate circuit with 8 qubits:

QFT Inversion Circuit.

The full circuit outline:

Diagram of the entire cirtuit outline.

Example of qubit readings after QFT Inversion:

Graph showing probabilities of qubit readings after inversion.

About

An implementation of Shor's quantum factoring algorithm on the number 15.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published