Replaces operations and moments with noisy counterparts.
A child class must override at least one of the following three methods:
noisy_moments noisy_moment noisy_operationThe methods that are not overridden will be implemented in terms of the onesthat are.Simulators told to use a noise model will use these methods in order todynamically rewrite the program they are simulating.
Initialize self. See help(type(self)) for accurate signature.
Transforms an object into a noise model if umambiguously possible.
is_virtual_moment(moment)Returns true iff the given moment is non-empty and all of its
Adds noise to the operations from a moment.
Adds possibly stateful noise to a series of moments.
Adds noise to an individual operation.