This is Shor's algorithm period finding simulator which will require 2n qbuits for factorizing n bits number. The algorithm is implemented to be run on both traditional CPU and Nvidia GPU using CUDA®.
- make sure CUDA library is installed in your computer
- run
make
just run ./shor [cpu|gpu] N
where N is the number you wish to factorize