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