deltakit.circuit.ShiftCoordinates#

class deltakit.circuit.ShiftCoordinates(coordinate_shift: Iterable[int | float], *, tag: str | None = None)#

Bases: object

Annotates a shift in the coordinates within a stim circuit. This modifies coordinates associated to detectors and the user is required to put each shift coordinate in manually.

Parameters:

coordinate_shift (Iterable[int | float]) – The coordinate shift to impose. Note that this is the delta and not the absolute coordinate.

Methods#

ShiftCoordinates.permute_stim_circuit

Updates stim_circuit with the single stim circuit which contains this single coordinate shift