qrisp.QuantumCircuit.ccx#
- QuantumCircuit.ccx(ctrl_qubit_0: QubitLike, ctrl_qubit_1: QubitLike, target_qubit: QubitLike, method='gray')[source]#
Instruct a Toffoli-gate.
- Parameters:
- ctrl_qubit_0QubitLike
The first control Qubit.
- ctrl_qubit_1QubitLike
The second control Qubit.
- target_qubitQubitLike
The target Qubit.
- methodstr, optional
The algorithm to synthesize the mcx gate. The default is “gray”.