All Projects â†’ Dethada â†’ Quantum-Cryptography

Dethada / Quantum-Cryptography

Licence: MIT license
😺 Classic implementation of shor's and grover's algorithm to help with understanding.

Programming Languages

Jupyter Notebook
11667 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Quantum-Cryptography

launchpad
Resources to get started in Quantum Computing!
Stars: ✭ 21 (+31.25%)
Mutual labels:  quantum-cryptography

Quantum Cryptography

Shor's Algorithm

Please do not actually use classical_shor.py to try to factorize large numbers, it is a really inefficient way of factorization for a classical computer.

python3 -m timeit -s 'import classical_shor' 'classical_shor.solve(80609)'
100 loops, best of 3: 3.11 msec per loop ((3.11 * 10^-3) seconds)

pure_factorizatrion.py is a much better algorithm for finding primes on a classical computer.

python3 -m timeit -s 'import pure_factorization' 'pure_factorization.factorize(80609)'
100000 loops, best of 3: 3.56 usec per loop ((3.56 * 10^-6) seconds)
  • classical_shor.py
    • Shor's algorithm implemented purely with classical algorithm
  • pure_factorization.py
    • Classical way of finding prime factors

Grover's Algorithm

Reduces the time complexity of finding the input to a black box(Oracle) function that produces a particular output from O(N) to O(sqrt(N)).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].