Skip to content

hsim13372/quantum_natural_gradient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accelerating VQEs with Quantum Natural Gradient

drawing

This project repo was created as part of the Quantum Open Source Foundation (QOSF) Mentorship Program.

Recently, several works, namely Stokes et al., have proposed and investigated the use of "quantum natural gradients" (QNG) to accelerate the optimization step of variational quantum algorithms.

To provide an in-depth and intuitive explanation of quantum natural gradients, we wrote the following blogposts:

  1. Rethinking Gradient Descent With Quantum Natural Gradient by Maggie Li

  2. Gradient Descent from the Ground Up by Lana Bozanic

In addition, we provide several tutorials in this repo for running and analyzing VQE calculations of small quantum systems using quantum natural gradient. We implemented the code in PennyLane and used routines from QuTiP for visualization.

Tutorials

We investigate the following systems:

  1. Single qubit rotations (where we can visualize the optimization paths on the Bloch sphere)
  2. H2 molecule. In this example, we construct the Hamiltonian using PennyLane's qchem module. We additionally provide a notebook that runs Yamamoto's simplified Hydrogen example.
  3. LiH molecule

and ran VQE calculations using "vanilla" gradient descent and gradient descent that uses quantum natural gradients for comparison. We provide several methods for visualizing the performance and optimization paths, and we empirically explore the robustness of QNG to parameter initialization here.

About

Quantum Natural Gradient for VQE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published