It turned out that quantum mechanics was right , and that what Einstein had used as a reason to reject quantum mechanics actually happened . For details , see the article on measurement in quantum mechanics . Generally , quantum mechanics does not assign definite values .