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
737 stars 187 forks source link

Raw results and metadata #663

Closed thisac closed 2 years ago

thisac commented 2 years ago

Context: There's no way to access non-samples results (i.e., metadata) in the Result class.

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues: None

codecov[bot] commented 2 years ago

Codecov Report

Merging #663 (13aade4) into master (e8c1403) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #663   +/-   ##
=======================================
  Coverage   98.28%   98.28%           
=======================================
  Files          72       72           
  Lines        8815     8824    +9     
=======================================
+ Hits         8664     8673    +9     
  Misses        151      151           
Impacted Files Coverage Δ
...trawberryfields/backends/bosonicbackend/backend.py 100.00% <100.00%> (ø)
strawberryfields/engine.py 95.91% <100.00%> (-0.02%) :arrow_down:
strawberryfields/ops.py 98.30% <100.00%> (ø)
strawberryfields/result.py 94.73% <100.00%> (+1.87%) :arrow_up:

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 e8c1403...13aade4. Read the comment docs.

heltluke commented 2 years ago

Gotta love f-strings :heart: