Skip to content

Commit 27c2c63

Browse files
committed
Document migration of MeasLevel and MeasReturnType
1 parent 134a22d commit 27c2c63

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

qiskit/result/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,15 @@
4747
==================
4848
4949
.. autofunction:: sampled_expectation_value
50+
5051
"""
5152

52-
from .result import Result
53+
from .counts import Counts
54+
from .distributions import QuasiDistribution, ProbDistribution
5355
from .exceptions import ResultError
56+
from .models import MeasLevel, MeasReturnType
57+
from .result import Result
58+
from .sampled_expval import sampled_expectation_value
5459
from .utils import marginal_counts
5560
from .utils import marginal_distribution
5661
from .utils import marginal_memory
57-
from .counts import Counts
58-
59-
from .distributions import QuasiDistribution, ProbDistribution
60-
from .sampled_expval import sampled_expectation_value

releasenotes/notes/remove-backend-v1-et-al-cccd8f6b71a97ffc.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,13 @@ upgrade_misc:
5757
* ``QobjMeasurementOption``
5858
* ``PulseLibraryItem``
5959
60+
- |
6061
The :class:`.MeasLevel` and :class`.MeasReturnType` classes, previously defined in
6162
``qobj/utils.py``, have been migrated to ``result/models.py`` following the removal
62-
of the ``qobj`` module. These classes were not part of the public API, so there should
63-
not be any effect on users from this move.
63+
of the ``qobj`` module. These classes were not part of the public API.
64+
The import path has been updated
65+
from: ``from qiskit.qobj.utils import MeasLevel, MeasReturnType`` to:
66+
``from qiskit.result import MeasLevel, MeasReturnType``.
6467
6568
- |
6669
The use of positional arguments in the constructor of :class:`.Result` has been disabled.

0 commit comments

Comments
 (0)