-
Notifications
You must be signed in to change notification settings - Fork 2
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
More ansatzes and example scripts #82
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #82 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 13 16 +3
Lines 641 751 +110
==========================================
+ Hits 641 751 +110
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hi Zicheng, please remember to incorporate the acknowledgement in the future sphinx Doc as well. Thanks. |
Next: Write tests
Ansatz for paper 2 should be done, no need to keep the initial draft anymore
i.e. return a circuit with either a single or double excitation represented as a Givens rotation
`givens_excitation_circuit` and `double_excitation_gate`
TODO: Merge with UCC ansatz convenience function eventually...
Left with cleaning up and references
Nicer example almost done in Tutorial documentation
I was wondering if the students have their own GitHub accounts? If so, it would be nice to have them do a commit of some form here, and have ownership in the qibochem zenodo. |
I don't think they can commit directly into this repository - they need to be added to the qiboteam team right? |
Summary
This pull request aims to (eventually) implement two additional VQE circuit ansatzes for chemistry using Qibo.
In addition, sample scripts examining the use of the Parameter Shift Rule implemented in Qibo for chemistry applications with these ansatzes (Currently in:
psr_*.py
) will be added to the/examples
folder.Reference papers:
paper2.py
: https://doi.org/10.1038/s41534-019-0240-1paper3-*.py
: https://doi.org/10.22331/q-2022-06-20-742Task List:
/ansatz
Acknowledgements
The original drafts of these scripts, in the form of Jupyter notebooks, was prepared by Caleb Seow and Sng Yi Xin from Eunoia Junior College, and Conan Tan from National Junior College.
The students were attached to IHPC in December 2023 under the A*STAR Research Attachment Programme for Junior College students.
No paper1.py?
For the interested, there were supposed to be three ansatzes; one for each student.
The code for the last circuit ansatz, by Yordanov et al. (link here) wasn't finished within their attachment period, which is why there's no
paper1.py
here.