Append gates from circuit to the end of this circuit

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