qiskit.dagcircuit.DAGCircuit.copy_empty_like¶
- DAGCircuit.copy_empty_like()[Quellcode]¶
Return a copy of self with the same structure but empty.
- That structure includes:
name and other metadata
global phase
duration
all the qubits and clbits, including the registers.
- Rückgabe
An empty copy of self.
- Rückgabetyp