In March 1926 , working in Bohr 's institute , Heisenberg formulated the principle of uncertainty thereby laying the foundation of what became known as the Copenhagen interpretation of quantum mechanics . Werner Heisenberg formulated the uncertainty principle at Niels Bohr 's institute in Copenhagen , while working on the mathematical foundations of quantum mechanics .