Skip to main content

Python toolkit for Quafu-Cloud

Project description

PyQuafu

License

Introduction

PyQuafu is designed for users to construct, compile, and execute quantum circuits on quantum devices on Quafu using Python. With PyQuafu, you can interact with various real quantum backends provided by the experimental group from Quafu.

Installation

Install via PyPI

You can install PyQuafu directly from PyPI:

pip install pyquafu

Build from Source

Alternatively, you can build PyQuafu from the source:

pip install -r requirements.txt
python setup.py install

Graphviz Dependency

If you need to visualize Directed Acyclic Graphs (DAGs), ensure that the Graphviz software is installed on your system. Refer to the graphviz · PyPI page for installation guidance.

GPU Support

To install PyQuafu with GPU-based circuit simulation, you need to build from the source and ensure that the CUDA Toolkit is installed. Use the following command to install the GPU version:

python setup.py install -DUSE_GPU=ON

If you also have cuQuantum installed, you can install PyQuafu with cuQuantum support:

python setup.py install -DUSE_GPU=ON -DUSE_CUQUANTUM=ON

Documentation

For detailed documentation about usage, please visit the PyQuafu documentation website.

Note for Apple Silicon Mac Users

If you encounter the error "illegal hardware instruction" on an Apple silicon Mac, ensure that you have updated to the arm64 version of Anaconda. See this issue for more details.

Examples

Quantum Reinforcement Learning

This example demonstrates how quantum reinforcement learning interacts with Quafu to solve the CartPole environment. For more details, refer to the quantum-RL-with-quafu repository.

Author

This project is developed by the quantum cloud computing team at the Beijing Academy of Quantum Information Sciences.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pyquafu-0.4.4-cp312-cp312-win_amd64.whl (318.1 kB view details)

Uploaded CPython 3.12 Windows x86-64

pyquafu-0.4.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (419.0 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

pyquafu-0.4.4-cp312-cp312-macosx_13_0_x86_64.whl (311.0 kB view details)

Uploaded CPython 3.12 macOS 13.0+ x86-64

pyquafu-0.4.4-cp312-cp312-macosx_13_0_arm64.whl (293.9 kB view details)

Uploaded CPython 3.12 macOS 13.0+ ARM64

pyquafu-0.4.4-cp311-cp311-win_amd64.whl (317.4 kB view details)

Uploaded CPython 3.11 Windows x86-64

pyquafu-0.4.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (420.8 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pyquafu-0.4.4-cp311-cp311-macosx_13_0_x86_64.whl (311.8 kB view details)

Uploaded CPython 3.11 macOS 13.0+ x86-64

pyquafu-0.4.4-cp311-cp311-macosx_13_0_arm64.whl (294.4 kB view details)

Uploaded CPython 3.11 macOS 13.0+ ARM64

pyquafu-0.4.4-cp310-cp310-win_amd64.whl (316.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

pyquafu-0.4.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (419.1 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyquafu-0.4.4-cp310-cp310-macosx_13_0_x86_64.whl (310.3 kB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

pyquafu-0.4.4-cp310-cp310-macosx_13_0_arm64.whl (293.1 kB view details)

Uploaded CPython 3.10 macOS 13.0+ ARM64

pyquafu-0.4.4-cp39-cp39-win_amd64.whl (316.4 kB view details)

Uploaded CPython 3.9 Windows x86-64

pyquafu-0.4.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (419.4 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyquafu-0.4.4-cp39-cp39-macosx_13_0_x86_64.whl (310.4 kB view details)

Uploaded CPython 3.9 macOS 13.0+ x86-64

pyquafu-0.4.4-cp39-cp39-macosx_13_0_arm64.whl (293.2 kB view details)

Uploaded CPython 3.9 macOS 13.0+ ARM64

pyquafu-0.4.4-cp38-cp38-win_amd64.whl (316.7 kB view details)

Uploaded CPython 3.8 Windows x86-64

pyquafu-0.4.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (418.8 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyquafu-0.4.4-cp38-cp38-macosx_13_0_x86_64.whl (309.9 kB view details)

Uploaded CPython 3.8 macOS 13.0+ x86-64

pyquafu-0.4.4-cp38-cp38-macosx_13_0_arm64.whl (292.7 kB view details)

Uploaded CPython 3.8 macOS 13.0+ ARM64

File details

Details for the file pyquafu-0.4.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pyquafu-0.4.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 318.1 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for pyquafu-0.4.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5fc1226bebc1297c2ada3dc6f55765c24454af9c7a78090d52b35266fa79f96d
MD5 d85aedd30904fc05fcea63388f812666
BLAKE2b-256 c1244dabe48d824145a7acb4cc46b358dea44a05b661245a95898da0121fba9b

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyquafu-0.4.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2d831a22c3d05431b3977294e0884182a7f7037a63515f735629452b787c027d
MD5 f15ac9547f15e174354a82815dd0a58f
BLAKE2b-256 79cebce391c67f4e347c8d73671b3fe9e1f4e40e83c68c8c88c820b8883a5e89

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pyquafu-0.4.4-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 cae883ded5dcbd0472e4ce1add1702020741fd238602c77515a9d9832999ea12
MD5 6ba3aa4bdd5076c5510fb908e160746c
BLAKE2b-256 eafa78be90abf83e8748935661aaae406b30fae0a226e00d089c9896c4401b19

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pyquafu-0.4.4-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6bd1f529de1a43062fcf58dce3cce6dff978bf3cd5f9c830bae0e20312883a31
MD5 004e529623a5e9a1dcb902b5cd78c425
BLAKE2b-256 4a857866294f96c956a9b2ee74a91966b7e12da5105761ccbd9bc62385e7f4b8

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pyquafu-0.4.4-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 317.4 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for pyquafu-0.4.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8c486e646064d253e3af1f70b12ecd6aabdad9106ba66b865fd01cf239223f65
MD5 953488dbb549784c8242473868385b59
BLAKE2b-256 b1e182ab9a14fc58032822ef989202cc74c07417730b85b0d02083d10a2d2739

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyquafu-0.4.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a44695bc380f661e4cb14d04ccf254ca88e9e1df7c22b4b5772b59d59dcf9481
MD5 385adaa363d3a032f6a8360f0af5063c
BLAKE2b-256 28064a501dac4c267b71fbccdb5c5b13a4189d0df791fc4c08b5bc984a30b0e5

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pyquafu-0.4.4-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2ab7c1c9a77181658e0db023acd3597d082d6f76d6b9d8dac8d6305a1c1aeb1d
MD5 b04e9a4709c701af320372f723215442
BLAKE2b-256 9a5f7afb59dbd12b5e199b4d4eb09888d6451aa0a1d6e383b7d971fb01d361f4

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pyquafu-0.4.4-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2366f7f35d14181117898a967d24192375b8db22c6ac88fc18106c0460ada0d3
MD5 807aaf2fa5ee63f088acca99f353ddd0
BLAKE2b-256 64cf9bcee2e471b47e26964abb0f6d800c4d15b0289bee668be1b69c8c0c7ebe

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pyquafu-0.4.4-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 316.7 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for pyquafu-0.4.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a58e39ead1b0f9687dbde7a7c43a7d163c07f58462a9ea247ab46704187818e9
MD5 51e0b04466c7820609a3696bf0fa696d
BLAKE2b-256 cfbf44940ca31c8c58dc732aa00f3e32c15f731ac0399346e1d361c657f8a4f9

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyquafu-0.4.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cc77ef59d480ad7c0cabfae8d9a1686ba3778776e86bfa2d259a652ca69bf379
MD5 425ab7fb3f3a9b8cf1f02d373a5cfaf8
BLAKE2b-256 29e88d7acbca3f2283c7a84881324f712072e386bcfd4b0c6f1d77adba9cad86

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pyquafu-0.4.4-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 fbfee10602ebab825041af475fee0030e0c4ded0d73ea7dccbf6e0186450308f
MD5 4ab8e4d576006b96e4d3792da3b8c83e
BLAKE2b-256 5b57af4a1caa6b65ee48fa0208832728517cc1889d0f0f878607cad984c7193a

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pyquafu-0.4.4-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 707230e67a8582221f87a2d46ad6246114bcd5b9842aa6037a9111bf0a485b0d
MD5 91b5431ec2b2e7b30e468bd0887864e0
BLAKE2b-256 88348122d8841a0749be215509e6e6f9f9c660b4d0bc223ac0de497bea5ed4dc

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pyquafu-0.4.4-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 316.4 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for pyquafu-0.4.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 55d1785191cabf1843a6e7cab89bce5530af63ced34666354c53d84e0543d22b
MD5 616ab189c2670a36e75e9306bbbb5ba8
BLAKE2b-256 82b93088a6f336677930577118a6c466e544f7b83547c7e784f8502db929a845

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyquafu-0.4.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 62c1c2bb77b939d304e320777fe4a7ee9cd15e6ac7860081baa6c6f74951bdcd
MD5 87cf9f61d27ab46e409ecf8d0cf112ba
BLAKE2b-256 fc91029c0e932e7581cfa308c15cbd28cb9fa5ab0383122346c61909f3660747

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp39-cp39-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pyquafu-0.4.4-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 cfcef04d2f5695a1a409bb51b1c42d0275512646715f664395692bfe5390bfe1
MD5 3930b326947b4a58b98e7c9f3a98a49c
BLAKE2b-256 f614ceb11682e3837c9e199b6d8f04e460c7ad4976551893f0959036a8f24ea1

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp39-cp39-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pyquafu-0.4.4-cp39-cp39-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a962cdb24625c016bc97f6a1010adbb1752a6433de4a1dc2326b26fa77aa09c9
MD5 3cae2e303526d0260541dbdb425ed8d1
BLAKE2b-256 4757e254be0da8086a446b91258d7e0ddb638d26c7465ea4b0ced8b2260bd355

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pyquafu-0.4.4-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 316.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for pyquafu-0.4.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 874c508382f98b96df1fb75cb9eb041fa6fa39a68d4a6cd6a4523ef138e2dbff
MD5 0c85323ab76b9bb903f4530b70137077
BLAKE2b-256 0652d5ca04b577d98e2aa10c4f9967216843a98233ccb274e622ed5411cbc5d7

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyquafu-0.4.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5ea5d6f5a082b42e9d2c222af3d3c8b95c7739354ac69023289b044682f6737a
MD5 a6d75461e8018afe6e0588109fd3eb25
BLAKE2b-256 ba63b494346fb8d58a212de0e9d23b736cb33a26f73a742422ce13c71bc10a7d

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp38-cp38-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pyquafu-0.4.4-cp38-cp38-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3e6e8d29ef82982c7c9680fc671db8f6df095152368524322e1e08ee0af764d0
MD5 34de52c2e3d1754755c3990b93474ae5
BLAKE2b-256 6def50b1c0b7a655653fb713813bee5413ca01b6bb07d6d4c1c1dae1ea706ab2

See more details on using hashes here.

File details

Details for the file pyquafu-0.4.4-cp38-cp38-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pyquafu-0.4.4-cp38-cp38-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8f17f0a5a488daeaa3dc3504db3269be94949883cf60b1be485f2ea23f255492
MD5 db3cb4cb662dc0bff27bf2d2495bf14f
BLAKE2b-256 f8b98c4bcfea7eef1e4fcf7dddcdaf378b7434403ee69dcd71fd8214d0fa4e82

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page