Program.__iadd__

Program.__iadd__(other)[source]

Concatenate two programs together using +=, returning a new one.

Parameters:other (Union[AbstractInstruction, DefGate, Program, List[Any], Tuple[Any, …], str, Generator[Any, Any, Any]]) – Another program or instruction to concatenate to this one.
Return type:Program
Returns:A newly concatenated program.