deltakit.circuit.Detector.transform_coordinates#

Detector.transform_coordinates(coordinate_mapping: Mapping[Coordinate, Coordinate])#

Transform this detectors coordinates according to the coordinate mapping. No transformation is performed if coordinate is not in the mapping.

Parameters:

coordinate_mapping (Mapping[Coordinate, Coordinate]) – A mapping of qubit types to other qubit types