tqec.noise_models.base.BaseNoiseModel

class BaseNoiseModel(probability: float)[source]
__init__(probability: float) None[source]

Base class for all tqec noise models.

Parameters:

probability – strength of the noise described by the instance.

Methods

__init__(probability)

Base class for all tqec noise models.

from_noise_model_like(noise)

Transforms an object into a noise model if unambiguously possible.

is_in_effect()

is_virtual_moment(moment)

Returns true iff the given moment is non-empty and all of its operations are virtual.

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.

recurse_in_operation_if_circuit_operation(...)

Helper method to handle cirq.CircuitOperation nearly transparently.

Attributes

prob