The invention discloses a
quantum bit mapping optimization method for hardware guidance and fidelity
perception and a related device, and belongs to the field of
quantum computing, and the method comprises the steps: defining each node in a hardware
coupling graph of a target
quantum processor as an initial
community; evaluating all adjacent
community pairs according to a reward function defined based on
modularity and fidelity of candidate communities, selecting an optimal
community pair for fusion, and taking the community with the largest current scale as an optimal candidate area; iteratively executing a community fusion step until a converged single community is obtained; and selecting an optimal candidate region with the physical quantum bit number greater than or equal to the logic quantum bit number of the
quantum circuit to be mapped and the minimum scale, and outputting a mapping sub-graph. According to the method, through a recursive community fusion strategy, the operation range of the
solver is restrained in a subspace with the scale greatly reduced and the quality better, the problem of
combinatorial explosion caused by global search is fundamentally avoided, and the calculation overhead is greatly reduced.