cirq_google.serialization.tag_deserializer.TagDeserializer

Generic supertype for tag deserializers.

Each tag deserializer describes how to deserialize a specific set of tag protos.

Methods

can_deserialize_proto

View source

Whether the given tag can be serialized by this serializer.

from_proto

View source

Converts a proto-formatted operation into a Cirq operation.

Args
proto The proto object to be deserialized.
constants The list of Constant protos referenced by constant table indices in proto.
deserialized_constants The deserialized contents of constants.

Returns
The deserialized operation represented by proto.