deserialize_device
- pulser.abstract_repr.deserialize_device(obj_str)
Deserialize a device from an abstract JSON object.
- Parameters:
obj_str (
str
) – the JSON string representing the device encoded in the abstract JSON format.- Return type:
- Returns:
The Pulser device.
- Raises:
DeserializeDeviceError – Whenever the device deserialization fails due to an invalid ‘obj_str’.