diff --git a/qiskit_dynamics/backend/dynamics_backend.py b/qiskit_dynamics/backend/dynamics_backend.py index 18f1b14f5..4b1de7399 100644 --- a/qiskit_dynamics/backend/dynamics_backend.py +++ b/qiskit_dynamics/backend/dynamics_backend.py @@ -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, diff --git a/releasenotes/notes/level1list-6564aec23c46bf7a.yaml b/releasenotes/notes/level1list-6564aec23c46bf7a.yaml new file mode 100644 index 000000000..d5a203067 --- /dev/null +++ b/releasenotes/notes/level1list-6564aec23c46bf7a.yaml @@ -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.