Version 0.6#
0.6.1#
Date: 19 June 2026
New features#
only_if_definedinConvention.get_modified().
Bugfix#
Fix issue #131: renormalization of 3-spin parameters.
Fix a bug in
is_eigenstate(): mismatch of ndarray types (float vs complex).
Improvements#
Implement issue #130
0.6.0#
Date: 18 June 2026
New features#
Move tests to the installable package. Introduce
test()and magnopy test CLI command.
Bugfix#
Rare bug with change of units and non-zero magnetic field: the units of
._zeeman_parameterswere not converted, which can lead to complex undesired behavior. This is now fixed, and the units of._zeeman_parametersare converted together with the units of._parameterswhen the units are changed usingSpinHamiltonian.units().Fix issue #124: four-spin parameters were not renormalized correctly, due to typos in the source code.
Improvements#
Implement issue #42.
Breaking changes wrt 0.5#
Deprecated features#
Method
SpinHamiltonian.symmetrize(). UseSpinHamiltonian.set_distribution()withstrategy="symmetrize"instead.SpinHamiltonian.symmetrize()will be removed in November of 2026.
Removed features#
Convention.summary(). Useprint(convention)orstr(convention)instead.Option
hinSpinHamiltonian.add_magnetic_field(). UseBinstead.Option
flatinlogo(). 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 theflatoption from your code.Option
infoinlogo()is removed. The existing code will still function, but it will raise a warning. Please remove theinfooption 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
commenttocomment_charinlogo(). Existing code will function the same, but it will raise a warning.Option
line_lengthinlogo()is renamed toline_width. The existing code will still function, but it will raise a warning.