Closed antalszava closed 3 years ago
Merging #441 (5cec2ad) into master (0e06dc6) will increase coverage by
0.02%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #441 +/- ##
==========================================
+ Coverage 98.55% 98.57% +0.02%
==========================================
Files 77 77
Lines 8989 8999 +10
==========================================
+ Hits 8859 8871 +12
+ Misses 130 128 -2
Impacted Files | Coverage Δ | |
---|---|---|
strawberryfields/parameters.py | 100.00% <ø> (ø) |
|
strawberryfields/api/devicespec.py | 95.31% <100.00%> (ø) |
|
strawberryfields/backends/base.py | 89.16% <100.00%> (+0.09%) |
:arrow_up: |
...trawberryfields/backends/bosonicbackend/backend.py | 100.00% <100.00%> (ø) |
|
strawberryfields/backends/fockbackend/backend.py | 100.00% <100.00%> (ø) |
|
...rawberryfields/backends/gaussianbackend/backend.py | 98.46% <100.00%> (+0.01%) |
:arrow_up: |
strawberryfields/backends/states.py | 99.84% <100.00%> (ø) |
|
strawberryfields/backends/tfbackend/__init__.py | 73.33% <100.00%> (ø) |
|
strawberryfields/backends/tfbackend/backend.py | 100.00% <100.00%> (ø) |
|
strawberryfields/backends/tfbackend/circuit.py | 96.40% <100.00%> (+0.38%) |
:arrow_up: |
... and 4 more |
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 0e06dc6...5cec2ad. Read the comment docs.
Should this PR still be open @antalszava ?
As far as I know, it's still relevant. The last step here would be to resolve the conflicts and get it through the review round.
Hi @antalszava, @thisac, @josh146, I believe this is ready for a final review round before merging! 🔍
CodeFactor is showing a lot of issues that did not appear before I merged master
and solved the conflicts. Those warnings are either coming from master
(unlikely) or CodeFactor became more strict since the last @antalszava's commit (around March). Should I apply the suggested changes before merging?
Hi @sduquemesa, thank you! The parts of the code that Codefactor warns about were changed outside of this PR. We could override the check because resolving them is not within the scope of this PR.
Maybe it's best to apply the suggested changes in a separate PR.
@antalszava, thanks for your review! Any other suggestion before merge? 🚀
@sduquemesa this looks good to me, thank you so much for the updates! :1st_place_medal: :blush:
Thanks @antalszava, glad I can help! Will await for @josh146 or @thisac review and approval.
Context: The
Catstate
gate is the lastOperation
that accepts complex arguments upon being created. This change is related to PRs #378 #428 #439, where other gates were changed to take real arguments.Description of the Change:
Catstate
gate and thecat_state
function in theutils
package to take real arguments instead of complex ones._check_for_complex_args
and_create_ket
convenience methods to remove complexity from theCatstate._apply
method._check_for_complex_args
has been used for other gates too.Benefits: There are no gates remaining that take complex parameters.
Possible Drawbacks: The learning curve for users for picking up the new signature of
Catstate
.Related GitHub Issues: N/A
Linting locally seems to indicate that codefactor has a complaint due to other parts of the
ops.py
file: