Learn R Programming

qsimulatR (version 1.1.1)

Rz: The Rz gate

Description

The Rz gate

Usage

Rz(bit, theta = 0)

Value

An S4 class 'sqgate' object is returned

Arguments

bit

integer. The bit to which to apply the gate

theta

numeric. angle

Examples

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

Run the code above in your browser using DataLab