InstructionSet¶
-
class
InstructionSet
[source]¶ Bases:
object
Instruction collection, and their contexts.
New collection of instructions.
The context (qargs and cargs that each instruction is attached to) is also stored separately for each instruction.
Methods
Add an instruction and its context (where it is attached).
Add condition on classical register to all instructions.
Invert all instructions.