Nuclear spin gyroscope based on an atomic co-magnetometer