Quantum functions for Python
Experimental library for quantum calculations.
Examples
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, 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.103
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| quantumlib-0.0.103.tar.gz | 1.8 kB | Without provenance | Details for quantumlib-0.0.103.tar.gz |
Release files / quantumlib-0.0.103.tar.gz
| Download URL | quantumlib-0.0.103.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78d623d78b25639423857b8b2f7516f3ec4278eea93e85ffb8fe8422714fa493
|
|
BLAKE2b-256 checksum How to use checksums |
d9df7f1a4454fb1a81bfa88aaae38641196a706c04bfa915ed5d0aee8709293f
|
| 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
|
Security for quantumlib 0.0.103
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.