Circuit.to_text_diagram(*, use_unicode_characters: bool = True, transpose: bool = False, precision: Optional[int] = 3, qubit_order: Union[cirq.ops.qubit_order.QubitOrder, Iterable[cirq.ops.raw_types.Qid]] = <cirq.ops.qubit_order.QubitOrder object>) → str[source]

Returns text containing a diagram describing the circuit.

  • use_unicode_characters – Determines if unicode characters are allowed (as opposed to ascii-only diagrams).
  • transpose – Arranges qubit wires vertically instead of horizontally.
  • precision – Number of digits to display in text diagram
  • qubit_order – Determines how qubits are ordered in the diagram.

The text diagram.