CPhaseShift01#

diffqc.sparse.CPhaseShift01(c: Array, wires: Tuple[int], phi: float) Array#

Apply Phase Shift Gate for |01>

Parameters
  • c (jnp.ndarray) – qubits state

  • wires (tuple of ints) – wire to apply. len(wires) must be 2

  • phi (float) – rotation angle

Returns

applied qubits state

Return type

jnp.ndarray