Program.__add__

Program.__add__(other)[source]

Concatenate two programs together, 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.