powered by
If no argument is supplied, returns the matrix of S gate. If ket given as input, applies an S gate to the input ket and returns the resulting ket
S(...)
No argument, or ket (column vector) that is input to the gate
Matix of the S gate or ket after an S gate is applied
# NOT RUN { S(ket(1,1)) S() # }
Run the code above in your browser using DataLab