Closed elib20 closed 2 months ago
Attention: Patch coverage is 98.41270%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 89.52%. Comparing base (
92e42e3
) to head (bc4c44c
). Report is 1 commits behind head on develop.
Files with missing lines | Patch % | Lines |
---|---|---|
mrmustard/lab_dev/circuit_components.py | 95.45% | 1 Missing :warning: |
Maybe it's late for this suggestions, but wouldn't it be sufficient to apply BtoQ
on all wires and return the ansatz? Then the ansatz itself can be called independently.
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: