Skip to content

Commit 6a7d109

Browse files
authored
Fix open circles and visual circuit tests to .9999 (Qiskit#10580)
1 parent 77801c8 commit 6a7d109

2 files changed

Lines changed: 80 additions & 76 deletions

File tree

qiskit/visualization/circuit/matplotlib.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,11 @@ def _condition(self, node, node_data, wire_map, cond_xy, glob_data):
11321132
label, val_bits = get_condition_label_val(condition, self._circuit, self._cregbundle)
11331133
cond_bit_reg = condition[0]
11341134
cond_bit_val = int(condition[1])
1135-
override_fc = cond_bit_val != 0
1135+
override_fc = (
1136+
cond_bit_val != 0
1137+
and self._cregbundle
1138+
and isinstance(cond_bit_reg, ClassicalRegister)
1139+
)
11361140

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

0 commit comments

Comments
 (0)