show_bloq#
View source on GitHub
|
Display a visual representation of the bloq in IPython.
qualtran.drawing.show_bloq(
bloq: 'Bloq', type: str = 'graph'
)
Args
bloqThe bloq to show
typeEither ‘graph’, ‘dtype’, ‘musical_score’ or ‘latex’. By default, display a directed acyclic graph of the bloq connectivity. If dtype then the connections are labelled with their dtypes rather than bitsizes. If ‘latex’, then latex diagrams are drawn using
qpic, which should be installed already and is invoked via a subprocess.run() call. Otherwise, draw a musical score diagram.
View source on GitHub