If no argument is supplied, returns the matrix of SWAP gate. If ket given as input, applies an SWAP gate to the input ket and returns the resulting ket
No argument, or ket (column vector) that is input to the gate
Matrix of the SWAP gate or ket after an SWAP gate is applied
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.