Skip to main content

Quantum calculations

Project description

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! :)

Project details


Download files

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

Files for quantumlib, version 0.0.106
Filename, size File type Python version Upload date Hashes
Filename, size quantumlib-0.0.106.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page