# 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.

__init__(sub_operation: cirq.Operation, *tags: collections.abc.Hashable)[source]
 controlled_by(*control_qubits[, control_values]) Returns a controlled version of this operation. If no control_qubits Returns the same operation, but with different qubits. validate_args(qubits) Raises an exception if the qubits don’t match this operation’s qid with_probability(probability) with_qubits(*new_qubits) Returns the same operation, but applied to different qubits. with_tags(*new_tags) Creates a new TaggedOperation with combined tags.
 gate qubits tags Returns a tuple of the operation’s tags. untagged Returns the underlying operation without any tags.