TurboQuant: A first-principles walkthrough