XanaduAI / QHack2021

Official repo for QHack—the quantum machine learning hackathon
https://qhack.ai
122 stars 94 forks source link

[ENTRY] Can Meta-VQE initialization beat Barren Plateaus? #56

Open nahumsa opened 3 years ago

nahumsa commented 3 years ago

Team Name:

(q)Mangue

Project Description:

One of the main problems on Quantum Neural Networks (QNN) is the problem of Barren Plateaus, that is as the system grows in size (more qubits) the gradient of the loss function becomes exponentially smaller, this leads to untrainable circuits. Barren Plateaus have various origins, for instance the ansatz expressiveness [4] or even the presence of noise [5].

It has been shown in [3] that a clever initialization of parameters can avoid barren plateaus, thus in this project I plan to analyze if the Meta-VQE [1] initialization can surpass the problem of barren plateaus. This project has two parts:

- The first step of the project was to implement the Meta-VQE for pennylane and apply for solving the XXZ Hamiltonian;
- The second part is to compare random initialization and Meta-VQE initialization.

[1] Cervera-Lierta, Alba, Jakob S. Kottmann, and Alán Aspuru-Guzik. "The meta-variational quantum eigensolver (meta-vqe): Learning energy profiles of parameterized hamiltonians for quantum simulation." arXiv preprint arXiv:2009.13545 (2020).

[2] Barren Plateaus Pennylane Demo

[3] Grant, Edward, et al. An initialization strategy for addressing barren plateaus in parametrized quantum circuits. arXiv preprint arXiv:1903.05076 (2019)

[4] Wang, Samson, et al. "Noise-induced barren plateaus in variational quantum algorithms." arXiv preprint arXiv:2007.14384 (2020).

[5] Holmes, Zoë, et al. "Connecting ansatz expressibility to gradient magnitudes and barren plateaus." arXiv preprint arXiv:2101.02138 (2021).

Presentation:

Jupyter Notebook

Source code:

https://github.com/nahumsa/qhack21

co9olguy commented 3 years ago

Thanks for the submission! We hope you have enjoyed participating in QHack :smiley:

We will be assessing the entries and contacting the winners separately. Winners will be publicly announced sometime in the next month.

We will also be freezing the GitHub repo as we sort through the submitted projects, so you will not be able to update this submission.