qiskit.circuit.Instruction.copy¶
- Instruction.copy(name=None)[Quellcode]¶
Copy of the instruction.
- Parameter
name (str) – name to be given to the copied circuit, if
None
then the name stays the same.- Rückgabe
a copy of the current instruction, with the name updated if it was provided
- Rückgabetyp