# qiskit.circuit.QuantumCircuit.extend¶

QuantumCircuit.extend(rhs)[ソース]

DEPRECATED - Append QuantumCircuit to the RHS if it contains compatible registers.

Two circuits are compatible if they contain the same registers or if they contain different registers with unique names. The returned circuit will contain all unique registers between both circuits.

Modify and return self.

パラメータ

rhs (QuantumCircuit) – The quantum circuit to append to the right hand side.

Returns this QuantumCircuit object (which has been modified)

QuantumCircuit

QiskitError – if the rhs circuit is not compatible