Compute the distances between pairs of atoms in each frame.
| Parameters: | traj : Trajectory 
 atom_pairs : np.ndarray, shape=(num_pairs, 2), dtype=int 
 periodic : bool, default=True 
 opt : bool, default=True 
 | 
|---|---|
| Returns: | distances : np.ndarray, shape=(n_frames, num_pairs), dtype=float 
 |