German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.copy_empty_like

QuantumCircuit.copy_empty_like(name=None)[Quellcode]

Return a copy of self with the same structure but empty.

That structure includes:
  • name, calibrations and other metadata

  • global phase

  • all the qubits and clbits, including the registers

Parameter

name (str) – Name for the copied circuit. If None, then the name stays the same.

Rückgabe

An empty copy of self.

Rückgabetyp

QuantumCircuit