with_tags(*new_tags: collections.abc.Hashable) → cirq.TaggedOperation¶
Creates a new TaggedOperation, with this op and the specified tags.This method can be used to attach meta-data to specific operationswithout affecting their functionality. The intended usage is toattach classes intended for this purpose or strings to mark operationsfor specific usage that will be recognized by consumers. Specificexamples include ignoring this operation in optimization passes,hardware-specific functionality, or circuit diagram customizability.Tags can be a list of any type of object that is useful to identifythis operation as long as the type is hashable. If you wish theresulting operation to be eventually serialized into JSON, you shouldalso restrict the operation to be JSON serializable.
new_tags – The tags to wrap this operation in.