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

🐛 Long-range CNOTs are having problems #22

Open
aaronleesander opened this issue Mar 12, 2025 · 0 comments
Open

🐛 Long-range CNOTs are having problems #22

aaronleesander opened this issue Mar 12, 2025 · 0 comments

Comments

@aaronleesander
Copy link
Collaborator

Environment information

N/A

Description

Something is wrong with long-range CNOT's, likely based on the generator. It works for nearest-neighbor and other long-range gates like two-qubit rotations seem fine.

Expected behavior

Expected statevector:

[0.70710678+0.j, 0. +0.j, 0. +0.j,
0. +0.j, 0. +0.j, 0.70710678+0.j,
0. +0.j, 0. +0.j]]

Result:
[-5.00000000e-01+1.62588398e-17j -1.22519038e-16+5.00000000e-01j
-0.00000000e+00+0.00000000e+00j -0.00000000e+00+0.00000000e+00j
-9.47634627e-17-5.00000000e-01j -5.00000000e-01-4.40144154e-17j
0.00000000e+00+0.00000000e+00j 0.00000000e+00+0.00000000e+00j]

How to Reproduce

You can recreate this with a long-range Bell state
H [0]
CX [0, 2]

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

1 participant