PhysicalQubitPosition2D#
- class tqec.utils.PhysicalQubitPosition2D(x, y)[source]#
Bases:
Position2D
Represents the position of a physical qubit on a 2-dimensional plane.
Methods
__init__
(x, y)is_neighbour
(other)Check if the other position is near to this position, i.e. Manhattan distance is 1.
to_3d
([z])Attributes
x
y
Detailed methods
- Parameters:
x (int)
y (int)
- __init__(x, y)#
- Parameters:
x (int)
y (int)
- Return type:
None
- is_neighbour(other)#
Check if the other position is near to this position, i.e. Manhattan distance is 1.
- Parameters:
other (Position2D)
- Return type:
bool
- to_3d(z=0)#
- Parameters:
z (int)
- Return type:
- with_block_coordinate_system()#
- Return type: