Skip to content

Commit

Permalink
Fix open circles and visual circuit tests to .9999 (#10580)
Browse files Browse the repository at this point in the history
  • Loading branch information
enavarro51 committed Aug 10, 2023
1 parent 77801c8 commit 6a7d109
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

0 comments on commit 6a7d109

Please sign in to comment.