Quantum ToolkitOperatorsSWAPOn this pageSWAP SWAP(integer site0, integer site1) -> SpinHalfOperator Returns a spin-1/2 OperatorNamed for the SWAP gate, taking two individual site indices. Parameters site0: The first site index. site1: The second site index. Example var swap1 = SWAP(0, 1)