Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions qiskit/visualization/circuit/circuit_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ def check_clbit_in_inst(circuit, cregbundle):
if check_clbit_in_inst(block, cregbundle) is False:
return False
elif inst.clbits and not isinstance(inst.operation, Measure):
if cregbundle is None:
return False
if cregbundle is not False:
warn(
"Cregbundle set to False since an instruction needs to refer"
Expand Down