genNoise {qsimulatR} | R 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 |
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)
[Package qsimulatR version 1.1.1 Index]