pub unsafe extern "C" fn tGate(qureg: Qureg, targetQubit: c_int)
Expand description

Apply the single-qubit T gate. This is a rotation of \f$\pi/4\f$ around the Z-axis on the Bloch sphere, or the unitary: \f[ \begin{pmatrix} 1 & 0 \ 0 & \exp\left(i \frac{\pi}{4}\right) \end{pmatrix} \f] with circuit diagram: \f[ \begin{tikzpicture}[scale=.5] \node[draw=none] at (-3.5, 0) {target};

\draw (-2,0) – (-1, 0); \draw (1, 0) – (2, 0); \draw (-1,-1)–(-1,1)–(1,1)–(1,-1)–cycle; \node[draw=none] at (0, 0) {T}; \end{tikzpicture} \f]

@see

  • sGate()

@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)