RegPosition#

qualtran.drawing.RegPosition

Coordinates for a register when visualizing on a musical score.

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.

y

The y (vertical) position as an integer.

seq_x

The x (horizontal) position where each bloq is enumerated in sequence.

topo_gen

The index of the topological generation to which the bloq belongs.

Methods#

json_dict

View source

__ne__

Check equality and either forward a NotImplemented or return the result negated.

__eq__

Method generated by attrs for class RegPosition.