View source on GitHub |
Protocol for objects that can be serialized to a key + context.
Inherits From: SupportsJSON
cirq.SerializableByKey(
*args, **kwargs
)
In serialization, objects that inherit from this type will only be fully defined once (the "context"). Thereafter, a unique integer key will be used to identify that object.
Methods
_json_dict_
_json_dict_() -> Union[None, NotImplementedType, Dict[Any, Any]]