cirq.NoiseModel

class cirq.NoiseModel[source]

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_operation
The methods that are not overridden will be implemented in terms of the ones
that are.
Simulators told to use a noise model will use these methods in order to
dynamically rewrite the program they are simulating.
__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

from_noise_model_like(noise)

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

noisy_moment(moment, system_qubits)

Adds noise to the operations from a moment.

noisy_moments(moments, system_qubits)

Adds possibly stateful noise to a series of moments.

noisy_operation(operation)

Adds noise to an individual operation.