ControlledQubitUnitary#

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

Controlled Unitary Gate

Parameters
  • c (jnp.ndarray) – qubits state

  • wires (tuple of ints) – wire to apply. len(wires) must be 1 + log2(U.shape[0])

  • U (jnp.ndarray) – square unitary matrix

Returns

applied qubits state

Return type

jnp.ndarray