Toffoli#
- diffqc.sparse.Toffoli(c: Array, wires: Tuple[int]) Array #
Apply Toffoli Gate (controlled controlled X Gate)
- Parameters
c (jnp.ndarray) – qubits state
wires (tuple of ints) – wire to apply.
len(wires)
must be3
- Returns
applied qubits state
- Return type
jnp.ndarray