serialize

qililab.serialize(obj)

Serialize an object to a YAML string.

Parameters:

obj (Any) – The object to serialize.

Raises:

SerializationError – If serialization fails.

Returns:

The serialized YAML string.

Return type:

str