A $z$ rotation gate is defined as $$ Rz(\theta)=\mathrm{e}^{-i\frac{\theta}{2}Z}= \begin{pmatrix} \mathrm{e}^{-i\frac{\theta}{2}} & 0 \\ 0 & \mathrm{e}^{i\frac{\theta}{2}} \end{pmatrix}, $$
however, when one uses $Rz$ gate on IBM Q, the results are these (tested in Visualization of state vector):
- $Rz(\theta)|0\rangle = |0\rangle$
- $Rz(\theta)|1\rangle = \mathrm{e}^{i\theta}|1\rangle$
This means that a matrix representation of such gate is
$$ Rz^{\text{IBM}}(\theta)= \begin{pmatrix} 1 & 0 \\ 0 & \mathrm{e}^{i\theta} \end{pmatrix}. $$
So, it seems that $Rz(\theta)$ is on IBM Q implemented with $U1(\theta)$ gate.
Since gates $Rz(\theta)$ and $Rz(\theta)^\text{IBM}$ differs only by global phase $\theta/2$ ($Rz^\text{IBM} = \mathrm{e}^{i\frac{\theta}{2}}Rz(\theta))$, this difference can be neglected. However, in case of controlled version of $z$ rotation the global phase matters.
Controlled version of $Rz$ is described by matrix
$$ CRz(\theta)= \begin{pmatrix} 1 & 0 & 0 & 0\\ 0 & 1 & 0 & 0\\ 0 & 0 & \mathrm{e}^{-i\frac{\theta}{2}} & 0 \\ 0 & 0 & 0 & \mathrm{e}^{i\frac{\theta}{2}} \end{pmatrix} $$
On IBM Q, controlled version of $Rz$ behaves according to this matrix which is right.
Despite the global phase can be neglected in case of single qubit gates, one would expect that relation between a single qubit gate $U$ and its contolled version, i.e.
$$ CU= \begin{pmatrix} I & O \\ O & U \end{pmatrix}, $$
will be preserved. In some cases the convention used by IBM for $Rz$ can be confusing (discussed for example here).
So far, I have counted with this fact but I am curious: Why does IBM use its own convention and does not follow definitions used in quantum physics?
(I would appreciate if somebody from IBM Q development team could give an insight to this).