tqec / tqec

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

Circuit visualizer #357

Open KabirDubey opened 1 month ago

KabirDubey commented 1 month ago

Describe the solution you'd like Add a feature to the repo that enables users to visualize the Stim circuits it produces.

Please feel free to discuss any further details here.

Additional context Add any other context or screenshots about the feature request here.

https://github.com/QCHackers/tqec/issues/325#issuecomment-2403521249

What would be nice is to be able to superimpose the "image" of a (grid of) logical qubit on the output of stim.Circuit.diagram to help understanding locating the qubits on the stim diagram and understanding their status. We can close this issue too and open a new one with a more detailed description of what would be interesting to have. I think that, on this particular issue, it would be nice to have feedback from everyone to know what would be the best visualisation for everyone.

https://github.com/QCHackers/tqec/issues/325#issuecomment-2405568874

+1 to this. Being able to step forward and backwards through the ticks of the circuit would be great. An alternative view where you just see the plaquettes and a number in each corner giving the time of interaction would also be very useful. A useful way to focus on just hook errors without numbers is to put a line inside the plaquette connecting the last 2 corners touched.

afowler commented 1 month ago

I also really liked Adrien's idea of just using Crumble to visualize the circuits since then you can also check detectors etc. Adding colored polygons to assist would be great.

On Sat, Oct 12, 2024, 12:50 AM Kabir Dubey @.***> wrote:

Describe the solution you'd like Add a feature to the repo that enables users to visualize the Stim circuits it produces.

Please feel free to discuss any further details here.

Additional context Add any other context or screenshots about the feature request here.

325 (comment)

https://github.com/QCHackers/tqec/issues/325#issuecomment-2403521249

What would be nice is to be able to superimpose the "image" of a (grid of) logical qubit on the output of stim.Circuit.diagram to help understanding locating the qubits on the stim diagram and understanding their status. We can close this issue too and open a new one with a more detailed description of what would be interesting to have. I think that, on this particular issue, it would be nice to have feedback from everyone to know what would be the best visualisation for everyone.

325 (comment)

https://github.com/QCHackers/tqec/issues/325#issuecomment-2405568874

+1 to this. Being able to step forward and backwards through the ticks of the circuit would be great. An alternative view where you just see the plaquettes and a number in each corner giving the time of interaction would also be very useful. A useful way to focus on just hook errors without numbers is to put a line inside the plaquette connecting the last 2 corners touched.

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