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

Adds bosoniccircuit.py and its tests #538

Closed elib20 closed 3 years ago

elib20 commented 3 years ago

Context: Adds core functions for the bosonic backend, and relevant tests

Description of the Change: The bosoniccircuit.py file contains the relevant functions for manipulating modes in the bosonic backend as a circuit is performed.

Benefits:

Possible Drawbacks:

Related GitHub Issues:

codecov[bot] commented 3 years ago

Codecov Report

Merging #538 (9576ee7) into master (b39add3) will increase coverage by 0.07%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #538      +/-   ##
==========================================
+ Coverage   98.04%   98.12%   +0.07%     
==========================================
  Files          72       73       +1     
  Lines        7537     7850     +313     
==========================================
+ Hits         7390     7703     +313     
  Misses        147      147              
Impacted Files Coverage Δ
...ryfields/backends/bosonicbackend/bosoniccircuit.py 100.00% <100.00%> (ø)

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 b39add3...9576ee7. Read the comment docs.