Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crumble SWAPs don't show gate sensitivity correctly #778

Open
ghost opened this issue Jun 7, 2024 · 0 comments
Open

Crumble SWAPs don't show gate sensitivity correctly #778

ghost opened this issue Jun 7, 2024 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 7, 2024

For example:

https://algassert.com/crumble#circuit=Q(0,0)0;Q(0,1)1;Q(0,2)2;Q(0,3)3;R_0_1_2_3;MARKZ(0)0;MARKZ(1)2_3;TICK;TICK;SWAP_0_1_3_2;TICK;TICK;M_0_1_3_2;MARKZ(0)1;MARKZ(1)3_2

image

When a detecting region goes through a SWAP gate in both directions, it is shown to cancel out on the vertical bar of the gate

In a SWAP gate, this is mostly an incorrect interpretation; the channel in the middle of the swap gate supports 2 qubits of information rather than 1 qubit of information typically being moved vertically in 2Q gates (like CX or CZ), and so it is not the case that having Z sensitivity on both 'branches' of the swap gate cancels out the Z sensitivity in the middle of the gate

For SWAP and SWAP-like gates, the code coloring the vertical bars should follow more complex rules, and should color the bar if eg ZZ -> ZZ sensitivity through the gate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants