QubitUnitary#
- diffqc.sparse.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.ndim)U (jnp.ndarray) – square unitary matrix
- Returns
applied qubits state
- Return type
jnp.ndarray