CoherentNoise: CoherentNoise

Description Usage Arguments Value Examples

View source: R/CoherentNoise.R

Description

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.

Usage

1
CoherentNoise(p,theta,randomRotation=FALSE)

Arguments

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

Value

The quantum state in density matrix format after noise has been applied

Examples

1
 CoherentNoise( p= convert_ket2DM(ket(1,1,1,1)),theta=0.06*pi) 

QuantumOps documentation built on Feb. 3, 2020, 5:07 p.m.