Giter VIP home page Giter VIP logo

pyquafu's Introduction

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

Note that we visualize DAG(directed acyclic graph) through python package graphviz. And if you need it, make sure Graphviz software being installed on your system. Refer to graphviz · PyPI for installation guidance.

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 abess-team/abess#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.

pyquafu's People

Contributors

alndaly avatar beizhansl avatar chensgit169 avatar enchanted123 avatar lss0208 avatar lucky9-cyou avatar qtzhuang avatar scq-cloud avatar wanjiawang avatar yuchenssr avatar zhaoyilunnn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.