tqec icon indicating copy to clipboard operation
tqec copied to clipboard

Click-cycle to specify qubits

Open nelimee opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. The current way of specifying the quantum circuit in the main frontend is to first click on all the ancillas, then click on all the qubits that should be touched by a CX gate, and then click on those that should be touched by a CZ gate. This has several drawbacks in my opinion:

  • it is not intuitive for me,
  • I do not see an intuitive enough way of correcting a potential miss-click from the user,

Describe the solution you'd like The way this step is addressed in frontend_v2/tutorial is better in my opinion. The user clicks on qubits, and each click on the qubit make it cycle through the "state" A -> X (-> Y) -> Z that represent the Pauli operator that should be measured on that qubit. The fact that the "state" is cycling makes correcting a miss-click super easy (3 clicks maximum) and quite intuitive (in my subjective opinion).

Describe alternatives you've considered None

Additional context None

nelimee avatar Mar 27 '24 17:03 nelimee

+1 for making this change

On Wed, Mar 27, 2024, 9:49 AM Adrien Suau @.***> wrote:

Is your feature request related to a problem? Please describe. The current way of specifying the quantum circuit in the main frontend is to first click on all the ancillas, then click on all the qubits that should be touched by a CX gate, and then click on those that should be touched by a CZ gate. This has several drawbacks in my opinion:

  • it is not intuitive for me,
  • I do not see an intuitive enough way of correcting a potential miss-click from the user,

Describe the solution you'd like The way this step is addressed in frontend_v2/tutorial is better in my opinion. The user clicks on qubits, and each click on the qubit make it cycle through the "state" A -> X (-> Y) -> Z that represent the Pauli operator that should be measured on that qubit. The fact that the "state" is cycling makes correcting a miss-click super easy (3 clicks maximum) and quite intuitive (in my subjective opinion).

Describe alternatives you've considered None

Additional context None

— Reply to this email directly, view it on GitHub https://github.com/QCHackers/tqec/issues/201, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKAXTFJ6T72WBKKGD4BZWLY2L2BRAVCNFSM6AAAAABFLLDN7CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTCNBSGE4DAMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

afowler avatar Mar 28 '24 18:03 afowler

This issue is not relevant anymore. Closing it. See #323 for more details.

nelimee avatar Oct 03 '24 06:10 nelimee