|
Ran
|
Jobs
1
|
Files
915
|
Run time
10min
|
Badge
README BADGES
|
push
github
Fix qpy serialization of substitution of type `ParameterExpression` (backport #13890) (#13943) * Fix qpy serialization of substitution of type `ParameterExpression` (#13890) * Fix qpy serialization of substitution of type ParameterExpression When substitution history `ParameterExpression._qpy_replay` is serialized, there was no branch for the case that the substituted value is of type `ParameterExpression`. This commit fixes this oversight. * Fix deserializing qpy written by previous writing fix * Added a branch for reading `ParameterExpression` in _qpy_replay * Added a missing argument (version) in an existing call in code path that was previously untested * Remove a bit of useless code introduced in last commit * run black * Add tests * Revert renaming extra_symbols to extra_expressions Reverting this to minimize changes in order to make the PR safer to backport. * Revert cleaning up logic in _encode_replay_subs This was a good change. But not necessary for the bug fix, which is the main point of this PR. * Add qpy compat test * Bind parameter when checking for equality * Run black after merge in browser --------- Co-authored-by: Luciano Bello <bel@zurich.ibm.com> (cherry picked from commit a6fa6f87d) # Conflicts: # test/qpy_compat/test_qpy.py * Update test_qpy.py * Update test/qpy_compat/test_qpy.py --------- Co-authored-by: John Lapeyre <jlapeyre@users.noreply.github.com> Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com> Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
4 of 4 new or added lines in 1 file covered. (100.0%)
14 existing lines in 2 files now uncovered.79395 of 89352 relevant lines covered (88.86%)
358700.03 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 6 |
97.62 |
0.92% | crates/qasm2/src/parse.rs |
| 8 |
91.73 |
-1.25% | crates/qasm2/src/lex.rs |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 13637037739.1 | 915 |
88.86 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|