Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change level 1 memory result data type to match Qiskit
In Qiskit, it is specified that memory should be a list (https://github.com/Qiskit/qiskit/blob/b9d5c9c6aeb4568b6e9fba8943517ebed300886d/qiskit/result/models.py#L38). While most code can work with either lists or numpy arrays, some can not, including BackendSamplerV2 in Qiskit (see qiskit-community/qiskit-experiments#1487). Here the numpy array data is converted to a nested list using `tolist()`.
- Loading branch information