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 188 forks source link

Blackbird validation method #720

Closed thisac closed 2 years ago

thisac commented 2 years ago

Context: Validating a program is required both in Strawberry Fields and on the hardware side. Instead of duplicating the code, it's better to have a single function.

Description of the Change: A compiled Blackbird validation method is added, which can be used to validate Borealis circuit layouts and parameters.

Benefits:

Possible Drawbacks:

Related GitHub Issues:

codecov[bot] commented 2 years ago

Codecov Report

Merging #720 (b271b75) into master (2f451ab) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #720   +/-   ##
=======================================
  Coverage   98.30%   98.30%           
=======================================
  Files          78       78           
  Lines        9606     9614    +8     
=======================================
+ Hits         9443     9451    +8     
  Misses        163      163           
Impacted Files Coverage Δ
strawberryfields/program.py 98.37% <100.00%> (-0.09%) :arrow_down:
strawberryfields/program_utils.py 96.12% <100.00%> (+0.60%) :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 2f451ab...b271b75. Read the comment docs.