X {qsimulatR} | R Documentation |
The X gate
Description
The X gate
Usage
X(bit)
Arguments
bit |
integer. The bit to which to apply the gate |
Value
An S4 class 'sqgate' object is returned
Examples
x <- qstate(nbits=2)
z <- X(1) * x
z
[Package qsimulatR version 1.1.1 Index]