CNOT#

diffqc.dense.CNOT(c: Array, wires: Tuple[int]) Array#

Apply controlled-NOT Gate

Parameters
  • c (jnp.ndarray) – qubits state

  • wires (tuple of ints) – wire to apply. len(wires) must be 2

Returns

applied qubits state

Return type

jnp.ndarray