code: def extend(self, other: Operation) -> None:
          
          if isinstance(other, Circuit):
              self.elements.extend(other.elements)
          else:
              self.elements.extend([other])
docs: Append gates from circuit to the end of this circuit