validate_permutation¶
- torch_sim.monte_carlo.validate_permutation(permutation, batch)[source]¶
Validate that permutations only swap atoms within the same batch.
Confirms that no swaps are attempted between atoms in different batches, which would lead to physically invalid configurations.
- Parameters:
- Raises:
ValueError – If any swaps are between atoms in different batches
- Return type:
None