supergrad.utils.gates.swap# supergrad.utils.gates.swap(n=None, targets=[0, 1])[source]# Quantum object representing the SWAP gate. SuperGrad-supported implementation of qutip_qip.operations.gates.swap(). Original docstring below. Returns: swap_gate – Quantum object representation of SWAP gate Return type: qobj