Paddle Quantum
Paddle Quantum is the world’s first cloud-integrated quantum machine learning platform based on Baidu PaddlePaddle. It supports the building and training of quantum neural networks, making PaddlePaddle the first deep learning framework in China. Paddle Quantum is feature-rich and easy to use. It provides comprehensive API documentation and tutorials help users get started right away.
Paddle Quantum has established a bridge between artificial intelligence and quantum computing. Through the Baidu PaddlePaddle deep learning platform to empower quantum computing, Paddle Quantum provides a powerful tool for people in the quantum AI industry and a feasible learning path for quantum computing enthusiasts.
For more information about Paddle Quantum, please check the GitHub page: https://github.com/PaddlePaddle/Quantum
Features
Easy-to-use
Many online learning resources (Nearly 50 tutorials)
High efficiency in building QNN with various QNN templates
Automatic differentiation
Versatile
Multiple optimization tools and GPU mode
Simulation with 25+ qubits
Flexible noise models
Featured Toolkits
Toolboxes for Chemistry & Optimization
LOCCNet for distributed quantum information processing
Self-developed quantum machine learning algorithms
Install
Install PaddlePaddle
This dependency will be automatically satisfied when users install Paddle Quantum. Please refer to PaddlePaddle Install and configuration page. This project requires PaddlePaddle 2.2.0 to 2.3.0.
Install Paddle Quantum
We recommend installing Paddle Quantum with pip
,
pip install paddle-quantum
or download all the files and finish the installation locally,
git clone https://github.com/PaddlePaddle/quantum
cd quantum
pip install -e .
Environment setup for Quantum Chemistry module
Our qchem module is based on Psi4, so before executing quantum chemistry, we have to install this Python package.
Note
It is recommended that Psi4 is installed in a Python 3.8 environment.
We highly recommend you to install Psi4
via conda. MacOS/Linux user can use the command
conda install psi4 -c psi4
For Windows user, the command is
conda install psi4 -c psi4 -c conda-forge
Note: Please refer to Psi4 for more download options.
Run programs
Now, you can try to run a program to verify whether the Paddle Quantum has been installed successfully. Here we take quantum approximate optimization algorithm (QAOA) as an example.
cd paddle_quantum/QAOA/example
python main.py
Note
For the introduction of QAOA, please refer to our QAOA tutorial.
Feedbacks
Users are encouraged to report issues and submit suggestions on GitHub Issues.
QQ group: 1076223166
Copyright and License
Paddle Quantum uses the Apache-2.0 license License.