You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Often the last operation in a circuit is a measurement of all the qubits, and this takes up a lot of space in the drawing. I would like to add an option to omit final measurements from the drawing.
The text was updated successfully, but these errors were encountered:
The solution proposed in #4149 which would just align all final measurements would also be nice, that way it is compact but we can still see the measurements.
The solution proposed in #4149 which would just align all final measurements would also be nice, that way it is compact but we can still see the measurements.
since the first 2 measures are at the same depth, it seems reasonable to make these without the double vertical line as pictured in #4149. Having said that, why not make the third measure the same and remove all the double lines to the classical bits since the bit will be indicated either in the measure box or under it?
Taking this a step further,
qr = QuantumRegister(2)
cr = ClassicalRegister(3)
qc = QuantumCircuit(qr, cr)
with qc.if_test((cr, 2)):
qc.x(0)
with qc.if_test(expr.equal(cr, 2)):
qc.y(0)
qc.draw()
if we were to put c6 == 2 under the If in the first red box, there would be no need for the double vertical lines here either. Which brings up the ultimate point, since the old c_if is going away and the measures can be done as above, why not do away with the entire classical bit section of the drawers?
This would free up a lot of space both vertically and horizontially as we move to 100+ qubit drawings, and it should be workable for both the mpl and text drawers.
What should we add?
Often the last operation in a circuit is a measurement of all the qubits, and this takes up a lot of space in the drawing. I would like to add an option to omit final measurements from the drawing.
The text was updated successfully, but these errors were encountered: