$i\frac{d}{dt}\rho=H\rho-\rho H$
The solution for this equation is $\rho(t)=exp(-iHt)\rho(0)exp(iHt)$, if $H$ is independent of $t$. Is there a way to solve the given differential equation using sage when the variables do not commute.