The Quantum Mathematica add-on package is a very good tool to implement quantum gates. It contains gates as shown in this figure.
How to use these gates to decompose square root SWAP gate?
Quantum Computing Stack Exchange is a question and answer site for engineers, scientists, programmers, and computing professionals interested in quantum computing. It only takes a minute to sign up.
Sign up to join this community
swap=SparseArray@Thread[{{1,1}, {2,3}, {3,2}, {4,4}} -> 1]; MatrixFunction[Sqrt, swap]
? $\endgroup$