View source: R/avg_evolution.R
gavg_matrix.ctqwalk | R Documentation |
The Generalized Average Mixing Matrix of a Continuous-Time Quantum Walk
## S3 method for class 'ctqwalk'
gavg_matrix(object, R, ...)
object |
a representation of the quantum walk. |
R |
samples from the random variable |
... |
further arguments passed to or from other methods. |
Let M(t)
be the mixing matrix of the quantum walk and R
a random variable
with associated probability density function f_R(t)
. Then the generalized average mixing
matrix under R
is defined as
\widehat{M}_R := \mathbb{E}[M(R)] = \int_{-\infty}^{\infty} M(t)f_R(t)\textrm{d}t
gavg_matrix()
returns the generalized average mixing matrix
as a square matrix of the same order as the walk.
ctqwalk()
, gavg_matrix()
walk <- ctqwalk(matrix(c(0,1,0,1,0,1,0,1,0), nrow=3))
# Return the average mixing matrix under a Standard Gaussian distribution
gavg_matrix(walk, rnorm(1000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.