QpicWireManager#
qualtran.drawing.qpic_diagram.QpicWireManager
View source on GitHub
|
Methods to manage allocation/deallocation of wires for QPIC diagrams.
qualtran.drawing.qpic_diagram.QpicWireManager()
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
alloc_wire_for_soq(
soq: qualtran.Soquet
) -> str
dealloc_wire_for_soq
dealloc_wire_for_soq(
soq: qualtran.Soquet
) -> str
soq_to_wirename
soq_to_wirename(
soq
) -> str
soq_to_wirelabel
soq_to_wirelabel(
soq
) -> str
View source on GitHub