Skip to content

Commit

Permalink
fix access on arg_label in the circuit (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
christian512 committed Aug 19, 2022
1 parent 98562f1 commit 5ee1f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qutip_qip/circuit/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1209,5 +1209,5 @@ def _to_qasm(self, qasm_out):
def _gate_label(gate):
gate_label = gate.latex_str
if gate.arg_label is not None:
return r"%s(%s)" % (gate_label, arg_label)
return r"%s(%s)" % (gate_label, gate.arg_label)
return r"%s" % gate_label

0 comments on commit 5ee1f24

Please sign in to comment.