qiskit.circuit.QuantumCircuit.barrier¶
- QuantumCircuit.barrier(*qargs, label=None)[source]¶
Apply
Barrier
. Ifqargs
is empty, applies to all qubits in the circuit.- Parameters
qargs (QubitSpecifier) -- Specification for one or more qubit arguments.
label (str) -- The string label of the barrier.
- Returns
handle to the added instructions.
- Return type