ClassicalSimGraphDrawer#
qualtran.drawing.ClassicalSimGraphDrawer
View source on GitHub
|
A graph drawer that labels each edge with a classical value.
Inherits From: PrettyGraphDrawer, GraphDrawer
qualtran.drawing.ClassicalSimGraphDrawer(
bloq: qualtran.Bloq,
vals: Dict[str, 'ClassicalValT']
)
The (composite) bloq must be composed entirely of classically-simulable bloqs.
Args
bloqThe (composite) bloq to draw.
valsInput classical values to propogate through the composite bloq.
Methods#
cxn_label
cxn_label(
cxn: qualtran.Connection
) -> str
Label the connection with its classical value.
cxn_edge
cxn_edge(
left_id: str,
right_id: str,
cxn: qualtran.Connection
) -> pydot.Edge
Overridable method to style a pydot.Edge for connecionts.
View source on GitHub