Circuit drawers fail with bits as conditions #7284
Labels
bug
Something isn't working
help wanted
community contributions welcome. For filters like http://github-help-wanted.com/
Environment
What is happening?
The method
_get_layered_instructions
inqiskit.visualization.utils.py
makes the assumption when placing gates into layers for display that all conditions and all measures are on registers only. Using bits will crash all 3 drawers as shown in the circuit below.How can we reproduce the issue?
The following circuit
Fails with,
Other errors occur with differing circuits.
What should happen?
Code shouldn't crash.
Any suggestions?
This will require a fairly complete rewrite of the layering code for the drawers to account for both registers and bits being conditions and measure targets.
The text was updated successfully, but these errors were encountered: