-
Notifications
You must be signed in to change notification settings - Fork 31
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
DDSIM version of Sampler primitive #300
Conversation
Modified error message Co-authored-by: Lukas Burgholzer <burgholzer@me.com>
Modified error message Co-authored-by: Lukas Burgholzer <burgholzer@me.com>
Co-authored-by: Lukas Burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
use `assign_parameters` instead of the soon-to-be-deprecated `bind_parameters`. Simplify input validation since many checks are already covered by the `assign_parameters` method in strict mode. Signed-off-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #300 +/- ##
=======================================
+ Coverage 92.5% 92.7% +0.1%
=======================================
Files 32 34 +2
Lines 2540 2586 +46
Branches 349 349
=======================================
+ Hits 2352 2398 +46
Misses 188 188
*This pull request uses carry forward flags. Click here to find out more.
|
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.
Many thanks again for the changes here. I believe this should be the last iteration before getting this merged.
Besides the inline comments: The docs site for the sampler is currently showing a warning for any circuit drawing. Could you please work around that by explicitly setting the drawing style as suggested by the warning? Please already use the newer style instead of the older fallback.
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.
Some final touches on typing details, then this is ready to go in 👍🏼
<!--pre-commit.ci start--> updates: - [github.com/pre-commit/mirrors-clang-format: v17.0.5 → v17.0.6](pre-commit/mirrors-clang-format@v17.0.5...v17.0.6) - [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.3](pre-commit/mirrors-prettier@v3.1.0...v4.0.0-alpha.3) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lukas Burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
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.
Alright. I made a couple of final changes and applied some finishing touches, but this is ready to go in now. Many thanks! 🎉
Creating a DDSIM version of one of the qiskit primitives, which is the "Sampler".
Code is inspired in the BackendSampler class from Qiskit https://qiskit.org/documentation/stubs/qiskit.primitives.BackendSampler.html, which in turn is a child class of the more general BaseSampler class https://qiskit.org/documentation/stubs/qiskit.primitives.BaseSampler.html .
This is the second step towards solving issue #295