cirq.TaggedOperation

class cirq.TaggedOperation(sub_operation: cirq.Operation, *tags: collections.abc.Hashable)[source]
A specific operation instance that has been identified with a set
of Tags for special processing. This can be initialized with
Using Operation.with_tags(tag) or by TaggedOperation(op, tag).
Tags added can be of any type, but they should be Hashable in order
to allow equality checking. If you wish to serialize operations into
JSON, you should restrict yourself to only use objects that have a JSON
serialization.

See Operation.with_tags() for more information on intended usage.

__init__(sub_operation: cirq.Operation, *tags: collections.abc.Hashable)[source]

Initialize self. See help(type(self)) for accurate signature.