Square root of the SWAP gate (source code)

= Square root of the SWAP gate
{title2=$\sqrt{\mathrm{SWAP}}=P_T+iP_S$}

= Root-of-swap gate
{synonym}

= Square roots of the SWAP gate
{synonym}

For two spin-one-half <qubits>, the <SWAP gate> acts as one on the triplet sector and minus one on the singlet sector. The displayed unitary squares to SWAP. An isotropic <exchange interaction> with integrated angle $\pi/2$ implements it up to a common phase. There are other square-root branches; a pulse decomposition must use the declared branch consistently.