qrisp.QuantumCircuit.clearcopy#

QuantumCircuit.clearcopy()[source]#

Returns a copy of the given QuantumCircuit but without any data (i.e. just the Qubits and Clbits).

Returns:
QuantumCircuit

The empty, copied QuantumCircuit.