geqo.visualization.common

6.8.5. geqo.visualization.common#

Functions

get_gate_name(gate[, backend, greek_symbol])

Return the formatted name of a quantum gate for use in Matplotlib visualizations.

pack_gates(operations)

Compactify the circuit diagram by placing non-conflicting operations that can be implemented simultaneously into the same execution layer(column) of the circuit.

phase_name_mpl(gate, gate_initials, inverse, ...)

Return the formatted string representing a phase-related gate, for use in Matplotlib-based circuit diagrams (e.g., via ax.text()).

valid_angle(name[, non_pccm])

Check if the angle placeholder for a phase-related gates (e.g. Phase(), Rx(), Rzz(), PCCM()) is valid for visualization.

valid_name(name)

Check if the gate/sequence name is valid for visualization (e.g., not too long).