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

Claim 7:
8. The method according to claim 6, wherein the 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 comprises:
obtaining the second qubit for outputting the piecewise linear function;
correspondingly adding, based on each piece of the linear function in the piecewise linear function, the parametric quantum logic gate acting on the second qubit, and determining the parameter value of the parametric quantum logic gate; and
controlling the parametric quantum logic gate by using the first qubit and the comparison bit, to obtain the piecewise quantum sub-circuit corresponding to each piece of the linear function in the piecewise linear function.