NoiseType

source

NoiseType()

The Noise type Enumerate of the Noise system

Attributes

  • NO_NOISE (A system with no Noise) : see also NO_NOISE
  • BIT_FLIP (A system that flip bits) : see also BIT_FLIP

NoiseMethod

source

NoiseMethod(
   noise_type: NoiseType = NoiseType.NO_NOISE, debug: Debug = Debug.DEPLOY
)

The Base class fo the Noise Method

Args

  • TYPE (NoiseType) : The type of noise system
  • DEBUG (bool) : Debug Flag

Note

This is the abstract base class, add_noise method should never be called

Methods:

.add_noise

source

.add_noise(
   data: int
)

Add the noise to the data from the noise system

Args

  • data (bytes) : the data that the noise is going to add on

Returns

  • bytes : the data with the noise