qrisp.QuantumCircuit.ccx#

QuantumCircuit.ccx(ctrl_qubit_0, ctrl_qubit_1, target_qubit, method='gray')[source]#

Instruct a Toffoli-gate.

Parameters:
ctrl_qubit_0list

The first control Qubit.

ctrl_qubit_1Qubit

The second control Qubit.

target_qubitQubit.

The target Qubit.

methodstr, optional

The algorithm to synthesize the mcx gate. The default is “gray”.