QuantumCircuit.copy

QuantumCircuit.copy(name=None)[Quellcode]

Copy the circuit.

Parameter

name (str) – name to be given to the copied circuit. If None, then the name stays the same

Rückgabe

a deepcopy of the current circuit, with the specified name

Rückgabetyp

QuantumCircuit