CPC G06N 10/40 (2022.01) [H03K 17/92 (2013.01)] | 16 Claims |
1. A method for constructing a quantum circuit corresponding to a linear function, comprising:
adding an independent variable of a target linear function on a first qubit;
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; and
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.
|