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
(cherry picked from commit 6a7d109)
  • Loading branch information
enavarro51 authored and mergify[bot] committed Aug 10, 2023
1 parent f3730bc commit 058ba09
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
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 058ba09

Please sign in to comment.