Quantum functions for Python
Experimental library for quantum calculations.
Examples
Integer factorization
from quantumlib import shor
shor.factorize(1234567890123456789) # 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_collisions(sha256, data, max_collisions=1)
print(result[0].decode()) # outputs "Piece of cake!"
Install
pip3 install quantumlib
Requirements
- 8192-qubits QPU
- sense of humor
Enjoy! :)
Metadata
Release files for quantumlib 0.0.106
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quantumlib-0.0.106.tar.gz | 1.9 kB | Details |
Release files / quantumlib-0.0.106.tar.gz
| Download URL | quantumlib-0.0.106.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71467a6ace0af315c5be2f5d04858dc5ffd184cfa73e430ed990967ff4af98e1
|
|
BLAKE2b-256 checksum How to use checksums |
34a8a7addf5206b5f200ff1244586dfbc1ebac6af74a1b5f745bf9decdaddd0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
|