Generic supertype for operation deserializers.

Each operation deserializer describes how to deserialize operation protos with a particular serialized_id to a specific type of Cirq operation.

serialized_id Returns the string identifier for the accepted serialized objects.

This ID denotes the serialization format this deserializer consumes. For example, one of the common deserializers converts objects with the id 'xy' into PhasedXPowGates.



View source

Converts a proto-formatted operation into a Cirq operation.

proto The proto object to be deserialized.
arg_function_language The arg_function_language field from Program.Language.
constants The list of Constant protos referenced by constant table indices in proto.
deserialized_constants The deserialized contents of constants.

The deserialized operation represented by proto.