Image classification method and system based on quantum network
By constructing a coprocessor quantum classifier and a quantum denoising autoencoder for joint training, the reliability and stability issues of quantum network image classification schemes are solved, achieving higher reliability and accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-02-05
- Publication Date
- 2026-03-10
AI Technical Summary
Existing quantum network image classification schemes lack quantum denoising autoencoders that are resistant to perturbations, resulting in poor reliability and stability.
A coprocessor quantum classifier and a quantum denoising autoencoder are constructed. Through joint training, the quantum denoising autoencoder is optimized using a Gaussian noise training dataset to reduce image noise, restore the original image, and achieve quantum image classification.
It improves the reliability and accuracy of quantum network image classification, enhances the ability to defend against disturbances, and has better stability.
Smart Images

Figure CN121640197A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of quantum technology, specifically relating to an image classification method and system based on quantum networks. Background Technology
[0002] Image classification is a common application requirement; a stable and reliable image classification scheme can greatly ensure the reliability and accuracy of the classification results. Therefore, improving the stability and reliability of image classification schemes has always been one of the key research focuses for researchers.
[0003] Quantum neural networks have wide applications in quantum machine learning, and they also demonstrate superior performance in image classification tasks. However, like classical neural networks, quantum neural networks are susceptible to carefully designed micro-perturbations, which can lead to misclassification of examples carrying attacks, thus threatening the security and reliability of image classification models.
[0004] A denoising autoencoder is a framework for defending against adversarial examples in neural network image classifiers. MagNet is a representative model in classic machine learning. The advantage of this framework is that it neither modifies the protected classifier nor requires knowledge of the process of generating adversarial examples. When faced with minor perturbations, a denoising autoencoder can reduce the noise carried by the image, recovering the original image, thus enabling the image classification network to correctly classify the input image.
[0005] However, in the quantum realm, there is currently a lack of research on quantum denoising autoencoders to protect quantum classifiers against perturbations. This results in image classification schemes based on quantum networks having poor reliability and stability. Summary of the Invention
[0006] One of the objectives of this invention is to provide a quantum network-based image classification method that is highly reliable, accurate, and stable.
[0007] The second objective of this invention is to provide a system for implementing the aforementioned quantum network-based image classification method.
[0008] The image classification method based on quantum networks provided by this invention includes the following steps:
[0009] S1. Obtain the trained quantum image classification network and the corresponding training dataset;
[0010] S2. Construct an initial coprocessor quantum classifier and train the constructed initial coprocessor quantum classifier using the training dataset obtained in step S1 to obtain the coprocessor quantum classifier;
[0011] S3. Construct a quantum denoising autoencoder and add Gaussian noise to the training dataset to obtain a noisy training dataset;
[0012] S4. Input the noisy training dataset obtained in step S3 into the current quantum denoising autoencoder, and calculate the difference between the image output by the quantum denoising autoencoder and the corresponding original image without added Gaussian noise.
[0013] S5. Input the image output by the quantum denoising autoencoder in step S4 into the coprocessing quantum classifier obtained in step S2, and calculate the loss between the classification result output by the coprocessing quantum classifier and the label corresponding to the original image without Gaussian noise.
[0014] S6. Repeat steps S4 to S5, and use the gap obtained in step S4 and the loss obtained in step S5 to train the constructed quantum denoising autoencoder to obtain the trained quantum denoising autoencoder.
[0015] S7. Connect the trained quantum denoising autoencoder obtained in step S6 with the trained quantum image classification network to obtain a noise-resistant quantum image classification network, and use the obtained noise-resistant quantum image classification network for image classification.
[0016] Step S2, which involves constructing the initial coprocessor quantum classifier, specifically includes the following steps:
[0017] An initial coprocessor quantum classifier is constructed using an arbitrary quantum classifier network;
[0018] The arbitrary quantum classifier network includes quantum neural networks and quantum convolutional neural networks.
[0019] Step S3, which describes the construction of a quantum denoising autoencoder, specifically includes the following steps:
[0020] An existing quantum network is used as a quantum denoising autoencoder;
[0021] The existing quantum networks mentioned include Hardware-Efficient Ansatz (HEA), Strongly Entangling Layers (SEL), and Quantum Convolution Blocks (QCB).
[0022] The quantum denoising autoencoder constructed in step S3 includes the following steps:
[0023] The input image is embedded into network A1 using amplitude encoding; network A1 includes Hardware-Efficient Ansatz (HEA), Strongly Entangling Layers (SEL), and Quantum Convolution Block (QCB).
[0024] Measurement network A1 output quantum state The output quantum state is obtained. Phase information and the measurement probability of each ground state The phase information is rearranged according to the measurement probability and divided into four equal parts.
[0025] The information after being divided equally is embedded into intermediate networks D1 to D4 using amplitude encoding; among them, intermediate networks D1 to D4 include Hardware-Efficient Ansatz (HEA), Strongly Entangling Layers (SEL), and Quantum Convolution Block (QCB).
[0026] The output quantum states of the intermediate network D1~D4 are measured to obtain the phase information of the output quantum states and the measurement probability of each ground state; the phase information is rearranged according to the measurement probability and merged into one information path;
[0027] The obtained information is input into the third network C1; the third network C1 includes a Hardware-Efficient Ansatz (HEA), a Strongly Entangling Layer (SEL), and a Quantum Convolution Block (QCB).
[0028] The output quantum state of the third network C1 is measured to obtain the phase information of the output quantum state and the measurement probabilities of each ground state; the phase information is then rearranged according to the measurement probabilities and divided by... The classical image is obtained and used as the output of the quantum denoising autoencoder.
[0029] The quantum denoising autoencoder constructed in step S3 is physically implemented through the following steps:
[0030] The quantum denoising autoencoder includes an encoder and a decoder; both the encoder and the decoder include several PQC circuits that provide unitary variable networks; each PQC circuit includes several rotation layers and entanglement layers;
[0031] The rotation layer consists of a set of universal rotation gates on each quantum circuit to form a fully unitary U, denoted as ,in A single-bit trainable parameterized rotation gate that rotates about the Z-axis of a Bloch sphere. A single-bit trainable parameterized rotation gate for rotation about the Y-axis of a Bloch sphere. The first parameter to be trained. The second parameter to be trained. The third parameter to be trained; the combination of rotating doors can be arbitrarily changed;
[0032] The entanglement layer consists of CNOT gates.
[0033] Step S4 specifically includes the following steps:
[0034] The noisy training dataset obtained in step S3 Input to the current quantum denoising autoencoder;
[0035] Obtain the image output from the current quantum denoising autoencoder. ;
[0036] Computational quantum denoising autoencoder output image Compared with the original image without added Gaussian noise The gap between for ,in It is the square root of the sum of the squares of the elements of a vector, used to measure the Euclidean length of the vector.
[0037] Step S5 specifically includes the following steps:
[0038] The image output from the quantum denoising autoencoder in step S4 The input is fed into the coprocessor quantum classifier obtained in step S2;
[0039] Obtain the classification results output by the coprocessor quantum classifier;
[0040] Calculate the cross-entropy loss between the classification result output by the coprocessor quantum classifier and the label corresponding to the original image without added Gaussian noise. .
[0041] The training described in step S6 specifically includes the following steps:
[0042] The difference obtained using step S4 and the loss obtained in step S5 Construct the total loss function for ,in The first weight value is set. This is the set second weight value;
[0043] Using the constructed total loss function The quantum denoising autoencoder is trained.
[0044] This invention also provides a system for implementing the aforementioned quantum network-based image classification method, comprising a data acquisition module, a classifier training module, an encoder construction module, a gap calculation module, a loss calculation module, an encoder training module, and an image classification module; the data acquisition module, classifier training module, encoder construction module, gap calculation module, loss calculation module, encoder training module, and image classification module are connected in series; the data acquisition module is used to acquire the trained quantum image classification network and the corresponding training dataset, and upload the data information to the classifier training module; the classifier training module is used to construct an initial coprocessor quantum classifier based on the received data information, and train the constructed initial coprocessor quantum classifier using the acquired training dataset to obtain the coprocessor quantum classifier, and upload the data information to the encoder construction module; the encoder construction module is used to construct a quantum denoising autoencoder based on the received data information, and add Gaussian noise to the training dataset to obtain a noisy training dataset, and upload the data information to the gap calculation module; the gap calculation module is used to construct a quantum denoising autoencoder based on the received data information, and add Gaussian noise to the training dataset to obtain a noisy training dataset, and upload the data information to the gap calculation module; the gap calculation module is used to construct the ... The data information is processed as follows: First, the noisy training dataset is input into the current quantum denoising autoencoder. The difference between the output image of the quantum denoising autoencoder and the corresponding original image without Gaussian noise is calculated, and the data is uploaded to the loss calculation module. Second, the loss calculation module, based on the received data, inputs the output image of the quantum denoising autoencoder into the obtained coprocessor quantum classifier. It calculates the loss between the classification result output by the coprocessor quantum classifier and the label corresponding to the original image without Gaussian noise, and uploads the data to the encoder training module. Third, the encoder training module, based on the received data, trains the constructed quantum denoising autoencoder using the obtained difference and loss, obtaining the trained quantum denoising autoencoder, and uploads the data to the image classification module. Fourth, the image classification module, based on the received data, concatenates the trained quantum denoising autoencoder with the trained quantum image classification network to obtain a noise-resistant quantum image classification network, and uses the noise-resistant quantum image classification network for image classification.
[0045] The image classification method and system based on quantum networks provided by this invention not only achieves image classification based on quantum networks by constructing a coprocessor quantum classifier and a quantum denoising autoencoder and performing joint training, but also has higher reliability, better accuracy, and better stability. Attached Figure Description
[0046] Figure 1 This is a schematic diagram of the method flow of the present invention.
[0047] Figure 2 This is a schematic diagram of the processing flow of the quantum denoising autoencoder constructed in the method of the present invention.
[0048] Figure 3 This is a schematic diagram of an embodiment of the unitary variable network in the quantum denoising autoencoder constructed in the method of the present invention.
[0049] Figure 4 This is a schematic diagram of the functional modules of the system of the present invention. Detailed Implementation
[0050] like Figure 1 The diagram shown is a flowchart of the method of the present invention: The image classification method based on quantum networks disclosed in this invention includes the following steps:
[0051] S1. Obtain the trained quantum image classification network and the corresponding training dataset;
[0052] S2. Construct an initial coprocessor quantum classifier and train the constructed initial coprocessor quantum classifier using the training dataset obtained in step S1 to obtain the coprocessor quantum classifier;
[0053] In practice, any quantum classifier network can be used to construct the initial coprocessor quantum classifier; for example, the commonly used quantum neural network QNN or quantum convolutional neural network QCNN can be used as the initial coprocessor quantum classifier.
[0054] In practice, the coprocessor quantum classifier is used to assist in the training of the quantum denoising autoencoder. The coprocessor quantum classifier is only used during the training process. After training is completed, the coprocessor quantum classifier is not needed when applying it to specific image classification tasks.
[0055] S3. Construct a quantum denoising autoencoder and add Gaussian noise to the training dataset to obtain a noisy training dataset;
[0056] In practice, the quantum denoising autoencoder can use existing quantum networks or be built by itself;
[0057] Among them, the quantum networks that can be selected include Hardware-Efficient Ansatz (HEA), Strongly Entangling Layers (SEL), and Quantum Convolution Block (QCB).
[0058] However, while current quantum network structures have a theoretical basis for processing single quantum states, they cannot achieve a perfect mapping relationship when processing quantum state datasets due to the limitation of unitary transformation. Therefore, their performance is not ideal when used as a quantum state-to-quantum state processing network, such as a quantum denoising autoencoder. Therefore, this invention also constructs its own quantum denoising autoencoder. The processing steps of this quantum denoising autoencoder include the following steps (e.g.) Figure 2 (as shown)
[0059] The input image is embedded into network A1 using amplitude encoding; network A1 includes Hardware-Efficient Ansatz (HEA), Strongly Entangling Layers (SEL), and Quantum Convolution Block (QCB).
[0060] Measurement network A1 output quantum state The output quantum state is obtained. Phase information and the measurement probability of each ground state The phase information is rearranged according to the measurement probability and divided into four equal parts.
[0061] The information after being divided equally is embedded into intermediate networks D1 to D4 using amplitude encoding; among them, intermediate networks D1 to D4 include Hardware-Efficient Ansatz (HEA), Strongly Entangling Layers (SEL), and Quantum Convolution Block (QCB).
[0062] The output quantum states of the intermediate network D1~D4 are measured to obtain the phase information of the output quantum states and the measurement probability of each ground state; the phase information is rearranged according to the measurement probability and merged into one information path;
[0063] The obtained information is input into the third network C1; the third network C1 includes a Hardware-Efficient Ansatz (HEA), a Strongly Entangling Layer (SEL), and a Quantum Convolution Block (QCB).
[0064] In practice, network A1, intermediate networks D1~D4 and third network C1 can be selected from efficient quantum networks, strongly entangled structures and quantum convolutional blocks for application. Currently, the more common approach is to select efficient quantum networks for all three.
[0065] The output quantum state of the third network C1 is measured to obtain the phase information of the output quantum state and the measurement probabilities of each ground state; the phase information is then rearranged according to the measurement probabilities and divided by... The classical image is obtained and used as the output of the quantum denoising autoencoder;
[0066] The quantum denoising autoencoder constructed by this invention uses a multi-level quantum network and utilizes mid-course measurement and rearrangement methods to overcome the limitation of a single unitary change, while making full use of the performance of the quantum network.
[0067] The physical implementation of a self-built quantum denoising autoencoder includes the following steps:
[0068] Quantum denoising autoencoders consist of an encoder and a decoder; both the encoder and decoder include several PQC circuits that provide unitary variable networks (structural examples are shown below). Figure 3 (As shown); Each PQC circuit includes several rotation layers and entanglement layers;
[0069] The rotation layer consists of a set of universal rotation gates on each quantum circuit to form a fully unitary U, denoted as ,in A single-bit trainable parameterized rotation gate that rotates about the Z-axis of a Bloch sphere. A single-bit trainable parameterized rotation gate for rotation about the Y-axis of a Bloch sphere. The first parameter to be trained. The second parameter to be trained. The third parameter to be trained; the combination of rotating doors can be arbitrarily changed;
[0070] The entanglement layer consists of CNOT gates;
[0071] S4. Input the noisy training dataset obtained in step S3 into the current quantum denoising autoencoder, and calculate the difference between the image output by the quantum denoising autoencoder and the corresponding original image without added Gaussian noise; specifically including the following steps:
[0072] The noisy training dataset obtained in step S3 Input to the current quantum denoising autoencoder;
[0073] Obtain the image output from the current quantum denoising autoencoder. ;
[0074] Computational quantum denoising autoencoder output image Compared with the original image without added Gaussian noise The gap between for ,in It is the square root of the sum of the squares of the elements of a vector, used to measure the Euclidean length of the vector.
[0075] The noisy data is not generated by any attack method, but rather Gaussian noise is used to summarize the effect of any additive attack. Since Gaussian noise tends to cluster at low perturbations, it also produces some samples that are very close to the original data. Therefore, the denoiser receives both noisy and near-original data simultaneously, allowing it to process both noisy and noise-free data concurrently. The quantum denoising autoencoder, through training, should minimize the gap... The goal is to reduce the noise level and restore the noisy data to its original state.
[0076] S5. Input the image output by the quantum denoising autoencoder in step S4 into the coprocessing quantum classifier obtained in step S2, and calculate the loss between the classification result output by the coprocessing quantum classifier and the label corresponding to the original image without added Gaussian noise; specifically including the following steps:
[0077] The image output from the quantum denoising autoencoder in step S4 The input is fed into the coprocessor quantum classifier obtained in step S2;
[0078] Obtain the classification results output by the coprocessor quantum classifier;
[0079] Calculate the cross-entropy loss between the classification result output by the coprocessor quantum classifier and the label corresponding to the original image without added Gaussian noise. ;
[0080] S6. Repeat steps S4 to S5, and use the gap obtained in step S4 and the loss obtained in step S5 to train the constructed quantum denoising autoencoder to obtain the trained quantum denoising autoencoder.
[0081] The training process includes:
[0082] The difference obtained using step S4 and the loss obtained in step S5 Construct the total loss function for ,in The first weight value is set. This is the set second weight value;
[0083] Using the constructed total loss function Training a quantum denoising autoencoder
[0084] S7. Connect the trained quantum denoising autoencoder obtained in step S6 with the trained quantum image classification network to obtain a noise-resistant quantum image classification network, and use the obtained noise-resistant quantum image classification network for image classification.
[0085] In practice, the trained quantum denoising autoencoder is used as the pre-network of the trained quantum image classification network. The input image to be classified is first processed by the quantum denoising autoencoder and then passed through the trained quantum image classification network to achieve image classification of the input image.
[0086] The effects of the method of the present invention will be illustrated below with reference to an embodiment:
[0087] The method of this invention is combined with existing unprotected schemes, Defense-GAN schemes, MagNet schemes, QNN with Noise Layer schemes, and Depolar schemes to process the HEA network simultaneously. This experiment is a three-class classification task experiment conducted on the MNIST handwritten digit dataset, with the input data carrying an FGSM attack.
[0088] Among them, the Defense-GAN scheme was proposed by Samangouei et al. in 2018 in "Defense-GAN: Protecting classifiers against adversarial attacks using generative models"; the MagNet scheme was proposed by Meng et al. in 2017 in "Magnet: a two-pronged defense against adversarial examples"; the QNN with Noise Layer scheme was proposed by Huang et al. in 2023 in "Enhancing adversarial robustness of quantum neural networks by adding noise layers"; and the Depolar scheme was proposed by Du et al. in 2021 in "Quantum noise protects quantum classifiers against adversaries".
[0089] The final comparison data is shown in Table 1:
[0090] As can be seen from Table 1, the present invention demonstrates superiority in image processing: training is faster and higher defense accuracy is achieved under small-scale network structures (7-bit network is used in this embodiment, and the image size is 11*11), and the model accuracy is better than other existing solutions; this is sufficient to demonstrate the reliability of the present invention.
[0091] like Figure 4The diagram shows the functional modules of the system of this invention: The system for implementing the quantum network-based image classification method disclosed in this invention includes a data acquisition module, a classifier training module, an encoder construction module, a gap calculation module, a loss calculation module, an encoder training module, and an image classification module; these modules are connected in series. The data acquisition module acquires the trained quantum image classification network and the corresponding training dataset, and uploads the data information to the classifier training module. The classifier training module constructs an initial coprocessor quantum classifier based on the received data information, trains the constructed initial coprocessor quantum classifier using the acquired training dataset, obtains the coprocessor quantum classifier, and uploads the data information to the encoder construction module. The encoder construction module constructs a quantum denoising autoencoder based on the received data information, adds Gaussian noise to the training dataset to obtain a noisy training dataset, and uploads the data information to the gap calculation module. The gap calculation module... The quantum denoising autoencoder is used to input the noisy training dataset into the current quantum denoising autoencoder based on the received data, calculate the difference between the image output by the quantum denoising autoencoder and the corresponding original image without Gaussian noise, and upload the data to the loss calculation module. The loss calculation module is used to input the image output by the quantum denoising autoencoder into the obtained coprocessing quantum classifier based on the received data, calculate the loss between the classification result output by the coprocessing quantum classifier and the label corresponding to the original image without Gaussian noise, and upload the data to the encoder training module. The encoder training module is used to train the constructed quantum denoising autoencoder based on the received data, using the obtained difference and the obtained loss, to obtain the trained quantum denoising autoencoder, and upload the data to the image classification module. The image classification module is used to concatenate the trained quantum denoising autoencoder with the trained quantum image classification network based on the received data to obtain a noise-resistant quantum image classification network, and use the obtained noise-resistant quantum image classification network for image classification.
Claims
1. A quantum network-based image classification method, characterized in that The method comprises the following steps: S1. obtaining a trained quantum image classification network and a corresponding training data set; S2. constructing an initial co-processing quantum classifier, and training the constructed initial co-processing quantum classifier using the training data set obtained in step S1 to obtain a co-processing quantum classifier; S3. constructing a quantum denoising autoencoder, and adding Gaussian noise to the training data set to obtain a noisy training data set; S4. inputting the noisy training data set obtained in step S3 into the current quantum denoising autoencoder, and calculating the difference between the image output by the quantum denoising autoencoder and the original image without adding Gaussian noise; S5. inputting the image output by the quantum denoising autoencoder in step S4 into the co-processing quantum classifier obtained in step S2, and calculating the loss between the classification result output by the co-processing quantum classifier and the label corresponding to the original image without adding Gaussian noise; S6. repeating steps S4-S5, training the constructed quantum denoising autoencoder using the difference obtained in step S4 and the loss obtained in step S5 to obtain a trained quantum denoising autoencoder; S7. concatenating the trained quantum denoising autoencoder obtained in step S6 with the trained quantum image classification network to obtain a noise-resistant quantum image classification network, and using the obtained noise-resistant quantum image classification network for image classification.
2. The quantum network based image classification method of claim 1, wherein The step S2 of constructing an initial co-processing quantum classifier specifically comprises the following steps: An initial co-processing quantum classifier is constructed using an arbitrary quantum classifier network; The arbitrary quantum classifier network includes a quantum neural network and a quantum convolutional neural network.
3. The quantum network based image classification method of claim 2, wherein The step S3 of constructing a quantum denoising autoencoder specifically comprises the following steps: An existing quantum network is used as a quantum denoising autoencoder; The existing quantum network includes a hardware-efficient quantum network, a strong entanglement structure, and a quantum convolutional block.
4. The quantum network based image classification method of claim 2, wherein The processing process of the quantum denoising autoencoder constructed in step S3 comprises the following steps: The input image is embedded in network A1 using amplitude encoding; wherein network A1 includes a hardware-efficient quantum network, a strong entanglement structure, and a quantum convolutional block; measuring the output quantum state of network A1 , obtaining phase information and individual ground state measurement probabilities of the output quantum state ; rearranging the phase information according to the measurement probabilities and dividing it into 4 equal parts; The divided information is embedded in intermediate networks D1-D4 using amplitude encoding; wherein intermediate networks D1-D4 include a hardware-efficient quantum network, a strong entanglement structure, and a quantum convolutional block; The phase information of the output quantum state of the intermediate networks D1-D4 is obtained by measuring the output quantum state, and the phase information is rearranged according to the measurement probability and combined into one-way information; The obtained information is input into a third network C1; wherein the third network C1 includes a hardware-efficient quantum network, a strong entanglement structure, and a quantum convolutional block; Measuring the output quantum state of the third network C1, obtaining phase information and each ground state measurement probability of the output quantum state; rearranging the phase information according to the measurement probability, and then dividing by , obtaining a classical image, and taking the classical image as the output of the quantum denoising autoencoder.
5. The quantum network based image classification method of claim 3, wherein The physical implementation process of the quantum denoising autoencoder constructed in step S3 comprises the following steps: The quantum denoising autoencoder includes an encoder and a decoder; both the encoder and the decoder include a plurality of PQC circuits providing unitary networks; each PQC circuit includes a plurality of rotation layers and entanglement layers; The rotation layer consists of a set of universal rotation gates on each quantum line to form a full unitary transformation U, denoted as wherein is a single-bit trainable parameterized rotation gate that rotates around the Z coordinate axis of the Bloch sphere, is a single-bit trainable parameterized rotation gate that rotates around the Y coordinate axis of the Bloch sphere, is a first to-be-trained parameter, is a second to-be-trained parameter, is a third to-be-trained parameter; the combination of the rotation gates can be arbitrarily transformed; The entanglement layer is composed of CNOT gates.
6. The quantum network based image classification method of claim 5, wherein The step S4 specifically comprises the following steps: the noisy training dataset obtained from step S3 to the current quantum denoising autoencoder; acquiring an image of a current quantum denoising autoencoder output ; Images output by a computational quantum denoising autoencoder The difference between the output image of the computational quantum denoising autoencoder and the corresponding original image without added Gaussian noise is where is the square root of the sum of the squares of the elements of the vector, used to measure the Euclidean length of the vector. 7. The quantum network based image classification method of claim 6, wherein The step S5 specifically comprises the following steps: the image output by the quantum denoising autoencoder in step S4 into the co-processed quantum classifier obtained in step S2; Obtaining a classification result of the coprocessing quantum classifier output; computing a cross-entropy loss between a classification result of the compute co-processor quantum classifier output and a label corresponding to the original image without added Gaussian noise .
8. The quantum network based image classification method of claim 7, wherein The training of step S6 specifically comprises the following steps: the gap obtained by step S4 and the loss obtained by step S5 , the total loss function is constructed is , wherein is a first weight value set, is a second weight value set; The total loss function is constructed The quantum denoising autoencoder is trained.
9. A system for implementing the quantum network-based image classification method of any one of claims 1-8, characterized in that The system comprises a data acquisition module, a classifier training module, an encoder construction module, a gap calculation module, a loss calculation module, an encoder training module and an image classification module; the data acquisition module, the classifier training module, the encoder construction module, the gap calculation module, the loss calculation module, the encoder training module and the image classification module are connected in series; the data acquisition module is used to acquire the trained quantum image classification network and the corresponding training data set, and upload the data information to the classifier training module; The classifier training module is used to construct an initial coprocessing quantum classifier according to the received data information, and train the constructed initial coprocessing quantum classifier using the acquired training data set to obtain the coprocessing quantum classifier, and upload the data information to the encoder construction module; the encoder construction module is used to construct a quantum denoising autoencoder according to the received data information, and add Gaussian noise to the training data set to obtain a noisy training data set, and upload the data information to the gap calculation module; The gap calculation module is used to input the obtained noisy training data set into the current quantum denoising autoencoder according to the received data information, calculate the gap between the image output by the quantum denoising autoencoder and the original image without adding Gaussian noise, and upload the data information to the loss calculation module; The loss calculation module is used to input the image output by the quantum denoising autoencoder into the obtained coprocessing quantum classifier according to the received data information, calculate the loss between the classification result output by the coprocessing quantum classifier and the label corresponding to the original image without adding Gaussian noise, and upload the data information to the encoder training module; the encoder training module is used to train the constructed quantum denoising autoencoder using the obtained gap and the obtained loss to obtain the trained quantum denoising autoencoder, and upload the data information to the image classification module; The image classification module is used to connect the obtained trained quantum denoising autoencoder and the trained quantum image classification network in series according to the received data information to obtain an anti-noise quantum image classification network, and perform image classification using the obtained anti-noise quantum image classification network.
Citation Information
Patent Citations
Quantum Hamiltonian learning method, image segmentation method and license plate recognition method
CN114565096A
Quantum classifier-based data classification method and data security risk assessment method
CN115630705A
Image classification method of quantum neural network based on error mitigation
CN116310473A
Quantum state denoising system based on quantum generative adversarial network
CN117196055A
Image generation method based on mixed quantum classical condition generative adversarial network
CN119323614A