Rz {QuantumOps} | R Documentation |
Rz
Description
If no second argument is supplied, returns the matrix of an Rz rotation gate of the specified radians. If ket given as second argument, applies the Rz gate to the input ket and returns the resulting ket.
Usage
Rz(theta,...)
Arguments
theta |
Radians to phase rotate the ket around the z-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
Rz(pi,ket(1,0))
Rz(pi)
[Package QuantumOps version 3.0.1 Index]