original_docstring: 
          note, this only works for QWC types..otherwise more complicated
          procedure required to get rid of y-type ops
          
docstring: note, this only works for QWC types..otherwise more complicated
  procedure required to get rid of y-type ops
docstring_tokens: note this only works for QWC types .. otherwise more complicated procedure required to get rid of y - type ops
code: def _simplify_y_qwc(self,mat,verbose=True):
          '''
          note, this only works for QWC types..otherwise more complicated
          procedure required to get rid of y-type ops
          '''
          for i in range(self.N):
              for j in range(mat.shape[0]):
                  if mat[j,i]==1 and mat[j,i+self.N]==1:
                      self.gates.append([
                                  (i,),
                                  apply_si])
                      for k in range(mat.shape[0]):
                          if mat[k,i]==1 and mat[k,i+self.N]==1:
                              mat[k,i]=0
                          elif mat[k,i]==0 and mat[k,i+self.N]==1:
                              mat[k,i]=1
                      break
          return mat
code_tokens: def _simplify_y_qwc ( self , mat , verbose = True ) : for i in range ( self . N ) : for j in range ( mat . shape [ 0 ] ) : if mat [ j , i ] == 1 and mat [ j , i + self . N ] == 1 : self . gates . append ( [ ( i , ) , apply_si ] ) for k in range ( mat . shape [ 0 ] ) : if mat [ k , i ] == 1 and mat [ k , i + self . N ] == 1 : mat [ k , i ] = 0 elif mat [ k , i ] == 0 and mat [ k , i + self . N ] == 1 : mat [ k , i ] = 1 break return mat
short_docstring: note, this only works for QWC types..otherwise more complicated
  procedure required to get rid of y-type ops
short_docstring_tokens: note this only works for QWC types .. otherwise more complicated procedure required to get rid of y - type ops
comment: '''
          note, this only works for QWC types..otherwise more complicated
          procedure required to get rid of y-type ops
          '''