qrisp.QuantumCircuit.barrier#
- QuantumCircuit.barrier(qubits: QubitLike | None = None)[source]#
Instruct a Barrier onto the given Qubit. Barriers can be used as visual markers and compiler directives.
- Parameters:
- qubitsQubitLike | None
The qubits to apply the barrier on. If
None, the barrier spans all qubits in the circuit. The default isNone.