I find myself using this snippet of code a bunch in my notebooks
RotatingFrameOperator[BaseHamiltonian_, ReferenceHamiltonian_, ScaledTime_] :=
MatrixExp[I * ReferenceHamiltonian * ScaledTime] . BaseHamiltonian .
MatrixExp[-I * ReferenceHamiltonian * ScaledTime] - ReferenceHamiltonian
However, when I want to move it, I resort to copypasta. Is something like this already in quantum utils? If so, where?
I find myself using this snippet of code a bunch in my notebooks
However, when I want to move it, I resort to copypasta. Is something like this already in quantum utils? If so, where?