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

Have a method from_abstract_repr in Device to deserialize an abstract Device #725

Closed
a-corni opened this issue Aug 28, 2024 · 0 comments · Fixed by #727
Closed

Have a method from_abstract_repr in Device to deserialize an abstract Device #725

a-corni opened this issue Aug 28, 2024 · 0 comments · Fixed by #727

Comments

@a-corni
Copy link
Collaborator

a-corni commented Aug 28, 2024

At the moment, users wanting to deserialize the abstract representation of a Device have to do
from pulser.json.abstract_repr.deserializer import deserialize_device followed by deserialize_device(abstract_device). It would be simpler to have Device.from_abstract_repr(abstract_device).

Initially suggested by @nataliejpg, useful for users of pulser_myqlm to build the device associated with the current state of the QPU (provided as a String, in the abstract format).

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

Successfully merging a pull request may close this issue.

1 participant