cirq.CircuitDiagramInfoArgs¶
-
class
cirq.CircuitDiagramInfoArgs(known_qubits: Optional[Iterable[cirq.QubitId]], known_qubit_count: Optional[int], use_unicode_characters: bool, precision: Optional[int], qubit_map: Optional[Dict[cirq.QubitId, 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 thisinformation is not known by the caller.-
known_qubit_count¶
The number of qubits the gate is being applied toNone means this information is not known by the caller.-
use_unicode_characters¶
If true, the wire symbols are permitted toinclude unicode characters (as long as they work well in fixedwidth fonts). If false, use only ascii characters. ASCII ispreferred in cases where UTF8 support is done poorly, or wherethe fixed-width font being used to show the diagrams does notproperly handle unicode characters.-
precision¶
The number of digits after the decimal to show for numbers inthe text diagram. None means use full precision.-
qubit_map¶
The map from qubits to diagram positions.
-
__init__(known_qubits: Optional[Iterable[cirq.QubitId]], known_qubit_count: Optional[int], use_unicode_characters: bool, precision: Optional[int], qubit_map: Optional[Dict[cirq.QubitId, int]]) → None[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
Attributes
UNINFORMED_DEFAULT-