Skip to content

Commit

Permalink
added None (#2113)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFerracin authored Jan 22, 2025
1 parent e5f4dec commit 8cf26e4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions qiskit_ibm_runtime/options/resilience_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,15 @@ class ResilienceOptionsV2:
r"""Layer noise learning options.
See :class:`LayerNoiseLearningOptions` for all options.
"""
layer_noise_model: Union[UnsetType, NoiseLearnerResult, Sequence[LayerError]] = Unset
layer_noise_model: Union[UnsetType, NoiseLearnerResult, Sequence[LayerError], None] = Unset
r"""A :class:`NoiseLearnerResult` or a sequence of :class:`LayerError`
objects. If set, all the mitigation strategies that require noise data (e.g., PEC and
PEA) skip the noise-learning stage, and instead gather the required information from
``layer_noise_model``. Layers whose information is missing in ``layer_noise_model``
are treated as noiseless and their noise is not mitigated.
objects. If ``None``, all the mitigation strategies that require noise data (e.g., PEC
and PEA) perform a noise-learning stage. Otherwise, this noise-learning stage is skipped,
and instead gather the required information from ``layer_noise_model``. Layers whose
information is missing in ``layer_noise_model`` are treated as noiseless and their noise is
not mitigated.
Default: ``None``.
"""

@model_validator(mode="after")
Expand Down

0 comments on commit 8cf26e4

Please sign in to comment.