- QuantumCircuit.append(instruction, qargs=None, cargs=None)¶
Append one or more instructions to the end of the circuit, modifying the circuit in place.
cargswill be expanded and broadcast according to the rules of the given
Instruction, and any non-
Bitspecifiers (such as integer indices) will be resolved into the relevant instances.
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
a handle to the
CircuitInstructions that were actually added to the circuit.
- রিটার্ন টাইপ
CircuitError -- if the operation passed is not an instance of