Tamil
மொழிகள்
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.swap

QuantumCircuit.swap(qubit1, qubit2)[source]

Apply SwapGate.

For the full matrix form of this gate, see the underlying gate documentation.

Parameters
Return type

InstructionSet

Returns

A handle to the instructions created.