|
Ran
|
Jobs
1
|
Files
956
|
Run time
3min
|
Badge
README BADGES
|
push
github
Revert "QPY 18: give Duration and Big integers their own type keys (#16802)" (#16821) In the recently merged #16802 the QPY format was updated to add new type keys for fields in QPY. The intent was that there was some potential key character overlap between various parts and by creating distinct values between them. However, this was misreading how the QPY should be used. The type keys in QPY are a common design pattern used in several places in the format, but were never intended to be in a shared namespace; the keys were supposed to be used for type discrimination in the local evaluation of different instructions. The tension cauing the desire for this was the Rust implementation of QPY attempting to globally define all the type keys in a shared enum which is at odds with the intent of the format specification. The change made in #16802 attempting to update the format makes it more confused and adds a lot of extra complexity to the format. Instead this situation should be addressed by updating the rust QPY implementation to move away from the global type key enum and split out the typing to be scoped to the context they're being used (i.e. interpret the duration only when evaluating a delay instruction). This reverts commit 5cdc8cb99.
8 of 29 new or added lines in 2 files covered. (27.59%)
31 existing lines in 4 files now uncovered.114141 of 130093 relevant lines covered (87.74%)
991518.35 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 13 |
73.54 |
-4.65% | crates/qpy/src/value.rs |
| 8 |
74.55 |
-0.11% | crates/qpy/src/circuit_reader.rs |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 12 |
96.21 |
-0.95% | crates/qasm2/src/parse.rs |
| 10 |
73.54 |
-4.65% | crates/qpy/src/value.rs |
| 7 |
91.0 |
-1.29% | crates/qasm2/src/lex.rs |
| 2 |
78.27 |
0.08% | crates/circuit/src/parameter/symbol_expr.rs |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 32822278047.1 | 956 |
87.74 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|