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

Add support for a two-Qubit swap gate #47

Open
brunorijsman opened this issue Jan 16, 2023 · 1 comment
Open

Add support for a two-Qubit swap gate #47

brunorijsman opened this issue Jan 16, 2023 · 1 comment

Comments

@brunorijsman
Copy link

Add support for a two-Qubit swap gate (not to be confused with an entanglement swap)

The Qubit class defined in netqasm.sdk.qubit currently supports the CNOT and CZ two-qubit gates.

The SWAP two-qubit gate is not natively supported by NetQASM.

As a temporary work-around, we can construct a SWAP gate out of three CNOT gates as described here: https://algassert.com/post/1717

@aromanro
Copy link

'mov' is actually a swap, from looking over the code.

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

2 participants