Quantum Leaf (量易伏) is a Cloud-Native quantum computing platform developed by the Institute for Quantum Computing, Baidu. It is used for programming, simulating and executing quantum computers, aiming at providing the quantum programming environment for Quantum infrastructure as a Service (QaaS).
QCompute is a Python-based open-source SDK. It provides a full-stack programming experience for advanced users via the features of hybrid quantum programming language and a high-performance simulator. Users can use the already-built objects and modules of quantum programming environment, pass parameters to build and execute the quantum circuits on the local simulator or the cloud simulator/hardware.
QCompute provides services for creating and analyzing quantum circuits, and calling quantum backend. The architecture of Quantum Leaf including QCompute is shown in the figure below.
In particular, cloud service requires login at Quantum-hub. The token, large-scale results and more information can be found from the website.
pip install qcompute
pip install -e .
Then, config the python interpreter to execute examples.
Please prepare Python environment and Pip tool. Be careful about different path separators on operating systems. At present, Python 3.6-3.8 versions are compatible.
cd QCompute python -m QCompute.Test.PostInstall.PostInstall
Please test on a local simulator first, and then fill in your token of Quantum-hub to test on a cloud simulator.
Institute for Quantum Computing, Baidu.
The changelog of this project can be found in CHANGELOG.md.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details