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

Added general-purpose VQE class/function #317

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

gavarela
Copy link

Think I should mention this is based on grove's pyQuil implementation of VQE:

https://github.com/rigetti/grove/blob/master/grove/pyvqe/vqe.py

Are there any licensing/copyrights issues?

@mstechly
Copy link

@gavarela Grove is distributed under Apache 2.0, same as ProjectQ, so there shouldn't be any problems with that. Though, as I understand it, it should be mentioned somewhere in the code that it's based on Grove's source code.

@fernandodelaiglesia
Copy link
Contributor

Dear all,

I was thinking in adding a general purpose QAOA as well, and looking at the VQE proposal I have some questions I would like to discuss with you all.

  • where should the functions be located? it seems that "examples" is not the more apropriate location. Somewhere as libs/ looks better, what do you think? any other place?
  • I see that there is a function "expectation" in the VQE porposal that can be leveraged by the QAOA or any other custom algorithm. IMHO it is worth to make a specific function/class out of it to be used in any other place (without the need to import the full VQE). Of course if you are using the simulator you can leverage the eng.backend.get_expectation_value function, but for a real device we could leverage a function like this.
  • following the documentation style, IMHO It would be great if you can add some "how to use" to the code to be included in the documentation
  • I realized that you already have a QAOA in your repo that could be added to the general purpose in addition to VQE

Please let me know what do you think

Thank you very much in advance
Be

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ Takishima
❌ gavarela
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants