- class CircuitInstruction(operation, qubits=(), clbits=())¶
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
qubitsmust be a sequence of distinct items, with no duplicates.
Return a shallow copy of the
Return a new
CircuitInstructionwith the given fields replaced.