Skip to main content

Quantum calculations

Project description

Quantum functions for Python

Experimental library for quantum calculations.


Integer factorization

from quantumlib import shor

shor.factorize(123) # returns prime factors of given integer

Find collisions for a custom function

Easily breaks AES256, RSA2048, SHA256 or whatever

from hashlib import sha256
from quantumlib import grover

data = sha256('Piece of cake!'.encode())

result = grover.find_collision(sha256, data)

print(result) # outputs "Piece of cake!"


pip3 install quantumlib


  • 8192-qubits Quantum FPU
  • sense of humor

Enjoy! :)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quantumlib-0.0.100.tar.gz (1.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page