code: def operates_on(self, qubits: Iterable[raw_types.Qid]) -> bool:
          
          return any(q in qubits for q in self.qubits)
docs: Determines if the moment has operations touching the given qubits.
  
          Args:
              qubits: The qubits that may or may not be touched by operations.
  
          Returns:
              Whether this moment has operations involving the qubits.