RegPosition#
qualtran.drawing.RegPosition
View source on GitHub
|
Coordinates for a register when visualizing on a musical score.
qualtran.drawing.RegPosition(
y, seq_x, topo_gen
)
Throughout, we consider two different “x” (i.e. time) coordinates: a sequential one where each bloq is in its own column and a topological one where bloqs that are topologically independent can share a time slice.
Attributes
yThe y (vertical) position as an integer.
seq_xThe x (horizontal) position where each bloq is enumerated in sequence.
topo_genThe index of the topological generation to which the bloq belongs.
Methods#
json_dict
json_dict()
__ne__
__ne__(
other
)
Check equality and either forward a NotImplemented or return the result negated.
__eq__
__eq__(
other
)
Method generated by attrs for class RegPosition.
View source on GitHub