powered by
The X gate
X(bit)
An S4 class 'sqgate' object is returned
integer. The bit to which to apply the gate
x <- qstate(nbits=2) z <- X(1) * x z
Run the code above in your browser using DataLab