CY: CY

Description Usage Arguments Value Examples

View source: R/CY.R

Description

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

Usage

1

Arguments

...

No argument, or 4 dimensional (2 qubit) ket (column vector) that is input to the gate

Value

Matix of the Controlled-Y gate or ket after a Controlled-Y gate is applied

Examples

1
2
 CY(ket(1,1,1,1))
 CY()

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

Related to CY in QuantumOps...