Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.append

QuantumCircuit.append(instruction, qargs=None, cargs=None)[código fonte]

Append one or more instructions to the end of the circuit, modifying the circuit in place.

The qargs and cargs will be expanded and broadcast according to the rules of the given Instruction, and any non-Bit specifiers (such as integer indices) will be resolved into the relevant instances.

If a CircuitInstruction is 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 or cargs separately.

Parâmetros
Retorno

a handle to the CircuitInstructions that were actually added to the circuit.

Tipo de retorno

qiskit.circuit.InstructionSet

Levanta

CircuitError – if the operation passed is not an instance of Instruction.