genNoise: genNoise

View source: R/state.R

genNoiseR Documentation

genNoise

Description

function to generate the noise list

Usage

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

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.

Value

a list containing p, bits, error and args

Examples

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


qsimulatR documentation built on Oct. 16, 2023, 5:06 p.m.