Closed arcondello closed 1 year ago
In [1]: from dwave.gate import Qubit In [2]: q = Qubit("a") In [3]: str(q) Out[3]: '<qubit: a, id:q0px>'
note the spacing between qubit: a and id:q0px.
qubit: a
id:q0px
Also, because labels can be arbitrary hashables, you might consider using repr() for the label, to disambiguate between label=1 and label='1'
repr()
label=1
label='1'
note the spacing between
qubit: a
andid:q0px
.Also, because labels can be arbitrary hashables, you might consider using
repr()
for the label, to disambiguate betweenlabel=1
andlabel='1'