In order to make better use of distributed power supply (DG), it is necessary to adjust the distribution network switch state optimizer network structure. Based on this, it is intended to use an intelligent algorithm to optimize the reconstruction of DG with the distribution network. According to the interface type of DG access distribution network, it is divided into PQ type, PV type, PI type and the type of interface, and the distribution model of the distribution network is divided into PQ type, PV type, PI type and (BPSO) and quantum particle swarm optimization (QPSO) are proposed to analyze the power flow of the distribution network with DG by using the forward push back method. Quantum Particle Swarm Optimization - Weighted Binary Quantum Particle Swarm Optimization (WBQPSO). Taking the IEEE33 node distribution system as an example, the binary coding method can be used to find that WBQPSO can improve the population diversity and improve the convergence speed by optimizing the average position of the particles. The optimization of network reconstruction can be improved result.