Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Hybrid QAOA #309

Open
wants to merge 65 commits into
base: feature/qaoa
Choose a base branch
from
Open

Conversation

dlasecki
Copy link

@dlasecki dlasecki commented Aug 8, 2020

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.

@guenp
Copy link
Contributor

guenp commented Aug 12, 2020

Thanks @dlasecki, who did you email?

@dlasecki
Copy link
Author

Thanks @dlasecki, who did you email?

Yourself but not directly. :)

Copy link
Contributor

@cgranade cgranade left a 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!

QAOA/src/Examples.cs Outdated Show resolved Hide resolved
QAOA/src/Jupyter/HybridQaoaMagic.cs Outdated Show resolved Hide resolved
Build/manifest.ps1 Outdated Show resolved Hide resolved
Build/manifest.ps1 Outdated Show resolved Hide resolved
QAOA/src/Jupyter/HybridQaoaMagic.cs Outdated Show resolved Hide resolved
QAOA/tests/JupyterTests/HybridQaoaRunMagicTests.cs Outdated Show resolved Hide resolved
QAOA/tests/HybridQaoaTests/ProblemInstanceTests.cs Outdated Show resolved Hide resolved
QAOA/src/Qaoa/EvolutionOperations.qs Show resolved Hide resolved
QAOA/src/Qaoa/EvolutionOperations.qs Outdated Show resolved Hide resolved
@cgranade cgranade changed the base branch from master to feature/qaoa September 1, 2020 19:56
@dlasecki
Copy link
Author

@guenp Was the document that I shared with you helpful?
In any case, I would be happy to join you all in a call to discuss the contribution, potential improvements or questions if you have any.

Regards,
Dariusz.

@guenp
Copy link
Contributor

guenp commented Nov 23, 2020

Thanks, @dlasecki for this contribution! Linking the original issue: #209

We are currently following up internally how to move forward with this PR. Thanks for your patience.

@dlasecki
Copy link
Author

Hi @guenp @cgranade,

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?

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

Successfully merging this pull request may close these issues.

None yet

3 participants