tqec.templates.enums.TemplateRelativePositionEnum#
- class TemplateRelativePositionEnum(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Represent a relative position between two Template instances.
Template relative positions are stored as the relative displacement needed to encode the position. For example, LEFT_OF is encoded as (-1, 0) as a template on the left is one unit backwards on the X-axis.
- __init__(*args, **kwds)#
Attributes
LEFT_OF
RIGHT_OF
ABOVE_OF
BELOW_OF