<human>:  How did Paul Dirac discover the theory of quantum electrodynamics?
<bot>: Dirac discovered the theory of quantum electrodynamics by combining quantum mechanics and special relativity. He was the first to show that the electron has a magnetic moment, which is the reason why it is able to spin. He also showed that the electron has an electric charge, which is why it is able to interact with other particles.