Skip to content

✨ Implement HHL algorithm #582

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 13 commits into from
May 28, 2025
Merged

✨ Implement HHL algorithm #582

merged 13 commits into from
May 28, 2025

Conversation

nquetschlich
Copy link
Collaborator

@nquetschlich nquetschlich commented May 26, 2025

Quite some time ago, the HHL implementation based on qiskit.algorithms has been removed. Now, the time has come to re-add this benchmark.

In this current implementation, a simplified version is implemented that solves a specific linear equation system and the num_qubits scale the number of QPE qubits. This gives the advantages of getting a circuit that actually has the specified number of qubits in comparison to before.

However, while I think this implementation could and should be improved in the future, this might be a fair starting point.

This PR resolves #216.

@nquetschlich nquetschlich added the feature New feature or request label May 26, 2025
@github-project-automation github-project-automation bot moved this to In Progress in MQT Applications May 26, 2025
Copy link

codecov bot commented May 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@nquetschlich nquetschlich marked this pull request as ready for review May 27, 2025 15:33
@nquetschlich nquetschlich requested a review from burgholzer May 28, 2025 12:36
Copy link
Member

@burgholzer burgholzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is indeed a fairly limited application of HHL, but still a reasonable one.
In the very end, these circuits are not so different to the QPE circuits we have already. But it is still nice to see.

Random thought: at some point we should actually verify that all of the algorithms here (especially the ones we implement on our own) do the right thing. While not increasingly important from a compiler benchmarking perspective, this becomes increasingly relevant when these algorithms should actually be executed.

@nquetschlich nquetschlich enabled auto-merge (squash) May 28, 2025 14:08
…ple times

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Nils Quetschlich <[email protected]>
@nquetschlich nquetschlich merged commit 0cd19ca into main May 28, 2025
18 checks passed
@nquetschlich nquetschlich deleted the implement_hhl branch May 28, 2025 15:33
@github-project-automation github-project-automation bot moved this from In Progress to Done in MQT Applications May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-Implement HHL benchmark
2 participants