Learn R Programming

qsimulatR (version 1.1.1)

genNoise: genNoise

Description

function to generate the noise list

Usage

genNoise(nbits, p = 0, bits = 1:nbits, error = "any", ...)

Value

a list containing p, bits, error and args

Arguments

nbits

integer. The number of qubits

p

probability with which noise is applied after every gate

bits

integer or integer array. The bit to which to apply the gate.

error

String containing the error model.

...

Additional arguments to be stored in args.

Details

See function noise for details.

Examples

Run this code
genNoise(4)
genNoise(2, p=1, error="small", sigma=0.1)

Run the code above in your browser using DataLab