qleap.Barrier¶
- class qleap.Barrier(*args: QState)¶
Barrier is a class that represents a barrier operation in the QLeap framework.
The Barrier operation is used to separate different sections of a quantum circuit. It does not perform any actual quantum operation, but serves as a visual and logical separator in the circuit. The barrier can be applied to one or more qubits, and it indicates that all operations before the barrier should be completed before any operations after the barrier are executed.
- __init__(*args: QState)¶
Creates a Barrier instance that represents a barrier operation on the given QState instances.
- Parameters:
*args (QState) – The QState instances to which this barrier operation will be applied.
Methods
__init__(*args)Creates a Barrier instance that represents a barrier operation on the given QState instances.