Calls _circuit_diagraminfo on val. If val doesn't have
_circuit_diagraminfo, or it returns NotImplemented, that indicates that
diagram information is not available.
Args
val
The operation or gate that will need to be drawn.
args
A CircuitDiagramInfoArgs describing the desired drawing style.
default
A default result to return if the value doesn't have circuit
diagram information. If not specified, a TypeError is raised
instead.
Returns
If val has no _circuit_diagraminfo method or it returns
NotImplemented, then default is returned (or a TypeError is
raised if no default is specified).
Otherwise, the value returned by _circuit_diagraminfo is returned.
Raises
TypeError
val doesn't have circuit diagram information and default was
not specified.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-08 UTC."],[],[]]