-
Notifications
You must be signed in to change notification settings - Fork 33
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
🧹 Noise-Aware Simulator Cleanup #491
Conversation
# Conflicts: # include/dd/Package.hpp
…ator and also changing the interface
# Conflicts: # include/dd/Package.hpp
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #491 +/- ##
=======================================
- Coverage 91.2% 91.2% -0.1%
=======================================
Files 130 130
Lines 13709 13639 -70
Branches 2155 2144 -11
=======================================
- Hits 12509 12442 -67
+ Misses 1200 1197 -3
|
include/dd/Package.hpp
Outdated
measOp = makeDDNode(static_cast<dd::Qubit>(0), identityMatrix); | ||
} | ||
|
||
for (dd::Qubit p = 1; p < numberOfQubits; p++) { |
Check failure
Code scanning / CodeQL
Comparison of narrow type with wide type in loop condition
Hey 👋🏼 |
# Conflicts: # include/dd/NoiseFunctionality.hpp # include/dd/Package.hpp # test/dd/test_dd_noise_functionality.cpp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really good and makes the code quite a lot simpler. So, many thanks for that!
I just have a couple of very minor comments that should be pretty straight-forward to address. After that, this should be good to go!
Ah, and before I forget it: could you please add an appropriate PR description here so that one can roughly understand what has been changed in this PR? |
Note that the Python failures here are unrelated to your changes. They stem from the recent Qiskit update to 0.46.0. |
See #544. Once that is in, you should be able to merge that into your branch here and everything should be working again. |
Thanks! |
I believe the PR can now be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah 🎉 thanks for all the effort. This is really looking great now.
## Description This PR adjust the codebase to the latest changes from mqt-core (specifically cda-tum/mqt-core#491). Note that this merely applies the minimal changes necessary to run the project with the latest version. A proper cleanup of the noise-aware simulators is scheduled to arrive with #321. ## Checklist: <!--- This checklist serves as a reminder of a couple of things that ensure your pull request will be merged swiftly. --> - [x] The pull request only contains commits that are related to it. - [x] I have added appropriate tests and documentation. - [x] I have made sure that all CI jobs on GitHub pass. - [x] The pull request introduces no new warnings and follows the project's style guidelines. Signed-off-by: burgholzer <[email protected]>
Description
This PR relates to this PR in the Simulator.
More specifically the PR refactors some functionality related to noise-aware quantum circuit simulation, i.e.:
Checklist: