You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the device description or specifications for FresnelQPU contain a comprehensive JSON like string with device metadata.
However, the meta_data attribute is currently None. This issue proposes moving the metadata from the description to the appropriate meta_data attribute.
Hi @iamashwin99,
Thanks for opening this issue !
Indeed, the information regarding the pulser Device implemented by the QPU are stored in the description as a JSON-like string. The pulser Device associated to this QPU can be built by doing device = Device.from_abstract_repr(S.description) (it is the first brick of your quantum program, you will then have to initialize the Sequence with seq = Sequence(register, device))
My issue with the meta_data attribute of the HardwareSpecs is that it only stores a dict(str, str). Therefore, it can store the data (I would have to JSON.load the content in the description, and convert into a str all the values that are not a str) but it cannot be used to build the pulser Device object that represents the QPU straight (users would have to convert all the values that were previously not str into their initial value (which is highly not user-friendly) and have to make a json.dumps(the dictionnary just built)). Of course, for the latter, we could provide a method in IsingAQPU to do that but I think it would add more burden for the user.
Do you agree with me on this ? Do you need these information in the meta_data of the HardwareSpecs anyway ? Is it a problem to have the serialized representation of the Device in the description of the HardwareSpecs ?
Currently, the device
description
or specifications for FresnelQPU contain a comprehensive JSON like string with device metadata.However, the
meta_data
attribute is currently None. This issue proposes moving the metadata from the description to the appropriatemeta_data
attribute.The text was updated successfully, but these errors were encountered: