Skip to content

Interaction Frame Operator #11

@MichalKononenko

Description

@MichalKononenko

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions