SX#

diffqc.sparse.SX(c: Array, wires: Tuple[int]) Array#

Apply Square Root X Gate

Parameters
  • c (jnp.ndarray) – qubits state

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

Returns

applied qubits state

Return type

jnp.ndarray