Rx: The Rx gate

View source: R/sqgate.R

RxR Documentation

The Rx gate

Description

The Rx gate

Usage

Rx(bit, theta = 0)

Arguments

bit

integer. The bit to which to apply the gate

theta

numeric. angle

Value

An S4 class 'sqgate' object is returned

Examples

x <- qstate(nbits=2)
z <- Rx(1, pi/4) * x
z


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