QpicWireManager#

qualtran.drawing.qpic_diagram.QpicWireManager

Methods to manage allocation/deallocation of wires for QPIC diagrams.

QPIC places wires in the order in which they are defined. For each soquet, the wire manager allocates a new wire with prefix _wire_name_prefix_for_soq(soq) and an integer suffix that corresponds to the smallest integer which does not correspond to an allocated wire.

Methods#

alloc_wire_for_soq

View source

dealloc_wire_for_soq

View source

soq_to_wirename

View source

soq_to_wirelabel

View source