brownadder / magpy

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

Instantiate HOp object as n-spin identity matrix when given integer only #17

Closed dannygoodacre closed 8 months ago

dannygoodacre commented 1 year ago

Currently, calling HOp(n) with an just an integer n will throw an error.

Should we instead assign an n-spin identity matrix (2x2 for one, 4x4 for two, etc.) when such a call is made?