Description Usage Arguments Value Examples
View source: R/CoherentNoise.R
Implements a model of coherent noise as used in <DOI:10.1038/s41534-018-0106-y>. It rotates each qubit around the z-axis by the specified amount. If randomRoation is set, it will rotate around the X, Y, or Z axis, which is chosen at random. Randomizing provides interesting side effects but is less representative of quantum noise.
1 | CoherentNoise(p,theta,randomRotation=FALSE)
|
p |
Input quantum state in density matrix format |
theta |
Angle of rotation to apply |
randomRotation |
Boolean specifying whether the rotation should be in a semi-random direction |
The quantum state in density matrix format after noise has been applied
1 | CoherentNoise( p= convert_ket2DM(ket(1,1,1,1)),theta=0.06*pi)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.