Program.copy

Program.copy()[source]

Perform a shallow copy of this program.

QuilAtom and AbstractInstruction objects should be treated as immutable to avoid strange behavior when performing a copy.

Return type:Program
Returns:a new Program