tqec.circuit.coordinates.StimCoordinates#
- class StimCoordinates(x: float, y: float, t: float | None = None)[source]#
Wrapper around a tuple of coordinates.
This class should be used whenever a stim.CircuitInstruction that expects arguments that are interpreted by stim as coordinates is built. This is the case of the DETECTOR instruction for example.
- __init__(x: float, y: float, t: float | None = None) None #
Methods
__init__
(x, y[, t])offset_spatially_by
(x, y)to_stim_coordinates
()Attributes
t
x
y