qleap.Hadamard¶
- class qleap.Hadamard(*args: QState)¶
Hadamard is a class that represents the Hadamard gate operation in the QLeap framework.
The Hadamard gate is a single-qubit gate that creates a superposition of the \(|0\rangle\) and \(|1\rangle\) states. It transforms the \(|0\rangle\) state into \((|0\rangle + |1\rangle)/\sqrt{2}\) or known as \(|+\rangle\) and the \(|1\rangle\) state into \((|0\rangle - |1\rangle)/\sqrt{2}\) or known as \(|-\rangle\).
- __init__(*args: QState)¶
Creates a Hadamard instance that represents a Hadamard gate operation on the given QState instances.
- Parameters:
*args (QState) – The QState instances to be acted on by this Hadamard gate operation.
Methods
__init__(*args)Creates a Hadamard instance that represents a Hadamard gate operation on the given QState instances.