Skip to content

Results are limited to Pulser v1.5.7

Product news
You are reading Pulser v1.5.7, an older version of this documentation. Go to the latest version (v1.10.0)

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:

Device | VirtualDevice

Returns:

The Pulser device.

Raises:

DeserializeDeviceError – Whenever the device deserialization fails due to an invalid ‘obj_str’.