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