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