pub unsafe extern "C" fn rotateZ(
qureg: Qureg,
rotQubit: c_int,
angle: f64,
)Expand description
Rotate a single qubit by a given angle around the Z-axis of the Bloch-sphere (also known as a phase shift gate). For angle \f$\theta\f$, applies \f[ \begin{pmatrix} \exp(-i \theta/2) & 0 \ 0 & \exp(i \theta/2) \end{pmatrix} \f] with circuit diagram: @htmlonly
@see
- multiRotateZ()
- controlledRotateZ()
- rotateY()
- rotateX()
- rotateAroundAxis()
- multiRotatePauli()
- phaseShift()
@ingroup unitary @param[in,out] qureg object representing the set of all qubits @param[in] rotQubit qubit to rotate @param[in] angle angle by which to rotate in radians @throws invalidQuESTInputError()
- if \p rotQubit is outside [0, \p qureg.numQubitsRepresented) @author Ania Brown (state-vector) @author Tyson Jones (density matrix, doc)