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
We will eventually want support for visualising the new Store instruction and the data-flow of classical variables described in Qiskit/RFCs#50. This may prove tricky in the near term because Store will appear as a 0q/0c operation in general, which the drawers have no way of handling yet (they just don't appear).
The text-based expression writing being added in #10869 will likely automatically work, because the variables will have fixed names.
The text was updated successfully, but these errors were encountered:
Some thoughts on this. Currently there are two sections of wires in the displays, one for qubits and one for clbits/cregs. It would be fairly straightforward to add a third section for classical variables. Each variable would have a wire and measures could point to the variable into which the measure value is being loaded. Conditions containing variables would draw a line in the same form that one is drawn to a clbit or creg.
Having said that, the question comes up as to whether we are going to an expression-only condition in the future. If the old style condition is ultimately going away, along with the c_if, then there really is very little reason for the clbit/creg section or the variable section, since in some cases expressions cannot be fully shown with just open or closed circles on wires.
As quantum computers get larger, drawings will eventually get unmanageable in their current form. One option would be to eliminate the clbit/creg and the variable sections and rely on the expression displayed to show a condition. Measures would have to have something added to indicate what the target is, but this could be done by adding it into the measure box in the qubit section.
We will eventually want support for visualising the new
Store
instruction and the data-flow of classical variables described in Qiskit/RFCs#50. This may prove tricky in the near term becauseStore
will appear as a 0q/0c operation in general, which the drawers have no way of handling yet (they just don't appear).The text-based expression writing being added in #10869 will likely automatically work, because the variables will have fixed names.
The text was updated successfully, but these errors were encountered: