Learn R Programming

QuantumOps (version 3.0.1)

T: T

Description

If no argument is supplied, returns the matrix of T gate. If ket given as input, applies a T gate to the input ket and returns the resulting ket

Usage

T(...)

Arguments

...

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

Value

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

Examples

Run this code
# NOT RUN {
 T(ket(1,1))
 T()
# }

Run the code above in your browser using DataLab