|
Ran
|
Jobs
1
|
Files
867
|
Run time
2min
|
Badge
README BADGES
|
push
github
[Stretch] Support `Float` type in classical expressions. (#13832) * WIP * Add try_const to lift. * Try multiple singletons, new one for const. * Revert "Try multiple singletons, new one for const." This reverts commit e2b322125. * Remove Bool singleton test. * Add const handling for stores, fix test bugs. * Fix formatting. * Remove Duration and Stretch for now. * Cleanup, fix const bug in index. * Fix ordering issue for types with differing const-ness. Types that have some natural order no longer have an ordering when one of them is strictly greater but has an incompatible const-ness (i.e. when the greater type is const but the other type is not). * Fix QPY serialization. We need to reject types with const=True in QPY until it supports them. For now, I've also made the Index and shift operator constructors lift their RHS to the same const-ness as the target to make it less likely that existing users of expr run into issues when serializing to older QPY versions. * Make expr.Lift default to non-const. This is probably a better default in general, since we don't really have much use for const except for timing stuff. * Revert to old test_expr_constructors.py. * Make binary_logical lift independent again. Since we're going for using a Cast node when const-ness differs, this will be fine. * Update tests, handle a few edge cases. * Fix docstring. * Remove now redundant arg from tests. * Add const testing for ordering. * Add const tests for shifts. * Add release note. * Add const store tests. * Address lint, minor cleanup. * Add Float type to classical expressions. * Allow DANGEROUS conversion from Float to Bool. I wasn't going to have this, but since we have DANGEROUS Float => Int, and we have Int => Bool, I think this makes the most sense. * Test Float ordering. * Improve error messages for using Float with logical operators. * Float tests for constructors. * Add release note. * Reject con... (continued)
79 of 80 new or added lines in 12 files covered. (98.75%)
9 existing lines in 3 files now uncovered.76061 of 87475 relevant lines covered (86.95%)
332899.99 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
95.29 |
3.52% | qiskit/circuit/classical/expr/constructors.py |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
94.23 |
-0.23% | crates/qasm2/src/expr.rs |
| 2 |
86.64 |
0.38% | qiskit/qpy/binary_io/value.py |
| 6 |
91.48 |
-1.0% | crates/qasm2/src/lex.rs |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 13599804497.1 | 867 |
86.95 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|