Skip to main content

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


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.3.6-cp311-cp311-win_amd64.whl (196.9 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

pyquafu-0.3.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (307.6 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pyquafu-0.3.6-cp311-cp311-macosx_11_0_arm64.whl (170.9 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

pyquafu-0.3.6-cp311-cp311-macosx_10_9_x86_64.whl (181.2 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

pyquafu-0.3.6-cp310-cp310-win_amd64.whl (196.9 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

pyquafu-0.3.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (307.7 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyquafu-0.3.6-cp310-cp310-macosx_11_0_arm64.whl (170.9 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pyquafu-0.3.6-cp310-cp310-macosx_10_9_x86_64.whl (181.2 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

pyquafu-0.3.6-cp39-cp39-win_amd64.whl (196.7 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

pyquafu-0.3.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (307.7 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyquafu-0.3.6-cp39-cp39-macosx_11_0_arm64.whl (171.0 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pyquafu-0.3.6-cp39-cp39-macosx_10_9_x86_64.whl (181.3 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

pyquafu-0.3.6-cp38-cp38-win_amd64.whl (196.6 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

pyquafu-0.3.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (307.5 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyquafu-0.3.6-cp38-cp38-macosx_11_0_arm64.whl (170.8 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

pyquafu-0.3.6-cp38-cp38-macosx_10_9_x86_64.whl (181.1 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

Supported by

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