swapgate | R Documentation |
This class represents a generic SWAP gate
bits
Integer vector of length 2. The two bits to swap.
x <- H(1) * qstate(nbits=2)
z <- SWAP(c(1,2)) * (H(1) * x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.