Construction method of mixed quantum classical UNet + + neural network and related device
By constructing a hybrid quantum classic UNet++ neural network, the combination of quantum convolution kernel and classic UNet++ is solved, and the problem of insufficient building extraction computing power in remote sensing images is achieved, efficient building segmentation and feature extraction are achieved, and the accuracy of image segmentation is improved. sex.
Patent Information
- Application Number
- CN202411036078.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-07-31
AI Technical Summary
The prior art faces the problem of insufficient computing power in building extraction in remote sensing images, especially due to the rapid growth of high-resolution data and the complexity of machine learning models, which leads to the increasing difficulty of automatically identifying buildings.
A hybrid quantum classic UNet++ neural network is built, and images are segmented and feature extracted through quantum convolution kernels. Combined with the classic UNet++ neural network, quantum parallelism is used to improve the accuracy of building segmentation.
It effectively reduces the number of parameters of the model, improves the accuracy and efficiency of remote sensing image segmentation, and can better process large-scale remote sensing image data.
Smart Images

Figure CN119005254A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of quantum computing technology, and in particular to a method for constructing a hybrid quantum-classical UNet++ neural network and related devices. Background Art
[0002] Building extraction in remote sensing images refers to the automatic identification process of building and non-building pixels in remote sensing images. Building extraction plays an important role in many applications, such as urban planning, population estimation, economic activity distribution, disaster reporting, and many other applications.
[0003] In view of the problem that buildings account for a very small proportion of remote sensing satellite images and a single building usually only occupies a very small part of the image pixels, as well as the explosive growth of high-resolution remote sensing image data, remote sensing image datasets are huge and are increasingly attracting attention from academia and industry.
[0004] Given the rapid growth of data and the complexity of machine learning models used for analysis, the required computing power has become a major obstacle to automating the task of understanding images using machine learning algorithms. Summary of the invention
[0005] The purpose of the present invention is to provide a method for constructing a hybrid quantum classical UNet++ neural network to solve the technical problems in the prior art.
[0006] In a first aspect, the present invention provides a method for constructing a hybrid quantum classical UNet++ neural network, comprising:
[0007] Constructing a quantum convolution kernel, wherein the quantum convolution kernel includes n quantum bits, and the quantum convolution kernel is obtained by constructing a parameterized quantum circuit of n quantum bits;
[0008] Segmenting the image to obtain a number of target areas, each target area includes at least one pixel point, and each pixel point provides pixel point feature information;
[0009] Traversing each target area in turn, and obtaining a quantum convolution feature map corresponding to each target area based on the quantum convolution kernel;
[0010] The quantum convolution feature maps are sequentially spliced to obtain a quantum input convolution layer, and the output of the multiple quantum input convolution layers is a three-dimensional array;
[0011] The three-dimensional array is integrated with the classical UNet++ neural network to obtain a hybrid quantum classical UNet++ neural network.
[0012] A method for constructing a hybrid quantum classical UNet++ neural network as described above, wherein preferably, the quantum convolution kernel includes a quantum state encoding unit, an evolution unit and a measurement unit, wherein:
[0013] The quantum state encoding unit is used to encode the feature information of n pixels in the target area into the corresponding quantum bits;
[0014] The evolution unit is used to associate the quantum state information of the quantum bit and extract the pixel feature information carried by the quantum state information as the output quantum state;
[0015] The measuring unit is used to perform a measurement operation on the quantum bit.
[0016] A method for constructing a hybrid quantum classical UNet++ neural network as described above, wherein preferably, the quantum state encoding unit includes n H gates and n first quantum rotation gate units arranged in sequence along the action sequence, each of the H gates and each of the first quantum rotation gate units corresponds to one of the quantum bits, and the rotation control parameters of the first quantum rotation gate units are adjusted according to the pixel feature information.
[0017] In the method for constructing a hybrid quantum classical UNet++ neural network as described above, preferably, the first quantum rotation gate unit includes one or more of a first RX gate, a first RY gate and the first RZ gate.
[0018] A method for constructing a hybrid quantum classical UNet++ neural network as described above, wherein preferably, the first quantum rotation gate unit includes a first RY gate and a first RZ gate arranged in sequence along the action sequence, and the rotation control parameters of the first RY gate and the first RZ gate are adjusted separately according to the pixel feature information.
[0019] A method for constructing a hybrid quantum classical UNet++ neural network as described above, wherein preferably, the evolution unit includes a plurality of sub-evolution units arranged in sequence along the action sequence, and the sub-evolution unit includes n second quantum rotation gate units and n-1 CNOT gates arranged in sequence along the action sequence, and each of the second quantum rotation gate units and each of the CNOT gates corresponds to one of the quantum bits.
[0020] A method for constructing a hybrid quantum classical UNet++ neural network as described above, wherein preferably, the second quantum rotation gate unit includes one or more of a second RX gate, a second RY gate and a second RZ gate.
[0021] A method for constructing a hybrid quantum classical UNet++ neural network as described above, wherein preferably, the first quantum rotation gate unit includes a second RY gate.
[0022] In a second aspect, the present invention provides a construction device, the device comprising:
[0023] An information acquisition module is used to segment the image to obtain a number of target areas, each of which includes at least one pixel point, and each pixel point provides pixel point feature information;
[0024] A processing module, used for obtaining a quantum convolution feature map corresponding to each target area based on the quantum convolution kernel;
[0025] A splicing module splices the quantum convolution feature maps in sequence to obtain a quantum input convolution layer, and the output of multiple quantum input convolution layers is a three-dimensional array;
[0026] A generation module is provided to fuse the three-dimensional array with the classical UNet++ neural network to obtain a hybrid quantum classical UNet++ neural network.
[0027] In a third aspect, the present invention provides a storage medium storing a computer program, wherein the computer program is configured to execute the aforementioned method when run.
[0028] In a fourth aspect, the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the aforementioned method.
[0029] Compared with the prior art, the present invention, by constructing a hybrid quantum-classical UNet++ neural network, can not only effectively reduce the number of model parameters, but also effectively perform remote sensing image segmentation with the help of quantum parallelism, thereby improving the accuracy of target segmentation. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 is a network block diagram of a quantum circuit construction system provided in an embodiment of the present application;
[0031] Figure 2 It is a schematic diagram of the structure of a hybrid quantum classical UNet++ neural network provided in an embodiment of the present application;
[0032] Figure 3 It is a flow chart of a method for constructing a hybrid quantum classical UNet++ neural network provided in an embodiment of the present application;
[0033] Figure 4 A schematic diagram of the structure of a quantum convolution kernel provided in an embodiment of the present application;
[0034] Figure 5 A schematic diagram of the structure of a construction device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, but should not be construed as limiting the present invention.
[0036] [Structure of the quantum circuit construction system]
[0037] Figure 1 1 is a network block diagram of a quantum circuit construction system provided in an embodiment of the present application. The quantum circuit construction system may include a network 110, a server 120, a wireless device 130, a client 140, a storage unit 150, a classical processing system 160, a quantum processing system 170, and may also include additional memories, classical processors, quantum processors, and other devices not shown.
[0038] The network 110 is a medium for providing communication links between various devices and computers connected together in the quantum circuit construction system, including but not limited to the Internet, corporate intranet, local area network, mobile communication network and their combination. The connection method can be wired, wireless communication links or optical fiber cables.
[0039] The server 120 and the client 140 are conventional data processing systems that may contain data and applications or software tools that perform conventional computing processes. The client 140 may be a personal computer or a network computer, so the data may also be provided by the server 120. The wireless device 130 may be a smart phone, a tablet, a laptop, a smart wearable device, etc. The storage unit 150 may include a database 151, which may be configured to store data such as quantum bit parameters, quantum logic gate parameters, quantum circuits, quantum programs, etc.
[0040] The classical processing system 160 (quantum processing system 170) may include a classical processor 161 (quantum processor 171) for processing classical data (quantum data) and a memory 163 (memory 172) for storing classical data (quantum data). The classical data (quantum data) may be a boot file, an operating system image, and an application 162 (application 173). The application 162 (application 173) may be used to implement a quantum algorithm compiled according to the quantum circuit construction method provided in an embodiment of the present application.
[0041] Any data or information stored or generated in the classical processing system 160 (quantum processing system 170) can also be configured to be stored or generated in another classical (quantum) processing system in a similar manner, and any application program executed by it can also be configured to be executed in another classical (quantum) processing system in a similar manner.
[0042] It should be noted that a true quantum computer is a hybrid structure, which includes at least Figure 1 There are two major parts in it: the classical processing system 160, which is responsible for performing classical calculations and control; and the quantum processing system 170, which is responsible for running quantum programs and thus realizing quantum calculations.
[0043] The classical processing system 160 and the quantum processing system 170 may be integrated into one device or distributed in two different devices. For example, the first device including the classical processing system 160 runs a classical computer operating system, on which quantum application development tools and services are provided, as well as storage and network services required for quantum applications. Users develop quantum applications through the quantum application development tools and services thereon, and send quantum programs to the second device including the quantum processing system 170 through the network services thereon. The second device runs a quantum computer operating system, parses the code of the quantum program through the quantum computer operating system, and compiles it into instructions that can be recognized and executed by the quantum computer measurement and control system. The quantum processor 170 implements the quantum algorithm corresponding to the quantum program according to the instructions.
[0044] In the classic processing system 160 based on silicon chips, the unit of the classic processor 161 is a CMOS tube. This computing unit is not limited by time and coherence, that is, this computing unit is not limited by the length of use and can be used at any time. In addition, in the silicon chip, the number of such computing units is also sufficient. At present, the number of computing units in a classic processor is tens of thousands. The number of computing units is sufficient and the computing logic that can be selected by the CMOS tube is fixed, such as AND logic. When calculating with the help of CMOS tubes, a large number of CMOS tubes are combined with limited logic functions to achieve the computing effect.
[0045] Unlike this logic unit in the classical processing system 160, the basic computing unit of the quantum processor 171 in the quantum processing system 170 is a quantum bit, and the input of the quantum bit is limited by coherence and coherence time, that is, the quantum bit is limited by the use time and is not available at any time. Making full use of the quantum bit within the available use time of the quantum bit is a key problem in quantum computing. In addition, the number of quantum bits in a quantum computer is one of the representative indicators of the performance of a quantum computer. Each quantum bit realizes the computing function through the logical function configured on demand. In view of the limited number of quantum bits, the logical functions in the field of quantum computing are diverse, such as: Hadamard gate (Hadamard gate, H gate), Pauli-X gate (X gate), Pauli-Y gate (Y gate), Pauli-Z gate (Z gate), RX gate, RY gate, RZ gate, CNOT gate, CR gate, iSWAP gate, Toffoli gate, etc. In quantum computing, it is necessary to use limited quantum bits combined with a variety of logical functions to achieve the computing effect.
[0046] Based on these differences, the design of the logical function on the quantum bit (including the design of whether the quantum bit is used and the design of the efficiency of each quantum bit) is the key to improving the computing performance of quantum computers, and requires special design. The above-mentioned design for quantum bits is a technical problem that ordinary computing devices do not need to consider or face.
[0047]
Construction method of hybrid quantum classical UNet++ neural network
[0048] The classic UNet++ neural network is a deep learning network architecture, which is improved and expanded on the basis of the original classic UNet neural network to improve the accuracy and efficiency of image segmentation. The structure of the classic UNet++ neural network can refer to the network architecture provided in the prior art and will not be described here.
[0049] like Figure 2 The structure diagram of the UNet++ neural network with a quantum input convolution layer is shown in FIG. The UNet++ neural network with a quantum input convolution layer provided by the embodiment of the present invention uses a quantum input convolution layer to replace the classical input convolution layer in the classical UNet++ neural network. The quantum input convolution layer is prepared by a quantum circuit with parameters, and the quantum circuit with parameters plays the role of feature extraction and quantum parallel computing. In the feature extraction of remote sensing images, quantum computing advantages such as quantum parallelism or interference and entanglement effects are used as resources to improve the processing efficiency of the UNet++ neural network.
[0050] In the embodiments provided by the present invention, Figure 3 and Figure 4As shown, the method for constructing the hybrid quantum classical UNet++ neural network provided includes the following steps:
[0051] Step S101: construct a quantum convolution kernel, the quantum convolution kernel includes n quantum bits, and the quantum convolution kernel is obtained by constructing a parameterized quantum circuit of n quantum bits.
[0052] The corresponding number of quantum bits in the quantum convolution kernel is predetermined, which can be determined according to the number of quantum bits supported by the quantum device. The number of quantum bits in the quantum convolution kernel is less than or equal to the number of quantum bits supported by the quantum device. In a feasible implementation, as shown in the figure, the quantum convolution kernel includes 4 quantum bits, and the quantum convolution kernel includes 4 parameterized quantum circuits.
[0053] Step S102: Segment the image to obtain several target areas. The image can be divided into multiple target areas according to longitude and latitude. Each target area includes at least one pixel point. In this way, all pixels of the image are divided into multiple target areas arranged in a grid. The number of pixels in each target area corresponds to the number of quantum bits in the quantum convolution kernel.
[0054] Each pixel point provides pixel feature information respectively. The values of the pixel feature information provided by different pixels may be the same or different, and there is no limitation on this. Each pixel point corresponds to a quantum bit setting, so that the pixel feature information reflected by each pixel point is encoded into the quantum circuit where the corresponding quantum bit is located.
[0055] In a feasible implementation, the quantum convolution kernel includes 4 quantum bits, then the size of the target area obtained by image segmentation is 2*2, the width and height of the target area are both 2, and it includes 4 pixels. Since each pixel provides a pixel feature information, the pixel feature information is described as a grayscale value, and the grayscale value range is [0,1]. 0 indicates that the pixel is black, and 1 indicates white. Then each target area can provide grayscale value information of 4 pixels, and the 4 grayscale value information will be encoded respectively on the quantum circuits where the 4 quantum bits are located.
[0056] Step S103: traverse each target area in turn, and obtain the quantum convolution feature map corresponding to each target area based on the quantum convolution kernel.
[0057] Optionally, the pixel feature information of each target area is quantum-encoded and converted through a quantum convolution kernel to obtain an output quantum state corresponding to each target area. Based on the output quantum state, a quantum convolution feature map is obtained. The quantum convolution feature map includes the quantum state corresponding to each pixel in the target area, that is, the intrinsic characteristic connection between the pixel feature information of each pixel. By changing the control parameters in the quantum convolution kernel, each target area can obtain a different output quantum state and quantum convolution feature map.
[0058] Step S104: The quantum convolution feature maps are sequentially spliced to obtain a quantum input convolution layer, and the outputs of the multiple quantum input convolution layers are a three-dimensional array.
[0059] Optionally, the quantum convolution feature map corresponding to each target area is arranged according to the latitude and longitude coordinates corresponding to the original image to obtain a quantum convolution layer, and different quantum convolution feature maps obtained by changing the control parameters in the quantum convolution kernel can obtain different quantum convolution layers to output a three-dimensional array, referring to Figure 4 As shown, a total of six different quantum convolutional layers are obtained, and the six different quantum convolutional layers are combined into a three-channel three-dimensional array.
[0060] Step S105: The three-dimensional array is integrated with the classical UNet++ neural network to obtain a hybrid quantum classical UNet++ neural network. Figure 2 As shown, the quantum convolution layer replaces the input convolution layer in the classical UNet++ to obtain the corresponding quantum convolutional neural network. The QConv in the figure is the quantum convolution layer output by the quantum convolution kernel of the present invention. The multi-faceted output fusion strategy is used to fuse the features of different semantic layers to complete the hybrid quantum classical remote sensing image semantic segmentation UNet++ neural network. The remote sensing image segmentation is effectively performed with the help of quantum parallelism, partial acceleration of network calculation is achieved, and the number of model parameters is effectively reduced, thereby improving the efficiency of feature extraction and data processing.
[0061] Regarding the specific structure of the quantum convolution kernel, the embodiment of the present invention provides a quantum convolution kernel, referring to Figure 4 As shown, the quantum convolution kernel includes a quantum state encoding unit, an evolution unit, and a measurement unit, which are arranged in sequence, wherein:
[0062] The quantum state encoding unit is used to encode the feature information of n pixels in the target area onto the corresponding quantum bits. In the embodiment provided by the present invention, 4 quantum bits are used to form a 2*2 filter. The quantum coding adopts angle coding to pass the pixel feature information (such as four grayscale values) of the 4 target areas into the RX gate, RY gate or RZ gate.
[0063] In the embodiment provided in the present application, the quantum state encoding unit includes n H gates and n first quantum rotating gate units arranged in sequence along the action sequence, each H gate and each first quantum rotating gate unit corresponds to a quantum bit, and the rotation control parameters of the first quantum rotating gate unit are adjusted according to the pixel point feature information, so that the n pixel point feature information can be quantum state encoded. Optionally, the n pixel point feature information can be used as the rotation control parameters of the n first quantum rotating gate units respectively.
[0064] The H gate can convert a quantum bit in a ground state into a superposition state. The first quantum rotary gate unit is a single-qubit rotary gate, including one or more of a first RX gate, a first RY gate, and a first RZ gate. After the operation of the first quantum rotary gate unit is executed, only the amplitude of the quantum state changes.
[0065] Preferably, the first quantum rotating gate unit includes a first RY gate and a first RZ gate arranged in sequence along the action sequence, and the rotation control parameters of the first RY gate and the first RZ gate are adjusted separately according to the pixel feature information. In a feasible implementation, the rotation control parameter of the first RY gate is arctanx, and the rotation control parameter of the first RZ gate is arctanx. 2 ,x is the pixel feature information of the pixel corresponding to the quantum bit of this quantum circuit, such as the grayscale value.
[0066] The evolution unit is used to associate the quantum state information of the quantum bit and extract the pixel feature information carried by the quantum state information as the output quantum state. In the embodiment provided in the present application, a combination of rotation and entanglement gates is applied to the quantum bit after encoding to obtain the output quantum state.
[0067] In the embodiment provided by the present invention, the evolution unit includes a plurality of sub-evolution units arranged in sequence along the action sequence. The sub-evolution units are repeated multiple times to increase the depth of evolution and thus increase the number of parameters, thereby enhancing the expressive power of the model, capturing complex features and improving the entanglement of the quantum state.
[0068] The sub-evolution unit includes n second quantum rotary gate units and n-1 CNOT gates which are arranged in sequence along the action sequence. Each second quantum rotary gate unit and each CNOT gate corresponds to a quantum bit. Except for the CNOT gate acting on the lowest-order quantum bit, the control bit of the CNOT gate is the low-order quantum bit adjacent to the acted quantum bit, and the control bit of the CNOT gate of the lowest-order quantum bit is the highest-order quantum bit.
[0069] The second quantum rotating gate unit is a single-qubit rotating gate, which includes one or more of the second RX gate, the second RY gate, and the second RZ gate. After the single-qubit rotating gate operation is performed, only the amplitude of the quantum state changes. CNOT is a two-qubit controlled NOT gate, which uses the CNOT gate to construct the entanglement relationship between qubits and form multi-qubit entanglement.
[0070] The rotation control parameters of the second quantum rotating gate unit are not fixed in advance. They need to be updated in the iterative optimization process based on the gradient descent method. The rotation control parameters of the second quantum rotating gate unit are based on the following: first, for multiple quantum input convolution layers, each quantum input convolution layer encodes the input image in a fixed manner, and initializes a set of parameters respectively. Then, a quantum circuit is constructed according to the initialization angle, and the output eigenvalues are measured until multiple different three-dimensional arrays are output. The subsequent UNet++ network training is performed, and the rotation parameters of the second quantum rotating gate unit are updated through back propagation of the model loss function.
[0071] Preferably, the first quantum rotation gate unit comprises a second RY gate.
[0072] The measurement unit is used to perform measurement operations on quantum bits. The expected value of each quantum bit is considered through calculation-based measurements. The returned result is a fixed-length vector that needs to be further processed on a classical computer. The result is stored in the quantum convolution feature map.
[0073] In summary, the remote sensing image segmentation technology of hybrid classical quantum UNet++ feature extraction fusion provided by the embodiment of the present invention can be used to solve the real-world problems of current quantum computers. The framework of updating parameters using quantum convolution and variational circuits maintains the nonlinearity of classical convolution, the locality of the convolution layer, and the expansion characteristics to deep structures. In addition, the generalized feature map with parameter quantum circuits can explore the correlation between adjacent data points in an exponentially large linear space, and is expected to be able to capture patterns in data sets more accurately with quantum computers. The framework of automatically calculating the gradient of the hybrid quantum classical loss function using VQNet provides the potential for achieving higher accuracy in the meaning segmentation of remote sensing satellite images.
[0074]
Structure of the construction device
[0075] See also Figure 5 As shown, the construction device includes:
[0076] The information acquisition module is used to segment the image to obtain a number of target areas, each of which includes at least one pixel point, and each pixel point provides pixel point feature information.
[0077] The processing module is used to obtain a quantum convolution feature map corresponding to each target area based on the quantum convolution kernel.
[0078] The splicing module splices the quantum convolution feature maps in sequence to obtain the quantum input convolution layer, and the output of multiple quantum input convolution layers is a three-dimensional array.
[0079] The generation module fuses the three-dimensional array with the classical UNet++ neural network to obtain a hybrid quantum classical UNet++ neural network.
[0080]
Storage medium structure
[0081] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to implement the steps of any of the above method embodiments when running.
[0082] Specifically, in this embodiment, the above storage medium may be configured to store a computer program for implementing the following steps:
[0083] S101: Construct a quantum convolution kernel, the quantum convolution kernel includes n quantum bits, and the quantum convolution kernel is obtained by constructing a parameterized quantum circuit of n quantum bits.
[0084] S102: Segment the image to obtain a plurality of target regions, each of which includes at least one pixel point, and each pixel point provides pixel feature information.
[0085] S103: Traverse each target area in turn, and obtain a quantum convolution feature map corresponding to each target area based on the quantum convolution kernel.
[0086] S104: The quantum convolution feature maps are sequentially concatenated to obtain a quantum input convolution layer, and the outputs of the multiple quantum input convolution layers are a three-dimensional array.
[0087] S105: Fuse the three-dimensional array with the classical UNet++ neural network to obtain a hybrid quantum classical UNet++ neural network.
[0088]
Structure of electronic devices
[0089] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to implement the steps in any one of the above method embodiments.
[0090] Specifically, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0091] Specifically, in this embodiment, the processor may be configured to implement the following steps through a computer program:
[0092] S101: Construct a quantum convolution kernel, the quantum convolution kernel includes n quantum bits, and the quantum convolution kernel is obtained by constructing a parameterized quantum circuit of n quantum bits.
[0093] S102: Segment the image to obtain a plurality of target regions, each of which includes at least one pixel point, and each pixel point provides pixel feature information.
[0094] S103: Traverse each target area in turn, and obtain a quantum convolution feature map corresponding to each target area based on the quantum convolution kernel.
[0095] S104: The quantum convolution feature maps are sequentially concatenated to obtain a quantum input convolution layer, and the outputs of the multiple quantum input convolution layers are a three-dimensional array.
[0096] S105: Fuse the three-dimensional array with the classical UNet++ neural network to obtain a hybrid quantum classical UNet++ neural network.
[0097] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings. The above is only a preferred embodiment of the present invention, but the present invention is not limited to the scope of implementation shown in the drawings. Any changes made according to the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the description and drawings, should be within the protection scope of the present invention.
Claims
1. A method for constructing a hybrid quantum-classical UNet++ neural network, It is characterized in that include: Constructing a quantum convolution kernel, wherein the quantum convolution kernel includes n quantum bits, and the quantum convolution kernel is obtained by constructing a parameterized quantum circuit of n quantum bits; Segmenting the image to obtain a number of target areas, each target area includes at least one pixel point, and each pixel point provides pixel point feature information; Traversing each target area in turn, and obtaining a quantum convolution feature map corresponding to each target area based on the quantum convolution kernel; The quantum convolution feature maps are sequentially spliced to obtain a quantum input convolution layer, and the output of the multiple quantum input convolution layers is a three-dimensional array; The three-dimensional array is integrated with the classical UNet++ neural network to obtain a hybrid quantum classical UNet++ neural network.
2. The method according to claim 1, It is characterized in that The quantum convolution kernel includes a quantum state encoding unit, an evolution unit and a measurement unit, wherein: The quantum state encoding unit is used to encode the feature information of n pixels in the target area into the corresponding quantum bits; The evolution unit is used to associate the quantum state information of the quantum bit and extract the pixel feature information carried by the quantum state information as the output quantum state; The measuring unit is used to perform a measurement operation on the quantum bit.
3. The method according to claim 2, It is characterized in that The quantum state encoding unit includes n H gates and n first quantum rotation gate units arranged in sequence along the action sequence, each of the H gates and each of the first quantum rotation gate units corresponds to one of the quantum bits, and the rotation control parameters of the first quantum rotation gate units are adjusted according to the pixel feature information.
4. The method according to claim 3, It is characterized in that The first quantum rotation gate unit includes one or more of a first RX gate, a first RY gate, and the first RZ gate.
5. The method according to claim 4, It is characterized in that The first quantum rotation gate unit includes a first RY gate and a first RZ gate which are sequentially arranged along an action sequence, and rotation control parameters of the first RY gate and the first RZ gate are adjusted separately according to the pixel feature information.
6. The method according to claim 2, It is characterized in that The evolution unit includes a plurality of sub-evolution units sequentially arranged along the action sequence, and the sub-evolution units include n second quantum rotation gate units and n-1 CNOT gates sequentially arranged along the action sequence, and each of the second quantum rotation gate units and each of the CNOT gates corresponds to one of the quantum bits.
7. The method according to claim 6, It is characterized in that The second quantum rotation gate unit includes one or more of a second RX gate, a second RY gate, and the second RZ gate.
8. The method according to claim 7, It is characterized in that The first quantum rotation gate unit includes a second RY gate.
9. A construction device, It is characterized in that The device comprises: An information acquisition module is used to segment the image to obtain a number of target areas, each of which includes at least one pixel point, and each pixel point provides pixel point feature information; A processing module, used for obtaining a quantum convolution feature map corresponding to each target area based on the quantum convolution kernel; A splicing module splices the quantum convolution feature maps in sequence to obtain a quantum input convolution layer, and the output of multiple quantum input convolution layers is a three-dimensional array; A generation module is provided to fuse the three-dimensional array with the classical UNet++ neural network to obtain a hybrid quantum classical UNet++ neural network.
10. A storage medium, It is characterized in that The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 8 when executed.
11. An electronic device comprising a memory and a processor, It is characterized in that A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Image processing method, device and equipment
CN114494442A
Quantum convolution model, quantum circuit and construction method of quantum circuit
CN114548412A
Method and device for realizing quantum convolution operation
CN114819171A
Subject object parameter prediction method and device based on quantum convolutional neural network
CN116228283A
Design method and system of quantum convolutional neural network based on quantum circuit
CN116341666A
Cited By
Quantum variation circuit, data processing method and device, medium and equipment
CN119808973A
Data feature extraction method and device based on quantum convolutional neural network
CN120541498A
Model-based interaction method and system, wearable device and storage medium
CN120724211A
Remote sensing image recognition method, system, equipment and product based on quantum migration
CN120853021A
Quantum super-resolution medical image intelligent reconstruction method and system
CN121746180A
