Closed isolatedinformation closed 2 years ago
So pytest did not pick this up as an error because the test classes were defined with the name GateTest
instead ofTestGate
https://stackoverflow.com/questions/34363388/pytest-no-tests-ran! Added fixes for the tests also
@gwwatkin @alexnguyenn The test actions for pytest did not run properly for this! I stopped it after it ran for 20 minutes
@isolatedinformation did you run pytest --update-snapshot
?
And yes we need to fix this, when certain long snapshots don't match it seems to hang, but that is the whole point of snapshot tests, they check for regressions.
@alexnguyenn can we set a timeout for a couple minutes?
yeah i did run to update the snapshot and tests ran locally, it just did not on the actions
@isolatedinformation I think you need to commit the changes to the snapshot files, I don't see any of them changed in the diff
Merging #273 (165561c) into dev (d59f447) will increase coverage by
0.08%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## dev #273 +/- ##
==========================================
+ Coverage 71.89% 71.98% +0.08%
==========================================
Files 31 31
Lines 2288 2288
==========================================
+ Hits 1645 1647 +2
+ Misses 643 641 -2
Impacted Files | Coverage Δ | |
---|---|---|
src/lsqecc/gates/gates.py | 100.00% <100.00%> (+4.08%) |
: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 d59f447...165561c. Read the comment docs.
Issue Description
For both
Fraction(1,2)
andFraction(1,4)
, theto_clifford_plus_t()
method decomposes theRZ
rotation to the S gate for both the fractions, instead of decomposing to the S and T gates respectively. This PR fixes this :)How to Reproduce
Code Snippet
Error Output
Corrected Output (in this pr)