Skip to content

Commit

Permalink
optional readout
Browse files Browse the repository at this point in the history
  • Loading branch information
obliviateandsurrender committed Jul 12, 2024
1 parent ab7a11e commit 7d6333a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pennylane_qiskit/noise_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ def _build_noise_model_map(noise_model, **kwargs) -> Tuple[dict, dict]:

# TODO: Add support for the readout error
rerror_dmap = defaultdict(lambda: defaultdict(list))
if noise_model._default_readout_error or noise_model._local_readout_errors:
warn("Readout errors are not supported currently and will be skipped.")
if kwargs.get("readout_error", True):
if noise_model._default_readout_error or noise_model._local_readout_errors:
warn("Readout errors are not supported currently and will be skipped.")

return qerror_dmap, rerror_dmap

0 comments on commit 7d6333a

Please sign in to comment.