Browse Source

verify quantum docs

pull/103/head
kyang 4 years ago
parent
commit
2dacf4ec0a
2 changed files with 34 additions and 33 deletions
  1. +20
    -19
      design/meps/mep-quantum/MEP-QUANTUM.md
  2. +14
    -14
      working-groups/quantum/README.md

+ 20
- 19
design/meps/mep-quantum/MEP-QUANTUM.md View File

@@ -20,21 +20,23 @@

## Summary

Quantum computing is an important approach to improve the ability of information processing on Post-Moore era, and the quantum supremacy has been demonstrated in recent works[1, 2]. Quantum machine learning is a research areas that combine both quantum computing and classical machine learning, which demonstrates significant influence on healthcare, energy, new material, financial, logistics and transportation. The Quantum WG aims to develop a community collaboration for solving both classic and quantum problems with hybrid quantum-classical machine learning framework.
Quantum computing is a disruptive approach to go beyond the capability of classical computers in the Post-Moore era. In 2019, quantum computational supremacy was experimentally demonstrated[1], meaning that the existing quantum chips can be used to perform certern tasks much faster than all classical computers. The next step is to find practical applications for these quantum chips, where machine learning is a natural choice. In fact, quantum machine learning is a fast-growing research area combining both quantum computation and classical machine learning, which can potentially achieve breakthroughs for both fields of research. The Quantum WG aims to foster a community for solving both classical and quantum problems by a collaboration in building a software framework for quantum machine learning.

## Motivation

Thanks to quantum coherence, quantum superposition principle and quantum parallelism, quantum computers can exponentially accelerate the calculation for some specific problems. Commonly used quantum machine learning algorithms include HHL algorithm for solving linear equations [3], quantum principal component analysis (Q-PCA) [4], quantum support vector machine (Q-SVM) [5], quantum neural network (QNN) [6], etc. However, at the stage of NISQ ( Noisy Intermediate-Scale Quantum ) [7], the number of bits and operation accuracy of quantum computers are not enough to implement these algorithms. Through the variational quantum algorithm [8], QNN shows robustness to noise, which are expected to achieve quantum superiority in the NISQ stage. MindSpore is a powerful deep learning framework which can provides user-friendly API, operator fusion and auto-paralleling capabilities, supporting CPU, Ascend and GPU backend. We can combine classical machine learning with quantum algorithms to build a quantum-classical hybrid architecture, allowing users to build their own QNNs conveniently. In addition, we can also use MindSpore to solve quantum problems with classic machine learning algorithms such as quantum control.
Based on a variety of quantum properties, including coherence, superposition parallelism etc., quantum computers can achieve exponential speedups for many computational problems. In recent years, lots of important quantum-machine-learning algorithms have been invented, for example, HHL algorithm for solving linear equations [2], quantum principal component analysis (Q-PCA) [3], quantum support vector machine (Q-SVM) [4], quantum neural network (QNN) [5], etc. However, we are currently in the era of NISQ ( Noisy Intermediate-Scale Quantum ) [6], where the number of qubits and the accuracy of quantum gates are not good enough for implementing these quanutm algorithms. To overcome such challenge, we may consider the approach of variational quantum algorithm [7], which are expected to be capable of achieving quantum superiority in the NISQ stage.

MindSpore is a powerful deep learning framework which can provides user-friendly APIs, operator fusion and auto-paralleling capabilities, supporting CPU, Ascend and GPU backends. We can combine classical machine learning with quantum algorithms to build a quantum-classical hybrid architecture, allowing users to build their own QNNs conveniently. In addition, we can also use MindSpore to solve quantum problems with classic machine learning algorithms for the purpose of quantum control.

### Goals

The goals of this project are as follows:

- To design a user-friendly programming and API for the implementation of QNN.
- To design a user-friendly programming and API for the implementation of quantum neural network (QNN).

- To develop a high-performance system with large qubit quantum simulator operator to simulate the quantum circuit.
- To develop a high-performance quantum simulator that can support the simulation of quantum circuit wwith 50 or more qubits.

- To build a reinforcement learning framework to do quantum control.
- To build a reinforcement learning framework for optimizing quantum control.

### Non-Goals

@@ -42,19 +44,20 @@ The goals of this project are as follows:

## Proposal

To address the limitations of existing quantum machine learning framework, proposals and contributions on the following aspects are welcomed.
To address the limitations of existing quantum-machine-learning framework, proposals and contributions on the following aspects are welcome.

- **Friendly programming API.** The MindSpore quantum is supposed to compatible with MindSpore deep learning framework. The developers can naturally use the existing operators and optimizers in MindSpore to train hybrid quantum-classical neural network.
- **Friendly programming API.** The MindSpore quantum will be compatible with MindSpore's deep-learning framework. The developers can naturally use the existing operators and optimizers in MindSpore to train hybrid quantum-classical neural network.

- **Rich library of quantum models.** Based on the current quantum neural network framework, more quantum models are welcomed to developed, such as quantum convolutional neural network and quantum graph neural network.
- **Rich library of quantum models.** Based on the current quantum neural network framework, more quantum models will be developed, such as quantum convolutional neural network and quantum graph neural network.

- **High performance simulation backend.** With the increase of quantum qubits, the quantum state we need to handle increase exponentially, as well as the simulation process. To increase our simulation performance, more backends should be implemented, such as Ascend and GPU. Moreover, tensor network is also an approach to simulate quantum circuit with less time consuming.

### User Stories

Quantum neural network can be described by quantum circuit model. A quantum circuit is composed of quantum qubits, quantum gates and measurements. The quantum qubits are implemented by different quantum systems, such as Josephson junction, trapped ion, NV center, etc. For a $n$ qubits quantum system, the quantum state lives in a $2^n$ dimension Hilbert space. The quantum gate is quantum operator that acts on quantum qubits. Basically, there are two different kinds of quantum gates, non-parameterized gate and parameterized gate. The Pauli gate $X, Y, Z$, hadamard gate $H$ and CNot gate are commonly used non-parameterized gate. The parameterized gates are trainable gate in quantum circuit. Rotation-X gate $\text{Rx}(\theta)$ is one of them, for example, and we can adjust the rotation angle $\theta$ by the expectation value of measurements. The measurements applied on the end of quantum circuit will return the probability of the quantum state collapsed on certain bit strings.
Quantum neural network can be described by quantum circuit model. A quantum circuit is composed of quantum qubits, quantum gates and measurements. The quantum qubits are implemented by different quantum systems, such as Josephson junction, trapped ion, NV center, etc. For a quantum system with $n$ qubits, the quantum state vector is in a
$2^n$-by-$2^n$ dimension Hillbert space. Quantum gates are represented by quantum operators that act on these quantum qubits. There are two kinds of quantum gates, non-parameterized gate and parameterized gate. The Pauli gate $X, Y, Z$, hadamard gate $H$ and CNot gate are commonly used in the non-parameterized gate set. On the other hand, the parameterized gates are trainable in a quantum circuit. Rotation-X gate $\text{Rx}(\theta)$ is one of them, for example, and we can adjust the rotation angle $\theta$ by the expectation value of measurements. The measurements applied on the end of quantum circuit will return the probability of the quantum state collapsed on certain bit strings.

Figure 1[9] shows a basic structure of parameterized quantum circuit operator in MindSpore. Here we have 8 quantum qubits, and the measurement is applied on the first qubit. The whole quantum circuit is construct by a encoding circuit $U(\rho_{\text{in}})$, which will prepare the quantum system in certain initial state, and a ansatz circuit combined by CNOT gate and Rotation gate, with rotation angle can be trained by MindSpore.
Figure 1[8] shows a basic structure of parameterized quantum circuit operator in MindSpore. Here we have 8 quantum qubits, and the measurement is applied to the first qubit. The whole quantum circuit is construct by a encoding circuit $U(\rho_{\text{in}})$, which will prepare the quantum system in a certain initial state, and an ansatz circuit combined by CNOT gate and Rotation gate, with rotation angle can be trained by MindSpore.

<img src="./TT_QNN.png" style="zoom:30%" div align=center/>

@@ -66,18 +69,16 @@ By specially designing the QNN, one can feed data into this layer with the encod

[1] Arute F, Arya K, Babbush R, et al. Quantum supremacy using a programmable superconducting processor[J]. Nature, 2019, 574(7779): 505-510.

[2] Zhong H S, Wang H, Deng Y H, et al. Quantum computational advantage using photons[J]. Science, 2020, 370(6523): 1460-1463.

[3] Harrow A W, Hassidim A, Lloyd S. Quantum algorithm for linear systems of equations[J]. Physical review letters, 2009, 103(15): 150502.
[2] Harrow A W, Hassidim A, Lloyd S. Quantum algorithm for linear systems of equations[J]. Physical review letters, 2009, 103(15): 150502.

[4] Lloyd S, Mohseni M, Rebentrost P. Quantum principal component analysis[J]. Nature Physics, 2014, 10(9): 631-633.
[3] Lloyd S, Mohseni M, Rebentrost P. Quantum principal component analysis[J]. Nature Physics, 2014, 10(9): 631-633.

[5] Rebentrost P, Mohseni M, Lloyd S. Quantum support vector machine for big data classification[J]. Physical review letters, 2014, 113(13): 130503.
[4] Rebentrost P, Mohseni M, Lloyd S. Quantum support vector machine for big data classification[J]. Physical review letters, 2014, 113(13): 130503.

[6] Kak S C. Quantum neural computing[M]//Advances in imaging and electron physics. Elsevier, 1995, 94: 259-313.
[5] Kak S C. Quantum neural computing[M]//Advances in imaging and electron physics. Elsevier, 1995, 94: 259-313.

[7] Preskill J. Quantum Computing in the NISQ era and beyond[J]. Quantum, 2018, 2: 79.
[6] Preskill J. Quantum Computing in the NISQ era and beyond[J]. Quantum, 2018, 2: 79.

[8] Peruzzo A, McClean J, Shadbolt P, et al. A variational eigenvalue solver on a photonic quantum processor[J]. Nature communications, 2014, 5: 4213.
[7] Peruzzo A, McClean J, Shadbolt P, et al. A variational eigenvalue solver on a photonic quantum processor[J]. Nature communications, 2014, 5: 4213.

[9] Zhang K, Hsieh M H, Liu L, et al. Toward trainability of quantum neural networks[J]. arXiv preprint arXiv:2011.06258, 2020.
[8] Zhang K, Hsieh M H, Liu L, et al. Toward trainability of quantum neural networks[J]. arXiv preprint arXiv:2011.06258, 2020.

+ 14
- 14
working-groups/quantum/README.md View File

@@ -14,7 +14,7 @@

## Summary

Quantum computing is an important approach to improve the ability of information processing on Post-Moore era, and the quantum supremacy has been demonstrated in recent works[1, 2]. Quantum machine learning is a research areas that combine both quantum computing and classical machine learning, which demonstrates significant influence on healthcare, energy, new material, financial, logistics and transportation. The Quantum WG aims to develop a community collaboration for solving both classic and quantum problems with hybrid quantum-classical machine learning framework.
Quantum computing is a disruptive approach to go beyond the capability of classical computers in the Post-Moore era. In 2019, quantum computational supremacy was experimentally demonstrated[1], meaning that the existing quantum chips can be used to perform certern tasks much faster than all classical computers. The next step is to find practical applications for these quantum chips, where machine learning is a natural choice. In fact, quantum machine learning is a fast-growing research area combining both quantum computation and classical machine learning, which can potentially achieve breakthroughs for both fields of research. The Quantum WG aims to foster a community for solving both classical and quantum problems by a collaboration in building a software framework for quantum machine learning.

## WG Leads

@@ -22,17 +22,19 @@ YUNG MANHONG (SUSTech)

## Motivation

Thanks to quantum coherence, quantum superposition principle and quantum parallelism, quantum computers can exponentially accelerate the calculation for some specific problems. Commonly used quantum machine learning algorithms include HHL algorithm for solving linear equations [3], quantum principal component analysis (Q-PCA) [4], quantum support vector machine (Q-SVM) [5], quantum neural network (QNN) [6], etc. However, at the stage of NISQ ( Noisy Intermediate-Scale Quantum ) [7], the number of bits and operation accuracy of quantum computers are not enough to implement these algorithms. Through the variational quantum algorithm [8], QNN shows robustness to noise, which are expected to achieve quantum superiority in the NISQ stage. MindSpore is a powerful deep learning framework which can provides user-friendly API, operator fusion and auto-paralleling capabilities, supporting CPU, Ascend and GPU backend. We can combine classical machine learning with quantum algorithms to build a quantum-classical hybrid architecture, allowing users to build their own QNNs conveniently. In addition, we can also use MindSpore to solve quantum problems with classic machine learning algorithms such as quantum control.
Based on a variety of quantum properties, including coherence, superposition parallelism etc., quantum computers can achieve exponential speedups for many computational problems. In recent years, lots of important quantum-machine-learning algorithms have been invented, for example, HHL algorithm for solving linear equations [2], quantum principal component analysis (Q-PCA) [3], quantum support vector machine (Q-SVM) [4], quantum neural network (QNN) [5], etc. However, we are currently in the era of NISQ ( Noisy Intermediate-Scale Quantum ) [6], where the number of qubits and the accuracy of quantum gates are not good enough for implementing these quanutm algorithms. To overcome such challenge, we may consider the approach of variational quantum algorithm [7], which are expected to be capable of achieving quantum superiority in the NISQ stage.

MindSpore is a powerful deep learning framework which can provides user-friendly APIs, operator fusion and auto-paralleling capabilities, supporting CPU, Ascend and GPU backends. We can combine classical machine learning with quantum algorithms to build a quantum-classical hybrid architecture, allowing users to build their own QNNs conveniently. In addition, we can also use MindSpore to solve quantum problems with classic machine learning algorithms for the purpose of quantum control.

## Goals

The goals of the AI for Quantum Machine Learning WG are as follows:
The goals of this AI for Quantum Machine Learning WG are as follows:

- To design a user-friendly programming model and API for the implementation of quantum neural network.
- To design a user-friendly programming and API for the implementation of quantum neural network (QNN).

- To develop a high-performance system with large qubit quantum simulator operator to simulate the quantum circuit.
- To develop a high-performance quantum simulator that can support the simulation of quantum circuit wwith 50 or more qubits.

- To build a reinforcement learning framework to do quantum control.
- To build a reinforcement learning framework for optimizing quantum control.

## Method

@@ -48,16 +50,14 @@ The goals of the AI for Quantum Machine Learning WG are as follows:

[1] Arute F, Arya K, Babbush R, et al. Quantum supremacy using a programmable superconducting processor[J]. Nature, 2019, 574(7779): 505-510.

[2] Zhong H S, Wang H, Deng Y H, et al. Quantum computational advantage using photons[J]. Science, 2020, 370(6523): 1460-1463.

[3] Harrow A W, Hassidim A, Lloyd S. Quantum algorithm for linear systems of equations[J]. Physical review letters, 2009, 103(15): 150502.
[2] Harrow A W, Hassidim A, Lloyd S. Quantum algorithm for linear systems of equations[J]. Physical review letters, 2009, 103(15): 150502.

[4] Lloyd S, Mohseni M, Rebentrost P. Quantum principal component analysis[J]. Nature Physics, 2014, 10(9): 631-633.
[3] Lloyd S, Mohseni M, Rebentrost P. Quantum principal component analysis[J]. Nature Physics, 2014, 10(9): 631-633.

[5] Rebentrost P, Mohseni M, Lloyd S. Quantum support vector machine for big data classification[J]. Physical review letters, 2014, 113(13): 130503.
[4] Rebentrost P, Mohseni M, Lloyd S. Quantum support vector machine for big data classification[J]. Physical review letters, 2014, 113(13): 130503.

[6] Kak S C. Quantum neural computing[M]//Advances in imaging and electron physics. Elsevier, 1995, 94: 259-313.
[5] Kak S C. Quantum neural computing[M]//Advances in imaging and electron physics. Elsevier, 1995, 94: 259-313.

[7] Preskill J. Quantum Computing in the NISQ era and beyond[J]. Quantum, 2018, 2: 79.
[6] Preskill J. Quantum Computing in the NISQ era and beyond[J]. Quantum, 2018, 2: 79.

[8] Peruzzo A, McClean J, Shadbolt P, et al. A variational eigenvalue solver on a photonic quantum processor[J]. Nature communications, 2014, 5: 4213.
[7] Peruzzo A, McClean J, Shadbolt P, et al. A variational eigenvalue solver on a photonic quantum processor[J]. Nature communications, 2014, 5: 4213.

Loading…
Cancel
Save