QCHackers / tqec

Design automation software tools for Topological Quantum Error Correction
https://qchackers.github.io/tqec/
Apache License 2.0
60 stars 17 forks source link

Click-cycle to specify qubits #201

Closed nelimee closed 2 days ago

nelimee commented 6 months ago

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:

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

afowler commented 6 months ago

+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: @.***>

nelimee commented 2 days ago

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