Learn R Programming

qsimulatR (version 1.1.1)

Tgate: The Tgate gate

Description

The Tgate gate

Usage

Tgate(bit)

Value

An S4 class 'sqgate' object is returned

Arguments

bit

integer. The bit to which to apply the gate

Examples

Run this code
x <- X(1)*qstate(nbits=2)
z <- Tgate(1) * x
z

Run the code above in your browser using DataLab