Barrier
class Barrier(num_qubits)
Bases: qiskit.circuit.instruction.Instruction
Barrier instruction.
Create new barrier instruction.
Methods Defined Here
broadcast_arguments
Barrier.broadcast_arguments(qargs, cargs)
Validation of the arguments.
Parameters
- qargs (List) – List of quantum bit arguments.
- cargs (List) – List of classical bit arguments.
Yields
Tuple(List, List) – A tuple with single arguments.
Raises
CircuitError – If the input is not valid. For example, the number of arguments does not match the gate expectation.
c_if
Barrier.c_if(classical, val)
Add classical condition on register or cbit classical and value val.
inverse
Barrier.inverse()
Special case. Return self.
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.