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

Enable DataHandler to save nested dictionaries of numpy arrays #252

Open
arthurostrauss opened this issue Dec 8, 2024 · 0 comments
Open

Comments

@arthurostrauss
Copy link
Contributor

In some use cases, one is interested to save data types related to different qubits such as:

my_data = {"I": {"q1": np.array([...]),
                              "q2": np.array([...]),
                               ....}}
DataHandler.save_data(my_data)

At the moment, this will fail because numpy array is not directly serializable in JSON, and is not parsed correctly as it is done for the not nested case.

One should therefore be able to build according references in a nested fashion like in this example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant