'Exponential of pauli x matrix using MATLAB
I'm trying to use MATLAB to take exponentials of a matrix, and I would've expected that the output of this program would give a 2x2 matrix with cos(omega t) on the diagonals, and -i*sin(omega t) on the off diagonals. But instead I'm getting -sin(omega t) on the off diagonals, without any imaginary unit. Anybody have an idea where I'm going wrong here?
syms omega t
paulix = [ 0 1 ; 1 0 ];
U = expm(-1j*omega*t*paulix)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
