Skip to content

Commit

Permalink
Fix open circles and visual circuit tests to .9999 (#10580) (#10609)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6a7d109)

Co-authored-by: Edwin Navarro <[email protected]>
  • Loading branch information
mergify[bot] and enavarro51 authored Aug 10, 2023
1 parent f3730bc commit 04def33
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 76 deletions.
6 changes: 5 additions & 1 deletion qiskit/visualization/circuit/matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,11 @@ def _condition(self, node, node_data, wire_map, cond_xy, glob_data):
label, val_bits = get_condition_label_val(condition, self._circuit, self._cregbundle)
cond_bit_reg = condition[0]
cond_bit_val = int(condition[1])
override_fc = cond_bit_val != 0
override_fc = (
cond_bit_val != 0
and self._cregbundle
and isinstance(cond_bit_reg, ClassicalRegister)
)

# In the first case, multiple bits are indicated on the drawing. In all
# other cases, only one bit is shown.
Expand Down
Loading

0 comments on commit 04def33

Please sign in to comment.