get_musical_score_data#
View source on GitHub
|
Get the musical score data for a (composite) bloq.
qualtran.drawing.get_musical_score_data(
bloq: qualtran.Bloq,
manager: Optional[qualtran.drawing.LineManager] = None
) -> qualtran.drawing.MusicalScoreData
This will first walk through the compute graph to assign each soquet to a register position. Then we iterate again to finalize drawing-relevant properties like symbols and the various horizontal and vertical lines.
View source on GitHub