brownadder / magpy

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

Hop indices validity #19

Closed dannygoodacre closed 1 year ago

dannygoodacre commented 1 year ago

Introduce checks that indices are valid in HOp constructor. Also introduce additional, more thorough validation for all HOp constructor parameters.

Since these checks are only in the constructor, they will not be executed often, and thus not slow down execution.

No functional changes have been made.

Closes #11