magnopy.experimental.change_cell#
- magnopy.experimental.change_cell(spinham, new_cell, new_atoms_specs)[source]#
Changes the unit cell of a spin Hamiltonian.
Warning
Experimental feature. Not tested well.
- Parameters:
- spinham
SpinHamiltonian - new_cell(3, 3) array-like
- new_atoms_specslist of tuple
new_atoms_specs = [(index, nu), ...]
where
indexis an index of an atom inspinham.atomsandnu = (i,j,k)is the unit cell to which an atom belongs.
- spinham
- Returns:
- new_spinham
SpinHamiltonian
- new_spinham