|
Ran
|
Jobs
1
|
Files
923
|
Run time
3min
|
Badge
README BADGES
|
push
github
Fix: `BasisTranslator` processing of nested `ControlFlowOp` (#15875) (#15884) * Fix: `BasisTranslator` processing of `ControlFlowOp` - Remove the bool output `is_updated` from `apply_translation` helper method in `BasisTranslator`. The removal of this argument ensures that when a translation is found it is always applied. The `is_modified` boolean output, while intended as a way of optimizing the operation of the `BasisTranslator` did not achieve much as a new `DAGCircuit would be created each time. During the `ControlFlowOp` handling step of this method we relied on `is_updated` to determine whether to use the original `DAGCircuit` or not, which in the end would erroneously skip certain transformations in the `Operation`'s blocks. By removing this tracking value, which was already ignored by the main `BasisTranslator` process. We end up with a more correct processing of the instructions at hand. - Update test `test_inner_wire_map_control_op` from the `TestCircuitControlFlowOps` as better outcome is now found for said circuit. * Test: Add test - Inspired on [comment](https://github.com/Qiskit/qiskit/issues/13162#issuecomment-2356920956) from @jakelishman. * Docs: Add release note * Address review comments: - Add new test using a backend and the full transpiler pipeline. - Add all issues to release note. - Small language fix. * Lint: formatting * Fix: Make new test use aer * Update releasenotes/notes/fix_basis_control_flow-033ecba233d5f9ed.yaml --------- (cherry picked from commit 9c8f4fc53) Co-authored-by: Raynel Sanchez <87539502+raynelfss@users.noreply.github.com> Co-authored-by: Julien Gacon <gaconju@gmail.com>
5 of 5 new or added lines in 1 file covered. (100.0%)
32 existing lines in 3 files now uncovered.103543 of 118664 relevant lines covered (87.26%)
999228.9 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 18 |
96.68 |
-0.95% | crates/qasm2/src/parse.rs |
| 8 |
74.06 |
-0.33% | crates/circuit/src/parameter/symbol_expr.rs |
| 6 |
91.52 |
-0.51% | crates/qasm2/src/lex.rs |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 23604665307.1 | 923 |
87.26 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|