bloqade.squin.stdlib.simple.gate.swap
← Module overview
function
source
functionswap¶source
bloqade.squin.stdlib.simple.gate.swap
def swap(qubit1: Qubit, qubit2: Qubit) -> NoneApply a SWAP gate to a pair of qubits, exchanging their states.
Parameters
| Name | Type | Description |
|---|---|---|
qubit1 | Qubit | First qubit. |
qubit2 | Qubit | Second qubit. |