cirq.protocols.json_serialization.SerializableByKey

Protocol for objects that can be serialized to a key + context.

Inherits From: SupportsJSON

Methods

_json_dict_

View source

_serialization_key_

View source

Returns a unique string identifier for this object.

This should only return the same value for two objects if they are equal; otherwise, an error will occur if both are serialized into the same JSON string.