Search

CN-121981290-A - Method for generating amplitude preparation circuit and related device

CN121981290ACN 121981290 ACN121981290 ACN 121981290ACN-121981290-A

Abstract

The embodiment of the application discloses a generation method of an amplitude preparation circuit and a related device, relating to the technical field of quantum computing; after determining the quantum state to be prepared, at least one quantum bit corresponding to the quantum state to be prepared may be determined, and an amplitude preparation circuit may be constructed based on the at least one quantum bit, the first amplitude preparation circuit may include a plurality of turngates, and any one quantum bit may be acted on by at least one turngate, and then a rotation angle of each turngate may be determined based on a calculated ground state corresponding to the at least one quantum bit and an action timing of each turngate on the quantum bit, thereby obtaining a second amplitude preparation circuit, and the quantum state to be prepared may be prepared using the second amplitude preparation circuit.

Inventors

  • Dou Menghan
  • WANG CHAO

Assignees

  • 本源量子计算科技(合肥)股份有限公司

Dates

Publication Date
20260505
Application Date
20241028

Claims (11)

  1. 1. A method of generating an amplitude preparation circuit, comprising: Determining at least one quantum bit for generating a quantum state to be prepared according to the quantum state to be prepared; constructing a corresponding first amplitude preparation circuit according to the at least one qubit, wherein the first amplitude preparation circuit comprises a plurality of turngates, and any qubit is acted on by at least one turngate; Determining the rotation angle of each rotating gate based on the calculated ground state corresponding to the at least one quantum bit and the action time sequence of each rotating gate for the quantum bit; and responding to the fact that the rotation angles of the rotating gates in the first amplitude preparation circuit are all determined to be completed, and obtaining a second amplitude preparation circuit, wherein the second amplitude preparation circuit is used for preparing the quantum state to be prepared.
  2. 2. The method of claim 1, wherein constructing a corresponding first amplitude preparation circuit from the at least one qubit comprises: constructing a corresponding first amplitude preparation circuit according to the action time sequence corresponding to each quantum bit; the action time sequence is used for indicating the sequence of the rotary control gate for acting the quantum bits.
  3. 3. The method of claim 2, wherein in the first amplitude circuit, the plurality of turnstiles comprises controlled turnstiles; Wherein, the quantum bit with the action time sequence at the second bit or the quantum bit after the second bit is acted by the controlled revolving gate; Any controlled rotation gate corresponds to a control bit and a controlled bit, wherein the action time sequence of the quantum bit indicated by the control bit is before the action time sequence of the quantum bit indicated by the controlled bit.
  4. 4. A method according to claim 3, wherein two controlled rotation gates are provided as a group, and the qubit whose action sequence is located at the second order or the qubit located after the second order is acted on by at least one group of controlled rotation gates; if the quantum bits adjacent to the action time sequence, the preamble quantum bit is used as the control bit of the following quantum bit.
  5. 5. The method of claim 4, wherein determining the rotation angle of each rotation gate based on the calculated ground state corresponding to the at least one qubit and the action timing of each rotation gate for the qubit comprises: Determining a rotation angle for acting on a rotation logic gate corresponding to the first sequential quantum bit according to the first number of first bits being 1 and the second number of first bits being 0 in the at least one calculation ground state; Determining the execution sequence of each group of controlled turnstiles according to the action time sequence of each turnstile aiming at the quantum bit; and determining the rotation angle of each group of controlled rotation gates according to the execution sequence of each group of controlled rotation gates and the calculation ground state corresponding to at least one quantum bit.
  6. 6. The method of claim 5, wherein determining the rotation angle of each group of controlled rotation gates according to the execution order of each group of controlled rotation gates and the calculated ground state corresponding to the at least one qubit comprises: Determining a first order and a second order corresponding to the calculation ground state according to the order of any group of controlled revolving doors, wherein the order of the execution sequence of each group of controlled revolving doors is matched with the order of the calculation ground state, the first order is before and adjacent to the second order, and the second order is matched with the order of the group of controlled revolving doors; Counting the number of the calculated ground states meeting the state requirements at the first level and the second level, and determining the rotation angles of the controlled revolving doors of each group according to the counting result of the number.
  7. 7. The method of claim 6, wherein the counting the number of calculated ground states meeting the state requirement at both the first and second orders comprises: counting a third number of 0 in the first order and 1 in the second order in the at least one calculated ground state; counting a fourth number of 0's in the first order and 0's in the second order in the at least one calculated ground state; Counting a fifth number of 1's in the first order and 1's in the second order in the at least one calculated ground state; counting a sixth number of 1's in the first order and 0's in the second order in the at least one calculated ground state; And determining the rotation angle of each group of controlled rotation doors according to the number statistics result, wherein the method comprises the following steps: determining a first controlled turnstile of a set of controlled turnstiles based on the third number and the fourth number; and determining a second controlled turnstile of the set of controlled turnstiles according to the fifth number and the sixth number.
  8. 8. The method of claim 2, wherein prior to said constructing a corresponding first amplitude preparation circuit according to the corresponding timing sequence of each qubit, the method further comprises: And determining the action time sequence corresponding to each quantum bit according to the topological structure information of at least one quantum bit on the quantum chip.
  9. 9. An apparatus for generating an amplitude preparation circuit, comprising: A first determining unit, configured to determine at least one qubit for generating a quantum state to be prepared according to the quantum state to be prepared; A building unit, configured to build a corresponding first amplitude preparation circuit according to the at least one qubit, where the first amplitude preparation circuit includes a plurality of turngates, and any qubit is acted on by at least one turngate; The second determining unit is used for determining the rotation angle of each rotating gate based on the calculation ground state corresponding to the at least one quantum bit and the action time sequence of each rotating gate for the quantum bit; and the generating unit is used for responding to the fact that the rotation angles of the rotating gates in the first amplitude preparation circuit are all determined to be completed, and obtaining a second amplitude preparation circuit, wherein the second amplitude preparation circuit is used for preparing the quantum state to be prepared.
  10. 10. An electronic device is characterized by comprising a processor and a memory; The processor is connected to a memory, wherein the memory is adapted to store a computer program, and the processor is adapted to invoke the computer program to perform the method according to any of claims 1-8.
  11. 11. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method according to any of claims 1-8.

Description

Method for generating amplitude preparation circuit and related device Technical Field The invention relates to the technical field of quantum computing, in particular to a generation method of an amplitude preparation circuit and a related device. Background The quantum computer is a kind of physical device which performs high-speed mathematical and logical operation, stores and processes quantum information according to the law of quantum mechanics. When a device processes and calculates quantum information and operates on a quantum algorithm, the device is a quantum computer. Quantum computers are a key technology under investigation because of their ability to handle mathematical problems more efficiently than ordinary computers, for example, to accelerate the time to crack RSA keys from hundreds of years to hours. Due to the high operation efficiency of the quantum computation, the quantum computation can be applied to some fields, such as password cracking, big data analysis and the like, and the processing efficiency can be improved by adopting a quantum algorithm. In the quantum computing process, quantum state preparation is an important link, sample data can be stored in the amplitude of a quantum state in the preparation process, and the data support can be provided for a subsequent quantum algorithm by utilizing the characteristics of quantum superposition and quantum entanglement. Therefore, how to accurately and efficiently perform quantum state preparation is a technical problem faced in quantum computing. Disclosure of Invention The embodiment of the application provides a generation method and a related device of an amplitude preparation circuit, wherein the rotation angles of all revolving doors in the amplitude preparation circuit can be determined in a sequential calculation mode, so that the determination of the revolving doors in the amplitude preparation circuit can be more efficient, and the generation of the amplitude preparation circuit for preparing a specific quantum state can be more efficiently facilitated. At the same time, the computational resources required in generating the amplitude preparation circuit can also be saved. The first aspect of the embodiment of the application provides a generation method of an amplitude preparation circuit, which comprises the steps of determining at least one quantum bit for generating a quantum state to be prepared according to the quantum state to be prepared, constructing a corresponding first amplitude preparation circuit according to the at least one quantum bit, wherein the first amplitude preparation circuit comprises a plurality of turngates, any quantum bit is acted by at least one turngate, determining the rotation angle of each turngate based on the calculated ground state corresponding to the at least one quantum bit and the action time sequence of each turngate on the quantum bit, and obtaining a second amplitude preparation circuit in response to the fact that the rotation angles of the turngates in the first amplitude preparation circuit are all determined to be completed, wherein the second amplitude preparation circuit is used for preparing the quantum state to be prepared. Optionally, constructing the corresponding first amplitude preparation circuit according to the at least one quantum bit comprises constructing the corresponding first amplitude preparation circuit according to the action time sequence corresponding to each quantum bit, wherein the action time sequence is used for indicating the sequence of the rotary control gate for acting the quantum bit. Optionally, in the first amplitude circuit, the plurality of rotary gates include controlled rotary gates, wherein the quantum bit with the action time sequence at the second bit or the quantum bit after the second bit is acted by the controlled rotary gates, any one of the controlled rotary gates corresponds to a control bit and a controlled bit, and the action time sequence of the quantum bit indicated by the control bit is before the action time sequence of the quantum bit indicated by the controlled bit. Optionally, two controlled rotation gates are used as a group, and the quantum bit with the action time sequence at the second bit or the quantum bit after the second bit is acted on by at least one group of controlled rotation gates; if the quantum bits adjacent to the action time sequence, the preamble quantum bit is used as the control bit of the following quantum bit. Optionally, the determining the rotation angle of each turnstile based on the calculated base state corresponding to the at least one qubit and the action time sequence of each turnstile for the qubit includes determining the rotation angle for acting on the rotary logic gate corresponding to the first sequential qubit according to the first number of first 1 and the second number of first 0 in the at least one calculated base state, determining the execution sequence of each group of controlle