S: S

Description Usage Arguments Value Examples

View source: R/S.R

Description

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

Usage

1
S(...)

Arguments

...

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

Value

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

Examples

1
2
 S(ket(1,1))
 S()

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

Related to S in QuantumOps...