pyqrack - Pure Python vm6502q/qrack Wrapper
Project description
pyqrack
Pure Python bindings for the pure C++11/OpenCL Qrack quantum computer simulator library
(PyQrack is just pure Qrack.)
IMPORTANT: You must build and install vm6502q/qrack to use this main
branch. The pypi_package
branch, however, comes with pre-compiled Qrack binaries, and that is the form published on PyPi.
Import and instantiate QrackSimulator
instances. This simulator can perform arbitrary single qubit and controlled-single-qubit gates, as well as other specific gates like SWAP
.
Any 2x2 bit operator matrices is represented by a list of 4 complex
floating point numbers, in row-major order.
Single and array "b
" parameters represent Pauli operator bases. They are specified according to the enumeration of the Pauli
class.
MC[x]
and MAC[x]
methods are controlled single bit gates, with as many control qubits as you specify via Python list c
argument. MCX
is multiply-controlled Pauli X, and MACX
is "anti-"controlled Pauli X, i.e. "anti-control" activates the gate if all control bits are specifically off, as opposed to on.
To load the required vm6502q/qrack libraries from a different location, set the PYQRACK_SHARED_LIB_PATH
environment variable.
Please feel welcome to open an issue, if you'd like help. 😃
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pyqrack-0.4.4-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ea37d51e08ac24d1516645bc97b10cb491818d0a06bad53e6eb1901495f3c13 |
|
MD5 | 672e79bc577a28a7bb533e2f69b08310 |
|
BLAKE2b-256 | 81ca08e7a6311a48cd6944d7cb05c347e003cf06b3f2f59e0ad18e63f579b62e |
Hashes for pyqrack-0.4.4-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc7eeb7db52cae53fea64ec3656ac00c6b46e704682937fe77032f016fec2b2d |
|
MD5 | a2191e960ba5a511143d66dd661bb653 |
|
BLAKE2b-256 | 86c80393b3ee95c766bf391a55bc4f5ec6cb63b859dd93a49f3a02bc34231bdc |
Hashes for pyqrack-0.4.4-py3-none-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fd872884ddeed4135e20de334d98abf9b807cbc65d27b13c28922f6104fe143 |
|
MD5 | 7a621633b6dcfaee7c8d83f48aadcd06 |
|
BLAKE2b-256 | 91718edf9af8709fe13936f77e30fefb02e0b6ce47b0b97c813d47497d45ff9e |
Hashes for pyqrack-0.4.4-py3-none-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8e06c0d0f33620457b67d912aad01c99c8403f69eb4567b4ea83628ca23a89b |
|
MD5 | c9051a5b8c36e2994bb39353219ac0d8 |
|
BLAKE2b-256 | e46d1967da945d8e782c8307b9f48266facedd42c0521efb308f9287f9aaf5f5 |
Hashes for pyqrack-0.4.4-py3-none-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61376f9a489286adb7132656923cf35253ea06bb742f775eeb25a0fda7cca112 |
|
MD5 | 617b36df9ce38e99cae9e8f3277b0b96 |
|
BLAKE2b-256 | b9ec2e8718b4e816d6911871aa924e29ce6e501f271c2f0808b848cf34d040ba |