Function tGate

Source
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: @htmlonly

@endhtmlonly

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