Version 0.6#

0.6.1#

Date: 19 June 2026

New features#

Bugfix#

  • Fix issue #131: renormalization of 3-spin parameters.

  • Fix a bug in is_eigenstate(): mismatch of ndarray types (float vs complex).

Improvements#

0.6.0#

Date: 18 June 2026

New features#

Bugfix#

  • Rare bug with change of units and non-zero magnetic field: the units of ._zeeman_parameters were not converted, which can lead to complex undesired behavior. This is now fixed, and the units of ._zeeman_parameters are converted together with the units of ._parameters when the units are changed using SpinHamiltonian.units().

  • Fix issue #124: four-spin parameters were not renormalized correctly, due to typos in the source code.

Improvements#

Breaking changes wrt 0.5#

Deprecated features#

Removed features#

  • Convention.summary(). Use print(convention) or str(convention) instead.

  • Option h in SpinHamiltonian.add_magnetic_field(). Use B instead.

  • Option flat in logo(). As there is only one variation of the logo now, this option is not needed. Existing code will still function, but it will raise a warning. Please remove the flat option from your code.

  • Option info in logo() is removed. The existing code will still function, but it will raise a warning. Please remove the info option from your code, as it is ignored now.

Change of behavior#

  • Redesign logo of Magnopy to use only ASCII characters. Output of the magnopy.logo() has new format.

  • Rename option comment to comment_char in logo(). Existing code will function the same, but it will raise a warning.

  • Option line_length in logo() is renamed to line_width. The existing code will still function, but it will raise a warning.