cirq.Circuit.to_text_diagram_drawer¶
-
Circuit.to_text_diagram_drawer(*, use_unicode_characters: bool = True, qubit_name_suffix: str = '', transpose: bool = False, precision: Optional[int] = 3, qubit_order: Union[cirq.ops.qubit_order.QubitOrder, Iterable[cirq.ops.raw_types.QubitId]] = <cirq.ops.qubit_order.QubitOrder object>) → cirq.circuits.text_diagram_drawer.TextDiagramDrawer[source]¶ Returns a TextDiagramDrawer with the circuit drawn into it.
Parameters: - use_unicode_characters – Determines if unicode characters are allowed (as opposed to ascii-only diagrams).
- qubit_name_suffix – Appended to qubit names in the diagram.
- transpose – Arranges qubit wires vertically instead of horizontally.
- precision – Number of digits to use when representing numbers.
- qubit_order – Determines how qubits are ordered in the diagram.
Returns: The TextDiagramDrawer instance.