Description Usage Arguments Value Examples
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
1 |
a |
First angle |
b |
second angle |
g |
third angle |
p |
global phase |
... |
No argument, or ket (column vector) that is input to the gate |
Matrix of the G gate or ket after an G gate is applied
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.