# OpenQASM/Qiskit discrepancies

| Gate | OpenQASM | Qiskit | Phase inconsistency|
| - | - | - | - |
| u3 | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7De%5E%7B-i%28%5Cphi&plus;%5Clambda%29/2%7D%5Ccos%28%5Ctheta/2%29%26-e%5E%7B-i%28%5Cphi-%5Clambda%29/2%7D%5Csin%28%5Ctheta/2%29%5C%5Ce%5E%7Bi%28%5Cphi-%5Clambda%29/2%7D%5Csin%28%5Ctheta/2%29%26e%5E%7Bi%28%5Cphi&plus;%5Clambda%29/2%7D%5Ccos%28%5Ctheta/2%29%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D%5Ccos%28%5Ctheta/2%29%26-e%5E%7Bi%5Clambda%7D%5Csin%28%5Ctheta/2%29%5C%5Ce%5E%7Bi%5Cphi%7D%5Csin%28%5Ctheta/2%29%26e%5E%7Bi%28%5Cphi&plus;%5Clambda%29%7D%5Ccos%28%5Ctheta/2%29%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?e%5E%7B-i%28%5Cphi&plus;%5Clambda%29/2%7D) |
| u2 | ![equation](https://latex.codecogs.com/gif.latex?%5Ctfrac%7B1%7D%7B%5Csqrt%7B2%7D%7D%5Cbegin%7Bpmatrix%7De%5E%7B-i%28%5Cphi&plus;%5Clambda%29/2%7D%26-e%5E%7B-i%28%5Cphi-%5Clambda%29/2%7D%5C%5Ce%5E%7Bi%28%5Cphi-%5Clambda%29/2%7D%26e%5E%7Bi%28%5Cphi&plus;%5Clambda%29/2%7D%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?%5Ctfrac%7B1%7D%7B%5Csqrt%7B2%7D%7D%5Cbegin%7Bpmatrix%7D1%26-e%5E%7Bi%5Clambda%7D%5C%5Ce%5E%7Bi%5Cphi%7D%26e%5E%7Bi%28%5Cphi&plus;%5Clambda%29%7D%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?e%5E%7B-i%28%5Cphi&plus;%5Clambda%29/2%7D) |
| u1 | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7De%5E%7B-i%5Clambda/2%7D%260%5C%5C0%26e%5E%7Bi%5Clambda/2%7D%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D1%260%5C%5C0%26e%5E%7Bi%5Clambda%7D%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?e%5E%7B-i%5Clambda/2%7D) |
| x | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D0%26-i%5C%5C-i%260%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D0%261%5C%5C1%260%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?-i) |
| y | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D0%26-1%5C%5C1%260%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D0%26-i%5C%5Ci%260%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?-i) |
| z | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D-i%260%5C%5C0%26i%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D1%260%5C%5C0%26-1%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?-i) |
| h | ![equation](https://latex.codecogs.com/gif.latex?%5Ctfrac%7B1%7D%7B%5Csqrt%7B2%7D%7D%5Cbegin%7Bpmatrix%7D-i%26-i%5C%5C-i%26i%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?%5Ctfrac%7B1%7D%7B%5Csqrt%7B2%7D%7D%5Cbegin%7Bpmatrix%7D1%261%5C%5C1%26-1%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?-i) |
| s | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7De%5E%7B-i%5Cpi/4%7D%260%5C%5C0%26e%5E%7Bi%5Cpi/4%7D%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D1%260%5C%5C0%26e%5E%7Bi%5Cpi/2%7D%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?e%5E%7B-i%5Cpi/4%7D) |
| sdg | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7De%5E%7Bi%5Cpi/4%7D%260%5C%5C0%26e%5E%7B-i%5Cpi/4%7D%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D1%260%5C%5C0%26e%5E%7B-i%5Cpi/2%7D%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?e%5E%7Bi%5Cpi/4%7D) |
| t | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7De%5E%7B-i%5Cpi/8%7D%260%5C%5C0%26e%5E%7Bi%5Cpi/8%7D%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D1%260%5C%5C0%26e%5E%7Bi%5Cpi/4%7D%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?e%5E%7B-i%5Cpi/8%7D) |
| tdg | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7De%5E%7Bi%5Cpi/8%7D%260%5C%5C0%26e%5E%7B-i%5Cpi/8%7D%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D1%260%5C%5C0%26e%5E%7B-i%5Cpi/4%7D%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?e%5E%7Bi%5Cpi/8%7D) |
| cz | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D-1%260%260%260%5C%5C0%26-1%260%260%5C%5C0%260%26-1%260%5C%5C0%260%260%261%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D1%260%260%260%5C%5C0%261%260%260%5C%5C0%260%261%260%5C%5C0%260%260%26-1%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?-1) |
| cy | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D1%260%260%260%5C%5C0%261%260%260%5C%5C0%260%260%26-i%5C%5C0%260%26i%260%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D1%260%260%260%5C%5C0%261%260%260%5C%5C0%260%260%26-i%5C%5C0%260%26i%260%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?1) |
| ch | ![equation](https://latex.codecogs.com/gif.latex?e%5E%7B-i%5Cpi/4%7D%5Cbegin%7Bpmatrix%7D1%260%260%260%5C%5C0%261%260%260%5C%5C0%260%26%5Cfrac%7B1%7D%7B%5Csqrt2%7D%26%5Cfrac%7B1%7D%7B%5Csqrt2%7D%5C%5C0%260%26%5Cfrac%7B1%7D%7B%5Csqrt2%7D%26-%5Cfrac%7B1%7D%7B%5Csqrt2%7D%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D1%260%260%260%5C%5C0%261%260%260%5C%5C0%260%26%5Cfrac%7B1%7D%7B%5Csqrt2%7D%26%5Cfrac%7B1%7D%7B%5Csqrt2%7D%5C%5C0%260%26%5Cfrac%7B1%7D%7B%5Csqrt2%7D%26-%5Cfrac%7B1%7D%7B%5Csqrt2%7D%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?e%5E%7B-i%5Cpi/4%7D) |
| ccx | ![equation](https://latex.codecogs.com/gif.latex?-e%5E%7B-i%5Cpi/8%7D%5Cbegin%7Bpmatrix%7D1%260%260%260%260%260%260%260%5C%5C0%261%260%260%260%260%260%260%5C%5C0%260%261%260%260%260%260%260%5C%5C0%260%260%261%260%260%260%260%5C%5C0%260%260%260%261%260%260%260%5C%5C0%260%260%260%260%261%260%260%5C%5C0%260%260%260%260%260%260%261%5C%5C0%260%260%260%260%260%261%260%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?%5Cbegin%7Bpmatrix%7D1%260%260%260%260%260%260%260%5C%5C0%261%260%260%260%260%260%260%5C%5C0%260%261%260%260%260%260%260%5C%5C0%260%260%261%260%260%260%260%5C%5C0%260%260%260%261%260%260%260%5C%5C0%260%260%260%260%261%260%260%5C%5C0%260%260%260%260%260%260%261%5C%5C0%260%260%260%260%260%261%260%5Cend%7Bpmatrix%7D) | ![equation](https://latex.codecogs.com/gif.latex?-e%5E%7B-i%5Cpi/8%7D) |
