File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -920,7 +920,7 @@ def default_experiment_result_function(
920
920
measurement_data = np .average (measurement_data , axis = 0 )
921
921
922
922
# construct results object
923
- exp_data = ExperimentResultData (memory = measurement_data )
923
+ exp_data = ExperimentResultData (memory = measurement_data . tolist () )
924
924
return ExperimentResult (
925
925
shots = backend .options .shots ,
926
926
success = True ,
Original file line number Diff line number Diff line change
1
+ ---
2
+ fixes :
3
+ - |
4
+ The data type of memory data produced by :class:`~.DynamicsBackend` for
5
+ measurement level 1 was changed from a Numpy array to a list in order to
6
+ match the type documented for the ``ExperimentResultData`` class in Qiskit.
7
+ To get the old Numpy format back, it is sufficient to call ``numpy.array``
8
+ on the result data.
You can’t perform that action at this time.
0 commit comments