Patent ID: 11966815
Assignee: ORIGIN QUANTUM COMPUTING TECHNOLOGY (HEFEI) CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G  H | IPC G  H

Claim 5:
6. The method according to claim 1, wherein the linear function is a piecewise linear function, and the method further comprises:
constructing, based on the first qubit and a breakpoint of the piecewise linear function, a first quantum sub-circuit for comparing the independent variable with an abscissa of the breakpoint;
wherein the obtaining a second qubit for outputting the target linear function, adding a parametric quantum logic gate acting on the second qubit, and controlling the parametric quantum logic gate by using the first qubit comprises:
constructing, based on the first qubit and a comparison bit that is comprised in the first quantum sub-circuit and that is for outputting a comparison result, a piecewise quantum sub-circuit corresponding to each piece of the linear function in the piecewise linear function; and

wherein the determining a parameter value of the parametric quantum logic gate based on the target linear function, to obtain a quantum circuit corresponding to the target linear function comprises:
constructing, based on the first quantum sub-circuit and each piecewise quantum sub-circuit, the quantum circuit corresponding to the piecewise linear function.