qleap.Toffoli¶
- class qleap.Toffoli(control1: QState, control2: QState, *args: QState)¶
Toffoli is a class that represents the Toffoli gate operation in the QLeap framework.
The Toffoli gate is a three-qubit gate that performs a NOT operation on the target qubit if both control qubits are in the state \(|1\rangle\), and does nothing otherwise.
- __init__(control1: QState, control2: QState, *args: QState)¶
Creates a Toffoli instance that represents a Toffoli gate operation with the given control qubits and target qubit.
Methods
__init__(control1, control2, *args)Creates a Toffoli instance that represents a Toffoli gate operation with the given control qubits and target qubit.