-
Notifications
You must be signed in to change notification settings - Fork 25
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
Quadrature methods for circuit components and states #443
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #443 +/- ##
===========================================
+ Coverage 89.47% 89.52% +0.04%
===========================================
Files 102 102
Lines 7365 7408 +43
===========================================
+ Hits 6590 6632 +42
- Misses 775 776 +1
Continue to review full report in Codecov by Sentry.
|
Maybe it's late for this suggestions, but wouldn't it be sufficient to apply |
I approved it, but make sure those indices are in the right order |
Context: We would like convenience methods for evaluating the quadrature basis representation of circuit components and states.
Description of the Change:
quadrature
method for circuit components toquadrature_triple
to_quadrature
method to convert to the quadrature representation from Bargmannquadrature
method for circuit components to evaluate the quadrature basis function over an array of points. This works for Bargmann and Fock representations, batched or unbatched.quadrature_distribution
method for Ket and DM to evaluate the quadrature basis probability distribution over an array of points. This works for Bargmann and Fock representations, batched or unbatched.Benefits:
Possible Drawbacks:
None
Related GitHub Issues: