A diagrammable operation on qubits.



View source

Describes how to draw an operation in a circuit diagram.

This method is used by the global cirq.diagram_info method. If this method is not present, or returns NotImplemented, it is assumed that the receiving object doesn't specify diagram info.

args A DiagramInfoArgs instance encapsulating various pieces of information (e.g. how many qubits are we being applied to) as well as user options (e.g. whether to avoid unicode characters).

A DiagramInfo instance describing what to show.