Skip to content

AFOEK/Quantum-Random-Number-Generator-Simulator-UI

Repository files navigation

This a GUI application build using Tkinter and Qiskit, which it will generate a random number from (n) H-gate, it will created a random number using combination of (n) measured qubit with highest frequency. All number bit string are stored into a list, after that converted into binary and finally converted into integer. We can choose what chart what we want, little advice if you want visualize small set of data you can use Bar Map and for big set of data you can use Scatter Map. After generate a number you can factorize that number using Shor's algorithm.

Sample:

UI result factorize export_sample bar_chart heatmap_chart scatter_chart QRNG_Circuit QRNG_Circuit_Latex Shors_Circuit Shors_Circuit_Latex

The number generated by Qiskit are little endian format

This project inspired by this post.

further reading : https://www.nature.com/articles/s41598-019-56706-2

For web version you can get from here :

Future feature:

  • Make a clone for web app and deploy
  • Add documentation and sample
  • Add Shor's algorithm for factorization
  • Add GPU option to run quantum circuit (Nvidia GPU)
  • Adding Option for factorization using General Number Field Sieve (GNFS)
  • Able to run on real quantum device
  • Able to convert little endian ↔ big endian