G: G

Description Usage Arguments Value Examples

View source: R/G.R

Description

Creates quantum gate defined by 4 angles as demonstrated by Barenco (1995). If no argument is supplied, returns the matrix of G gate. If ket given as input, applies an G gate to the input ket and returns the resulting ket

Usage

1
G(a,b,g,p=0,...)

Arguments

a

First angle

b

second angle

g

third angle

p

global phase

...

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

Value

Matrix of the G gate or ket after an G gate is applied

Examples

1
2
 G(0,0,0,0,ket(1,0))
 G(1,1,1)

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

Related to G in QuantumOps...