SWAP: The SWAP gate

View source: R/swapgate.R

SWAPR Documentation

The SWAP gate

Description

The SWAP gate

Usage

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 Oct. 16, 2023, 5:06 p.m.