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:
spinhamSpinHamiltonian
new_cell(3, 3) array-like
new_atoms_specslist of tuple
new_atoms_specs = [(index, nu), ...]

where index is an index of an atom in spinham.atoms and nu = (i,j,k) is the unit cell to which an atom belongs.

Returns:
new_spinhamSpinHamiltonian