show_bloq#

Display a visual representation of the bloq in IPython.

bloq

The bloq to show

type

Either ‘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.