cirq.TextDiagramDrawer

class cirq.TextDiagramDrawer(entries: Optional[Mapping[Tuple[int, int], cirq.circuits.text_diagram_drawer.DiagramText]] = None, horizontal_lines: Optional[Iterable[cirq.circuits.text_diagram_drawer.HorizontalLine]] = None, vertical_lines: Optional[Iterable[cirq.circuits.text_diagram_drawer.VerticalLine]] = None, horizontal_padding: Optional[Mapping[int, int]] = None, vertical_padding: Optional[Mapping[int, int]] = None)[source]

A utility class for creating simple text diagrams.

__init__(entries: Optional[Mapping[Tuple[int, int], cirq.circuits.text_diagram_drawer.DiagramText]] = None, horizontal_lines: Optional[Iterable[cirq.circuits.text_diagram_drawer.HorizontalLine]] = None, vertical_lines: Optional[Iterable[cirq.circuits.text_diagram_drawer.VerticalLine]] = None, horizontal_padding: Optional[Mapping[int, int]] = None, vertical_padding: Optional[Mapping[int, int]] = None) → None[source]

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