# qiskit.circuit.InstructionSet¶

class InstructionSet[código fonte]

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.

__init__()[código fonte]

New collection of instructions.

The context (qargs and cargs that each instruction is attached to) is also stored separately for each instruction.

Methods

 New collection of instructions. add(gate, qargs, cargs) Add an instruction and its context (where it is attached). c_if(classical, val) Add condition on classical register to all instructions. Invert all instructions.
add(gate, qargs, cargs)[código fonte]

Add an instruction and its context (where it is attached).

c_if(classical, val)[código fonte]

Add condition on classical register to all instructions.

inverse()[código fonte]

Invert all instructions.