S: The S gate

SR Documentation

The S gate

Description

The S gate

Usage

S(bit)

Arguments

bit

integer. The bit to which to apply the gate

Value

An S4 class 'sqgate' object is returned

Examples

x <- X(1) * qstate(nbits=2)
z <- S(1) * x
z


qsimulatR documentation built on Oct. 16, 2023, 5:06 p.m.