X | R Documentation |
The X gate
X(bit)
bit |
integer. The bit to which to apply the gate |
An S4 class 'sqgate' object is returned
x <- qstate(nbits=2)
z <- X(1) * x
z
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.