Barrier¶
-
class
Barrier
(num_qubits)[source]¶ Bases:
qiskit.circuit.instruction.Instruction
Barrier instruction.
Create new barrier instruction.
Methods Defined Here
Validation of the arguments.
Add classical condition on register or cbit classical and value val.
Special case.
Attributes
-
decompositions
¶ Get the decompositions of the instruction from the SessionEquivalenceLibrary.
-
definition
¶ Return definition in terms of other basic gates.
-
duration
¶ Get the duration.
-
label
¶ Return instruction label
- Return type
str
-
params
¶ return instruction params.
-
unit
¶ Get the time unit of duration.
-