cell_to_cellpar is used in Orb: https://github.com/TorchSim/torch-sim/blob/main/torch_sim/models/orb.py#L185
Currently TorchSim transfers the cell to numpy to use the function before transferring it back to torch.
Just need to turn this numpy code into torch: https://ase-lib.org/_modules/ase/geometry/cell.html