Learn R Programming

qsimulatR (version 1.1.1)

SWAP: The SWAP gate

Description

The SWAP gate

Usage

SWAP(bits = c(1, 2))

Value

An S4 class 'swapgate' object is returned

Arguments

bits

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