CSWAP | R Documentation |
The CSWAP or Fredkin gate
CSWAP(bits = c(1, 2, 3))
fredkin(bits = c(1, 2, 3))
bits |
integer vector of length two, the first bit being the control and the second the target bit. |
An S4 class 'cswapgate' object is returned
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.