-
Notifications
You must be signed in to change notification settings - Fork 60
Add Harrow-Hassidim-Lloyd (HHL) algorithm #177
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7a4e12c
feat: add Harrow-Hassidim-Lloyd (HHL) algorithm
axif0 a314a20
Add cell IDs, clear execution counts, and update notebook format
axif0 f27a0d0
Merge branch 'main' of https://github.com/axif0/amazon-braket-algorit…
axif0 a8ca022
Refactor notebooks and scripts for improved readability and consistency.
axif0 f5adce4
refactor: remove `_compute_rotation_angles` from HHL implementation
axif0 d3f307a
Update test covarage
axif0 d8be0ee
refactor: Restructure HHL notebook for improved clarity, add circuit …
axif0 6493eec
remove temp files
axif0 ea04d6f
Merge branch 'main' into documentation
axif0 f1f7acd
Merge branch 'main' into documentation
axif0 3aa1870
add clarification on HHL algorithm speedup dependencies
axif0 ecbc1d3
Update HHL algorithm implementation, reflected in revised circuit met…
axif0 ae0eb1d
add qiskit-braket-provider to dependencies
yitchen-tim e9ee49f
feat: establish unit test package structure by adding `__init__.py` f…
axif0 caede50
Merge branch 'main' into documentation
sesmart 4a56503
Merge branch 'main' into documentation
speller26 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
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
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,5 @@ | ||
| from braket.experimental.algorithms.hhl.hhl import ( # noqa: F401,E501 | ||
| get_hhl_results, | ||
| hhl_circuit, | ||
| run_hhl, | ||
| ) |
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,7 @@ | ||
| The Harrow-Hassidim-Lloyd (HHL) algorithm is a quantum algorithm for solving systems of linear equations of the form Ax = b. Given an N×N Hermitian matrix A and a unit vector b, the algorithm produces a quantum state |x⟩ whose amplitudes encode the solution vector x = A⁻¹b. For sparse, well-conditioned matrices, HHL runs in O(log(N) κ²) time versus O(Nκ) classically, where κ is the condition number of A. However, the overall speedup depends on the efficiency of state preparation and readout, which can be problem-dependent. Applications include machine learning, computational finance, solving differential equations, and quantum chemistry. | ||
|
|
||
| <!-- | ||
| [metadata-name]: HHL Algorithm | ||
| [metadata-tags]: Advanced | ||
| [metadata-url]: https://github.com/amazon-braket/amazon-braket-algorithm-library/blob/main/src/braket/experimental/algorithms/hhl | ||
| --> |
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.