Python toolkit for Quafu-Cloud
Project description
PyQuafu
Python toolkit for submitting quantum circuits on the superconducting quantum computing cloud Quafu.
Introduction
PyQuafu is developed for the users of Quafu to construct, compile and execute quantum circuits on real quantum devices. One can use PyQuafu to interact with different quantum backends provides by the experimental group of Quafu.
Installation
You can directly install via PyPI,
pip install pyquafu
or build from source
pip install -r requirements.txt
python setup.py install
GPU support
To install PyQuafu with GPU-based circuit simulator, you need build from the source and make sure that CUDA Toolkit is installed. You can run
python setup.py install -DUSE_GPU=ON
to install the GPU version. If you further have cuQuantum installed, you can install PyQuafu with cuQuantum support.
python setup.py install -DUSE_GPU=ON -DUSE_CUQUANTUM=ON
Document
Please see the website docs.
Note
If you are using an Apple silicon Mac and meet the error "illegal hardware instruction", please confirm whether you have updated to the arm64 version of Anaconda (see https://github.com/abess-team/abess/issues/310).
Examples
1.quantum_rl
The example shows quantum reinforcement learning interacts with Quafu to solve CartPole environment.
Refer to https://github.com/enchanted123/quantum-RL-with-quafu for more details.
Authors
This project is developed by the quantum cloud computing team at the Beijing Academy of Quantum Information Sciences.
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 Distributions
Built Distributions
Hashes for pyquafu-0.3.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 049885296cd7c30942cb99e486d8130bf1151c39b0266d6c36d5d089d1dbb4c2 |
|
MD5 | 41812e659e39fa966e48f9693107bb03 |
|
BLAKE2b-256 | 851384315862c91c751a35056950ffbffaed398dfa1d3050cac4b0298ed05dc2 |
Hashes for pyquafu-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10940ea7b6caa08f279d2c3de09cece0cb49f3634aabae426baebc435ac2f7f1 |
|
MD5 | e5c6bc1a01f8ab190e63fdf7dc3f90d4 |
|
BLAKE2b-256 | 3ea7ec763bf559a180ddd28a341a79ff0defa6070ee43ff6507be5d1c3970ac0 |
Hashes for pyquafu-0.3.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31267f9b32673ada626ada7b436e9165282f3d01bccf5c3e993e4ac426d56c6a |
|
MD5 | 5f44b37bfc02c2801dfe02c1f0d57bb2 |
|
BLAKE2b-256 | 70aea8a3ac433e9786d50c7301ee5da15f832a719715424b811372aa470ea3fb |
Hashes for pyquafu-0.3.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 437cf9304bd2bf9a1de1309555e8d4aaafd84de8ef483d0d8223697d483f181e |
|
MD5 | 077c57e530a6b169a6e35469c5a7ccc1 |
|
BLAKE2b-256 | 62269aba444e05d6de4ae57d7667dffb37d40bedb67559da7c27ad47210517ff |
Hashes for pyquafu-0.3.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1590a2cb07437fab984377705451822cf64bb337321809cb066a68798b3a626a |
|
MD5 | 5e2fe6f5e6a68dc210b2c2a570517365 |
|
BLAKE2b-256 | 1bfbb7edc68a3beaaef3f431d1e92303b0428b4e73a8ed0c13ed01441b9a5675 |
Hashes for pyquafu-0.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c62d1f56e0b1d09f98d3ba01fc769e2303e099622adf7e03aed4aa6325608192 |
|
MD5 | 7651f265dbdbaaa0962359c935686f57 |
|
BLAKE2b-256 | 1fbb57ed938693276fe2574ffde81054ba25ddbe38f56448fe8ab77adf27831a |
Hashes for pyquafu-0.3.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f63549c684778badb69bd84634abb6cd0499b963a4de966fb65a62dca067558e |
|
MD5 | 9681a5a9ecd9d7c3978d80d67b918d05 |
|
BLAKE2b-256 | 73051b283fd2668eb8cd3fa229687030bfcaa58ead5f5cfbc790e893c6a3e9e1 |
Hashes for pyquafu-0.3.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e1dd41c537f5d6ef866c0cf9d437638938cb281a4ddbdc22e3684ced2bcffd5 |
|
MD5 | e5c7b3599f968776f460c86f3346a847 |
|
BLAKE2b-256 | c4158ff8ea4d95ba65e011b627ae8f3d157a10304905dc38e366f10eaf2aaaa9 |
Hashes for pyquafu-0.3.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b62bf2b8b0649b44552744c32f90e580c90726c0c91be49029a3f4883561f07d |
|
MD5 | 21559454253b96e51cd59f3c1e8249c3 |
|
BLAKE2b-256 | e1ef25d0051966a5374a1e7c2d8389d82bc48bd7a64c3518b27be3b4d3807311 |
Hashes for pyquafu-0.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 183e19f87e62d51802c18757fe6ca38505d1947ed2ef6b942284b1c3f94e17b3 |
|
MD5 | 63f822d694e7daf1895f9ac42d485cfb |
|
BLAKE2b-256 | f2449d11593a19f297c456dfa39d79257c81b980c1c60f9799f26b9bb68a0ee4 |
Hashes for pyquafu-0.3.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7176e87d56eab115a400c68ec7bd51f94b4e4edb451551e81ca3aeeb196f7819 |
|
MD5 | 19a65d734e6f17559025b5f0153ca82c |
|
BLAKE2b-256 | 2b57e43f355e9b6b8dfbdc3abb7cd40ae43877e387ceac849f1622ee76e01389 |
Hashes for pyquafu-0.3.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 893359325cc9fa3b72d6b232a65d2e12f4ecba464a23189fe91793cadbd9d1f5 |
|
MD5 | bceb294254aa990fbff7cc3ada267579 |
|
BLAKE2b-256 | 00ddc0061e451227a1aa310fff208724de9d25af0e706f8b2aa261403d46b4d4 |
Hashes for pyquafu-0.3.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eb85e309ba55c453be3cacee524c2952e7e3ca0fa5c4b958b4d96f305878e9d |
|
MD5 | 657f2cde4d2dd2dc1588e9fec08c49d4 |
|
BLAKE2b-256 | 664db64fd2a280f15a97fbb0c90dcf36a18edeffa2facd57920ecd8f9a7e2f91 |
Hashes for pyquafu-0.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0447a3d7d5429bd427795ba345a99cf08a15efd9ee759ccb747a9dc6299ea64b |
|
MD5 | f56ffbf6307fc966f253c66cfbf6d1f6 |
|
BLAKE2b-256 | f068ddfe35194fef0dfa5899c59faae420b8008ec2173466e358853e8287b0be |
Hashes for pyquafu-0.3.2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba840bd42cc0e925a0b80521c976b295c80c9c8275c6f1d4cbe8ec1e597a6fde |
|
MD5 | 1517101f3e4fd0a87424ce8608a3bb1e |
|
BLAKE2b-256 | 3995f44606d1f7b74a31410288da036318137d8ebf491687f37750a1f2d0eeae |
Hashes for pyquafu-0.3.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51c85a262b5b7cdce7b585641730c9d02d67bf8946fb032c22f04d49a9f89c2c |
|
MD5 | 6209dfbd736470be0ae48fcd823fba94 |
|
BLAKE2b-256 | 31c51d2ecd855dcf4001247865b79d2e202c97b2b41a02e0b79f7683cdae39f9 |