Skip to content

Commit

Permalink
Update qiskit_ibm_runtime/utils/noise_learner_result.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Hincks <[email protected]>
  • Loading branch information
SamFerracin and ihincks committed Jul 31, 2024
1 parent 5fdf7dc commit 1a9c6b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiskit_ibm_runtime/utils/noise_learner_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def __init__(self, data: Sequence[NoiseLearnerDatum], metadata: dict[str, Any] |
metadata: Metadata that is common to all pub results; metadata specific to particular
pubs should be placed in their metadata fields. Keys are expected to be strings.
"""
self._data = data
self._metadata = metadata or {}
self._data = list(data)
self._metadata = metadata.copy() or {}

@classmethod
def from_estimator_result(cls, result: EstimatorResult) -> NoiseLearnerResult:
Expand Down

0 comments on commit 1a9c6b6

Please sign in to comment.