add_interaction
- Model.add_interaction(interaction)
Add a spin-spin interaction to the model.
- Parameters:
interaction (
Interaction) – Interaction object to attach to the model.
Note
Adding an interaction changes the model Hamiltonian, so derived quantities such as the eigensystem are recomputed when needed.