code: def clear_operations_touching(self,
                                    qubits: Iterable[ops.Qid],
                                    moment_indices: Iterable[int]):
          
          qubits = frozenset(qubits)
          for k in moment_indices:
              if 0 <= k < len(self._moments):
                  self._moments[k] = self._moments[k].without_operations_touching(
                      qubits)
docs: Clears operations that are touching given qubits at given moments.
  
          Args:
              qubits: The qubits to check for operations on.
              moment_indices: The indices of moments to check for operations
                  within.