dwavesystems / dwave-gate

dwave-gate is a software package for constructing, modifying and running quantum circuits on the provided state-vector simulator.
Apache License 2.0
12 stars 7 forks source link

Inconsistent spacing when printing qubits #17

Closed arcondello closed 1 year ago

arcondello commented 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.

Also, because labels can be arbitrary hashables, you might consider using repr() for the label, to disambiguate between label=1 and label='1'