pub unsafe extern "C" fn sGate(qureg: Qureg, targetQubit: c_int)Expand description
Apply the single-qubit S gate. This is a rotation of \f$\pi/2\f$ around the Z-axis on the Bloch sphere, or the unitary: \f[ \begin{pmatrix} 1 & 0 \ 0 & i \end{pmatrix} \f] with circuit diagram: @htmlonly
@see
- tGate()
@ingroup unitary @param[in,out] qureg object representing the set of all qubits @param[in] targetQubit qubit to operate upon @throws invalidQuESTInputError()
- if \p targetQubit is outside [0, \p qureg.numQubitsRepresented) @author Ania Brown (state-vector) @author Tyson Jones (density matrix, doc)