XanaduAI / strawberryfields

Strawberry Fields is a full-stack Python library for designing, simulating, and optimizing continuous variable (CV) quantum optical circuits.
https://strawberryfields.ai
Apache License 2.0
754 stars 191 forks source link

Engine overhaul for the bosonic backend #501

Closed ilan-tz closed 3 years ago

ilan-tz commented 3 years ago

Add BosonicEngine (and get LocalEngine to call it when user specifies the bosonic backend) so that we can instantiate a BosonicModes circuit with weights, means, and covs that match the parameters that the user supplies into the preparation classes. The BosonicEngine will feed the program into BosonicBackend so that the backend can initialize the circuit directly and then apply the program to it.

codecov[bot] commented 3 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (gkps@43e45c7). Click here to learn what that means. The diff coverage is n/a.

@@           Coverage Diff           @@
##             gkps     #501   +/-   ##
=======================================
  Coverage        ?   91.09%           
=======================================
  Files           ?       75           
  Lines           ?     8020           
  Branches        ?        0           
=======================================
  Hits            ?     7306           
  Misses          ?      714           
  Partials        ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 43e45c7...b299e65. Read the comment docs.