qilisdk.noise.parameter_perturbation
Classes
Base class for noise that perturbs a numeric parameter. |
Module Contents
- class ParameterPerturbation[fuente]
Bases:
qilisdk.noise.noise_abc.NoiseABC,qilisdk.noise.protocols.HasAllowedScopesBase class for noise that perturbs a numeric parameter.
- abstractmethod perturb(value: float) float[fuente]
Return a perturbed version of a parameter value.
- Parámetros:
value (
float) – The original parameter value.- Devuelve:
The perturbed parameter value.
- classmethod allowed_scopes() frozenset[qilisdk.noise.protocols.AttachmentScope][fuente]
Return the attachment scopes supported by this perturbation type.
- Devuelve:
The set of scopes where this perturbation can be attached.