- QuantumCircuit.append(instruction, qargs=None, cargs=None)¶
Append one or more instructions to the end of the circuit, modifying the circuit in place.
CircuitInstructionis given, it will be unwrapped, verified in the context of this circuit, and a new object will be appended to the circuit. In this case, you may not pass
qargs (Sequence[QubitSpecifier] | None) -- specifiers of the
Qubits to attach instruction to.
cargs (Sequence[ClbitSpecifier] | None) -- specifiers of the
Clbits to attach instruction to.
a handle to the
CircuitInstructions that were actually added to the circuit.
- Return type
CircuitError -- if the operation passed is not an instance of