Description Usage Arguments Value Examples
Takes as input a list of gates (in matrix form) and creates the tensor product, forming a higher dimensional gate. If the last argument is a ket, the gate is applied to the ket and the ket returned. If last argument is another gate, it returns the tensor product of all gates
1 |
... |
List of quantum gates in matrix form, optionally the last argument is ket (column vector) that is input to the gate |
Matix of the gate that is the tensor product of all input gates, or the ket which is the result of the gate applied to the input ket
1 2 3 4 |
Attaching package: ‘QuantumOps’
The following object is masked from ‘package:stats’:
dist
The following objects are masked from ‘package:base’:
I, norm, single
[,1]
[1,] 0+0i
[2,] 1+0i
[,1]
[1,] 0.5+0i
[2,] 0.5+0i
[3,] 0.5+0i
[4,] 0.5+0i
[,1]
[1,] 0.0000000+0i
[2,] 0.7071068+0i
[3,] 0.0000000+0i
[4,] 0.7071068+0i
[,1] [,2] [,3] [,4]
[1,] 0 1 0 0
[2,] 1 0 0 0
[3,] 0 0 0 1
[4,] 0 0 1 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.