It’s definitely real and a very fine art. I’m not sure it can be mapped to exact BAC but the shape of graph is certainly true. A percentage of my code is written under the Ballmer peak and it usually doesn’t suck. Although, while the Ballmer Peak gives you skills through concentration, it should only be executed once the creative process is complete and all you have to do is implement.
Side Note: Drinking with other programmers yields some interesting conversations