code: def all_operations(self) -> Iterator[ops.Operation]:
          
          return (op for moment in self for op in moment.operations)
docs: Iterates over the operations applied by this circuit.
  
          Operations from earlier moments will be iterated over first. Operations
          within a moment are iterated in the order they were given to the
          moment's constructor.