introduction.rst 3.7 KB
Newer Older
Q
Quleaf 已提交
1 2 3 4 5
.. _header-n0:

Paddle Quantum
=======================

Q
Quleaf 已提交
6
`Paddle Quantum <https://github.com/PaddlePaddle/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.
Q
Quleaf 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

.. figure:: https://release-data.cdn.bcebos.com/Paddle%20Quantum.png
   :target: https://github.com/PaddlePaddle/Quantum

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

.. _header-n6:

Features
--------

- Easy-to-use

Q
Quleaf 已提交
22
  - Many online learning resources (Nearly 50 tutorials)
Q
Quleaf 已提交
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
  - 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

.. _header-n15:

Install
--------

.. _header-n16:

Install PaddlePaddle
~~~~~~~~~~~~~~~~~~~~

Q
Quleaf 已提交
48
This dependency will be automatically satisfied when users install Paddle Quantum. Please refer to `PaddlePaddle <https://www.paddlepaddle.org.cn/install/quick>`__ Install and configuration page. This project requires PaddlePaddle 2.2.0 to 2.3.0.
Q
Quleaf 已提交
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64

.. _header-n19:

Install Paddle Quantum
~~~~~~~~~~~~~~~~~~~~~~~~~~

We recommend installing Paddle Quantum with ``pip`` ,

.. code:: shell

   pip install paddle-quantum

or download all the files and finish the installation locally,

.. code:: shell

Q
Quleaf 已提交
65
   git clone https://github.com/PaddlePaddle/quantum
Q
Quleaf 已提交
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117

.. code:: shell

   cd quantum
   pip install -e .

.. _header-n25:

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

.. code:: shell

   conda install psi4 -c psi4

For **Windows** user, the command is

.. code:: shell

   conda install psi4 -c psi4 -c conda-forge

**Note:** Please refer to `Psi4 <https://psicode.org/installs/v14/>`__\  for more download options.

.. _header-n29:

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.

.. code:: shell

   cd paddle_quantum/QAOA/example
   python main.py

..

.. note:: For the introduction of QAOA, please refer to our `QAOA tutorial </tutorials/combinatorial-optimization/quantum-approximate-optimization-algorithm.html>`__.

.. _header-n51:

Feedbacks
----------

Q
Quleaf 已提交
118
- Users are encouraged to report issues and submit suggestions on `GitHub Issues <https://github.com/PaddlePaddle/Quantum/issues>`__.
Q
Quleaf 已提交
119 120 121 122 123 124 125 126
- QQ group: 1076223166

.. _header-n118:

Copyright and License
---------------------

Paddle Quantum uses the `Apache-2.0 license <https://github.com/PaddlePaddle/Quantum/blob/master/LICENSE>`__ License.