Closed thisac closed 3 years ago
Merging #46 (170c2ad) into master (2104667) will increase coverage by
0.00%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #46 +/- ##
=======================================
Coverage 97.17% 97.18%
=======================================
Files 12 12
Lines 1914 1915 +1
=======================================
+ Hits 1860 1861 +1
Misses 54 54
Impacted Files | Coverage Δ | |
---|---|---|
blackbird_python/blackbird/listener.py | 99.59% <100.00%> (+<0.01%) |
: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 2104667...170c2ad. Read the comment docs.
This is part of an attempt to keep support for feed-forwarding when serializing and deserializing a Blackbird script. To be able to use a
RegRefTransform
type parameter as a symbolic expression in Strawberry Fields it needs to be accessible from theRegRefTransform
class.Below is an example that, when loaded as a Blackbird program and then transformed into an SF program, needs access to the
Xgate
andZgate
parameters symbolic expressions (instead of only as aRegRefTransform
).By allowing this, we can load a script with Blackbird and then transform it into a valid Strawberry Fields program that contains feedforwarding.
Note: currently, Strawberry Fields converts the
1.41421356237*q0
parameter into a string while creating the Blackbird program. This has to be updated to keep it as a symbolic expression instead.