Rz: The Rz gate

Description Usage Arguments Value Examples

Description

The Rz gate

Usage

1
Rz(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

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

qsimulatR documentation built on Jan. 13, 2021, 3:13 p.m.