TaggedOperation(sub_operation: cirq.Operation, *tags: collections.abc.Hashable)¶
- A specific operation instance that has been identified with a setof Tags for special processing. This can be initialized withUsing Operation.with_tags(tag) or by TaggedOperation(op, tag).Tags added can be of any type, but they should be Hashable in orderto allow equality checking. If you wish to serialize operations intoJSON, you should restrict yourself to only use objects that have a JSONserialization.
See Operation.with_tags() for more information on intended usage.
__init__(sub_operation: cirq.Operation, *tags: collections.abc.Hashable)¶
Initialize self. See help(type(self)) for accurate signature.
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
qubitsdon’t match this operation’s qid
Returns the same operation, but applied to different qubits.
Creates a new TaggedOperation with combined tags.
Returns a tuple of the operation’s tags.
Returns the underlying operation without any tags.