CSWAP: The CSWAP or Fredkin gate

Description Usage Arguments Value

View source: R/swapgate.R

Description

The CSWAP or Fredkin gate

Usage

1
2
3
CSWAP(bits = c(1, 2, 3))

fredkin(bits = c(1, 2, 3))

Arguments

bits

integer vector of length two, the first bit being the control and the second the target bit.

Value

An S4 class 'cswapgate' object is returned


qsimulatR documentation built on Jan. 13, 2021, 3:13 p.m.