|
Ran
|
Jobs
1
|
Files
950
|
Run time
2min
|
Badge
README BADGES
|
github
Fix `sx` resynthesis of negative angles in `CommutativeCancellation` (#16599) * Fix `sx` resynthesis of negative angles in `CommutativeCancellation` `%` maintains the sign of the left operand, so `0..(num_sx as i64 % 4)` is an empty iterator for non-positive `num_sx`. If the calculated rotation angle was negative (such as from a chain of `sxdg`), non-identity, and we go down the `sx`-like synthesis path, we would miscompile. This is a minimal fix to be backport stable, rather than a greater reworking. Introduced in 91081cc6d3: Add additional Z and X rotation gate handling to CommutativeCancellation (#16191) * Use `ddt` test parametrisaion (cherry picked from commit 33d90a986)
1 of 1 new or added line in 1 file covered. (100.0%)
18 existing lines in 3 files now uncovered.112780 of 128695 relevant lines covered (87.63%)
999387.94 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 12 |
97.15 |
0.0% | crates/qasm2/src/parse.rs |
| 5 |
92.29 |
0.0% | crates/qasm2/src/lex.rs |
| 1 |
93.88 |
-0.24% | crates/qasm2/src/expr.rs |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 29733301808.1 | 950 |
87.63 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|