Skip to content

The variational quantum eigensolver (VQE) is generally used for finding the ground state energy of a given hamiltonian. To find the kth excited state energy of the hamiltonian we need to run the VQE optimization process at least k+1 times. Each time we also need to calculate the hamiltonian again, taking into account the state of the previous it…

License

Notifications You must be signed in to change notification settings

Jay-Patel-257/Qhack-2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weighted Subspace Search VQE to find Kth Excited state energies

Generally, The variational quantum eigensolver (VQE) is used for finding the ground state energy for a given hamiltonian. To find the kth excited state energy of for the hamiltonian we would need to run the VQE optimization process for atleast k+1 time. Not to mention each time we need to calculate the hamiltonian again taking into account the state of the previous iteration. Even after that the accuracy decreases as value of k increases.

This is where the idea of Subspace Search VQE (SSVQE) comes in. The algorithm is used to find kth excited state energy of a hamiltonian in just two subsequent optimization processes. The original research about the development of SSVQE is given in this paper. But, can we do better? Yes, the research shows that using the weights as hyperparameters we can find the kth excited state energy in just single optimization process. This is a more generalised version of SSVQE namely, Weighted SSVQE and it will be the center of our focus in this project. There are two variants of this algorithm:

  1. Weighted SSVQE to find kth excited state energy.

  2. Weighted SSVQE to find all energies upto kth excited state.

We simulated three different Hamiltonians of molecules like H2, LiH and CH3F using three algorithms that we implemented in this project. Yes, the third one is surprise for you so for more detalied info go check out SSVQE.ipynb

Results of Simulation:

The graphs are drawn for Iteration vs Energy.

H2:

H2_1H2_2H2_3

LiH:

LiH_1LiH_2LiH_2

CH3F:

CH3F_1CH3F_2CH3F_2

Requirements

Before you start with SSVQE.ipynb make sure to install the below requirements.
!pip install pennylane
!pip install pennylane-qchem

Presentation:

Link

Prepared by

Jay Patel (@Jay-Patel-257)
Siddharth Patel (@Siddharth1India)
Amit Hirpara (@HirparaAmit)

References

SSVQE.ipynb has been approved for pennylane community tutorials and can be found at Pennylane Community Tutorials.

About

The variational quantum eigensolver (VQE) is generally used for finding the ground state energy of a given hamiltonian. To find the kth excited state energy of the hamiltonian we need to run the VQE optimization process at least k+1 times. Each time we also need to calculate the hamiltonian again, taking into account the state of the previous it…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published