def _create_z_check(self, ancilla, x, y):
    '\n        Creates Z-checks for circuit_extended.\n        '
    self.ancilla_z_check.add(ancilla)
    data_pos = self._data_pos_z_check(x, y)
    (datas, my_data_ticks) = self._find_data(position_to_qudit=self.pos2qudit, positions=data_pos, ticks=self.z_ticks)
    locations = set(datas)
    locations.add(ancilla)
    self.abstract_circuit.append('Z check', locations=locations, datas=datas, ancillas=ancilla, ancilla_ticks=self.init_ticks, data_ticks=my_data_ticks, meas_ticks=self.meas_ticks)
Creates Z-checks for circuit_extended.
def _create_z_check(self, ancilla, x, y):
    '\n        \n        '
    self.ancilla_z_check.add(ancilla)
    data_pos = self._data_pos_z_check(x, y)
    (datas, my_data_ticks) = self._find_data(position_to_qudit=self.pos2qudit, positions=data_pos, ticks=self.z_ticks)
    locations = set(datas)
    locations.add(ancilla)
    self.abstract_circuit.append('Z check', locations=locations, datas=datas, ancillas=ancilla, ancilla_ticks=self.init_ticks, data_ticks=my_data_ticks, meas_ticks=self.meas_ticks)