Scientists have developed the world’s smallest optical gyroscope — device that helps vehicles, drones, and wearable and handheld electronic devices know their orientation in three-dimensional space.