X: X

Description Usage Arguments Value Examples

View source: R/X.R

Description

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

Usage

1
X(...)

Arguments

...

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

Value

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

Examples

1
2
 X(ket(1,0))
 X()

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

Related to X in QuantumOps...