Ry: Ry

Description Usage Arguments Value Examples

View source: R/Ry.R

Description

If no second argument is supplied, returns the matrix of an Ry rotation gate of the specified radians. If ket given as second argument, applies the Ry gate to the input ket and returns the resulting ket.

Usage

1
Ry(theta,...)

Arguments

theta

Radians to phase rotate the ket around the y-axis

...

No argument, or ket (column vector) that is input to the gate

Value

Matix of the Rz gate or ket after an Rz gate is applied

Examples

1
2
 Ry(pi,ket(1,0))
 Ry(pi)

QuantumOps documentation built on Feb. 3, 2020, 5:07 p.m.

Related to Ry in QuantumOps...