MrMustard icon indicating copy to clipboard operation
MrMustard copied to clipboard

Quadrature methods for circuit components and states

Open elib20 opened this issue 7 months ago • 1 comments

Context: We would like convenience methods for evaluating the quadrature basis representation of circuit components and states.

Description of the Change:

  • renames the quadrature method for circuit components to quadrature_triple
  • adds a new quadrature method for circuit components with 1 or 2 wires to evaluate the quadrature basis function over an array of points. This works for Bargmann and Fock representations, batched or unbatched.
  • adds a new 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:

  • Convenient methods for users
  • Quadrature methods now work for Fock representation

Possible Drawbacks:

  • Only 1 and 2 wire objects for now

Related GitHub Issues:

elib20 avatar Jul 24 '24 19:07 elib20