qiskit.circuit.QuantumCircuit.append¶
-
QuantumCircuit.
append
(instruction, qargs=None, cargs=None)[source]¶ Append one or more instructions to the end of the circuit, modifying the circuit in place. Expands qargs and cargs.
- Parameters
instruction (qiskit.circuit.Instruction) – Instruction instance to append
qargs (list(argument)) – qubits to attach instruction to
cargs (list(argument)) – clbits to attach instruction to
- Returns
a handle to the instruction that was just added
- Return type
- Raises
CircuitError – if object passed is a subclass of Instruction
CircuitError – if object passed is neither subclass nor an instance of Instruction