U2#
- diffqc.sparse.U2(c: Array, wires: Tuple[int], phi: float, delta: float) Array #
Apply controlled U2 Gate
- Parameters
c (jnp.ndarray) – qubits state
wires (tuple of ints) – wire to apply.
len(wires)
must be1
phi (float) – rotation angle
delta (float) – rotation angle
- Returns
applied qubits state
- Return type
jnp.ndarray