qiskit.circuit.QuantumCircuit.swap¶
- QuantumCircuit.swap(qubit1, qubit2)[source]¶
Apply
SwapGate
.For the full matrix form of this gate, see the underlying gate documentation.
- প্যারামিটার
qubit1 (
Union
[Qubit
,QuantumRegister
,int
,slice
,Sequence
[Union
[Qubit
,int
]]]) -- The qubits to apply the gate to.qubit2 (
Union
[Qubit
,QuantumRegister
,int
,slice
,Sequence
[Union
[Qubit
,int
]]]) -- The qubits to apply the gate to.
- রিটার্ন টাইপ
- রিটার্নস
A handle to the instructions created.