Skip to content

Commit

Permalink
check option
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFerracin committed Sep 23, 2024
1 parent 407210f commit b2eec4a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions qiskit_ibm_runtime/options/resilience_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,4 @@ def _validate_options(self) -> "ResilienceOptionsV2":
"simultaneously enabled. Set one of them to False."
)

if not isinstance(self.layer_noise_model, UnsetType) and None in [
lnm.error for lnm in self.layer_noise_model # pylint: disable=not-an-iterable
]:
raise ValueError(
"'layer_noise_model' cannot contain 'LayerError' objects with ``error`` set to ``None``."
)

return self

0 comments on commit b2eec4a

Please sign in to comment.