cirq.CircuitDiagramInfoArgs

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.
label_map The map from label entities to diagram positions.
include_tags Whether to print tags from TaggedOperations.
transpose Whether the circuit is to be drawn with time from left to right (transpose is False), or from top to bottom.

Methods

copy

View source

format_complex

View source

format_radians

View source

Returns angle in radians as a human-readable string.

format_real

View source

with_args

View source

__eq__

View source

__ne__

View source

UNINFORMED_DEFAULT Instance of cirq.CircuitDiagramInfoArgs