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