cirq.google.xmon_op_from_proto_dict¶
-
cirq.google.xmon_op_from_proto_dict(proto_dict: Dict) → cirq.ops.raw_types.Operation[source]¶ Convert the proto dictionary to the corresponding operation.
See protos in api/google/v1 for specification of the protos.
Parameters: proto_dict – Dictionary representing the proto. Keys are always strings, but values may be types correspond to a raw proto type or another dictionary (for messages).
Returns: The operation.
Raises: - ValueError if the dictionary does not contain required values
- corresponding to the proto.