SWAP: The SWAP gate

Description Usage Arguments Value

View source: R/swapgate.R

Description

The SWAP gate

Usage

1
SWAP(bits = c(1, 2))

Arguments

bits

integer vector of length two, containing the bits to swap.

Value

An S4 class 'swapgate' object is returned


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