qleap.X¶
- class qleap.X(*args: QState)¶
X is a class that represents the X gate operation in the QLeap framework.
The X gate, also known as the NOT gate, is a single-qubit gate that flips the state of a qubit. It transforms the \(|0\rangle\) state into the \(|1\rangle\) state and the \(|1\rangle\) state into the \(|0\rangle\) state.
- __init__(*args: QState)¶
Creates an X instance that represents an X gate operation on the given QState instances.
- Parameters:
*args (QState) – The QState instances to be acted on by this X gate operation.
Methods
__init__(*args)Creates an X instance that represents an X gate operation on the given QState instances.