magnopy.SpinHamiltonian.copy#

method

SpinHamiltonian.copy()[source]#

Returns a new, independent copy of the same Hamiltonian.

Returns:
spinhamSpinHamiltonian

A new instance of the same Hamiltonian.