Thunder is a discharge phenomenon that often occurs in nature. Due to its physical influences such as strong current, high temperature, strong shock waves, strong electromagnetic radiation, etc., it has a huge destructive effect instantly, which may bring serious threats to people's lives and property safety. This paper aims to study the lightning discharge numerical simulation and active protection based on the quantum heuristic evolutionary algorithm, and proposes to apply the lightning discharge numerical simulation to the prevention of lightning disasters. This article gives a detailed description of the quantum algorithm, the generation and harm of lightning discharge. In addition, this article conducts related experiments on lightning discharge numerical simulation and active protection. The experimental results show that targeted active protection and effective numerical simulation are important measures to prevent lightning disasters. Active lightning protection measures can reduce lightning by 30%. Losses caused by disasters.