Variational quantum algorithms for state preparation & matrix - - PowerPoint PPT Presentation

variational quantum algorithms for state preparation
SMART_READER_LITE
LIVE PREVIEW

Variational quantum algorithms for state preparation & matrix - - PowerPoint PPT Presentation

Variational quantum algorithms for state preparation & matrix decomposition Xin Wang Baidu Research PCL Innovation Salon 2020/07/31 Based on arXiv:2005.08797 and 2006.02336. Overview l Near-term Quantum Computing l Quantum Gibbs State


slide-1
SLIDE 1

PCL Innovation Salon 2020/07/31

Variational quantum algorithms for state preparation & matrix decomposition

Xin Wang Baidu Research

Based on arXiv:2005.08797 and 2006.02336.

slide-2
SLIDE 2

Overview

l Near-term Quantum Computing l Quantum Gibbs State Preparation l Quantum Singular Value Decomposition l Summary

slide-3
SLIDE 3

PA R T 0 1

Backgr ound

slide-4
SLIDE 4
  • Major academic and industry efforts are currently in progress to realize scalable

quantum hardware and develop powerful quantum software.

  • The quantity and quality of physical qubits are continuously increasing!
  • This is an exciting time for quantum computing!

Theoretical Study:

  • q. Information, q. algorithm,
  • q. complexity, q. crypto, ..

Physics Implementation: super-conducting, ion-trap, NV-center, sensing, ..

  • Killer quantum application/algorithms
  • Control & debugging of quantum devices
  • Resource-aware compilation
  • Quantum software (development kit)
  • …….

Backgr ound

slide-5
SLIDE 5

Existing quantum algorithms for classically hard problems

  • Linear systems of equations
  • Graph problems (shortest path, triangle

finding, etc.)

  • ……

图片:www.sciencenews.org,en.wikipedia.org

slide-6
SLIDE 6

Quantum Algorithm Near-term Quantum Applications

Towards Near-term Quantum Applications

Requirements Goals SDK

Universal QC NISQ, 50-200 noisy qubits killer apps executable killer apps Quantum simulator platform QML platform, etc.

There are still many challenges.

Techs

Algorithm design ML, optimization, etc.

slide-7
SLIDE 7

VQAs proposed for: ○ Quantum data compression ○ Quantum eigen-solver ○ Quantum metrology ○ Quantum error correction ○ Quantum state diagonalization ○ Quantum fidelity estimation ○ Quantum simulation ○ Solving linear systems of equations ○ … l A trend of near-term quantum algorithms is to employ the promising hybrid quantum-classical algorithms as machine learning models l Use parameterized circuits to search the Hilbert space and combine classical optimization methods to find optimal parameters. l Believed to be best hope for near-term quantum advantage l Few rigorous scaling results known for VQAs l Opportunities and challenges

Near-term quantum algorithms

Review: Benedetti et al. Parameterized quantum circuits as machine learning models.

  • S. McArdle, S. Endo, A. Aspuru-Guzik, S. C. Benjamin, and X. Yuan, Quantum computational chemistry, RMP 2020
  • Parameterized quantum circuit (PQC) ≈ Quantum neural network (QNN)
  • Hybrid quantum-classical algorithm ≈ Variational quantum algorithm (VQA)
slide-8
SLIDE 8

Variational quantum algorithms as ML models

slide-9
SLIDE 9

Variational quantum algorithms as ML models

  • Machine learning may help us better solve problems in quantum computation.
  • With QML development platforms, we could focus more on the study of near-

term quantum applications.

飞桨(PaddlePaddle) 中国首个开源开放、技术领先、 功能完备的产业级深度学习平台 Paddle Quantum(量桨) 是基于百度飞桨开发的量子 机器学习工具集

slide-10
SLIDE 10

PART 02

Quantum Gibbs State Preparation

Joint work with Youle Wang and Guangxi Li

arXiv:2005.08797

slide-11
SLIDE 11

What is quantum Gibbs state?

slide-12
SLIDE 12

Related work and our goal

l Existing methods

  • 1. Quantum rejection sampling. [ PW09, PRL; WKS16, QIC2016]
  • 2. Quantum walk. [YG12, PNAS]
  • 3. Dimension reduction. [BB10, PRL]
  • 4. Dynamic simulation. [KKR17, PRL, RGE12, PRL]

l Require the use of complex quantum subroutines such as quantum phase estimation, which are costly and hard to implement on near term quantum computers. l How to prepare Gibbs state on NISQ devices? l A feasible scheme is to employ variational quantum algorithms.

slide-13
SLIDE 13

Our Approach

Starting point: A key feature of the Gibbs state is that it minimizes the free energy

Minimize free energy (estimator) Find the optimal state

slide-14
SLIDE 14
  • Major obstacle for the free energy evaluation is von Neumann entropy estimation.
  • We truncate the von Neumann entropy.
  • Let H denote the Hamiltonian and β>0 be the inverse temperature, we define

Loss function

slide-15
SLIDE 15
  • In particular, we choose the 2-truncated free energy (convex) as the loss function and show that

both the loss function and their gradients can be evaluated on NISQ devices.

  • Analytical gradients
  • With analytical gradients, one could apply gradient-based methods to minimize the loss function.
  • Either gradient-based or gradient-free optimization methods.

2-truncated free energy

  • Gradients for VQA: Mitarai et al. arXiv:1803.00745, Schuld et al. arXiv:1811.11184,

Ostaszewski et al. arXiv:1905.09692, Li et al. arXiv:1608.00677

slide-16
SLIDE 16

Compute the loss function (gradients) via Swap test

Destructive Swap Test

  • does not need the ancillary qubit.
  • classical post-processing as a simple dot product with the

probability vector Swap Test: characterized by the probability of getting 0

[1] Y. Subasi, L. Cincio, and P. J. Coles, J. Phys. A Math. Theor. 52, 044001 (2019).

slide-17
SLIDE 17

Overview of this hybrid quantum-classical algorithm

slide-18
SLIDE 18

Ansatz for our numerics (Parameterized circuits)

Our ansatz Alternating Layered Ansatz Others…

slide-19
SLIDE 19

Ising chain model

  • Shallow parameterized circuits
  • Only one additional qubit in the ansatz
  • Prepare the Ising chain Gibbs states with a

fidelity higher than 95%.

slide-20
SLIDE 20

Findings for Ising chain model

slide-21
SLIDE 21

XY spin-1/2 chain model

  • Our second instance is the XY spin-1/2 chain of length L=5, with the Hamiltonian

and periodic boundary conditions.

  • 6-qubit parametrized circuit with one ancillary qubit, where the basic circuit module

(which contains a CNOT layer and a layer of single qubit Pauli-Y rotation operators) is repeated d times

slide-22
SLIDE 22

Summary for Gibbs state preparation

l We propose a variational quantum algorithm for quantum Gibbs state preparation. l We utilize the truncated free energy to evaluate the free energy. l We demonstrate our results by providing theoretical evidences and numerical experiments for Ising chain and spin chain Gibbs states.

slide-23
SLIDE 23

PART 03

Variational Quantum SVD

Joint work with Zhixin Song and Youle Wang

arXiv:2006.02336

slide-24
SLIDE 24

What is Singular Value Decomposition (SVD)?

slide-25
SLIDE 25

Example (Application in image compression)

2.5e+05 4.7e+03

Mathematical applications of the SVD

  • computing the pseudo inverse
  • matrix approximation
  • estimating the range and null space of a matrix.
  • SVD has also been successfully applied to many areas of science, engineering, and statistics, such

as signal processing, image processing, and recommender systems.

slide-26
SLIDE 26

Setup and motivation

l For a given n×n matrix M, there exists a decomposition of the form l Assumption on the input matrix as a linear combination of unitaries l Our goal is to design a quantum algorithm for SVD. l Motivations ○ Compression of quantum data ○ Analysis of quantum data (e.g., eigenvalues of Hamiltonians/quantum states) ○ Quantum linear system solver ○ Potential speed-up for SVD and many related applications

slide-27
SLIDE 27

Starting point: Variational principles of SVD

Ref on SVD:https://www.caam.rice.edu/~caam440/pca.pdf

  • A naïve approach is to design QNNs to learn each

singular value.

  • However, this is not efficient. Can we find a way to

learn U and V directly?

slide-28
SLIDE 28

Our solution

We introduce the following loss function

This loss function has several nice properties

  • Could find all the singular values and singular vectors via training
  • Theoretical guarantee of the ideally optimized solution
  • Could be computed on near-term quantum devices (Hadamard Test)
slide-29
SLIDE 29
  • Let's assume that are real numbers for simplicity.
  • We have

Theoretical reason for choosing

slide-30
SLIDE 30

Compute the loss function via Hadamard Test

[1] D. Aharonov, V. Jones, and Z. Landau, Algorithmica 55, 395(2009), arXiv:0511096 [quant-ph].

slide-31
SLIDE 31

Schematic diagram of VQSVD algorithm

slide-32
SLIDE 32

Optimization

  • Both gradient-based and gradient-free methods could be used to do the optimization.
  • We show that analytical gradients in our VQSVD could be estimated easily on near-term

devices by a “parameter shift rule” [1].

  • Compare to the finite difference method (FDM), we only need to rotate the angle once not twice.
  • Additionally, Harrow & Napp [2] find positive evidence that circuit learning using the analytical

gradient outperforms any FDM.

[1] https://arxiv.org/pdf/1811.11184.pdf [2] https://arxiv.org/pdf/1901.05374.pdf

slide-33
SLIDE 33

We use the following Hardware-efficient Ansatz [1] as our circuit model:

Numerical experiments

[1] https://arxiv.org/pdf/1704.05018.pdf

The above ansatz works well for problems with real numbers.

slide-34
SLIDE 34

SVD for random matrices

slide-35
SLIDE 35
  • Retrieve the mian information
  • Background noise

Toy example in image compression

slide-36
SLIDE 36

Summary of VQSVD and future directions

u A novel loss function to train the QNNs to learn the left and right singular vectors and output the target singular values. u Positive numerics for SVD of random matrices and image compression u Extensive applications in solving linear systems of equations. u How to load classical data into quantum devices efficiently? u How would quantum noise affect the performance of QML algorithms? u How to better train the QNNs and avoid barren plateaus issues? u More applications? u New QNN architectures?

slide-37
SLIDE 37

l Easy-to-build QNN l Fruitful tutorials

Easy to use l Support general circuit model l Hybrid quantum- classical algorithms Extensibility l Provide toolkits for quantum chemistry, QAOA l Self-innovate QML applications Featured toolkits

Features of Paddle Quantum

slide-38
SLIDE 38

Make QML Developemnt Easier!

slide-39
SLIDE 39

Welcome submissions to Quantum!

https://quantum-journal.org/

slide-40
SLIDE 40

Thanks!

Recruitment

Mathematics/ Computer Science / Quantum Physics Passion, persistence, and patience Opening positions: ○ Researchers ○ Interns ○ Visiting Scholars,"Polaris Program" (> 2 months). Contact quantum@baidu.com