The calculated distance (air line) between Rabat and Sidi Qacem is approximately 66 miles respectively 106 kilometers.
By car or train, the actual journey to Sidi Qacem is certainly longer, as only the direct route (as the crow flies) between Rabat and Sidi Qacem has been calculated here.
Air line (approximately)
106 kilometers
57 nautical miles