-
Notifications
You must be signed in to change notification settings - Fork 179
Hybrid QAOA #309
base: feature/qaoa
Are you sure you want to change the base?
Hybrid QAOA #309
Conversation
Sync with master
Thanks @dlasecki, who did you email? |
Yourself but not directly. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your patience as I complete my second round; I think it's a lot closer in its current state, so thank you for all of your changes! If there's anything I can do to help expand on or clarify comments, please let me know. Thank you so much!
@guenp Was the document that I shared with you helpful? Regards, |
I wanted to follow up on this PR and your internal discussions. Shall we discuss the big picture of how such optimization algorithms might be provided in Q# and possibly adjust/improve/extend this contribution to fit this vision or shall we think about delivering it to examples? |
This PR adds a library with the Quantum Approximate Optimization Algorithm (QAOA) written in Q#. It supports problems that can be encoded into 1-local and/or 2-local Hamiltonians. Additionally, it offers a hybrid QAOA algorithm in Q# and C# that uses a gradient-free Cobyla optimizer to choose optimal parameters for the QAOA in the form of a feedback loop. The hybrid QAOA supports interoperability with Python by a magic command. Values of parameters during the execution of the hybrid QAOA can be logged into a file.