I: I

Description Usage Arguments Value Examples

View source: R/I.R

Description

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

Usage

1
I(...)

Arguments

...

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

Value

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

Examples

1
2
 I(ket(1,0))
 I()

Example output

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

    dist

The following objects are masked frompackage:base:

    I, norm, single

     [,1]
[1,] 1+0i
[2,] 0+0i
     [,1] [,2]
[1,]    1    0
[2,]    0    1

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

Related to I in QuantumOps...