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]])[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.

__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]]) → None[source]

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

Methods

copy()
with_args(**kwargs)

Attributes

UNINFORMED_DEFAULT