QuEraComputing / bloqade-python

QuEra's Neutral Atom SDK for Analog QPUs
https://bloqade.quera.com/
Other
55 stars 14 forks source link

deserialize json #696

Closed jon-wurtz closed 1 year ago

jon-wurtz commented 1 year ago

Is your feature request related to a problem? Please describe. Let the user handle further downstream serialization and deserialization of tasks

Describe the solution you'd like

job2 = bloqade.deserialize(job.json())

Describe alternatives you've considered Simply use the bloqade.load() object but this only accepts filenames and a very particular IO class type

Additional context

weinbe58 commented 1 year ago

Use bloqade.loads/bloqade.dumps if you want dump and load JSON strings directly in python without having to use an intermediate file.

jon-wurtz commented 1 year ago

https://queracomputing.github.io/bloqade-python/latest/reference/bloqade/serialize/ 👍