Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a basic tutorial for running a VQE primitive with Classiq #34

Closed
EdenSchirmanClassiq opened this issue Apr 30, 2024 · 4 comments · Fixed by #129
Closed

Create a basic tutorial for running a VQE primitive with Classiq #34

EdenSchirmanClassiq opened this issue Apr 30, 2024 · 4 comments · Fixed by #129
Assignees
Labels
good first issue Good for newcomers quantum intermediate Requires some basic knowledge in quantum computing quantum machine learning Involves some aspects of quantum machine learning Unitary Hack

Comments

@EdenSchirmanClassiq
Copy link
Member

The variational quantum eigensolver (VQE) is arguably the most common variational quantum algorithm. As every other quantum algorithm, it can be done easily with Classiq. The goal of this issue is to demonstrate this.

You should create a Jupyter Notebook that implements the same basic VQE algorithm that is demonstrated in this video from the Classiq Bootcamp 2023. NOTE this video follows an old version of Classiq that is not supported anymore, but the idea behind it remains the same.

Concretely, your algorithm should find the minimal energy of the Hamiltonian Z+0.1X where Z and X are the Pauli operators, and the ansatz you should use is a simple RY gate.

You can use theexplanation about the Classiq primitives in the user guide for your help. In addition, feel free to use the Classiq Slack community for any question and help.

In order to complete the issue follow the contribution guidelines and enter your adapted notebook to the directory classiq-library/community/basic_examples/vqe.

Happy quantum coding!

@EdenSchirmanClassiq EdenSchirmanClassiq added good first issue Good for newcomers quantum intermediate Requires some basic knowledge in quantum computing quantum machine learning Involves some aspects of quantum machine learning labels Apr 30, 2024
@TannerTorrey3 TannerTorrey3 reopened this May 1, 2024
@18001-spec
Copy link

Hi, can this task be assigned to me ?

@shubhusion
Copy link

@TannerTorrey3 Documentation link mentioned is not working.

@AbdullahKazi500
Copy link
Contributor

AbdullahKazi500 commented Jun 2, 2024

closed the PR

@jyotiraj-code
Copy link
Contributor

Hi @EdenSchirmanClassiq ! I have released a PR #129 which solves this issue.

In this PR:

  • A detailed comprehensive tutorial has been created which uses the VQE primitive and its parameters to estimate the minimal energy of the Hamiltonian Z+0.1X where Z and X are the Pauli operators, and the ansatz used is a simple RY gate
  • Easy to understand mathematical background has been created to make the tutorial self sufficient
  • The results for the minimal Hamiltonian energy has been compared with the analytical result to draw the accuracy

All the required guidelines and already provided has been used to create the tutorial and it follows the structure of the other tutorials present in the basic_examples folder.

@Nadav138 Nadav138 linked a pull request Jun 4, 2024 that will close this issue
@Nadav138 Nadav138 removed a link to a pull request Jun 6, 2024
@Nadav138 Nadav138 linked a pull request Jun 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers quantum intermediate Requires some basic knowledge in quantum computing quantum machine learning Involves some aspects of quantum machine learning Unitary Hack
Projects
None yet
7 participants