-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with ControlFlowOp displays (#10842)
* Fix override bug and testing * Preliminary changes * First attempts * Work on x_index * Early testing * Cleanup getattr * Complete adding exprs * First fix for cregbundle control flow * Finish basic cregbundle mods * Finish all cregbundle except wire_map bug * Move carg check to circuit_vis and change text tests to circuit_drawer * Move mpl tests to use circuit_drawer and update images for cregbundle changes * Change mpl tests to circuit_drawer * Fix flow_wire_map and tranpile bug * Final cleanup * Missing outputs on mpl tests * Fix output * Restore tests and move carg check to text and mpl and make circuit * Prepare final cregbundle fix * Update ref images * Fixing refs * Update refs again * Final mods * Incorporate mtreinish changes * Add reno * Fix if_else_op test * Lint * Fix target == expr bug in text * Review fixes and outer_circuit, wire_map fixes * Remove png * Minor changes * Fix for_loop measure placement bug --------- Co-authored-by: Jake Lishman <jake.lishman@ibm.com> (cherry picked from commit 404df43) # Conflicts: # qiskit/visualization/circuit/text.py # test/python/visualization/test_circuit_text_drawer.py # test/visual/mpl/circuit/test_circuit_matplotlib_drawer.py
- Loading branch information
1 parent
8d3fd88
commit 60f1ab1
Showing
10 changed files
with
845 additions
and
108 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
releasenotes/notes/fix-flow-cregbundle-transpiled-482979d57382b1dc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed an issue with the matplotlib based visualization in the | ||
:meth:`.QuantumCircuit.draw` method and the :func:`~.circuit_drawer` | ||
function when visualizing circuits that had control flow instructions. | ||
Previously in some situations, especially with a layout set, the output | ||
visualization could have put gates inside a control flow block on the | ||
wrong wires in the visualization. | ||
Fixed `#10601 <https://github.com/Qiskit/qiskit-terra/issues/10601>`__ | ||
- | | ||
Fixed an issue with the matplotlib based visualization in the | ||
:meth:`.QuantumCircuit.draw` method and the :func:`~.circuit_drawer` | ||
function when visualizing circuits that had control flow instructions. | ||
Previously when the `cregbundle` option was set to None or True, the | ||
drawer did not properly display the `cregs` as bundled. |
Oops, something went wrong.