Scale QAOA in Fourier #27
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Until now we could not change the QAOA depth at runtime when using Fourier coefficients. This PR makes a small change to allow us to implement FOURIER[∞; 0] from the Zhou et al. PRX 10, 021067 (2020).
Details and comments
The depth of the Fourier function can now be set to
None. If it is set toNonethen the QAOA depth (previously fixed) is the same as the number of Fourier coefficients per beta or gamma. Therefore, this allows the recursion trainer to grow the QAOA depth with the number of Fourier coefficients that it is optimizing. Furthermore, since we can control the target depth of the Fourier coefficients of the recursion trainer through thetrain_kwargsXintrain.py, we can now set the QAOA depth at runtime when using train.Version updated
Please increment the
qaoa_training_pipeline_versionvariable and extend the main README.md.