Description Usage Arguments Value Examples
View source: R/GroverDiffusion.R
If integer is input, returns the matrix of Grover Diffusion operation on the integer number of qubits. If ket given as input, applies a Grover Diffusion operation to the input ket and returns the resulting ket
1 | GroverDiffusion(input)
|
input |
Either integer specifying size of operation (in number of qubits it is applied to) or input ket to apply Grover Diffusion to |
Either the matrix of the Grover Diffusion gate of the specified size or ket after a Grover Diffusion operation is applied
1 2 | GroverDiffusion(ket(1,1,1,1,1,1,1,1))
GroverDiffusion(3)
|
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.3535534+0i
[2,] 0.3535534+0i
[3,] 0.3535534+0i
[4,] 0.3535534+0i
[5,] 0.3535534+0i
[6,] 0.3535534+0i
[7,] 0.3535534+0i
[8,] 0.3535534+0i
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
[1,] -0.75 0.25 0.25 0.25 0.25 0.25 0.25 0.25
[2,] 0.25 -0.75 0.25 0.25 0.25 0.25 0.25 0.25
[3,] 0.25 0.25 -0.75 0.25 0.25 0.25 0.25 0.25
[4,] 0.25 0.25 0.25 -0.75 0.25 0.25 0.25 0.25
[5,] 0.25 0.25 0.25 0.25 -0.75 0.25 0.25 0.25
[6,] 0.25 0.25 0.25 0.25 0.25 -0.75 0.25 0.25
[7,] 0.25 0.25 0.25 0.25 0.25 0.25 -0.75 0.25
[8,] 0.25 0.25 0.25 0.25 0.25 0.25 0.25 -0.75
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.