Leaving aside the dubiousness of calling the way the universe actually works “nonsense” and “mad”: It seems very, very, very unlikely that anything in Lewis Carroll’s writings was a metaphor for quantum mechanics. He died in 1898.
(I suppose something can be used as a metaphor for quantum mechanics without having been intended as one, though.)
Leaving aside the dubiousness of calling the way the universe actually works “nonsense” and “mad”: It seems very, very, very unlikely that anything in Lewis Carroll’s writings was a metaphor for quantum mechanics. He died in 1898.
(I suppose something can be used as a metaphor for quantum mechanics without having been intended as one, though.)