-
Notifications
You must be signed in to change notification settings - Fork 61
Integrate Fermionic QAOA(FQAOA) Module and Associated Files into OpenQAOA #322
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
Closed
yoshioka1128
wants to merge
26
commits into
entropicalabs:dev
from
tech-sketch:yoshioka1128/dev_clean_fqaoa
Closed
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
f03eaf0
Add __init__.py files
yoshioka1128 43dbef9
Add fqaoa_workflow.py
yoshioka1128 6f046f4
Add fqaoa_utils.py
yoshioka1128 c62d3dc
Add test_fqaoa.py and ensure all tests pass
yoshioka1128 46af746
Add test_analytical_simulator.py and ensure all tests pass
yoshioka1128 8eebd64
Add test_workflows.py and ensure all tests pass
yoshioka1128 fe9eee4
new file: 16_FQAOA_examples.ipynb
yoshioka1128 ce64508
Add missing imports
yoshioka1128 31da142
Update documentation for FQAOA
yoshioka1128 ed49ccb
new file: 17_demonstration_of_quantum_annealing_with_FQAOA.ipynb
yoshioka1128 d3f08b1
Rename file: 17_demonstration_of_quantum_annealing_with_FQAOA.ipynb
yoshioka1128 6d2b9b5
Fix typos and minor issues based on review comments
yoshioka1128 2776652
Fix typos
yoshioka1128 a7e7c86
Enable prepend_state and update tests
yoshioka1128 5207488
Reduce complexity and reorganize notebook for better structure
yoshioka1128 9c607cc
Refine docstrings for improved clarity and accuracy
yoshioka1128 9a66642
Update notebook for consistency with website presentation
yoshioka1128 931ad4b
Unified numpy.ndarray references to np.ndarray in docstrings and corr…
yoshioka1128 2ad8d6b
refactor: remove redundant statevector variable and simplify code. pr…
yoshioka1128 db9001b
Switched from NumPy to SciPy for determinant calc
yoshioka1128 5428423
Renumber notebooks and made minor corrections to notebooks.
yoshioka1128 c19528b
feat: Add type hints and consistency check for statevector sizes
yoshioka1128 33e7290
deleted: source/notebooks
yoshioka1128 ac9ac27
Modify objective function to include risk factor
yoshioka1128 2603d99
Update tests to account for risk factor in objective function
yoshioka1128 3d6f495
Adjust Jupyter notebook to reflect changes in risk factor implementation
yoshioka1128 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| Fermionic QAOA functions | ||
| ======================== | ||
|
|
||
| A set of utility functions for FQAOA | ||
|
|
||
| .. automodule:: openqaoa.algorithms.fqaoa.fqaoa_utils | ||
| :members: | ||
| :undoc-members: | ||
| :inherited-members: | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
yoshioka1128 marked this conversation as resolved.
Show resolved
Hide resolved
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| from .algorithms import QAOA, RQAOA, QAOABenchmark | ||
| from .algorithms import QAOA, RQAOA, FQAOA, QAOABenchmark | ||
| from .problems import QUBO | ||
| from .backends import create_device |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| from .qaoa import QAOA, QAOAResult, QAOABenchmark | ||
| from .rqaoa import RQAOA, RQAOAResult | ||
| from .fqaoa import FQAOA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| from .fqaoa_workflow import FQAOA, FermiCircuitProperties, GivensRotationGateMap | ||
| from .fqaoa_utils import * |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.