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

Fix gaussian ops #531

Closed nquesada closed 3 years ago

nquesada commented 3 years ago

Previously the indices used internally in a number of functions in ops.py where generated as sets without necessarily being ordered. This PR turns those sets into lists and sorts them.

codecov[bot] commented 3 years ago

Codecov Report

Merging #531 (c8d1bc7) into master (98898e8) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #531   +/-   ##
=======================================
  Coverage   98.04%   98.04%           
=======================================
  Files          72       72           
  Lines        7534     7537    +3     
=======================================
+ Hits         7387     7390    +3     
  Misses        147      147           
Impacted Files Coverage Δ
strawberryfields/backends/gaussianbackend/ops.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 98898e8...c8d1bc7. Read the comment docs.