Method for generating quantum state preparation circuit, superconducting quantum chip
The method addresses the impracticality of exponential auxiliary qubits in quantum state preparation by using input, replica, and phase registers to generate a quantum state preparation circuit, optimizing circuit depth and enhancing quantum processor performance.
Patent Information
- Application Number
- JP2022567846
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-08-04
- Filing Date
- 2021-10-14
- Publication Date
- 2024-08-20
- Estimated Expiration
- 2041-10-14
AI Technical Summary
Existing quantum state preparation circuits only consider scenarios with exponential auxiliary qubits, which are not suitable for practical applications, and none have completed standard quantum state preparation to meet actual usage needs.
A method and apparatus for generating a quantum state preparation circuit by arranging input, replica, and phase registers, processing qubits to obtain a diagonal unitary matrix quantum circuit, combining it with single-bit gates to achieve a uniform control matrix circuit, and integrating these circuits to form a quantum state preparation circuit.
The proposed method effectively reduces the circuit depth of quantum state preparation, enhancing the performance of quantum processors by reducing quantum decay and improving practical applicability.
Smart Images

Figure 0007536384000046 
Figure 0007536384000047 
Figure 0007536384000052
Abstract
Description
[Technical field]
[0001] The present application relates to quantum design technology, and in particular to a method, an apparatus, a superconducting quantum chip, and a storage medium for generating a quantum state preparation circuit.
[0002] This application has been filed based on a Chinese patent application having application number 202110893354.3 and filing date on August 4, 2021, and claims priority to the Chinese patent application, the entire contents of which are hereby incorporated by reference into this application. [Background technology]
[0003] A quantum bit (Qubit, Quantum Bit) on a superconducting chip is a carrier of quantum states, carries quantum information, and executes quantum algorithms. Superconducting quantum computing has the advantage of fast operation speed and is widely applied to people. Quantum computing is divided into single-bit logic gate computing and two-bit logic gate computing, and the two-bit logic gate includes quantum state exchange operation, controlled-NOT gate operation (CNOT), and controlled phase gate operation (CP), etc. In this process, quantum state preparation is a fundamental and important step in the design of quantum algorithms, but in the related technology, the quantum state preparation circuit only considers the situation where the auxiliary quantum bits are exponential, but when preparing a quantum state, there are often no exponential auxiliary quantum bits, and only considering the preparation of a quantum state where the number of auxiliary quantum bits is exponential does not meet the actual application scenario, and at the same time, none of the existing quantum state preparation circuits have completed standard quantum state preparation and cannot meet the actual use needs. Summary of the Invention [Means for solving the problem]
[0004] An embodiment of the present application provides a method for generating a quantum state preparation circuit, the method comprising: configuring an input register, the input register being composed of n quantum bits; obtaining m ancillary quantum bits and respectively configuring a replica register and a phase register, the replica register being configured by m / 2 ancillary quantum bits and the phase register being configured by m / 2 ancillary quantum bits; processing qubits through the input register, the replica register, and the phase register to obtain a diagonal unitary matrix quantum circuit; combining the diagonal unitary matrix quantum circuit with a single-bit gate to obtain a uniform control matrix circuit; Combining different uniform control matrix circuits to obtain a quantum state preparation circuit.
[0005] An embodiment of the present application further provides an apparatus for generating a quantum state preparation circuit, the apparatus comprising: a quantum preparation module arranged to configure an input register, the input register being configured with n quantum bits; a quantum transmission module arranged to obtain the m ancillary qubits; The quantum preparation module further comprises: A replica register and a phase register are respectively arranged, the replica register being composed of m / 2 auxiliary quantum bits, and the phase register being composed of m / 2 auxiliary quantum bits; processing qubits through the input register, the replica register, and the phase register to obtain a diagonal unitary matrix quantum circuit; Combining the diagonal unitary matrix quantum circuit with a single-bit gate to obtain a uniform control matrix circuit; Different uniform control matrix circuits are combined and arranged to obtain a quantum state preparation circuit.
[0006] An embodiment of the present application further provides a superconducting quantum chip, the superconducting quantum chip including a quantum state preparation circuit, the quantum state preparation circuit being realized by a method for generating a quantum state preparation circuit provided by an embodiment of the present application.
[0007] An embodiment of the present application further provides an electronic device, the electronic device comprising: a memory adapted to store executable instructions; and a processor that, when executing executable instructions stored in the memory, is used to realize the method for generating a quantum state preparation circuit provided by an embodiment of the present application.
[0008] An embodiment of the present application further provides a computer-readable storage medium having executable instructions stored thereon, the executable instructions, when executed by a processor, realizing a method of generating a quantum state preparation circuit provided by an embodiment of the present application. [Brief description of the drawings]
[0009] [Figure 1] FIG. 2 is a schematic diagram of a usage scenario of a method for generating a quantum state preparation circuit provided by an embodiment of the present application. [Diagram 2] FIG. 2 is a schematic diagram of the configuration of a generating device for a quantum state preparation circuit provided by an embodiment of the present application; [Diagram 3] FIG. 2 is a schematic diagram of one process of arranging a quantum state preparation circuit in an embodiment of the present application. [Figure 4] FIG. 2 is a schematic diagram of a unitary matrix quantum circuit framework of a quantum state preparation circuit in an embodiment of the present application. [Diagram 5] FIG. 2 is a schematic diagram of one process of arranging a quantum state preparation circuit in an embodiment of the present application. [Figure 6] FIG. 2 is a structural schematic diagram of a uniform control matrix circuit in an embodiment of the present application. [Figure 7] FIG. 2 is a structural schematic diagram of a quantum state preparation circuit in an embodiment of the present application. [Figure 8] FIG. 2 is a schematic diagram of a unitary matrix quantum circuit framework of a quantum state preparation circuit in an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] In order to make the objectives, technical means and advantages of the present application clearer, the present application will be described in more detail below in conjunction with the drawings. The described embodiments should not be regarded as limitations on the present application, and all other embodiments obtained by those skilled in the art under the premise that no creative labor is required shall fall within the scope of protection of the present application.
[0011] In the description that follows, references are made to "some embodiments," which describe a subset of all possible embodiments, but it will be understood that "some embodiments" may be the same or different subsets of all possible embodiments, and may be combined with each other where there is no inconsistency.
[0012] Before describing the embodiments of the present application in more detail, the nouns and terms referred to in the embodiments of the present application will be explained. The nouns and terms referred to in the embodiments of the present application are to be interpreted as follows.
[0013] 1) Superconducting qubit: A superconducting quantum circuit formed using Josephson junctions.
[0014] 2) Based on: Used to represent a condition or state upon which an operation to be performed depends, and when the dependent condition or state is satisfied, the operation or operations to be performed may be in real time or may have a configured delay, and unless otherwise specified, there is no restriction on the order of execution of the operations to be performed.
[0015] 3) Superconducting Quantum Chip: The central processor of a superconducting quantum computer. A quantum computer is a type of machine that performs computing using the principles of quantum mechanics. Based on the superposition principle of quantum mechanics and quantum entanglement, quantum computers have relatively high parallel processing capabilities and can solve some problems that are difficult to compute with classical computers. Due to the zero-resistance characteristics of superconducting qubits and a manufacturing process that is close to that of integrated circuits, a quantum computing system built using superconducting qubits is currently one of the most promising systems for realizing practical quantum computing.
[0016] 4) Quantum circuit: A quantum computing model that is composed of a series of quantum gate sequences and completes the computation through quantum gates.
[0017] 5) Gray code path: {0,1} n A sequence of bit strings in which two adjacent bit strings differ in exactly one bit.
[0018] 6) The asymptotic upper bound ο(·): g(n) = O(f(n)) states that there exist constants c and n0 such that for all integers n ≥ n0, some 0 ≤ g(n) ≤ cf(n).
[0019] 7) The asymptotic lower bound Ω(·): g(n) = Ω(f(n)) states that there exist constants c and n0 such that for all integers n ≥ n0, any g(n) ≥ cf(n) ≥ 0.
[0020] 8) Unitary Transformation: Refers to an equidistant transformation of a unitary space V. For ∀α, β∈V, a linear transformation σ that satisfies the condition (σ(α),σ(β))=(α,β) is called a unitary transformation. For each unitary transformation σ in an n-dimensional unitary space V, there exists a standard orthonormal basis of V, and the matrix of σ in this basis is diagonal, and the modulus of the diagonal elements is 1.
[0021] The method for generating a quantum state preparation circuit provided by the embodiment of the present application will be described below. Here, FIG. 1 is a schematic diagram of a usage scenario of the method for generating a quantum state preparation circuit provided by the embodiment of the present application. As shown in FIG. 1, a superconducting quantum computer is a kind of equipment that uses quantum logic to perform general-purpose computing. Compared with traditional computers, superconducting quantum computers can greatly improve the computing efficiency when solving some specific problems, and therefore have attracted widespread attention. Superconducting quantum chips can realize large-scale integration by utilizing related semiconductor process technology, and at the same time, superconducting qubits exhibit superior performance to other physical systems in terms of key indicators required for quantum computing, such as interaction control, selective operation, and error correction, and are one of the most promising platforms for realizing superconducting quantum computers. A superconducting quantum computer mainly includes a superconducting quantum chip and a hardware system used for controlling and measuring the chip, and the hardware system mainly includes various microwave frequency band signal generators and various microwave frequency band devices, including but not limited to filters, amplifiers, and isolators. The hardware system further includes a dilution refrigerator provided with a microwave transmission line. In using superconducting quantum chips, different quantum algorithms can be implemented. Quantum state preparation is a fundamental and important step in the design of quantum algorithms. In the related art, the quantum state preparation circuit only considers the situation where the auxiliary quantum bits are exponential, but when preparing a quantum state, there are often no exponential auxiliary quantum bits, and only considering the preparation of a quantum state where the number of auxiliary quantum bits is exponential does not meet the actual application scenario. At the same time, none of the existing quantum state preparation circuits have completed standard quantum state preparation, and cannot meet the actual use needs. Therefore, the embodiments of the present application provide a method for generating a quantum state preparation circuit, which is used to obtain a quantum state preparation circuit, and the obtained quantum state preparation circuit can be applied to quantum machine learning or simulation of a physical system.
[0022] The structure of the generating device of the quantum state preparation circuit of the embodiment of the present application will be described in detail below. The generating device of the quantum state preparation circuit may be implemented in various forms, for example, a superconducting quantum chip with the processing function of the generating device of the quantum state preparation circuit, and may be an IC chip with the processing function of the generating device of the quantum state preparation circuit, for example, the superconducting quantum chip in FIG. 1. FIG. 2 is a schematic diagram of the configuration structure of the generating device of the quantum state preparation circuit provided by the embodiment of the present application, and it can be understood that FIG. 2 shows only an exemplary structure of the generating device of the quantum state preparation circuit, not the whole structure, so that some or all of the structure shown in FIG. 2 can be implemented as needed.
[0023] The quantum state preparation circuit generating device provided by the embodiment of the present application includes at least one processor 201, a memory 202, a user interface 203, and at least one network interface 204. Each component in the quantum state preparation circuit generating device is coupled together through a bus system 205. As can be understood, the bus system 205 is used to realize the connection communication between these components. In addition to including a data bus, the bus system 205 further includes a power bus, a control bus, and a state signal bus. However, for the sake of clarity, various buses are all represented as the bus system 205 in FIG. 2.
[0024] Here, the user interface 203 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad, a touch screen, or the like.
[0025] As can be understood, the memory 202 may be a volatile memory or a non-volatile memory, and may include both volatile and non-volatile memory. The memory 202 in the embodiment of the present application can store data to support operations on the superconducting quantum chip in an electronic device (e.g., a terminal device). Examples of such data include any computer program used to operate on the superconducting quantum chip of the electronic device, such as an operating system and an application program. Here, the operating system includes various system programs, such as a framework layer, a core library layer, a driving layer, etc., and is used to realize various basic services and process tasks based on hardware. The application program may include various application programs. The electronic device provided by the embodiment of the present application may be implemented as various types of terminal devices or as a server.
[0026] In some embodiments, the generating device of the quantum state preparation circuit provided by the embodiments of the present application may be realized by adopting a combination of software and hardware. For example, the generating device of the quantum state preparation circuit provided by the embodiments of the present application may be a processor adopting a hardware decode processor form, which is programmed to execute the generating method of the quantum state preparation circuit provided by the embodiments of the present application. For example, the processor in the form of a hardware decode processor may adopt one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs), or other electronic components.
[0027] As an example of the quantum state preparation circuit generation device provided by the embodiments of the present application being implemented using a combination of software and hardware, the quantum state preparation circuit generation device provided by the embodiments of the present application may be directly embodied as a combination of software modules executed by the processor 201, and the software modules may be located in a storage medium, the storage medium being located in the memory 202, and the processor 201 reads the executable instructions contained in the software modules in the memory 202 and combines with the necessary hardware (e.g., including the processor 201 and other components connected to the bus 205) to complete the quantum state preparation circuit generation method provided by the embodiments of the present application.
[0028] As an example, the processor 201 may be a kind of superconducting quantum chip, and has a signal processing capability, such as a general-purpose processor, a DSP, or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc., where the general-purpose processor may be a microprocessor, or any conventional processor, etc.
[0029] As an example of the quantum state preparation circuit generation device provided by the embodiments of the present application being implemented using hardware, the quantum state preparation circuit generation device provided by the embodiments of the present application may be realized by directly adopting a processor 201 in the form of a hardware decode processor, for example, executed by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, or other electronic components to realize the quantum state preparation circuit generation method provided by the embodiments of the present application.
[0030] The memory 202 in the embodiment of the present application is used to store various types of data to support the operation of the quantum state preparation circuit generation device. Examples of such data include any executable instructions used to operate on the quantum state preparation circuit generation device, and a program implementing the quantum state preparation circuit generation method of the embodiment of the present application may be included in the executable instructions.
[0031] In some embodiments, the generating device of the quantum state preparation circuit provided by the embodiments of the present application may be realized by adopting a software method, and FIG. 2 illustrates a generating device of the quantum state preparation circuit stored in memory 202, which may be software in the form of a program, plug-in, etc., and includes a series of modules, and an example of a program stored in memory 202 may include a generating device of the quantum state preparation circuit, and the generating device of the quantum state preparation circuit includes a software module of a quantum preparation module 2021 and a quantum transmission module 2022. When the software module in the generating device of the quantum state preparation circuit is read into a random access memory (RAM) by the processor 201 and executed, the generating method of the quantum state preparation circuit provided by the embodiments of the present application is realized. Here, the functions of each software module in the generating device of the quantum state preparation circuit include the following. The quantum preparation module 2021 is arranged to arrange an input register. Here, the input register is composed of n quantum bits, the quantum transmission module 2022 is arranged to obtain m auxiliary quantum bits, and the quantum preparation module 2021 is further arranged with a replica register and a phase register, respectively. Here, the replica register is composed of m / 2 ancillary quantum bits, the phase register is composed of m / 2 ancillary quantum bits, and the input register, the replica register, and the phase register are arranged to process quantum bits to obtain a diagonal unitary matrix quantum circuit, combine the diagonal unitary matrix quantum circuit with a single-bit gate to obtain a uniform control matrix circuit, and combine different uniform control matrix circuits to obtain a quantum state preparation circuit.
[0032] Referring to FIG. 3, FIG. 3 is a schematic diagram of a process of configuring a quantum state preparation circuit in an embodiment of the present application, which specifically includes the following steps:
[0033] Step 301: Arrange an input register, where the input register consists of n quantum bits.
[0034] Here, an input register is placed in the quantum state preparation circuit.
[0035] Step 302: Obtain m ancillary quantum bits, and respectively configure the replica register and the phase register.
[0036] Here, a replica register and a phase register are arranged in the quantum state preparation circuit, and here, the replica register is composed of m / 2 ancillary quantum bits, and the phase register is composed of m / 2 ancillary quantum bits.
[0037] Step 303: Process the quantum bits through the input register, the replica register, and the phase register to obtain a diagonal unitary matrix quantum circuit corresponding to the quantum state preparation circuit.
[0038] Referring to FIG. 4, FIG. 4 is a schematic diagram of a unitary matrix quantum circuit framework of a quantum state preparation circuit in an embodiment of the present application. Here, m ancillary qubits are initially |0〉. The first n qubits are composed of input registers, the next m / 2 ancillary qubits are composed of duplication registers, and the last m / 2 ancillary qubits are composed of phase registers. The framework is divided into five stages: a prefix duplication stage, a Gray initialization processing stage, a suffix duplication stage, a Gray pass processing stage, and an inversion processing stage. The circuit depths of the five stages are O(logm), O(logm), O(logm), and O(2 n / m), and O(logm+2 n / m), and below we explain the diagonal unitary matrix quantum circuits at different stages.
[0039] Referring to FIG. 5, FIG. 5 is a schematic diagram of a process of configuring a quantum state preparation circuit in an embodiment of the present application, which specifically includes the following steps:
[0040] Step 501: A prefix duplication process is performed on the quantum bits using the input register and the duplication register to obtain a diagonal unitary matrix quantum circuit at the prefix duplication stage.
[0041] In some embodiments of the present application, the process of determining the diagonal unitary matrix quantum circuit of the prefix replication stage includes the steps of: replicating each quantum bit in the input register once by a controlled NOT gate in the diagonal unitary matrix quantum circuit of the prefix replication stage to obtain a first replication result, and realizing that each quantum bit in the input register is replicated onto a different quantum bit in the replication register (i.e., replicating each quantum bit in the input register once in the replication register); replicating each quantum bit in the input register and the first replication result in the replication register twice in the replication register by two controlled NOT gates in the diagonal unitary matrix quantum circuit of the prefix replication stage to obtain a second replication result; and iteratively replicating each quantum bit in the input register based on the second replication result, and determining a circuit depth of the diagonal unitary matrix quantum circuit of the prefix replication stage when each quantum bit in the input register is replicated m / 2t times, where t is the number of quantum bits that need to be replicated in the input register. For example, in the prefix duplication stage, the first t bits x1, x2…x in the input register are t Duplicate into m / 2t copies.
[0042]
number
[0043] Therefore, we can realize a unitary matrix U that operates on the input register and the duplicate register. copy,1 may be expressed as Equation 1 ([Equation 2]):
[0044]
number
[0045] Here, the two symbols | 〉 represent the input register and the replica register, respectively, and the equation [3]
[0046]
number
[0047]
number
[0048] Step 502: Gray initialization is performed on the quantum bits using the input register, the replica register, and the phase register to obtain a diagonal unitary matrix quantum circuit at the Gray initialization stage.
[0049] In some embodiments of the present application, the step of performing Gray initialization on the quantum bits using the input register, the replica register, and the phase register to obtain a diagonal unitary matrix quantum circuit in the Gray initialization stage can be realized by the following method: determining a first target linear function matching the phase register and the quantity of the first target linear function, replicating the quantum bits in the input register and the quantum bits in the replica register to the phase register by a controlled NOT gate in the diagonal unitary matrix quantum circuit in the Gray initialization stage at the target position of the phase register, determining a first circuit depth of the diagonal unitary matrix quantum circuit in the Gray initialization stage when a target quantum state is realized on each quantum bit in the phase register by executing the first target linear function, and determining a second circuit depth of the diagonal unitary matrix quantum circuit in the Gray initialization stage when performing a phase rotation process on the quantum bits in the phase register and realizing that the target rotation gate acts on the target quantum bit in the phase register. The circuit depth of the diagonal unitary matrix quantum circuit in the Gray initialization stage is determined based on the sum of the first circuit depth of the diagonal unitary matrix quantum circuit in the Gray initialization stage and the second circuit depth of the diagonal unitary matrix quantum circuit in the Gray initialization stage. For example, in the Gray initialization stage, the realization of the circuit is divided into two steps. In step U1, m / 2 linear functions f j1 Implement (x) = 〈s(j,1),1〉, where s(j,1) is an n-bit string, and the subscript j indicates that the linear function is implemented in the j-th bit of the phase register. In step 2, implement phase rotation in the phase register, and split any n-bit string into two parts, the first t bits are prefixes, and the next nt bits are suffixes. Let the set {s(j,1):j∈[l]} of prefixes cover all l prefixes, and for each fixed j∈[l], let the set {s(j,k):k∈[2 n / l]} covers all possible suffixes. Therefore, {s(j,k):k∈[2 n / l]} is a set {s(j,1):j∈[l]} in which the last (nt) bits of the bit string are all 0, and each row {s(j,k):k∈[2 n / l]} the first t bits of the bit strings are the same.
[0050] For the jth set [Equation 5], let its (nt)-bit suffix be the (j',nt)-Gray code, where j'=((j-1) mod (nt))+1∈[nt]. For any [Equation 6] and any t'∈{t+1,...,n}, we now describe the number of integers j such that s(j,k) and s(j,k+1) differ only in the t'th bit. As integer j traverses set nt, there is exactly one integer j such that s(j,k) and s(j,k+1) differ only in the t'th bit.
[0051]
number
number
[0052] There is also exactly one integer j such that, when j traverses the set [7], s(j,k) and s(j,k+1) differ only in the t'th bit. By repeating this process, we can see that there are at most [8] integers j such that, when j traverses the set [l], s(j,k) and s(j,k+1) differ only in the t'th bit.
[0053]
number
number
[0054] t jkAssuming that s(j,k) and s(j,k+1) represent subscripts of different bits, after the execution of step 502 is completed, a quantum state |f j1 (x)〉, where f j,1 If (x) = 〈s(j,1),x〉 and we apply a rotation gate [9] to the j-th quantum bit of the phase register, and if 〈s(j,1),x〉 = 1, then the phase of the j-th quantum bit is α s(j,1) otherwise, the phase does not change. R1 = R(α s(j,1) )
[0055]
number
[0056] When determining the circuit depth, the 2 t The state of the qubits is transformed to
[10] . That is, in this process, the j-th qubit in the phase register is transformed to |f (j,1) (x)〉. In step 2, |x〉|x pre 〉|0 m / 2 〉, the phase f j,1 (x)·α s(j,1) Therefore, we can obtain Equation 2 ([Equation 11]).
[0057]
number
number
[0058] In the following, we will explain a shallow quantum circuit that realizes step 1, U1. A total of one variable on each quantum bit j is x1, x2...x t To realize the linear function of, the total number of linear functions is l=2 tSince l≦m / 2, we can realize all l functions and the number of bits in the phase register is sufficient. For a qubit j in the phase register and a corresponding linear function
[12] , we can use a CNOT gate to obtain x from the input register and the replica register. i1 ,x i2 …x it to qubit j. The positions of these CNOT gates only need to be reasonably distributed, which reduces the depth of the quantum circuit. Step 1 can be divided into [Equation 13] smaller steps, where each small step processes [Equation 14] qubits j and transforms them into quantum state |〈s(j,1),x〉〉. In total, l=2 t Since we need to process qubits, there are [mathematical formula - see original document] small steps.
[0059]
number
number
number
number
[0060] The position where the bit string s(j,1) is 1 is i∈[t], i.e., s(j,1) i = 1. Using the CNOT gate, x i Duplicate onto qubit j. The current t variables x1, x2…x tEach has [Equation 16] copies. To use these copies in the design of a parallel circuit, we divide the t [Equation 16] qubits j in the phase register into t blocks, each block being of size [Equation 16]. At each small step, we can use a circuit of t depth to copy all the variables required for the [Equation 17] qubits j in the phase register at the qubits. In the first layer, we use the qubits corresponding to the [Equation 16] copies of x1 as the control bits of a CNOT gate, copy x1 at the qubits in the first block, and use the qubits corresponding to the [Equation 16] copies of x2 as the control bits of a CNOT gate, copy x2 at the qubits in the second block. By this analogy, we can use the [Equation 16] x t Copy the qubit corresponding to the copy of x as the control bit of the CNOT gate. t In the second layer, we shift the blocks cyclically, then repeat the process of the first layer, copying x1 in the second block, x2 in the third block, …, x t-1 Copy x in the t-th block and t into the first block. By this analogy, by realizing U1 in a quantum circuit with t layers, each of the t qubits in the phase register will have a copy of the variable it needs.
[0061] The step has a total of [Numerical formula 18] small steps, each of which has a depth of t, so the total depth is [Numerical formula 19], and for step 2, since all rotation gates do not operate on the same qubit, they can be placed in the same layer of the circuit, i.e., the circuit depth is 1. As described above, the circuit depth of the Gray initialization stage does not exceed 2logm.
[0062]
number
number
number
number
[0063] Step 503: A suffix duplication process is performed on the quantum bits using the input register and the duplication register to obtain a diagonal unitary matrix quantum circuit at the suffix duplication stage.
[0064] In some embodiments of the present application, the step of performing suffix duplication on the qubits using the input register and the duplicate register to obtain a diagonal unitary matrix quantum circuit of the suffix duplication stage can be realized by the following scheme: performing a restoration process on the prefix-duplication-processed qubits, duplication m / (2(nt)) of each qubit in the input register to the duplicate register, adding the m / (2(nt)) duplicated qubits in the suffix of the restored qubits, and determining the circuit depth of the diagonal unitary matrix quantum circuit of the suffix duplication stage when the suffix of each restored qubit is m / (2(nt)) duplicated qubits.
[0065] Here, we first restore the quantum state obtained in the prefix duplication step, and then replicate each suffix variable x t+1 ,x t+2 ,…,x n 20] copies of the variable x in the input register. t+1 ,…x n For each of [Equation 21], we make copies of [Equation 21] into the duplicate registers, and create a CNOT circuit U with depth at most logm. copy,2 x〉0 m / 2 This needs to be achieved by acting on 〉.
[0066]
number
number
[0067] If [Number 22], then U copy,2 The effect achieved by is [Equation 23], and the operator of the suffix duplication stage is U copy,2 U + copy,1 and the depth is at most 2logm. Therefore, the operator U copy,2 U + copy,1 The effect of this is expressed by Equation 3 ([Mathematical formula 24]).
[0068]
number
number
number
[0069] Step 504: Perform Gray pass processing on the quantum bits through the input register, the replica register, and the phase register to obtain a diagonal unitary matrix quantum circuit at the Gray pass processing stage.
[0070] In some embodiments of the present application, the step of performing Gray pass processing on quantum bits through the input register, the replica register, and the phase register to obtain a diagonal unitary matrix quantum circuit in the Gray pass processing stage can be realized by the following method: determining a second target linear function matching the phase register and the quantity of the second target linear function, replicating the quantum bits in the input register and the quantum bits in the replica register to the phase register through a controlled NOT gate in the diagonal unitary matrix quantum circuit in the Gray pass processing stage, and executing the second target linear function at the target position of the phase register. When the target quantum state is realized on each quantum bit in the phase register by executing the second target linear function, determining a first circuit depth of the diagonal unitary matrix quantum circuit in the Gray pass processing stage, and performing phase rotation processing of the quantum bits in the phase register. When realizing the operation of the target rotation gate on the target quantum bit in the phase register, a second circuit depth of the diagonal unitary matrix quantum circuit in the Gray pass processing stage is determined, and the circuit depth of the diagonal unitary matrix quantum circuit in the Gray pass processing stage is determined based on the sum of the first circuit depth of the diagonal unitary matrix quantum circuit in the Gray pass processing stage and the second circuit depth of the diagonal unitary matrix quantum circuit in the Gray pass processing stage.
[0071] In the Gray pass processing stage, the transformation realized in the k-th stage refers to Equation 4, where Equation 26 and Equation 27. The circuit depth of the Gray pass processing stage is at most Equation 28.
[0072]
number
number
number
number
[0073] Since the path duplication step has been performed a total of [Equation 29] times, s(j,k) and s(j,k+1) differ in only one bit, so one CNOT gate can transform |〈s(j,k),x〉〉 in the previous step to |〈s(j,k+1),x〉〉, and the control bit of the CNOT gate is x tjk where the target bit is the jth quantum bit in the phase register. i Let be the control bits of at most
[30] distinct qubits j∈[l]. In the input register and the replica register, x i Since the above process involves only single-bit gates operating on different qubits, the steps can be implemented in parallel in one-level circuits. Thus, the Gray path processing stage can be implemented in at most (2 n / l)·(1+1)≦2·2 n This can be realized in a circuit of depth 1 / l.
[0074]
number
number
number
[0075] Step 505: Perform combination processing on the diagonal unitary matrix quantum circuits of different processing stages using the input register, the duplicate register, and the phase register to obtain a diagonal unitary matrix quantum circuit of an inversion processing stage.
[0076] In some embodiments of the present application, the step of performing combinatorial processing on diagonal unitary matrix quantum circuits of different processing stages using the input register, the duplication register, and the phase register to obtain a diagonal unitary matrix quantum circuit of the inversion processing stage can be realized by the following method. That is, the diagonal unitary matrix quantum circuit of the inversion processing stage is determined by combining the diagonal unitary matrix quantum circuit of the prefix duplication stage, the diagonal unitary matrix quantum circuit of the Gray initialization processing stage, the diagonal unitary matrix quantum circuit of the suffix duplication stage, and the diagonal unitary matrix quantum circuit of the Gray pass processing stage. Here, the circuit depth of the diagonal unitary matrix quantum circuit of the inversion processing stage is O(logm+2 n / m).
[0077] Here, when the diagonal unitary matrix quantum circuit of the prefix duplication stage, the diagonal unitary matrix quantum circuit of the Gray initialization stage, the diagonal unitary matrix quantum circuit of the suffix duplication stage, and the diagonal unitary matrix quantum circuit of the Gray pass processing stage are determined by the input register, duplication register, and phase register, the diagonal unitary matrix quantum circuit of the inversion stage is determined by a combination of the diagonal unitary matrix quantum circuit of the prefix duplication stage, the diagonal unitary matrix quantum circuit of the Gray initialization stage, the diagonal unitary matrix quantum circuit of the suffix duplication stage, and the diagonal unitary matrix quantum circuit of the Gray pass processing stage. Here, the circuit U of the inversion stage inverse The circuit depth is O(logm+2 n / m) and realizes the following transformation [Equation 32]. Since the circuit depth of the inversion processing stage is the sum of the CNOT circuit depths in the previous four processing stages (prefix duplication stage, Gray initialization processing stage, suffix duplication stage, and Gray pass processing stage), i.e., [Equation 33], the transformation realized in the inversion processing stage is shown as the following [Equation 34].
[0078]
number
number
number
[0079] After determining the diagonal unitary matrix quantum circuit for each stage in the quantum state preparation circuit shown in FIG. 4, the execution of step 304 continues.
[0080] Step 304: Combine the diagonal unitary matrix quantum circuit and the single-bit gate to obtain a uniform control matrix circuit.
[0081] Step 305: Combine different uniform control matrix circuits to obtain a quantum state preparation circuit.
[0082] In some embodiments of the present application, the step of obtaining a uniform control matrix circuit by combining a diagonal unitary matrix quantum circuit and a single-bit gate can be realized by the following method: A uniform control matrix circuit is obtained by combining a diagonal unitary matrix quantum circuit of a prefix duplication stage, a diagonal unitary matrix quantum circuit of a Gray initialization processing stage, a diagonal unitary matrix quantum circuit of a suffix duplication stage, a diagonal unitary matrix quantum circuit of a Gray pass processing stage, a diagonal unitary matrix quantum circuit of an inversion processing stage, and a single-bit gate.
[0083] In some embodiments of the present application, the designed quantum state preparation circuit can be further verified, for example, including steps of determining a circuit depth of the quantum state preparation circuit, detecting the circuit depth of the quantum state preparation circuit by a target diagonal unitary matrix, and realizing the preparation of an arbitrary quantum state by the quantum state preparation circuit when it is detected that the circuit depth of the quantum state preparation circuit can realize the target diagonal unitary matrix.
[0084] For example, m ancillary qubits (2n≦m≦2 n+1 ), and Λ n has depth O(logm+2 n This can be realized using quantum circuits with m≧2. n+1 When n+1n ancillary qubits, the circuit depth is O(n). Combining the above two conditions, for any ancillary qubits m (≧2n), the circuit depth of the diagonal unitary matrix is O(n+2 n / m).
[0085] FIG. 6 is a structural schematic diagram of a uniform control matrix circuit in an embodiment of the present application. As shown in FIG. 6, an n-bit uniform control matrix V n In the circuit framework,
[35] are both n-qubit diagonal unitary matrices, and when D(n) denotes the number of ancillary qubits m, the quantum circuit depth of the n-qubit diagonal unitary matrix is realized (ignoring one global phase). Here, H and S(S + ) can be merged into one single-bit gate. n The global topology of can be realized by only one single-bit topological gate, and the circuit depth of any n-bit quantum state preparation circuit is [Equation 36].
[0086]
number
number
[0087] When combining a diagonal unitary matrix quantum circuit with a single-bit gate to obtain a uniform control matrix circuit, a uniform control matrix circuit is obtained by combining a diagonal unitary matrix quantum circuit at the prefix duplication stage, a diagonal unitary matrix quantum circuit at the Gray initialization processing stage, a diagonal unitary matrix quantum circuit at the suffix duplication stage, a diagonal unitary matrix quantum circuit at the Gray pass processing stage, a diagonal unitary matrix quantum circuit at the inversion processing stage, and a single-bit gate.
[0088] FIG. 7 is a structural schematic diagram of a quantum state preparation circuit in an embodiment of the present application. As shown in FIG. 7, the initial state of the circuit is [Equation 37]. For any k ∈ [n], V krepresents a k-qubit uniformly controlled gate. Here, the n-qubit uniformly controlled gate (UCG) V n is defined as follows: Here, for any k∈[2 n-1 ], U k ∈C 2×2 is a unitary matrix.
[0089]
number
number
[0090] Uniform control gates for any n qubits V n The diagonal submatrix of can be decomposed as follows [Equation 39]: Therefore, the uniform control matrix V n can be decomposed into the following form: Here, I n-1 represents the identity operator for n-1 qubits. It defines a diagonal unitary matrix of n qubits. [Number 41]
[0091]
number
number
number
[0092] By combining the descriptions in Figures 4 and 6, a quantum state preparation circuit can be obtained by combining different uniform control matrix circuits, and at the same time, m auxiliary quantum bits (2n≦m≦2 n+1 ), and Λ n has depth O(logm+2 n This can be realized using quantum circuits with m≧2. n+1 Whenn+1 n ancillary qubits, the circuit depth is O(n). Combining the above two conditions, for any ancillary qubits m (≧2n), the circuit depth of the diagonal unitary matrix is O(n+2 n / m), which means that when the number of ancillary qubits is m (≧2n), the circuit depth for quantum state preparation is O(n 2 +2 n Therefore, we can determine that the number of ancillary qubits, m∈[2n,O(2 n / n 2 )], then the circuit depth of the quantum state preparation circuit generated using the quantum state preparation circuit generation method provided by the present application is O(2 n / m). In this case, the lower bound of the circuit depth is Ω(2 n / m), and the upper bound of the circuit depth matches the lower bound (is equal in the asymptotic sense). Therefore, the circuit depth of the quantum state preparation circuit generated by the quantum state preparation circuit generation method provided by the present application is optimal, and the generated quantum state preparation circuit can be used to effectively reduce the effects of quantum damping.
[0093] In order to better explain the method for generating the quantum state preparation circuit provided by the present application, please refer to FIG. 8, which is a schematic diagram of a unitary matrix quantum circuit framework of the quantum state preparation circuit in the embodiment of the present application. Continuing the description below by taking n=8 and m=4 as an example, a quantum circuit of a diagonal unitary matrix Λ4 with eight ancillary qubits is realized. The latter eight qubits are ancillary qubits, and the initial state is |0〉. The first four qubits are composed of input registers, the next eight qubits are composed of copy registers, and the last four qubits are composed of phase registers. The framework is divided into five stages, including a prefix copy stage, a Gray initialization processing stage, a suffix copy stage, a Gray pass processing stage, and an inversion processing stage. The circuit depths of the five stages are 2, 3, 4, 6, and 11 layers, respectively, which will be described below.
[0094] In the prefix duplication stage, the circuit implements two copies of the prefix x1x2 in the duplication register, i.e., the transformation |x1x2x3x4〉|0 8 〉→|x1x2x3x4〉|x1x2x1x2〉|0 4 〉. Therefore, the circuit depth of the prefix duplication stage is 2.
[0095] In the Gray initialization stage, the quantum state preparation circuit first uses the copy of the prefix in the replica register to realize linear functions with suffix 00 on the four bits of the phase register, i.e., realizes the functions 〈0000,x〉, 〈1000,x〉, 〈0100,x〉, and 〈0100,x〉, and then adds the phase corresponding to each function, i.e., realizes the following transformation [Equation 42], and thus the circuit depth of the Gray initialization stage is 3.
[0096]
number
[0097] In the suffix duplication stage, we first set the initial state |0 4 〉, and then realize two copies of the prefix x3x4 on the duplicate register. That is, realize the following transformation [Equation 43], so that the circuit depth of the suffix duplication stage is 4.
[0098]
number
[0099] After the suffix duplication stage is completed, all suffixes have already realized the function 00. Then, for each different prefix, the circuit generates all suffixes. In order to better realize the process in parallel, in the Gray pass processing stage, the order of generating suffixes is the Gray code order. The 1-Gray code and the 2-Gray code are 00, 10, 11, 01 and 00, 01, 11, 10, respectively. The first two qubits of the phase register realize the 1-Gray code, and the last two qubits realize the 2-Gray code. After realizing one suffix each time, it is necessary to add the corresponding phase using a rotation gate. Therefore, in the Gray pass processing stage, the following transformation [Equation 44] This results in a circuit depth of 6 for the Gray pass processing stage.
[0100]
number
[0101] Finally, the goal of the inversion step is to restore the qubit in the replica register and the qubit in the phase register to their initial state |0〉. The inversion step (step 16) consists of sequentially reversing the circuits of steps 14, 12, 10, 9, 8, 7, 6, 4, 3, 2, and 1. This allows authentication and the inversion step to convert iθ(x) |x1x2x3x4〉|x1x2x1x2〉|〈0001,x〉,〈1001,x〉,〈0110,x〉,〈1110,x〉〉→e iθ(x) |x〉|0 4 〉|0 4 〉., and the circuit depth of the inversion processing stage is 11.
[0102] The circuit in Figure 8 converts |x〉|0 8 〉→e iθ(x) |x〉|0 8 〉=Λ4|x〉|0 8 〉, the circuit in Figure 6 is a realization of the diagonal unitary matrix Λ4.
[0103] Hereinafter, the description will continue to be given of an exemplary structure in which the generating device of the quantum state preparation circuit provided by the embodiments of the present application is implemented as a software module. In some embodiments, as shown in FIG. 2, the software module in the generating device of the quantum state preparation circuit stored in the memory 202 is a quantum preparation module 2021 arranged to arrange an input register. Here, the input register may include the quantum preparation module 2021, which is configured by n quantum bits, and a quantum transmission module 2022, which is arranged to obtain m auxiliary quantum bits. The quantum preparation module 2021 further includes a duplicate register and a phase register, respectively. Here, the duplicate register is configured by m / 2 auxiliary quantum bits, and the phase register is configured by m / 2 auxiliary quantum bits, and the input register, the duplicate register, and the phase register are arranged to process the quantum bits to obtain a diagonal unitary matrix quantum circuit, and the diagonal unitary matrix quantum circuit and the single-bit gate are combined to obtain a uniform control matrix circuit, thereby combining different uniform control matrix circuits to obtain a quantum state preparation circuit.
[0104] In some embodiments, the quantum preparation module 2021 is further configured to: perform a prefix duplication operation on the qubits using the input registers and the duplication registers to obtain a diagonal unitary matrix quantum circuit of a prefix duplication stage; perform a Gray initialization operation on the qubits using the input registers, the duplication registers, and the phase register to obtain a diagonal unitary matrix quantum circuit of a Gray initialization processing stage; perform a suffix duplication operation on the qubits using the input registers and the duplication registers to obtain a diagonal unitary matrix quantum circuit of a suffix duplication stage; perform a Gray pass operation on the qubits using the input registers, the duplication registers, and the phase register to obtain a diagonal unitary matrix quantum circuit of a Gray pass processing stage; and perform a combination operation on the diagonal unitary matrix quantum circuits of different processing stages using the input registers, the duplication registers, and the phase register to obtain a diagonal unitary matrix quantum circuit of an inversion processing stage.
[0105] In some embodiments, the quantum preparation module 2021 is further arranged to replicate each qubit in the input register once in the replication register by a controlled NOT gate in the diagonal unitary matrix quantum circuit of the prefix replication stage to obtain a first replication result, and to replicate each qubit in the input register and the first replication result in the replication register twice in the replication register by two controlled NOT gates in the diagonal unitary matrix quantum circuit of the prefix replication stage to obtain a second replication result, and to iteratively replicate each qubit in the input register based on the second replication result, and to determine a circuit depth of the diagonal unitary matrix quantum circuit of the prefix replication stage when each qubit in the input register has been replicated m / 2t times, where t is the number of qubits in the input register that need to be replicated.
[0106] In some embodiments, the quantum preparation module 2021 further determines a first target linear function matching the phase register and a quantity of the first target linear function, and copies the qubits in the input register and the qubits in the copy register to the phase register by a controlled NOT gate in the diagonal unitary matrix quantum circuit of the Gray initialization process stage. When the first target linear function is executed at the target position of the phase register, and the target quantum state is realized on each qubit in the phase register by executing the first target linear function, a first circuit depth of the diagonal unitary matrix quantum circuit of the Gray initialization process stage is determined, and a phase rotation process of the qubits is performed in the phase register. When realizing the operation of the target rotation gate on the target quantum bit in the phase register, a second circuit depth of the diagonal unitary matrix quantum circuit of the Gray initialization processing stage is determined, and the circuit depth of the diagonal unitary matrix quantum circuit of the Gray initialization processing stage is determined based on the sum of the first circuit depth of the diagonal unitary matrix quantum circuit of the Gray initialization processing stage and the second circuit depth of the diagonal unitary matrix quantum circuit of the Gray initialization processing stage.
[0107] In some embodiments, the quantum preparation module 2021 is further configured to perform a restoration process on the prefix replicated qubits, to replicate each qubit in the input register m / (2(nt)) times to a replication register, and to append the m / (2(nt)) replicated qubits to a suffix of the restored qubits, and to determine the circuit depth of the diagonal unitary matrix quantum circuit for the suffix replication stage when the suffix of each restored qubit is m / (2(nt)) replicated qubits.
[0108] In some embodiments, the quantum preparation module 2021 further determines a second target linear function matching the phase register and a quantity of the second target linear function, copies the qubits in the input register and the qubits in the copy register to the phase register by a controlled NOT gate in the diagonal unitary matrix quantum circuit of the Gray path processing stage, and executes the second target linear function at the target position of the phase register. When the target quantum state is realized on each qubit in the phase register by executing the second target linear function, a first circuit depth of the diagonal unitary matrix quantum circuit of the Gray path processing stage is determined, and a phase rotation process of the qubits is performed in the phase register. When realizing the operation of the target rotation gate on the target quantum bit in the phase register, a second circuit depth of the diagonal unitary matrix quantum circuit of the Gray pass processing stage is determined, and the circuit depth of the diagonal unitary matrix quantum circuit of the Gray pass processing stage is determined based on the sum of the first circuit depth of the diagonal unitary matrix quantum circuit of the Gray pass processing stage and the second circuit depth of the diagonal unitary matrix quantum circuit of the Gray pass processing stage.
[0109] In some embodiments, the quantum preparation module 2021 is further configured to determine a diagonal unitary matrix quantum circuit for the inversion stage by combining the diagonal unitary matrix quantum circuit for the prefix duplication stage, the diagonal unitary matrix quantum circuit for the Gray initialization stage, the diagonal unitary matrix quantum circuit for the suffix duplication stage, and the diagonal unitary matrix quantum circuit for the Gray pass processing stage. Here, the circuit depth of the diagonal unitary matrix quantum circuit for the inversion stage is O(logm+2 n / m).
[0110] In some embodiments, the quantum preparation module 2021 is further configured to combine the diagonal unitary matrix quantum circuit of the prefix duplication stage, the diagonal unitary matrix quantum circuit of the Gray initialization processing stage, the diagonal unitary matrix quantum circuit of the suffix duplication stage, the diagonal unitary matrix quantum circuit of the Gray pass processing stage, the diagonal unitary matrix quantum circuit of the inversion processing stage, and single-bit gates to obtain a uniform control matrix circuit.
[0111] In some embodiments, the quantum preparation module 2021 is further configured to determine a circuit depth of the quantum state preparation circuit, detect the circuit depth of the quantum state preparation circuit according to the target diagonal unitary matrix, and realize preparation of an arbitrary quantum state by the quantum state preparation circuit when it is detected that the circuit depth of the quantum state preparation circuit can realize the target diagonal unitary matrix.
[0112] An embodiment of the present application provides a computer program product or a computer program, the computer program product or the computer program including computer instructions (i.e. executable instructions) stored in a computer readable storage medium, a processor of an electronic device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, thereby causing the electronic device to perform the method of generating a quantum state preparation circuit of the embodiment of the present application.
[0113] An embodiment of the present application provides a computer-readable storage medium on which executable instructions are stored, which, when executed by a processor, cause the processor to perform a method of generating a quantum state preparation circuit provided by an embodiment of the present application.
[0114] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM, or may be any type of device including one or any combination of the above memories.
[0115] In some embodiments, the executable instructions may take the form of a program, software, software module, script, or code, compiled in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and which may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0116] As an example, the executable instructions do not necessarily correspond to a file in a file system, but may be stored in part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program under consideration, or in multiple interlocking files (e.g., files that store one or more modules, subprograms, or portions of code).
[0117] As an example, the executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one location, or even on multiple electronic devices distributed across multiple locations and interconnected via a communications network.
[0118] [Advantageous technical effect] In the embodiment of the present application, an input register is arranged to obtain m ancillary quantum bits, and a duplicate register and a phase register are arranged respectively, where the duplicate register is composed of m / 2 ancillary quantum bits, and the phase register is composed of m / 2 ancillary quantum bits, and the input register, the duplicate register and the phase register process the quantum bits to obtain a diagonal unitary matrix quantum circuit corresponding to the quantum state preparation circuit, and the diagonal unitary matrix quantum circuit and the single-bit gate are combined to obtain a uniform control matrix circuit. In this way, with any number of ancillary quantum bits, the quantum state preparation can be realized by the designed quantum state preparation circuit, the depth of the quantum state preparation circuit can be effectively reduced, the defect of quantum damping caused by the depth of the quantum state preparation circuit can be reduced, and the performance of the quantum processor can be improved.
[0119] The above is merely an embodiment of the present application, and is not used to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the scope of protection of the present application. [Explanation of symbols]
[0120] 201 Processor 202 Memory 203 User Interface 204 Network Interface 205 Bus 2021 Quantum Readiness Module 2022 Quantum Transmission Module
Claims
1. 1. A method for generating a quantum state preparation circuit, the method being performed by an electronic device, the method comprising: configuring an input register, the input register being composed of n quantum bits; obtaining m ancillary quantum bits and respectively configuring a replica register and a phase register, the replica register being configured by m / 2 ancillary quantum bits and the phase register being configured by m / 2 ancillary quantum bits; processing qubits through the input register, the replica register, and the phase register to obtain a diagonal unitary matrix quantum circuit; combining the diagonal unitary matrix quantum circuit with a single-bit gate to obtain a uniform control matrix circuit; and combining different uniform control matrix circuits to obtain a quantum state preparation circuit.
2. said step of processing qubits through said input register, said replica register, and said phase register to obtain a diagonal unitary matrix quantum circuit comprises: performing a prefix duplication process on the quantum bits using the input register and the duplication register to obtain a diagonal unitary matrix quantum circuit at a prefix duplication stage; performing a Gray initialization process on quantum bits using the input register, the replica register, and the phase register to obtain a Gray initialization stage diagonal unitary matrix quantum circuit; performing a suffix duplication process on the quantum bits using the input register and the duplication register to obtain a diagonal unitary matrix quantum circuit at a suffix duplication stage; performing Gray pass processing on quantum bits using the input register, the replica register, and the phase register to obtain a Gray pass processing stage diagonal unitary matrix quantum circuit; and performing a combinational process on diagonal unitary matrix quantum circuits of different processing stages using the input register, the replica register, and the phase register to obtain a diagonal unitary matrix quantum circuit of an inversion processing stage.
3. The step of performing a prefix duplication process on quantum bits using the input register and the duplication register to obtain a diagonal unitary matrix quantum circuit at a prefix duplication stage includes: replicating each qubit in the input register once in the replica register by a controlled NOT gate in a diagonal unitary matrix quantum circuit of the prefix replication stage to obtain a first replication result; replicating each qubit in the input register and the first replication result in the replication register twice in the replication register by two controlled NOT gates in a diagonal unitary matrix quantum circuit of the prefix replication stage to obtain a second replication result; and iteratively replicating each quantum bit in the input register based on the second replication result, and determining a circuit depth of a diagonal unitary matrix quantum circuit of the prefix replication stage when each quantum bit in the input register has been replicated m / 2t times, where t is a number of quantum bits in the input register that need to be replicated.
4. The step of performing a Gray initialization process on quantum bits using the input register, the replica register, and the phase register to obtain a diagonal unitary matrix quantum circuit at a Gray initialization process stage includes: determining a first target linear function that matches the phase register and a quantity of the first target linear function; replicating the qubits in the input register and the qubits in the replica register into the phase register by a controlled NOT gate in a diagonal unitary matrix quantum circuit of a Gray initialization stage; executing the first target linear function at a target position of the phase register; determining a first circuit depth of a diagonal unitary matrix quantum circuit of the Gray initialization process stage when a target quantum state is realized on each quantum bit of the phase register by executing the first target linear function; performing a phase rotation process on the quantum bit in the phase register; determining a second circuit depth of a diagonal unitary matrix quantum circuit of the Gray initialization stage when realizing a target rotation gate to operate on a target qubit in the phase register; determining a circuit depth of a diagonal unitary matrix quantum circuit of the Gray initialization process based on a sum of a first circuit depth of a diagonal unitary matrix quantum circuit of the Gray initialization process and a second circuit depth of a diagonal unitary matrix quantum circuit of the Gray initialization process.
5. The step of performing a suffix duplication process on quantum bits using the input register and the duplication register to obtain a diagonal unitary matrix quantum circuit at a suffix duplication stage includes: performing a restoration process on the prefix-replicated quantum bit; replicating each qubit in the input register into m / (2(n−t)) replica registers; appending m / (2(n−t)) replicated qubits at a suffix of the restored qubit; and determining a circuit depth of the diagonal unitary matrix quantum circuit of the suffix duplication step when the suffix of each restored quantum bit is m / (2(n-t)) duplicated quantum bits.
6. The step of performing Gray pass processing on quantum bits using the input register, the replica register, and the phase register to obtain a diagonal unitary matrix quantum circuit of a Gray pass processing stage includes: determining a second target linear function that matches the phase register and a quantity of the second target linear function; replicating the qubits in the input register and the qubits in the replica register into the phase register by a controlled NOT gate in a diagonal unitary matrix quantum circuit of a Gray pass processing stage; executing the second target linear function at a target position of the phase register; determining a first circuit depth of a diagonal unitary matrix quantum circuit of the Gray pass processing stage when a target quantum state is realized on each quantum bit of the phase register by executing the second target linear function; performing a phase rotation process on the quantum bit in the phase register; determining a second circuit depth of a diagonal unitary matrix quantum circuit of the Gray path processing stage when realizing a target rotation gate to operate on a target quantum bit in the phase register; determining a circuit depth of a diagonal unitary matrix quantum circuit of the Gray pass processing stage based on a sum of a first circuit depth of a diagonal unitary matrix quantum circuit of the Gray pass processing stage and a second circuit depth of a diagonal unitary matrix quantum circuit of the Gray pass processing stage.
7. The step of performing a combinational process on diagonal unitary matrix quantum circuits of different processing stages by the input register, the replica register, and the phase register to obtain a diagonal unitary matrix quantum circuit of an inversion processing stage, determining a diagonal unitary matrix quantum circuit for the inversion process by combining a diagonal unitary matrix quantum circuit for the prefix duplication process, a diagonal unitary matrix quantum circuit for the Gray initialization process, a diagonal unitary matrix quantum circuit for the suffix duplication process, and a diagonal unitary matrix quantum circuit for the Gray pass process; 3. The method of claim 2, wherein the circuit depth of the diagonal unitary matrix quantum circuit of the inversion processing stage is O(logm+2n / m).
8. The step of combining the diagonal unitary matrix quantum circuit with a single-bit gate to obtain a uniform control matrix circuit includes:
3. The method of claim 2, comprising combining a diagonal unitary matrix quantum circuit of the prefix duplication stage, a diagonal unitary matrix quantum circuit of the Gray initialization processing stage, a diagonal unitary matrix quantum circuit of the suffix duplication stage, a diagonal unitary matrix quantum circuit of the Gray pass processing stage, a diagonal unitary matrix quantum circuit of the inversion processing stage, and a single-bit gate to obtain a uniform control matrix circuit.
9. The method comprises: determining a circuit depth of the quantum state preparation circuit; Detecting a circuit depth of the quantum state preparation circuit by a target diagonal unitary matrix; 2. The method of claim 1 , further comprising: realizing the preparation of an arbitrary quantum state by the quantum state preparation circuit when it is detected that the circuit depth of the quantum state preparation circuit can realize the target diagonal unitary matrix.
10. An apparatus for generating a quantum state preparation circuit, the apparatus comprising: a quantum preparation module arranged to configure an input register, the input register being configured with n quantum bits; a quantum transmission module arranged to obtain the m ancillary qubits; The quantum preparation module further comprises: A replica register and a phase register are respectively arranged, the replica register being composed of m / 2 auxiliary quantum bits, and the phase register being composed of m / 2 auxiliary quantum bits; processing qubits through the input register, the replica register, and the phase register to obtain a diagonal unitary matrix quantum circuit; Combining the diagonal unitary matrix quantum circuit with a single-bit gate to obtain a uniform control matrix circuit; A quantum state preparation circuit generator arranged to combine different uniform control matrix circuits to obtain a quantum state preparation circuit.
11. The quantum preparation module further comprises: performing a prefix duplication process on the quantum bit using the input register and the duplication register to obtain a diagonal unitary matrix quantum circuit at a prefix duplication stage; performing a Gray initialization process on the quantum bit using the input register, the replica register, and the phase register to obtain a Gray initialization stage diagonal unitary matrix quantum circuit; performing a suffix duplication process on the quantum bits using the input register and the duplication register to obtain a diagonal unitary matrix quantum circuit at a suffix duplication stage; performing a Gray pass process on the quantum bit using the input register, the replica register, and the phase register to obtain a Gray pass process stage diagonal unitary matrix quantum circuit; 11. The apparatus of claim 10, wherein the input register, the replica register, and the phase register are arranged to perform combinatorial operations on diagonal unitary matrix quantum circuits of different processing stages to obtain a diagonal unitary matrix quantum circuit of an inverse processing stage.
12. The quantum preparation module further comprises: replicating each qubit in the input register once in the replica register by a controlled NOT gate in a diagonal unitary matrix quantum circuit of the prefix replication stage to obtain a first replication result; replicating each qubit in the input register and the first replication result in the replication register twice in the replication register by two controlled NOT gates in a diagonal unitary matrix quantum circuit of the prefix replication stage to obtain a second replication result; 12. The apparatus of claim 11, arranged to iteratively replicate each qubit in the input register based on the second replication result and to determine a circuit depth of the diagonal unitary matrix quantum circuit of the prefix replication stage when each qubit in the input register has been replicated m / 2t times, where t is a number of qubits in the input register that need to be replicated.
13. An electronic device, comprising: A memory storing an executable instruction sequence; An electronic device comprising: a processor that, when the executable instruction sequence stored in the memory is operated by the processor, causes the processor to realize the method for generating a quantum state preparation circuit described in any one of claims 1 to 9.
14. A computer program, which when executed by a processor included in an electronic device, causes the processor to implement the method for generating a quantum state preparation circuit according to any one of claims 1 to 9.
