Skip to content

Add support for a two-Qubit swap gate #47

@brunorijsman

Description

@brunorijsman

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions