cirq.CircuitDiagramInfoArgs

class cirq.CircuitDiagramInfoArgs(known_qubits: Optional[Iterable[cirq.Qid]], known_qubit_count: Optional[int], use_unicode_characters: bool, precision: Optional[int], qubit_map: Optional[Dict[cirq.Qid, int]], include_tags: bool = True)[source]

A request for information on drawing an operation in a circuit diagram.

known\_qubits
The qubits the gate is being applied to. None means this
information is not known by the caller.
known\_qubit\_count
The number of qubits the gate is being applied to
None means this information is not known by the caller.
use\_unicode\_characters
If true, the wire symbols are permitted to
include unicode characters (as long as they work well in fixed
width fonts). If false, use only ascii characters. ASCII is
preferred in cases where UTF8 support is done poorly, or where
the fixed-width font being used to show the diagrams does not
properly handle unicode characters.
precision
The number of digits after the decimal to show for numbers in
the text diagram. None means use full precision.
qubit\_map

The map from qubits to diagram positions.

include\_tags

Whether to print tags from TaggedOperations

__init__(known_qubits: Optional[Iterable[cirq.Qid]], known_qubit_count: Optional[int], use_unicode_characters: bool, precision: Optional[int], qubit_map: Optional[Dict[cirq.Qid, int]], include_tags: bool = True) → None[source]

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

Methods

copy()

format_radians(radians)

Returns angle in radians as a human-readable string.

format_real(val)

with_args(**kwargs)

Attributes

UNINFORMED_DEFAULT