Classiq / classiq-library

The Classiq Library is the largest collection of quantum algorithms and applications. It is the best way to explore quantum computing software. We welcome community contributions to our Library 🙌
https://platform.classiq.io
MIT License
341 stars 303 forks source link

Add an Hybrid HHL notebook #184

Open TomerGoldfriend opened 3 months ago

TomerGoldfriend commented 3 months ago

In this issue, we will create an implementation of a hybrid HHL algorithm, following the ideas that appeared in Ref. [1]. The algorithm is based on the basic HHL algorithm for solving a set of linear equation, where the eigenvalue inversion part is relaxed by feeding-forward eigenvalue approximation from a QPE routine. The algorithm consists of three parts: (1) QPE, (2) classical signal post-prosseing, and (3) matrix inversion (HHL) with known eigenvalues.

This tutorial should follow the structure of the Deutsch Jozsa algorithm implementation, and take into account the technical comments outlined below.

To complete this issue, follow these steps:

  1. Create a new jupyter notebook (.ipynb file). Use any jupyter editor (e.g. jupyter lab, google colab, etc).
  2. Use Classiq's SDK to create a simple implementation of the hybrid HHL approach, and showcase the results (see technical comments below). If you have any implementation questions or challenges, the Classiq team will assist you, either on Github or in our slack community.
  3. Create a short mathematical explanation of the work. Jupyter notebooks support markdown cells, which can contain LaTeX.
  4. Make sure the notebook looks well, does not have any typos / mistakes, and is running properly.
  5. Add the notebook to a new directory classiq-library/community/advanced_examples/hybrid_hhl/.
  6. Follow the contribution guidelines to open a pull request.

Technical comments:

If you have any questions or comments, you can ask them here in the issue, or in our slack community, and the Classiq team will be happy to assist.

Happy quantum coding!

References

[1]: Hybrid quantum linear equation algorithm and its experimental test on IBM Quantum Experience [2]: Hybrid HHL with Dynamic Quantum Circuits on Real Hardware