Commit 29aa2bd
* Propagate `DAGCircuit.name` in `ApplyLayout`
This has always been absent, but `transpile` masked the problem by
assigning the output circuit names by overwriting the `output_names`
input kwarg if it wasn't set. `generate_preset_pass_manager` didn't
have the same logic, so it was observable that `ApplyLayout` didn't
propagate the name.
We could have added similar name-propagation logic to
`generate_preset_pass_manager`, but really the bug is in `ApplyLayout`;
passes _should_ propagate the metadata.
* Fix typo
Co-authored-by: John Lapeyre <[email protected]>
* Remove redunant set
---------
Co-authored-by: John Lapeyre <[email protected]>
1 parent 8e6200a commit 29aa2bd
File tree
4 files changed
+51
-3
lines changed- qiskit/transpiler/passes/layout
- releasenotes/notes
- test/python
- compiler
- transpiler
4 files changed
+51
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
1647 | 1649 | | |
1648 | 1650 | | |
1649 | 1651 | | |
1650 | | - | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
1651 | 1655 | | |
1652 | 1656 | | |
1653 | 1657 | | |
| |||
1679 | 1683 | | |
1680 | 1684 | | |
1681 | 1685 | | |
1682 | | - | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
1683 | 1702 | | |
1684 | 1703 | | |
1685 | 1704 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
1499 | 1499 | | |
1500 | 1500 | | |
1501 | 1501 | | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
1502 | 1524 | | |
1503 | 1525 | | |
1504 | 1526 | | |
| |||
0 commit comments