A method for compressing color computer holograms using quantum neural networks based on gradient optimization

Through gradient-optimized quantum neural networks and bandwidth-limited angular spectrum methods, combined with dual-phase encoding, the problem of poor convergence speed and effect of quantum neural networks in color computer hologram compression is solved, achieving more efficient compression and reconstruction quality. .

CN114742945BActive Publication Date: 2024-09-24PEKING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210324765.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-30
Publication Date
2024-09-24
Estimated Expiration
2042-03-30

AI Technical Summary

Technical Problem

In the existing technology, the convergence speed and effect of quantum neural networks when compressing color computer holograms need to be optimized, and there is a lack of effective methods to improve the compression transmission speed and reconstruction quality of color computer holograms.

Method used

A gradient-optimized quantum neural network is used, combined with the bandwidth-limited angular spectrum method and dual-phase encoding, and through the quantum superposition principle and gradient descent optimization algorithm, the quantum neural network is trained to improve the compression and decompression efficiency of color computer holograms, and in RGB color The data set is spatially divided to accommodate the characteristics of different wavelengths.

Benefits of technology

Significantly improves the compression transmission speed and reconstruction quality of color computer holograms, reduces noise and color deviation, and achieves faster convergence and higher image quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114742945B
    Figure CN114742945B
Patent Text Reader

Abstract

The present invention proposes a method for compressing color computer holograms based on gradient-optimized quantum neural networks, and belongs to the technical field of compression and transmission of computer holograms. The present invention adopts bandwidth-limited angular spectrum calculation and dual-phase encoding to produce color computer holograms. A method for compressing color computer holograms in RGB color space using gradient-optimized quantum neural networks is proposed, and the corresponding network model is trained according to the characteristics of computer holograms of different wavelengths. The computer hologram decompressed by this method is reproduced using bandwidth-limited angular spectrum method and synthesized into a color reproduced image. The present invention accelerates the compression of color computer holograms and obtains higher quality of decompressed color computer holograms and color reproduced images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention provides a method for compressing color computer holograms using a gradient-optimized quantum neural network, and specifically relates to the technical field of compression and transmission of computer holograms. Technical Background

[0002] The rapid development of computer technology has provided more implementation solutions for the preparation and calculation of computer holograms. However, due to the characteristics of computer holograms themselves as interference fringes and containing a huge amount of original object information, the method of their compression and transmission is still a difficult problem worthy of study.

[0003] In 2010, BP neural network was applied to the compression of grayscale computer holograms. [1] , the article proposed a system for hologram compression and transmission, showing that the method of using neural network is more robust than DCT and DWT compression at low compression ratio, but the compression speed and reconstructed image quality of this method are still limited. [2] et al. first applied quantum neural networks to hologram compression, and compared the effects of quantum neural networks and BP neural networks in compressing grayscale computer holograms. The quantum neural network method has a faster convergence speed and improves the quality of reconstructed grayscale computer holographic images. [3] et al. used a quantum neural network with optimized initialization to compress grayscale computer-generated holograms. Pre-training the model with initial samples further improved the encoding and decoding efficiency of the quantum neural network. Currently, there are still problems in this field: no method has been proposed for compressing color computer-generated holograms, and the convergence speed and effectiveness of the quantum neural network during backpropagation need to be further optimized. Summary of the Invention

[0004] The present invention proposes a method for compressing color computer holograms using a gradient-optimized quantum neural network, which can effectively improve the compression transmission speed and reconstruction quality of computer holograms.

[0005] The principle of the present invention is to produce computer holograms using a bandwidth-limited angular spectrum method and encode the computer holograms in a dual-phase encoding manner. Based on the principle of quantum superposition, quantum neural networks expand the network's space for seeking optimal solutions compared to ordinary neural networks and enhance the network's nonlinear capabilities. Therefore, this principle can be used to obtain faster compression speeds and reconstruction quality of computer holograms. A gradient-optimized quantum neural network is used to compress color computer holograms in the RGB color space, and the computer holograms are divided into different data sets based on the characteristics of computer holograms of different wavelengths. Since the gradient descent method determines the direction and results of the network's backpropagation, different gradient optimization algorithms are introduced into the quantum neural network to accelerate network convergence, improve the quality of reconstructed and decompressed computer holograms, and reproduce images.

[0006] The technical solution provided by the present invention is:

[0007] A method for compressing color computer holograms using a gradient-optimized quantum neural network, comprising the following steps:

[0008] 1) Using the bandwidth-limited angular spectrum method to calculate dual-phase encoding to produce computer-generated holograms, and using this method to produce red, green, and blue light computer-generated hologram training sets;

[0009] 2) Using one quantum phase-shift gate and two quantum controlled NOT gates to construct quantum neurons, a three-layer quantum neural network is established, with neurons in each layer connected in a fully connected manner;

[0010] 3) A gradient descent optimization algorithm is used in the back-propagation calculation process of the quantum neural network. In the RGB color channel, a gradient-optimized quantum neural network is used to train a model for compressing the corresponding wavelength computer hologram in parallel, and the model is used to compress and decompress the corresponding wavelength computer hologram;

[0011] 4) The computer holograms of the three RGB channels decompressed by the quantum neural network are reproduced using the bandwidth-limited angular spectrum method, and the color reproduction image is synthesized.

[0012] Furthermore, step 1) specifically includes the following steps:

[0013] 11) In the RGB color space, computer-generated holograms are calculated using specific wavelengths of red, green, and blue light. When a bandwidth-limited angular spectrum method is used to generate a computer-generated hologram for an image in a dataset, the angular spectrum method calculation formula can be written in convolution form:

[0014] u(x,y,z)=u(x,y,0)*h(x,y,z) (Formula 1)

[0015] The system impulse response h(x,y,z) can be expressed as:

[0016]

[0017] Where r=(x 2 +y 2 +z 2 ) 1 / 2 , using the convolution theorem, the computer hologram formula can be written as:

[0018] U(x,y,z)=F -1 {U(u,v,0)H(u,v,z)}=F -1 {U(u,v,0)exp(i2πwz)} (Equation 3)

[0019] Where u, v, and w are the Fourier frequencies in the x, y, and z directions, respectively. To avoid aliasing errors, the bandwidth is limited:

[0020]

[0021]

[0022] Here, △u and △v are the sampling intervals in the x and y directions, respectively. Finally, computer holograms corresponding to red, green, and blue light can be obtained.

[0023] 12) Using dual-phase encoding, the obtained red, green and blue computer holograms The encoding is a real-valued computer hologram as the input of the network. The specific encoding method is to convert the amplitude information of the computer hologram into phase information for storage:

[0024]

[0025]

[0026]

[0027] Where W1 and W2 are complementary checkerboard-shaped gratings of size (x,y). The computer hologram contains both the amplitude and phase information of the object light wave.

[0028] Furthermore, step 2) specifically includes the following steps:

[0029] 21) Construct a quantum neuron. The quantum neuron consists of two one-bit quantum phase-shift gates: connecting the weight value θ and the threshold λ; and one two-bit quantum controlled NOT gate: inverting the parameter δ. l is the input of the quantum neural network, which is calculated as follows:

[0030]

[0031]

[0032] O = f(y) (Equation 11)

[0033]

[0034] 22) Quantum neurons are organized into a three-layer neural network in a fully connected manner. Each layer of quantum neurons is disconnected from the others. This three-layer quantum neural network completes the forward computation of image data. The number of quantum neurons in the second layer is smaller than that in the input and output layers, achieving compression. The compression ratio can be flexibly controlled by controlling the number of quantum neurons in the second layer.

[0035] Furthermore, step 3) specifically includes the following steps:

[0036] 31) Compared to quantum neural networks using the stochastic gradient descent (SGD) algorithm, gradient-optimized quantum neural networks can adaptively select an appropriate learning rate and appropriately adjust the learning step size of parameters during training, thereby ensuring good convergence during the quantum neural network gradient descent process. This paper utilizes the Adam, Adagrad, Adadelta, and Momentum gradient descent optimization algorithms, respectively, to obtain four optimized quantum neural network models.

[0037] 32) The computer holograms of the training set need to be divided into n×n sub-image blocks and converted into 1×n 2 The network input is a normalized one-dimensional pixel vector, and the model is trained using random initialization. Four gradient optimization algorithms are used on three different wavelength computer holographic datasets during network training, ultimately yielding 12 optimized quantum neural network models.

[0038] 33) The computer holograms of different wavelengths to be compressed are normalized and pre-processed into blocks, and are compressed and decompressed using different optimization models of the corresponding channels obtained through training.

[0039] Furthermore, step 4) specifically includes the following steps:

[0040] 41) The decompressed computer holograms of different wavelengths are reconstructed using a bandwidth-limited angular spectrum method, while still using the wavelength and reconstruction distance of the corresponding color light when the hologram was produced.

[0041] 42) The reproduced images of the three color channels are synthesized to obtain a color reproduced image.

[0042] Compared with the prior art, the present invention has the following beneficial effects:

[0043] (1) A bandwidth-limited angular spectrum method is used to create computer-generated holograms, which are then encoded into real-valued computer-generated holograms using dual-phase encoding. This calculation method avoids aliasing errors by truncating high-frequency signals. Dual-phase encoding reduces image noise by not introducing bias terms, resulting in higher-quality, less color-distorted reconstructed images.

[0044] (2) A quantum neural network is used to compress color computer holograms in the RGB three channels, and the corresponding network model is trained according to the characteristics of computer holograms of different wavelengths. The network has the advantages of small training volume, fast speed, and high quality of reconstruction and reproduction of images.

[0045] (3) Four different gradient optimization algorithms were introduced into the quantum neural network. These gradient-optimized quantum neural networks can select appropriate learning rates and appropriately adjust the learning step size of parameters during training, ensuring good convergence. This approach was demonstrated in a scheme for compressed color computer-generated holograms, achieving superior performance in terms of network convergence speed, reconstruction and decompression of computer-generated holograms, and color reproduction. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A flowchart of the gradient-optimized quantum neural network method for compressing color computer holograms;

[0047] Figure 2 A flow chart for encoding dual-phase computer holograms;

[0048] Figure 3 Among them, (1), (2), and (3) are the original images of RGB channels, (4), (5), and (6) are the dual-phase computer holograms of RGB channels, (7), (8), and (9) are the reproduced images of RGB channels, (10) is the original color image, and (11) is the color reproduced image;

[0049] Figure 4 Flowchart for compressing computer holograms using gradient-optimized quantum neural networks in RGB space;

[0050] Figure 5 The curves of network loss values ​​changing with the number of iterations using different optimization algorithms, where (1)(2)(3) represent the training in R, G, and B channels respectively;

[0051] Figure 6are color reproduction images using different gradient optimization algorithms, where (1) is the uncompressed color reproduction image, (2) is the color reproduction image using the SGD algorithm, (3) is the color reproduction image using the Adam algorithm, (4) is the color reproduction image using the Adagrad algorithm, (5) is the color reproduction image using the Adadelta algorithm, and (6) is the color reproduction image using the Momentum algorithm. DETAILED DESCRIPTION

[0052] The present invention will be further described below through implementation examples in conjunction with the accompanying drawings, but the scope of the present invention is not limited in any way.

[0053] The flowchart of the gradient optimized quantum neural network compression color computer hologram method provided by the present invention is shown in the attached figure. Figure 1 In the embodiment of the present invention, the method provided by the present invention specifically includes the following steps:

[0054] 1) Using bandwidth-limited angular spectrum method [4] Computational, dual-phase encoding method to produce computer holograms:

[0055] The propagation system of the light field in free space is a linear space-invariant system. u(x, y, z) is the complex amplitude distribution of the light field on any plane parallel to the plane diffraction screen. It can be expressed as the convolution of the complex amplitude distribution of the light field u(x, y, 0) on the surface behind the diffraction screen and the system impulse response h(x, y, z), that is:

[0056] u(x,y,z)=u(x,y,0)*h(x,y,z) (Equation 13)

[0057] The system impulse response h(x,y,z) can be expressed as:

[0058]

[0059] Where r=(x 2 +y 2 +z 2 ) 1 / 2 , using the convolution theorem formula can be written as:

[0060] U(u,v,z)=U(u,v,0)H(u,v,z)=U(u,v,0)exp(i2πwz) (Equation 15)

[0061] Where u, v, and w are the Fourier frequencies in the x, y, and z directions, respectively. The mathematical relationship between the frequencies is:

[0062]

[0063] Therefore, the final hologram can be expressed as:

[0064] U(x,y,z)=F -1 {U(u,v,0)exp(i2πw(u,v)z)} (Equation 17)

[0065] Among them F -1 is the inverse Fourier transform. In order to avoid aliasing errors, the range of the system function H(u,v,z) needs to be limited, and the frequency range in which the transfer function does not produce aliasing errors must be determined as:

[0066]

[0067]

[0068] In summary, computer holograms can be produced based on the bandwidth-limited angular spectrum method, and the original object information can be reproduced.

[0069] The bi-phase encoding process is as follows Figure 2 As shown. The hologram expression formula after calculation by the angular spectrum method is:

[0070]

[0071] In formula 20, A(x,y) is the amplitude, is the phase. Converting the amplitude information of the hologram into phase information and encoding the amplitude information into the phase can be expressed as:

[0072] α(x,y)=cos -1 [A(x,y)] (Equation 21)

[0073]

[0074]

[0075]

[0076] Where W1 and W2 are complementary checkerboard-shaped gratings of size (x, y), U DPH (x,y) is a dual-phase encoded computer hologram, so a hologram contains the amplitude and phase information of the object light wave.

[0077] The full-color computer hologram produced in the RGB color space by the above method and the reproduced image are as follows: Figure 3 shown

[0078] 2) Building a quantum neural network model

[0079] Computer hologram data is used as the input data of the quantum neural network. The number of quantum neurons in the hidden layer is less than that in the input and output layers. The output of the hidden layer is the compressed computer hologram data, and the output of the output layer is the decompressed computer hologram data. For the input of the network, the computer hologram is first divided into blocks and normalized for preprocessing, and then converted into the phase range of the quantum state. The network's first layer input I l Expressed as:

[0080]

[0081] The output and input relationship of the hidden layer can be expressed as:

[0082]

[0083]

[0084] O=f(y) (Equation 28)

[0085]

[0086] In the quantum neuron model, any neuron state can be described as a coherent superposition of two states. The output value of the nth neuron in the last layer of the network is expressed as the probability of observing |1>, which is expressed as:

[0087] output n =|O n | 2 (Equation 30)

[0088] The error function is expressed as:

[0089]

[0090] Where B represents the number of sub-image blocks into which the image is divided, N represents the number of layers of the quantum neural network, and output i,j represents the normalized output of the i-th layer quantum neural network, target i,j Represents the normalized target output of the quantum neural network.

[0091] 3) Training gradient-optimized quantum neural network models in RGB space

[0092] 3.1 Constructing a quantum neural network in RGB space

[0093] Since color computer holograms are different from different images, their production is affected by parameters such as the wavelength of light, sampling interval, and recording distance. Therefore, it is necessary to divide the holograms calculated for each wavelength into a data set, and obtain three different network models through training in different RGB channels. Each quantum neural network learns the characteristics of the corresponding wavelength hologram. The advantage of this method is that the characteristics of the data set learned by each quantum neural network model are relatively uniform, and different compression models for each wavelength hologram can be obtained, thereby obtaining a higher-quality decompressed color computer hologram. At the same time, the complexity of the algorithm has not been increased. The specific process is as follows: Figure 4 shown.

[0094] First, determine the quantum neural network architecture to be used in the experiment. Set the number of quantum neurons in the input and output layers to 64, and the number of quantum neurons in the hidden layer to 32, so that the network's corresponding image compression ratio is 0.5. Initialize the quantum neural network using a randomly generated threshold, and randomly generate quantum gate parameters with uniformly distributed random numbers between [0, 1].

[0095] Next, training set image data is selected and holograms are calculated and preprocessed. This paper uses the CSIQ dataset, computationally encoding ordinary images in the dataset into dual-phase computer-generated holograms (CGHs). Twenty CGHs are randomly selected from these images as the training set for the quantum neural network. The input CGHs are all 256×256 pixels in size. To facilitate calculations, they are segmented into 8×8 pixel sub-image blocks. The sub-image blocks are then converted into column vectors of size 1×64. This means that the 20×256×256 CGH data is converted into 20×1024×64 input data.

[0096] 3.2 Different Gradient Optimization Algorithms for Backpropagation of Quantum Neural Networks

[0097] During the back-propagation process of the quantum neural network, the update of the quantum neuron parameters can be expressed as Equation 32.

[0098]

[0099] In order to further improve the performance of quantum neural networks, we will introduce the Momentum, Adagrad, Adadelta, and Adam optimization algorithms. [5] Application in quantum neural network compressed color computer holography. Taking the parameter θ of the phase-shift quantum gate R(θ) as an example, the update method is introduced. The update of the parameter γ and the inversion parameter δ of the controlled NOT gate U(γ) is similar to θ.

[0100] Monentum is a method that helps SGD accelerate and suppress oscillations in related directions. For dimensions where the gradients point in the same direction, the momentum term increases, while for dimensions where the gradients change direction, the momentum term reduces the update, thus achieving faster convergence and reducing oscillations. It is achieved by adding the update vector of the past time step to the current update vector through the γ coefficient. η is the learning rate, and let g t is the gradient of the parameters in the objective function at time t:

[0101] v t =γv t-1 +ηg t (Equation 33)

[0102] Therefore, the phase-shift quantum gate R(θ i ) can be transformed into:

[0103] θ t+1 =θ t -v t (Equation 34)

[0104] The Adagrad algorithm adapts the learning rate to the parameters, performing larger updates for parameters that are updated infrequently and smaller updates for parameters that are updated frequently.

[0105]

[0106] θ t+1 =θ t -△θ t (Equation 36)

[0107] Here, ε is a smoothing term, usually around 10 -8 On the magnitude of .

[0108] The main purpose of the Adadelta algorithm is to reduce the learning rate of Adagrad's monotonically decreasing function. Instead of accumulating all past squared gradients, the Adadelta algorithm limits the cumulative window of past gradients to a fixed size. The moving average of the gradient at each moment depends only on the average gradient value at the previous moment and the current gradient value.

[0109]

[0110]

[0111] θ t+1 =θ t -△θ t (Equation 39)

[0112] Where E represents the expectation, and γ is the exponential decay rate with a value range of [0,1].

[0113] The Adam algorithm is another method for calculating an adaptive learning rate for each parameter. To store a moving average of the squared gradient, the Adam algorithm also maintains an exponentially decaying average of the previous and current gradients. Essentially, it is an Adadelta algorithm with a momentum term, but with bias correction, ensuring that the effective learning rate at each step remains within a certain range.

[0114] m t =β1m t-1 +(1-β1)g t (Equation 40)

[0115]

[0116] where m t 、v t are the biased first-order moment estimate of the gradient and the biased second-order moment estimate of the gradient, respectively. β1 and β2 are the exponential decay rates of the first-order moment estimate of the gradient and the second-order moment estimate, respectively, and their values ​​range from [0,1]. In order to control the range of variation of the learning rate, it is necessary to update the bias of the first-order moment estimate of the gradient and the second-order moment estimate:

[0117]

[0118]

[0119] Then use To update the parameters:

[0120]

[0121] The default values ​​of β1 are 0.9, β2 are 0.999, and ε are 10. -8 .

[0122] 4) Reconstruct the decompressed computer hologram, synthesize it into a color reproduction image, and evaluate its quality

[0123] The image quality evaluation indicators used in the present invention include image peak signal-to-noise ratio (PSNR) and image structure similarity (SSIM).

[0124]

[0125]

[0126] Where X and Y are the length and width of the image, MSE is the mean square error of the image, and f(x,y) is the reconstructed computer hologram. is the original computer hologram, x peak is the peak-to-peak value of the image data.

[0127] SSIM is an indicator to measure the similarity between two images. It is related to the brightness, contrast and structure of the image. The calculation formula of SSIM is:

[0128]

[0129] Among them, l(x,y), c(x,y), s(x,y) are image brightness, contrast and structure contrast functions respectively, u x is the average value of x, u y is the mean value of y, is the variance of x, is the variance of y, σ xy is the covariance of x and y, and c1 and c2 are constants to avoid the denominator being 0. SSIM is a number between 0 and 1. A larger SSIM indicates a smaller difference between the two images and better image quality. When SSIM = 1, the two images are exactly the same.

[0130] Using different gradient optimization algorithms will lead to different gradient convergence speeds and eventually converge to different loss values. The gradient descent curves of different gradient optimization algorithms can be obtained by Figure 5 express.

[0131] Table 1 compares the image quality metrics of decompressed holograms for each color channel using different gradient optimization algorithms when CR = 0.5. Analyzing the performance of the same gradient optimization algorithm across each color channel, each algorithm achieves the highest PSNR and SSIM values ​​in the R channel and the lowest PSNR and SSIM values ​​in the G channel. A comprehensive analysis of the three color channels shows that the Adam algorithm achieves the best quality in decompressing computer-generated holograms across all channels. The quality of computer-generated holograms reconstructed by the Adadelta and Adagrad algorithms is inconsistent, affected by the different wavelengths of the computer-generated hologram training set.

[0132] Table 1 Err, PSNR and SSIM of decompressed color computer holograms using different gradient optimization algorithms

[0133]

[0134] Table 1 analyzes the impact of different gradient optimization algorithms on the quality of decompressed computer-generated holograms. Since the ultimate goal is to obtain a high-quality computer-generated holographic reconstruction image, and the quantum neural network outputs only the decompressed computer-generated holographic image, it is necessary to analyze the impact of different gradient optimization algorithms on the quality of the reconstructed image. Table 2 compares the PSNR and SSIM values ​​of the reconstructed images corresponding to different color channels for different gradient optimization algorithms when CR = 0.5. The Adam algorithm achieves the highest PSNR and SSIM values ​​for the R, G, and B channels, thus using the Adam algorithm can produce the highest-quality color reconstructed images. The Momentum, Adagrad, and Adadelta algorithms achieve superior PSNR and SSIM values ​​for certain color channels compared to the SGD algorithm.

[0135] Table 2 PSNR and SSIM of color reproduction images using different gradient optimization algorithms

[0136]

[0137] Figure 6 The color reproduction images of decompressed computer holograms obtained using different gradient optimization algorithms are shown. Figure (1) is the reproduction image of the uncompressed computer hologram, which is the training target of the network. From the perspective of visual observation, the reproduction images of the Adam algorithm and the Momentum algorithm have higher clarity. Among them, the color of the reproduction image based on the Adam algorithm is closer to Figure (1), the color difference is smaller than that of the Momentum algorithm, and the noise is lower than that of the Momentum algorithm. The reproduction images of the Adagrad, Adadelta and SGD algorithms have similar colors, but have greater noise than the reproduction images of the other two algorithms. Comprehensive analysis shows that in each color channel, the algorithm with the smallest difference in the PSNR value of the reproduction image will eventually obtain the color reproduction image with the smallest color difference and the highest quality.

[0138] Experiments have shown that the gradient optimization algorithm accelerates the convergence of quantum networks and achieves high image quality during the reconstruction and reproduction of color computer holograms, demonstrating the application prospects of this invention in the compression and transmission of three-dimensional holographic information.

[0139] It should be noted that the purpose of disclosing the embodiments is to facilitate a further understanding of the present invention. However, those skilled in the art will appreciate that various substitutions and modifications are possible without departing from the spirit and scope of the present invention and the appended claims. Therefore, the present invention should not be limited to the contents disclosed in the embodiments, and the scope of protection claimed by the present invention shall be determined by the scope defined in the claims.

[0140] References:

[0141] [1]Zhang,C.,Yang,G.and Xie,H.,“Information compression of computer-generated hologram using BP neural network,”Opt.InfoBase Conf.Pap.1,8–10(2010).

[0142] [2]Liu,M.,Yang,G.and Xie,H.,“Method of computer-generated hologramcompression and transmission using quantum back-propagation neural network,”Opt.Eng.56(2),023104(2017).

[0143] [3]Hou,S.,Yang,G.and Xie,H.,“Optimized initial weight in quantum-inspired neural network for compressing computer-generated holograms,”Opt.Eng.58(05),1(2019).

[0144] [4]Matsushima,K.and Shimobaba,T.,“Band-limited angular spectrummethod for numerical simulation of free-space propagation in far and nearfields,”Opt.Express 17(22),19662(2009).

[0145] [5]Ruder,S.,“An overview of gradient descent optimizationalgorithms,”1–14(2016).

Claims

1. A method for compressing color computer holograms using a gradient-optimized quantum neural network, the specific steps are as follows: 1) Using the bandwidth-limited angular spectrum method to calculate the dual-phase encoding method to produce a computer hologram, and using this method to produce a red, green, and blue light computer hologram training set; specifically comprising the following steps: 11) In the RGB color space, the wavelengths corresponding to red, green, and blue light are used to obtain the corresponding color light computer hologram; when the bandwidth-limited angular spectrum method is used to produce a computer hologram for the image in the data set, the calculation formula of the angular spectrum method is as follows: u(x,y,z)=u(x,y,0)*h(x,y,z) (Equation 1) where the system impulse response h(x,y,z) is expressed as: Where r = (x 2 +y 2 +z 2 ) 1 / 2 , using the convolution theorem, the formula for computer hologram is written as: U(x,y,z)=F -1 {U(u,v,0)H(u,v,z)}=F -1 {U(u,v,0)exp(i2πwz)} (equation 3) Where u, v, and w are the Fourier frequencies in the x, y, and z directions, respectively. To avoid aliasing errors, the bandwidth is limited: in, Δu and Δv are the sampling intervals in the x and y directions, respectively, and finally the computer holograms corresponding to red, green and blue light can be obtained; 12) Use dual phase encoding to obtain red, green and blue computer holograms The encoding is a real-valued computer hologram as the input of the network. The specific encoding method is to convert the amplitude information of the computer hologram into phase information storage: Where W 1 and W 2 is a grating of complementary checkerboard shape of size (x,y); 2) Using one quantum phase-shift gate and two quantum controlled NOT gates to construct quantum neurons, a three-layer quantum neural network is established, and the neurons in each layer are connected in a fully connected manner; specifically, the following steps are included: 21) Construct a quantum neuron. The quantum neuron consists of two one-bit quantum phase-shift gates: connecting the weight value θ and the threshold λ; and one two-bit quantum controlled NOT gate: inverting the parameter δ, I l is the input of the quantum neural network, which is calculated as follows: O=f(y) (Formula 11) 22) The quantum neurons are fully connected to form a three-layer neural network, and the quantum neurons in each layer are not connected to each other. The forward calculation process of the image data is completed through the three-layer quantum neural network, wherein the number of quantum neurons in the second layer is less than the number of quantum neurons in the input and output layers; 3) The gradient descent optimization algorithm is used in the process of back propagation calculation of the quantum neural network, that is, in the RGB color channel, the gradient optimized quantum neural network is used to train the model for compressing the corresponding wavelength computer hologram in parallel, and the model is used for the compression and decompression of the corresponding wavelength computer hologram; 4) The computer holograms of the three RGB channels decompressed by the quantum neural network are reproduced using the bandwidth-limited angular spectrum method and the color reproduced images are synthesized.

2. A method for compressing a color computer hologram as claimed in claim 1, It is characterized in that Step 3) Adam, Adagrad, Adadelta, and Momentum gradient descent optimization algorithms are used, among which 4 gradient optimization algorithms are used for the three wavelength computer hologram data sets respectively, and finally 12 optimized quantum neural network models are obtained.

3. A method for compressing a color computer hologram as claimed in claim 1, It is characterized in that Step 3) Divide the computer generated holograms of the training set into n×n sub-image blocks and convert them into 1×n 2 The normalized one-dimensional pixel vector is used as the network input, and the model is trained by random initialization. The computer holograms of different wavelengths to be compressed are normalized and block-based preprocessing, and are compressed and decompressed using different optimization models of the corresponding channels obtained through training.

4. A method for compressing a color computer hologram as claimed in claim 1, It is characterized in that In step 4), the decompressed computer holograms of different wavelengths are reproduced using a bandwidth-limited angular spectrum method, using the wavelength and reproduction distance of the corresponding color light when the hologram was made.