Quantum program automatic repair method based on unitary operation
Патент · CN B
Полный текст
The invention discloses an automatic quantum program repairing method based on unitary operation, which comprises the steps of 1) regarding a quantum program as a black box model and modeling the black box model, establishing a reasonable equation among an initial state, a final state and an evolution process, carrying out preliminary solving on an evolution operator, 2) defining two repairing modes of front repairing and rear repairing, and establishing a reasonable mathematical relationship, 3) adopting a test case set with enough sufficient orthogonality, taking K-L divergence of output and expected probability distribution as a test prediction, 4) correcting and further estimating the evolution operator according to a test result, and carrying out reduction on an equivalent estimation operator, 5) calculating candidate patches, and carrying out unitary correction on non-unitary patches. The invention provides an automatic repair method for a quantum program for the first time, which can realize the processes of low positioning requirement, multi-defect repair and full automation by utilizing the characteristic of quantum, and aims to reduce the repair cost of the quantum program and improve the quality of the quantum program.