CircuitInstruction¶
- class CircuitInstruction(operation, qubits=(), clbits=())[source]¶
Bases:
object
A single instruction in a
QuantumCircuit
, comprised of theoperation
and various operands.সতর্কতা
This is a lightweight internal class and there is minimal error checking; you must respect the type hints when using it. It is the user's responsibility to ensure that direct mutations of the object do not invalidate the types, nor the restrictions placed on it by its context. Typically this will mean, for example, that
qubits
must be a sequence of distinct items, with no duplicates.Methods
Return a shallow copy of the
CircuitInstruction
.Return a new
CircuitInstruction
with the given fields replaced.Attributes
- operation: Instruction¶
The logical operation that this instruction represents an execution of.