T: T

Description Usage Arguments Value Examples

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

1
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

1
2
 T(ket(1,1))
 T()

Example output

Attaching package:QuantumOpsThe following object is masked frompackage:stats:

    dist

The following objects are masked frompackage:base:

    I, norm, single

               [,1]
[1,] 0.7071068+0.0i
[2,] 0.5000000+0.5i
     [,1]                 [,2]
[1,] 1+0i 0.0000000+0.0000000i
[2,] 0+0i 0.7071068+0.7071068i

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

Related to T in QuantumOps...