In theoretical physics, a mixed anomaly is an example of an anomaly : it is an effect of quantum mechanics — usually a one-loop diagram — that implies that the classically valid general covariance and gauge symmetry of a theory of general relativity combined with gauge fields and fermionic fields cannot be preserved simultaneously in the quantum theory.