QubitUnitary#
- diffqc.dense.QubitUnitary(c: Array, wires: Tuple[int], U: Array) Array #
Unitary Gate
- Parameters
c (jnp.ndarray) – qubits state
wires (tuple of ints) – wire to apply.
len(wires)
must belog2(U.shape[0])
U (jnp.ndarray) – square unitary matrix
- Returns
applied qubits state
- Return type
jnp.ndarray