Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change level 1 memory result data type to match Qiskit #367

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qiskit_dynamics/backend/dynamics_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ def default_experiment_result_function(
measurement_data = np.average(measurement_data, axis=0)

# construct results object
exp_data = ExperimentResultData(memory=measurement_data)
exp_data = ExperimentResultData(memory=measurement_data.tolist())
return ExperimentResult(
shots=backend.options.shots,
success=True,
Expand Down
8 changes: 8 additions & 0 deletions releasenotes/notes/level1list-6564aec23c46bf7a.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
fixes:
- |
The data type of memory data produced by :class:`~.DynamicsBackend` for
measurement level 1 was changed from a Numpy array to a list in order to
match the type documented for the ``ExperimentResultData`` class in Qiskit.
To get the old Numpy format back, it is sufficient to call ``numpy.array``
on the result data.
Loading