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

Paper Implementation Challenge - An adaptive variational algorithm for exact molecular simulations on a quantum computer. #836

Open
gzemlevskiy17 opened this issue Mar 1, 2025 · 3 comments
Labels
Paper Implementation Project Implement a paper using Classiq

Comments

@gzemlevskiy17
Copy link

We (@gzemlevskiy17, @ethanpucylowski, @calebpucylowski, @Zeinork) aim to implement the ADAPT-VQE algorithm outlined in this paper. This work improves upon the VQE algorithm mainly by reducing the circuit depth, using fewer parameters, and returning a more accurate ground state electronic energy for a molecule (compared to the exact result).

The ADAPT-VQE algorithm accomplishes this by dynamically choosing and adding the operators used to construct the ansatz. This means that the ansatz is not constant like in vanilla VQE. This algorithm trades low shot count for reduced circuit depth, a tradeoff that the authors claim is beneficial because circuit depth determines whether an algorithm can run.

Approach

The algorithm will proceed as follows:

Step 1:

Define a Hamiltonian representing the electronic energy of the desired molecule.

Step 2:

Define an 'Operator Pool' of fermionic operators that could potentially be used to construct the ansatz.

Step 3:

Initialize qubits to an appropriate reference state (the HF state is recommended by the authors).
Initialize the ansatz to the identity operator.

Step 4:

Prepare the state initialized above on a quantum computer.

Step 6:

Measure the expectation value of the Hamiltonian to find the energy of the state.

Step 5:

Compute the gradient of each operator in the operator pool with respect to the current ansatz. This is done by measuring the commutator of the Hamiltonian with each gradient in the pool, and repeating that multiple times and averaging the result.

Step 6:

Add the operator with the largest gradient to the left of the ansatz, but exit if the norm of the gradient vector is smaller than a previously defined threshold. This operator is not removed from the operator pool.

Step 7:

Use a classical optimization algorithm to re-optimize the parameters, as in vanilla VQE, and go to Step 4.

Examples:

We will simulate the LiH and BeH_2 molecules, and possible the H_6 molecule, checking our results against those of the paper, as the authors also simulate those molecules.

@gzemlevskiy17 gzemlevskiy17 changed the title An adaptive variational algorithm for exact molecular simulations on a quantum computer. Paper Implementation Challenge - An adaptive variational algorithm for exact molecular simulations on a quantum computer. Mar 1, 2025
@gzemlevskiy17
Copy link
Author

gzemlevskiy17 commented Mar 1, 2025

The step labeled first "Step 6" (finding the energy of the state) is actually performed in Step 7, just before the re-optimization of the parameters. The 3rd member of our group is @CalebPuc.

@NadavClassiq NadavClassiq added the Paper Implementation Project Implement a paper using Classiq label Mar 2, 2025
@TomerGoldfriend
Copy link
Member

Thank you @gzemlevskiy17 , it seems like this issue has an overlap with this one. lf your implementation is similar, we will not be able to accept it.

@gzemlevskiy17
Copy link
Author

@TomerGoldfriend Can we still submit another proposal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Paper Implementation Project Implement a paper using Classiq
Projects
None yet
Development

No branches or pull requests

3 participants