brownadder / magpy

Magnus based time-integration for spins and qubits under a magnetic field
MIT License
1 stars 2 forks source link

Handling time independent Hamiltonians #10

Open brownadder opened 2 years ago

brownadder commented 2 years ago

Currently, all Hamiltonians must be specified as a f(t), Hop pair. For time-independent Hamiltonian technically one can achieve this by passing a function f such that f(t) =1 for all t. However, this becomes hard to detect in code and we cannot exploit time-independence of a Hamiltonian.

We need a way to specify a time independent Hamiltonian without passing f(t)

brownadder commented 2 years ago

We should also allow 2 sigma_x to be expressed easily, i.e. real-valued scalar time-independent multiples

brownadder commented 2 years ago

Maybe we express scalar multiples as (2, Hop(N,k,sigma_x))?