tqec.position.Displacement#
- class Displacement(x: int, y: int)[source]#
Simple wrapper around tuple[int, int].
This class is here to explicitly name the type of variables as displacements instead of having a tuple[int, int] that could be: - a position, - a shape, - coefficients for positions, - displacements.
- __init__(x: int, y: int) None #
Methods
__init__
(x, y)Attributes
x
y