Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a data processing method and device based on an Itanium machine and the Itanium machine.
The invention provides a data processing method based on an Itanium machine, which comprises the following steps:
circularly updating the spin configuration, and modulating the updated spin configuration to the phase of the Gaussian beam to obtain an input matrix; the spin configuration is generated randomly based on the constructed Esin model;
obtaining an output matrix according to the input matrix and the transformation matrix; wherein the transformation matrix is initially determined based on the constructed Exin model;
and determining the output light intensity of the current sampling round according to the output matrix, determining a Hamilton quantity according to the output light intensity and the model characteristic value matrix, determining a sampling result according to the Hamilton quantity, and enabling the spin configuration corresponding to the last round of sampling to be used as a data processing result when the last round of sampling is determined.
According to the data processing method based on the Itanium machine, the updated spin configuration is modulated on the phase of the Gaussian beam to obtain an input matrix, and the method comprises the following steps:
modulating the updated spin configuration and the electrical feedback signal to the phase of the Gaussian beam, wherein the phase difference pi between the beam representing the +1 spin and the beam representing the-1 spin is the same, and the electric field amplitude of each beam is the same;
the complex amplitudes of each beam are arranged to obtain an input matrix.
The invention provides a data processing method based on an Itanium machine, wherein the obtaining of an output matrix according to an input matrix and a transformation matrix comprises the following steps:
and multiplying the input matrix and the transformation matrix to obtain an output matrix.
The invention provides a data processing method based on an Isci machine, wherein the method comprises the following steps of determining the output light intensity of the current sampling round according to the output matrix and determining the Hamiltonian according to the output light intensity and a model eigenvalue matrix, and comprises the following steps:
determining the output light intensity of the current sampling round by adopting a first calculation formula according to the output matrix;
determining a Hamiltonian quantity by adopting a second calculation formula according to the output light intensity and the model eigenvalue matrix;
wherein the first calculation formula includes:
I=|AEin|2
where I is the output intensity, A is the transformation matrix, EinTo input a matrix, AEinIs an output matrix; l. capillary2Representing the square of the absolute value of each element in the matrix;
the second calculation formula includes:
H(σ)=-∑j(Iλ)jjIj
wherein σ represents the spin vector of the Esin model, H (σ) is the Hamiltonian, and IλIs a model eigenvalue matrix, (I)λ)jjIs IλJ-th diagonal element of (1)jIs the jth element of I.
The invention provides a data processing method based on an Italian machine, which further comprises the following steps:
the determining a sampling result according to the Hamilton quantity, and when determining the last round of sampling, using the spin configuration corresponding to the last round of sampling as a data processing result, including:
determining the variation between the Hamiltonian of the current sampling round and the Hamiltonian of the previous sampling round;
if the variable quantity is less than 0, receiving the current sampling, randomly overturning the spin in the spin configuration to update the spin configuration, and entering the next sampling round;
if the variable quantity is larger than 0, receiving the current sampling according to the probability of exp (-delta H/T), randomly overturning the spin in the spin configuration to update the spin configuration, and entering the next sampling round; wherein T is the current sampling temperature;
and when the last round of sampling is determined, enabling the spin configuration corresponding to the last round of sampling to be used as a data processing result.
According to the data processing method based on the Itanium machine, when the difference value between the sampling temperature and 0K is smaller than a preset threshold value, the current sampling round is determined to be the last sampling round.
The invention also provides a data processing device based on the Itanium machine, which comprises:
the input module is used for circularly updating the spin configuration, modulating the updated spin configuration to the phase of the Gaussian beam and obtaining an input matrix; the spin configuration is generated randomly based on the constructed Esin model;
the output module is used for obtaining an output matrix according to the input matrix and the transformation matrix; wherein the transformation matrix is initially determined based on the constructed Exin model;
and the processing module is used for determining the output light intensity of the current sampling round according to the output matrix, determining the Hamilton quantity according to the output light intensity and the model characteristic value matrix, determining a sampling result according to the Hamilton quantity, and enabling the spin configuration corresponding to the last round of sampling to be used as a data processing result when the last round of sampling is determined.
The invention also provides an Yixinji, comprising:
a wavefront modulator for:
circularly updating the spin configuration, and modulating the updated spin configuration to the phase of the Gaussian beam to obtain an input matrix, wherein the spin configuration is randomly generated based on the constructed Esino model;
separating the Gaussian beams and outputting the separated Gaussian beams;
coupling the separated light beams, and inputting the coupled Gaussian light beams into a light detector through a diaphragm and a lens;
the optical detector is used for obtaining an output matrix according to the input matrix and the transformation matrix; wherein the transformation matrix is initially determined based on the constructed Exin model;
and determining the output light intensity of the current sampling round according to the output matrix, determining a Hamilton quantity according to the output light intensity and the model characteristic value matrix, determining a sampling result according to the Hamilton quantity, and enabling the spin configuration corresponding to the last round of sampling to be used as a data processing result when the last round of sampling is determined.
According to an embodiment of the present invention, the first wavefront modulator is specifically configured to:
modulating the updated spin configuration and the electrical feedback signal to the phase of the Gaussian beam, wherein the phase difference pi between the beam representing the +1 spin and the beam representing the-1 spin is the same, and the electric field amplitude of each beam is the same; the complex amplitudes of each beam are arranged to obtain an input matrix.
According to the present invention, there is provided an cooker, further comprising:
the first beam splitter is used for splitting laser to obtain reference light and object light, transmitting the object light to the first wavefront modulator and transmitting the reference light to the second beam splitter;
the second beam splitter is used for combining the reference light and the Gaussian beam coupled by the diaphragm and the lens and transmitting the combined light to the optical detector;
a first optical shutter for performing light field pattern acquisition on the reference light;
and the second optical shutter is used for carrying out light field pattern collection on the object light.
According to the data processing method and device based on the Italian machine and the Italian machine, provided by the invention, the data processing process of the Italian model can be completed on the light beam, the conversion from the optical signal to the electric signal can be realized, the capability of parallel processing of information at the light speed is realized, and the speed of solving the Italian problem can be greatly improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The data processing method and device based on the Italian machine and the Italian machine provided by the invention are described in the following with reference to FIGS. 1-3.
Fig. 1 shows a schematic flow chart of an ising machine-based data processing method provided by the present invention, and referring to fig. 1, the method includes:
11. circularly updating the spin configuration, and modulating the updated spin configuration to the phase of the Gaussian beam to obtain an input matrix; the spin configuration is generated randomly based on the constructed Esin model;
12. obtaining an output matrix according to the input matrix and the transformation matrix; wherein the transformation matrix is initially determined based on the constructed Exin model;
13. and determining the output light intensity of the current sampling round according to the output matrix, determining a Hamilton quantity according to the output light intensity and the model characteristic value matrix, determining a sampling result according to the Hamilton quantity, and enabling the spin configuration corresponding to the last round of sampling to be used as a data processing result when the last round of sampling is determined.
With respect to step 11 to step 13, it should be noted that, in the present invention, the ixing model may be used to solve the combinatorial optimization problem. The combinatorial optimization problem refers to a class of problems that cannot find a globally optimal solution within polynomial time at present, such as a traveler problem and a maximum segmentation problem.
To this end, an Esinc model is constructed based on entity data for actual problems (e.g., traveler problem and majorit problem). And randomly generating an initial spin configuration based on the constructed Eschen model, modulating the initial spin configuration to the phase of a Gaussian beam of the Eschen machine, and realizing the purpose of encoding the spin of each point in the lattice of the Eschen model according to the phase of the beam.
And modulating the initial spin configuration to the phase of the Gaussian beam of the Itanium machine, and arranging the complex amplitude of the high-speed beam to obtain an input matrix of the Itanium machine on an input plane.
And then separating and coupling the Gaussian beams by an IshCi machine, wherein the process is equivalent to matrix transformation of an input matrix to obtain an output matrix of the IshCi machine on an output plane. The output matrix is obtained by calculating an input matrix and a transformation matrix, and the transformation matrix is also obtained based on the constructed Esino model configuration.
In the invention, the characteristic decomposition is carried out on the interaction coefficient matrix J of the Esinon model to obtain a transformation matrix A and a model characteristic value matrix I which are required in the separation and coupling process of Gaussian beamsλWherein J ═ A-1IλA。
In the invention, light beams output by an Esino machine are input into a light detector, the light detector determines the output light intensity of the current sampling round according to an output matrix, then determines a Hamilton value according to the output light intensity and a model characteristic value matrix, determines a sampling result according to the Hamilton value, the sampling result shows whether the initial spin configuration selected by the current sampling is proper or not, if the current sampling is received, the next sampling is carried out, the initial spin configuration is subjected to spin updating to obtain an updated spin configuration, then the updated spin configuration is executed again according to the processing process, then a sampling result is obtained, and then the sampling result is judged.
Therefore, the sampling round can be determined according to the sampling result, and the spinning configuration corresponding to the last round sampling is used as the data processing result when the last round sampling is determined.
In the invention, a spin configuration is randomly generated at the beginning, an input matrix is generated by an Eschen machine, the sampling Hamiltonian is obtained after the input matrix is subjected to space optical matrix transformation and electric domain calculation in each sampling, and the sampling is received according to the principle probability of a simulated annealing algorithm. At the end of sampling, it is possible to obtain a reasonable spin configuration as a result of data processing by the Esinon model to solve practical problems.
The data processing method based on the Itanium machine can complete the data processing process of the Itanium model on the light beam, can realize the conversion from the optical signal to the electric signal, has the capability of parallel processing of information at the light speed, and can greatly improve the speed of solving the Itanium problem.
In the further explanation of the above method, the process of modulating the updated spin configuration to the phase of the gaussian beam to obtain the input matrix is mainly explained as follows:
modulating the updated spin configuration and the electrical feedback signal to the phase of the Gaussian beam, wherein the phase difference pi between the beam representing the +1 spin and the beam representing the-1 spin is the same, and the electric field amplitude of each beam is the same; the complex amplitudes of each beam are arranged to obtain an input matrix.
In this regard, it should be noted that, in the present invention, the object beam is input to the wavefront modulator, and the wavefront modulator modulates the updated spin configuration and the electrical feedback signal onto the object beam to generate a plurality of gaussian beams, and each gaussian beam passes through the phase-encoded spin configuration on its beam. Wherein the phase difference between the beam characterizing the +1 spin and the beam characterizing the-1 spin is pi, and the electric field amplitude of each beam is the same. The complex amplitudes of each beam are then arranged to obtain an input matrix.
In the further explanation of the above method, the processing procedure of obtaining the output matrix according to the input matrix and the transformation matrix is mainly explained as follows:
and multiplying the input matrix and the transformation matrix to obtain an output matrix.
In this regard, it should be noted that, in the present invention, the iicin machine separates and couples gaussian beams, and the process is equivalent to matrix transformation of the input matrix. The input matrix is EinThen the wave front modulator splits and recombines the light beam, which is equivalent to matrix transformation A, and the output matrix on the output plane is marked as EoutThen there is Eout=AEin。
In the further explanation of the above method, the processing procedure of determining the output light intensity of the current sampling round according to the output matrix and determining the hamilton quantity according to the output light intensity and the model eigenvalue matrix is mainly explained as follows:
determining the output light intensity of the current sampling round by adopting a first calculation formula according to the output matrix;
determining a Hamiltonian quantity by adopting a second calculation formula according to the output light intensity and the model characteristic value matrix;
wherein the first calculation formula includes:
I=|AEin|2
where I is the output intensity, A is the transformation matrix, EinTo input a matrix, AEinIs an output matrix; l. capillary2Represents each of the pair matrixesTaking the square of an absolute value of an element;
the second calculation formula includes:
H(σ)=-∑j(Iλ)jjIj
wherein σ represents the spin vector of the Esin model, H (σ) is the Hamiltonian, and IλIs a model eigenvalue matrix, (I)λ)jjIs IλJ-th diagonal element of (1)jIs the jth element of I.
In addition, if the second calculation formula needs to be corrected, a positive constant coefficient can be added to the formula on the right side of the formula, and the increase of the coefficient does not change the ground state spin configuration of the solved ircin problem.
Determining the variation between the Hamiltonian of the current sampling round and the Hamiltonian of the previous sampling round;
if the variable quantity is less than 0, receiving the current sampling, randomly overturning the spin in the spin configuration to update the spin configuration, and entering the next sampling round;
if the variable quantity is larger than 0, receiving the current sampling according to the probability of exp (-delta H/T), randomly overturning the spin in the spin configuration to update the spin configuration, and entering the next sampling round; and T is the current sampling temperature, the temperature T is not the real temperature and is only a virtual parameter, and the T is reduced according to a preset scheme after sampling is finished each time.
In the process of repeated sampling, the sampling temperature T needs to be slowly reduced according to a preset rule, and the sampling is terminated and the current spin configuration is output as the data processing result when the final T approaches to 0. Namely, when the difference between the sampling temperature and 0K (kelvin) is smaller than the preset threshold, the current sampling round is determined as the last sampling round.
The data processing device of the present invention is described below, and the data processing device of the present invention and the data processing method of the present invention can be referred to in correspondence with each other.
Fig. 2 shows a schematic structural diagram of an ising machine-based data processing apparatus provided by the present invention, referring to fig. 2, the apparatus includes an input module 21, an output module 22 and a processing module 23, wherein:
the input module 21 is configured to cyclically update the spin configuration, modulate the updated spin configuration to a phase of the gaussian beam, and obtain an input matrix; the spin configuration is generated randomly based on the constructed Esin model;
an output module 22, configured to obtain an output matrix according to the input matrix and the transformation matrix; wherein the transformation matrix is initially determined based on the constructed Exin model;
and the processing module 23 is configured to determine an output light intensity of the current sampling round according to the output matrix, determine a hamilton quantity according to the output light intensity and the model eigenvalue matrix, determine a sampling result according to the hamilton quantity, and enable a spin configuration corresponding to the last round of sampling to be used as a data processing result when the last round of sampling is determined.
In a further description of the above apparatus, the input module is specifically configured to, in a process of modulating the updated spin configuration to a phase of the gaussian beam to obtain an input matrix:
modulating the updated spin configuration and the electrical feedback signal to the phase of the Gaussian beam, wherein the phase difference pi between the beam representing the +1 spin and the beam representing the-1 spin is the same, and the electric field amplitude of each beam is the same;
the complex amplitudes of each beam are arranged to obtain an input matrix.
In a further description of the above apparatus, the output module, in a process of obtaining an output matrix according to the input matrix and the transformation matrix, is specifically configured to:
and multiplying the input matrix and the transformation matrix to obtain an output matrix.
In a further description of the above apparatus, the processing module is specifically configured to, during a processing procedure of determining an output light intensity of a current sampling round according to the output matrix and determining a hamilton quantity according to the output light intensity and the model eigenvalue matrix:
determining the output light intensity of the current sampling round by adopting a first calculation formula according to the output matrix;
determining a Hamiltonian quantity by adopting a second calculation formula according to the output light intensity and the model eigenvalue matrix;
wherein the first calculation formula includes:
I=|AEin|2
where I is the output intensity, A is the transformation matrix, EinTo input a matrix, AEinIs an output matrix; l. capillary2Representing the square of the absolute value of each element in the matrix;
the second calculation formula includes:
H(σ)=-∑j(Iλ)jjIj
wherein σ represents the spin vector of the Esin model, H (σ) is the Hamiltonian, and IλIs a model eigenvalue matrix, (I)λ)jjIs IλJ-th diagonal element of (1)jIs the jth element of I.
In a further description of the above apparatus, the processing module, when determining the sampling result according to the hamiltonian and when determining the last round of sampling, is specifically configured to:
determining the variation between the Hamiltonian of the current sampling round and the Hamiltonian of the previous sampling round;
if the variable quantity is less than 0, receiving the current sampling, randomly overturning the spin in the spin configuration to update the spin configuration, and entering the next sampling round;
if the variable quantity is larger than 0, receiving the current sampling according to the probability of exp (-delta H/T), randomly overturning the spin in the spin configuration to update the spin configuration, and entering the next sampling round; wherein T is the current sampling temperature;
and when the last round of sampling is determined, enabling the spin configuration corresponding to the last round of sampling to be used as a data processing result.
In a further description of the above apparatus, when the difference between the sampling temperature and 0K is less than a preset threshold, the current sampling round is determined as the last sampling round.
Since the principle of the apparatus according to the embodiment of the present invention is the same as that of the method according to the above embodiment, further details are not described herein for further explanation.
It should be noted that, in the embodiment of the present invention, the relevant functional module may be implemented by a hardware processor (hardware processor).
The data processing device based on the Itanium machine can complete the data processing process of the Itanium model on the light beam, can realize the conversion from the optical signal to the electric signal, has the capability of parallel processing of information at the light speed, and can greatly improve the speed of solving the Itanium problem.
The invention provides an Yixing machine, which comprises the following structures:
a wavefront modulator for:
circularly updating the spin configuration, and modulating the updated spin configuration to the phase of the Gaussian beam to obtain an input matrix, wherein the spin configuration is randomly generated based on the constructed Esino model;
separating the Gaussian beams and outputting the separated Gaussian beams;
coupling the separated light beams, and inputting the coupled Gaussian light beams into a light detector through a diaphragm and a lens;
the optical detector is used for obtaining an output matrix according to the input matrix and the transformation matrix; the transformation matrix is generated randomly based on the constructed Exin model;
and determining the output light intensity of the current sampling round according to the output matrix, determining a Hamilton quantity according to the output light intensity and the model characteristic value matrix, determining a sampling result according to the Hamilton quantity, and enabling the spin configuration corresponding to the last round of sampling to be used as a data processing result when the last round of sampling is determined.
In the present invention, the actions that can be performed by the wavefront modulator are referred to as action 1, action 2, action 3, and action 4 in this order.
Action 1: separating the Gaussian beams and outputting the separated Gaussian beams;
and action 2: re-separating the separated Gaussian beams, and outputting the re-separated Gaussian beams;
and action 3: coupling the separated light beams;
and 4, action: the spin configuration is modulated onto the phase of the gaussian beam.
In the present invention, three wavefront modulators are provided, named first wavefront modulator, second wavefront modulator and third wavefront modulator in this order. At this time, the preset execution mode includes:
the first wavefront modulator performs action 1, the second wavefront modulator performs action 2, the third wavefront modulator performs action 3, the first wavefront modulator performs action 4 or the second wavefront modulator performs action 4.
Alternatively, the first wavefront modulator performs act 1, the second wavefront modulator performs act 2, the third wavefront modulator performs act 3, the first wavefront modulator performs act 4 and the second wavefront modulator performs act 4 together
……
Here, all the cases of the preset execution manner are not explained.
The following is an explanation of one specific example, as shown in fig. 3, specifically as follows:
the first wavefront modulator 1 is configured to cyclically update a spin configuration, modulate the updated spin configuration on a phase of a gaussian beam to obtain an input matrix, separate the gaussian beam, and input the separated gaussian beam to the second wavefront modulator, where the spin configuration is initially determined based on a constructed isooctane model;
the second wave front modulator 2 is used for re-separating the separated Gaussian beams and inputting the re-separated Gaussian beams to the third wave front modulator;
the third wave front modulator 3 is used for coupling the separated light beams and inputting the coupled Gaussian light beams into the light detector through a diaphragm and a lens;
the optical detector 4 is used for obtaining an output matrix according to the input matrix and the transformation matrix; the transformation matrix is generated randomly based on the constructed Exin model;
and determining the output light intensity of the current sampling round according to the output matrix, determining a Hamilton quantity according to the output light intensity and the model characteristic value matrix, determining a sampling result according to the Hamilton quantity, and enabling the spin configuration corresponding to the last round of sampling to be used as a data processing result when the last round of sampling is determined.
The first wavefront modulator is specifically configured to:
modulating the updated spin configuration and the electrical feedback signal to the phase of the Gaussian beam, wherein the phase difference pi between the beam representing the +1 spin and the beam representing the-1 spin is the same, and the electric field amplitude of each beam is the same; the complex amplitudes of each beam are arranged to obtain an input matrix.
The yi xin machine further comprises:
the first beam splitter 5 is configured to split laser light to obtain reference light and object light, transmit the object light to the first wavefront modulator, and transmit the reference light to the second beam splitter;
the second beam splitter 6 is used for combining the reference light and the Gaussian beam coupled by the diaphragm and the lens and transmitting the combined light to the optical detector;
a first optical shutter 7 for performing light field pattern acquisition on the reference light;
and the second optical shutter 8 is used for carrying out light field pattern collection on the object light.
In the invention, a monochromatic coherent light source 9 emits laser, the laser changes the linear polarization direction of input light through a half-wave plate, so that the polarization direction of the input light after passing through the half-wave plate is consistent with the polarization direction of a polarizer, and the polarization direction is consistent with the input polarization required by a wave front modulator. Then the light passes through the polarizer 10 and then is divided into the object light of the right path and the reference light of the left path by the first beam splitter. The object light is diffuse reflection light generated by irradiating the object with the laser light source, and includes information of the object. The reference light is light irradiated to the photosensitive film from the same laser light source through the half mirror. In each sampling process, the object light generates a group of Gaussian beams through the first wavefront modulator based on the electric feedback signal fed back by the optical detector and the spin configuration, and the spin configuration of the Eschen model is modulated on the phase of the beams. And then the object light is subjected to matrix transformation through a second spatial light modulator and a third wave front modulator to generate an output matrix, and the coupled Gaussian light beam is integrated with the reference light through a diaphragm 12, a lens 13, a second beam splitter and then sent to a light detector. Determining the output light intensity of the current sampling round by the optical detector according to the output matrix, determining the Hamilton quantity according to the output light intensity and the model characteristic value matrix, determining the sampling result according to the Hamilton quantity, determining the sampling round according to the sampling result, and enabling the spin configuration corresponding to the last round of sampling to be used as a data processing result when the last round of sampling is determined.
In the present invention, the delay line 11 in fig. 3 is used to adjust the optical path length of the reference light. The first and second optical shutters are used to measure the CCD pattern in the presence of object and reference light alone, and the complex amplitude of the output pattern, i.e., the output matrix, can be measured for calibration matrix transformations.
The Italic machine provided by the invention can complete the data processing process of the Italic model on a light beam, can realize the conversion from an optical signal to an electrical signal, has the capability of parallel processing of information at the light speed, and can greatly improve the speed of solving the Italic problem.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.