Optical computing system and optical signal processing method
Patent Information
- Application Number
- CN202280093121.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-09
- Publication Date
- 2024-10-15
AI Technical Summary
Due to the accuracy limitations of DACs and modulators, existing optical computing systems are unable to implement optical operations on digital signals of 8 bits and above, resulting in limited computing performance.
Multiple DACs are used to collaboratively perform digital-to-analog conversion and optical signal operations, and multiple modulators are used to process high-bit digital signals to achieve 8-bit and above optical operations, combined with amplification and superposition operations to improve calculation accuracy.
It realizes the optical operation of high-bit digital signals and improves the computing performance of the optical computing system. Compared with electrical computing, there is no performance loss and it has the advantages of low power consumption and high-speed parallelism.
Smart Images

Figure CN118786401A_ABST
Abstract
Description
Optical computing system and optical signal processing method Technical Field
[0001] The present application relates to the field of optical communications, and in particular to an optical computing system and an optical signal processing method. Background Art
[0002] Photonic computing chips, also known as optical process units (OPUs), use optical signals as data carriers. OPUs process data by performing calculations on optical signals. Optical computing systems based on OPUs, with their advantages of high-speed parallel processing and low power consumption, are considered promising solutions for applications requiring big data processing, such as artificial intelligence and mobile communications.
[0003] Currently, optical computing systems may include a digital to analog converter (DAC), an electro-optical conversion (E / O), an OPU, an optical-electroconversion (O / E) converter, and an analog to digital converter (ADC). After the DAC receives the digital signal to be calculated, it can convert it into an analog signal and send it to the E / O. Next, the E / O can convert the analog signal into an optical signal and send it to the OPU. The OPU can then perform calculations on the optical signal to obtain the calculation results of the digital signal in the optical domain. Finally, the calculation results of the digital signal in the optical domain can be converted into the calculation results of the digital signal in the electrical domain through the O / E and ADC. At this point, the optical calculation of the digital signal is completed.
[0004] However, DAC is limited by its own design process and materials, and its digital signal processing accuracy is no higher than 4 bits (4 bits). As a result, current optical computing systems are unable to perform optical operations on digital signals of 8 bits (8 bits) or above.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide an optical computing system and an optical signal processing method, which use multiple DACs to collaboratively complete digital-to-analog conversion of high-bit digital signals, thereby enabling the entire optical computing system to perform optical operations on digital signals of 8 bits or more.
[0007] A first aspect of an embodiment of the present application provides an optical computing system, which includes: multiple DACs and OPUs, where the input end of each DAC is connected to the output end of an electrical processor outside the system, and the output end of each DAC is connected to the input end of the OPU.
[0008] When the electronic processor outputs a digital signal to be calculated, the digital signal can be split into multiple sub-digital signals because it can be split bit by bit. Each of these sub-digital signals corresponds to at least one bit of the digital signal. Therefore, after sequentially splicing these sub-digital signals, the digital signal can be formed. For example, suppose there is a digital signal X representing 409, and digital signal X is 110011001. Since digital signal X can be split into sub-digital signal X1, sub-digital signal X2, and sub-digital signal X3 (sub-digital signal X1 is 110, sub-digital signal X2 is 011, and sub-digital signal X3 is 001),
[0009] In this way, the electronic processor can send the digital signal in the form of multiple sub-digital signals to multiple DACs. It should be noted that the first DAC and the second DAC are two of the multiple DACs. In this way, the first DAC can receive a first sub-digital signal corresponding to the first significant bit of the digital signal (the first sub-digital signal is one of the aforementioned multiple sub-digital signals), and the second DAC can receive a second sub-digital signal corresponding to the second significant bit of the digital signal (the second sub-digital signal is another of the aforementioned multiple sub-digital signals).
[0010] Then, the first DAC can perform digital-to-analog conversion on the first sub-digital signal it receives to obtain a first analog signal. This is equivalent to the first DAC converting the first significant bit of the digital signal into the first analog signal and sending it to the OPU. Similarly, the second DAC can perform digital-to-analog conversion on the second sub-digital signal it receives to obtain a second analog signal. This is equivalent to the second DAC converting the second significant bit of the digital signal into the second analog signal and sending it to the OPU.
[0011] After receiving the first and second analog signals, the OPU performs electrical-to-optical conversion on the first analog signal to obtain a first optical signal, and performs electrical-to-optical conversion on the second analog signal to obtain a second optical signal. The OPU then performs calculations based on the first optical signal to obtain a third optical signal, and on the second optical signal to obtain a fourth optical signal. Finally, the OPU amplifies and superimposes the third and fourth optical signals to obtain the calculated digital signal.
[0012] The optical computing system includes a first DAC, a second DAC, and an OPU. After the first and second DACs collaboratively receive a digital signal from an electronic processor, the first DAC can convert the first significant bit of the digital signal into a first analog signal, and the second DAC can convert the second significant bit of the digital signal into a second analog signal. The OPU can then convert the first analog signal into a first optical signal, and the second analog signal into a second optical signal, and perform operations on the first and second optical signals, respectively, to obtain a third optical signal and a fourth optical signal. Finally, the OPU can amplify and superimpose the third and fourth optical signals to obtain the calculation result of the digital signal. In the aforementioned process, since the accuracy of the DAC is typically 4 bits, if the number of bits of the digital signal is greater than 4 bits, the digital signal can be split into multiple parts and received by multiple DACs to achieve digital-to-analog conversion. In this way, even if the accuracy of each DAC itself is limited, multiple DACs can collaboratively complete the digital-to-analog conversion of high-bit digital signals, allowing the entire optical computing system to perform optical operations on digital signals of 8 bits or more.
[0013] In one possible implementation, the accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal contains r bits, the first significant bit is the (i-1)*d+1th to i*dth bits of the digital signal, and the second significant bit is the (j-1)*d+1th to j*dth bits of the digital signal, where r=h*d, r, h, and d are all integers greater than zero, i=1,…,h, j=1,…,h, and i≠j. In the above-mentioned implementation, when the number of bits of the digital signal can be divided by the precision of the DAC (d bits), the first significant bit and the second significant bit are both d bits, the first significant bit is the (i-1)*d+1th to i*dth bits of the digital signal, and the second significant bit is the (j-1)*d+1th to j*dth bits of the digital signal. For example, the first significant bit is the 1st to dth bits of the digital signal, and the second significant bit is the d+1th to 2dth bits of the digital signal. For another example, the first significant bit is the (h-2)*d+1th to (h-1)*dth bits of the digital signal, the second significant bit is the (h-1)*d+1th to h*dth bits of the digital signal, and so on.
[0014] In one possible implementation, the accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal contains r bits, the first significant bit is the (i-1)*d+1th to i*dth bits of the digital signal, and the second significant bit is the h*d+1th to rth bits of the digital signal, where r = h*d+v, r, h, d and v are all integers greater than zero, and i = 1,…, h. In the above-mentioned implementation, when the number of bits of the digital signal cannot be divided by the precision of the DAC (d bits), the first significant bit is d bits, and the second significant bit is v bits. The first significant bit is the (i-1)*d+1th to i*dth bits of the digital signal, and the second significant bit is the h*d+1th to rth bits of the digital signal. For example, the first significant bit is the 1st to dth bits of the digital signal, and the second significant bit is the h*d+1th to rth bits of the digital signal. For another example, the first significant bit is the (h-2)*d+1th to (h-1)*dth bits of the digital signal, and the second significant bit is the h*d+1th to rth bits of the digital signal, and so on.
[0015] In one possible implementation, the third optical signal is amplified by a factor greater than or equal to 2 to the power of (i-1)*d, and the fourth optical signal is amplified by a factor greater than or equal to 2 to the power of (j-1)*d. In the aforementioned implementation, since the third optical signal is generated based on the first sub-digital signal, and the first sub-digital signal corresponds to the first significant bit of the digital signal, i.e., bits (i-1)*d+1 to i*d of the digital signal, the third optical signal needs to be amplified by a factor greater than or equal to 2 to the power of (i-1)*d. Similarly, since the fourth optical signal is generated based on the second sub-digital signal, and the second sub-digital signal corresponds to the second significant bit of the digital signal, i.e., bits (j-1)*d+1 to j*d of the digital signal, the fourth optical signal is amplified by a factor greater than or equal to 2 to the power of (j-1)*d.
[0016] In one possible implementation, the third optical signal is amplified by a factor greater than or equal to 2 raised to the power of (i-1)*d, and the fourth optical signal is amplified by a factor greater than or equal to 2 raised to the power of h*d. In the aforementioned implementation, since the third optical signal is generated based on the first digital sub-signal, and the first digital sub-signal corresponds to the first significant bit of the digital signal, i.e., bits (i-1)*d+1 to i*d of the digital signal, the third optical signal needs to be amplified by a factor greater than or equal to 2 raised to the power of (i-1)*d. Similarly, since the fourth optical signal is generated based on the second digital sub-signal, and the second digital sub-signal corresponds to the second significant bit of the digital signal, i.e., bits (h*d+1 to r) of the digital signal, the fourth optical signal is amplified by a factor greater than or equal to 2 raised to the power of h*d.
[0017] In one possible implementation, the OPU includes a first modulator, a second modulator, an amplifier, and an adder; the first modulator is used to convert the first analog signal into a first optical signal, and perform operations based on the first optical signal to obtain a third optical signal; the second modulator is used to convert the second analog signal into a second optical signal, and perform operations based on the second optical signal to obtain a fourth optical signal; the amplifier is used to amplify the third optical signal to obtain a fifth optical signal; the fourth optical signal is amplified to obtain a sixth optical signal; the adder is used to superimpose the fifth optical signal and the sixth optical signal to obtain a calculation result of the digital signal. In the aforementioned implementation, the accuracy of the modulator in the OPU is usually also 4 bits. By setting multiple modulators in the OPU, even if the accuracy of each modulator itself is limited, the operation of high-bit digital signals can also be achieved. In this way, the optical computing system provided in the embodiment of the present application can achieve optical operations on high-precision digital signals by deploying low-precision devices, which is conducive to improving the computing performance of optical computing, and there is no performance loss compared to electrical computing.
[0018] In a possible implementation, the first modulator and the second modulator are micro-ring modulators, electro-absorption external modulators, or Mach-Zehnder interferometers.
[0019] In one possible implementation, the aforementioned operation is a matrix multiplication operation.
[0020] A second aspect of an embodiment of the present application provides an optical signal processing method, which is implemented by an optical computing system. The system includes a first DAC, a second DAC, and an OPU. The method includes: converting a first valid bit of a digital signal into a first analog signal by the first DAC; converting a second valid bit of the digital signal into a second analog signal by the second DAC; performing an operation by the OPU based on a first optical signal derived from the first analog signal to obtain a third optical signal; performing an operation by the OPU based on a second optical signal derived from the second analog signal to obtain a fourth optical signal; and amplifying and superimposing the third optical signal and the fourth optical signal by the OPU to obtain a calculation result of the digital signal.
[0021] The optical computing system used to implement the above method includes a first DAC, a second DAC, and an OPU. After the first and second DACs collaboratively receive a digital signal from an electronic processor, the first DAC can convert the first significant bit of the digital signal into a first analog signal, and the second DAC can convert the second significant bit of the digital signal into a second analog signal. The OPU can then convert the first analog signal into a first optical signal, and the second analog signal into a second optical signal, and perform operations on the first and second optical signals, respectively, to obtain a third optical signal and a fourth optical signal. Finally, the OPU can amplify and superimpose the third and fourth optical signals to obtain the calculation result of the digital signal. In the above process, since the accuracy of the DAC is typically 4 bits, if the number of bits of the digital signal is greater than 4 bits, the digital signal can be split into multiple parts and received by multiple DACs to achieve digital-to-analog conversion. In this way, even if the accuracy of each DAC itself is limited, multiple DACs can collaboratively complete the digital-to-analog conversion of high-bit digital signals, allowing the entire optical computing system to perform optical operations on digital signals of 8 bits or more.
[0022] In one possible implementation, the accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal contains r bits, the first significant bit is the (i-1)*d+1th to i*dth bits of the digital signal, and the second significant bit is the (j-1)*d+1th to j*dth bits of the digital signal, where r=h*d, r, h, and d are all integers greater than zero, i=1,…,h, j=1,…,h, and i≠j.
[0023] In one possible implementation, the accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal contains r bits, the first significant bit is the (i-1)*d+1th to i*dth bits of the digital signal, and the second significant bit is the h*d+1th to rth bits of the digital signal, where r = h*d+v, r, h, d and v are all integers greater than zero, and i = 1,…, h.
[0024] In a possible implementation, the third optical signal is amplified by a factor greater than or equal to 2 to the power of (i-1)*d, and the fourth optical signal is amplified by a factor greater than or equal to 2 to the power of (j-1)*d.
[0025] In a possible implementation, the third optical signal is amplified by a factor greater than or equal to 2 to the power of (i-1)*d, and the fourth optical signal is amplified by a factor greater than or equal to 2 to the power of h*d.
[0026] In one possible implementation, the OPU includes a first modulator, a second modulator, an amplifier, and an adder. The steps performed by the OPU include: converting a first analog signal into a first optical signal by the first modulator, and performing an operation based on the first optical signal to obtain a third optical signal; converting the second analog signal into a second optical signal by the second modulator, and performing an operation based on the second optical signal to obtain a fourth optical signal; amplifying the third optical signal by the amplifier to obtain a fifth optical signal; amplifying the fourth optical signal to obtain a sixth optical signal; and superimposing the fifth and sixth optical signals by the adder to obtain a calculation result of a digital signal.
[0027] In a possible implementation, the first modulator and the second modulator are micro-ring modulators, electro-absorption external modulators, or Mach-Zehnder interferometers.
[0028] In one possible implementation, the aforementioned operation is a matrix multiplication operation.
[0029] The optical computing system provided in an embodiment of the present application includes a first DAC, a second DAC and an OPU, wherein after the first DAC and the second DAC cooperate to receive a digital signal from an electronic processor, the first DAC can convert the first valid bit of the digital signal into a first analog signal, and the second DAC can convert the second valid bit of the digital signal into a second analog signal. Then, the OPU can convert the first analog signal into a first optical signal, convert the second analog signal into a second optical signal, and perform operations on the first optical signal and the second optical signal respectively to obtain a third optical signal and a fourth optical signal. Finally, the OPU can amplify and superimpose the third optical signal and the fourth optical signal to obtain the calculation result of the digital signal. In the above process, since the accuracy of the DAC is usually 4 bits, if the number of bits of the digital signal is greater than 4 bits, the digital signal can be split into multiple parts and received by multiple DACs to achieve digital-to-analog conversion. In this way, even if the accuracy of each DAC itself is limited, multiple DACs can cooperate to complete the digital-to-analog conversion of high-bit digital signals, so that the entire optical computing system can achieve optical operations on digital signals of 8 bits or more. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] FIG1 is a schematic diagram of a modulator in the related art;
[0031] FIG2 is a schematic diagram of the structure of an optical computing system provided in an embodiment of the present application;
[0032] FIG3 is another schematic diagram of the structure of the optical computing system provided in an embodiment of the present application;
[0033] FIG4 is a schematic diagram of an application example of the optical computing system provided in an embodiment of the present application;
[0034] FIG5 is a schematic diagram of another application example of the optical computing system provided in an embodiment of the present application;
[0035] FIG6 is a flow chart of an optical signal processing method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] The technical solutions in the embodiments of the present application will be described in detail below with reference to the accompanying drawings in the embodiments of the present application.
[0037] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, and this is merely a way of distinguishing the objects of the same attributes when describing them in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0038] Photonic computing chips, also known as OPUs, use optical signals as data carriers. OPUs can process data by performing calculations on optical signals. Optical computing systems based on OPUs, with their advantages of high-speed parallel processing and low power consumption, are considered the most promising solutions for big data processing in fields such as artificial intelligence and mobile communications.
[0039] Currently, optical computing systems can include devices such as DACs, E / Os, OPUs, O / Es, and ADCs. It should be noted that the current E / Os and O / Es can be integrated into the OPU. For example, the OPU can be presented as a modulator (for example, the modulator can include a microring modulator and a photodetector, with the output of the microring modulator connected to the input of the photodetector). The modulator can perform both electro-optical and photoelectric conversion functions, as well as optical computing functions. Specifically, after the DAC receives the digital signal to be calculated, it can convert it into an analog signal and send it to the modulator. The modulator can then convert the analog signal into an optical signal and perform operations on the optical signal to obtain a calculation result for the digital signal in the optical domain. The modulator can then convert the calculation result of the digital signal in the optical domain into a calculation result for the digital signal in the electrical domain and send it to the ADC (the ADC can perform analog-to-digital conversion on the result and output it to a subsequent digital computing unit for further signal processing). At this point, the optical computing of the digital signal is completed.
[0040] The following example briefly introduces the modulator's workflow. For example, suppose we need to implement a multiplication operation between two 4×4 matrices, that is, matrix A multiplied by matrix B. The precision of the elements in both matrix A and matrix B is 4 bits (4 bits), that is, each element in matrix A and matrix B is a 4-bit binary number, so it can be represented by a 4-bit digital signal. Matrix A and matrix B can be expressed as follows:
[0041]
[0042]
[0043] Then, the multiplication operation of matrix A and matrix B can be realized by the micro-ring modulator shown in Figure 1 (Figure 1 is a schematic diagram of a modulator in the related art. It should be noted that the superscript "4" of the element indicates that the precision of the element is 4 bits). Specifically, at the current moment, the digital signal a representing the value 1 can be input to the four DACs on the left. 11 , digital signal a representing the value 2 12 , digital signal a representing the value 3 13 and the digital signal a representing the value 4 14 , and these four digital signals are all 4-bit digital signals. Then, the four DACs can convert these four digital signals into 11 The corresponding analog signal and a 12 The corresponding analog signal and a 13 The corresponding analog signal and a 14 Then, these four analog signals can be modulated on the optical signals with corresponding wavelengths to obtain the analog signals corresponding to a 11 The corresponding optical signal (the wavelength of the optical signal is λ1) and a 12 The corresponding optical signal (the wavelength of the optical signal is λ2) and a 13 The corresponding optical signal (the wavelength of the optical signal is λ3) and a 14 The corresponding optical signal (the wavelength of the optical signal is λ4) can be input to the four micro-rings in the first column, the four micro-rings in the second column, the four micro-rings in the third column, and the four micro-rings in the fourth column. Similarly, the digital signal b representing the value 5 can be input to the four DACs in the first column on the right. 11 , digital signal b representing the value 6 21 , digital signal b representing the value 7 31 and digital signal b representing the value 8 41 , and these four digital signals are all 4-bit digital signals. Then, the four DACs can convert these four digital signals into 11The corresponding analog signal and b 21 The corresponding analog signal and b 31 The corresponding analog signal and b 41 Then, these four analog signals are input to the four micro-rings in the first column respectively, so 11 The corresponding analog signal can be modulated on a 11 On the optical signal, we get 11 ×b 11 The corresponding optical signal, and b 21 The corresponding analog signal can be modulated on a 12 On the corresponding optical signal, we get 12 ×b 21 The corresponding optical signal, and b 31 The corresponding analog signal can be modulated on a 13 On the corresponding optical signal, we get 13 ×b 31 The corresponding optical signal, and b 41 The corresponding analog signal can be modulated on a 14 On the corresponding optical signal, we get 14 ×b 41 The corresponding optical signal is obtained by accumulating these four optical signals. 11 The corresponding optical signal, c 11 =a 11 ×b 11 +a 12 ×b 21 +a 13 ×b 31 +a 14 ×b 41 Similarly, we can also get 12 The corresponding optical signal, c 12 =a 11 ×b 12 +a 12 ×b 22 +a 13 ×b 32 +a 14 ×b 42 , and c 12 The corresponding optical signal, c 13 =a 11 ×b 13 +a 12 ×b 23 +a 13 ×b 33 +a 14 ×b 43 , and with c 14 The corresponding optical signal, c 11 =a 11 ×b14 +a 12 ×b 24 +a 13 ×b 34 +a 14 ×b 44 .
[0044] At the next moment, the inputs of the four DACs on the left are changed to digital signals a 21 、Digital signal a 22 、Digital signal a 23 and digital signal a 24 , and these four digital signals are all 4-bit digital signals, the inputs of the 16 DACs on the right remain unchanged, so we can get the same as c 21 The corresponding optical signal and c 22 The corresponding optical signal and c 23 The corresponding optical signal and c 24 The corresponding optical signal is obtained by analogy until the optical signal corresponding to the entire matrix C is obtained. The matrix C is shown in formula (2):
[0045]
[0046] Of course, after obtaining the optical signal corresponding to the entire matrix C, the photodetector connected to the microring modulator (not shown in Figure 1) can also convert this optical signal into an analog signal corresponding to the entire matrix C and output it to the ADC for subsequent signal processing. At this point, the microring modulator completes the matrix multiplication operation between matrix A and matrix B in the optical domain, thus realizing an optical operation between the two matrices.
[0047] However, due to limitations in their design processes and materials, the DAC and modulator can only process signals with an accuracy of 4 bits or less (for example, the DAC can only accurately convert 4-bit digital signals into analogue, and the modulator can only accurately convert 4-bit analog signals into electro-optical, etc.). This results in the inability of current optical computing systems to perform optical operations on digital signals of 8 bits or more.
[0048] In order to solve the above problems, an embodiment of the present application provides a new optical computing system, as shown in Figure 2 (Figure 2 is a structural schematic diagram of the optical computing system provided in an embodiment of the present application). The optical computing system includes: multiple DACs and OPUs, the input end of each DAC is connected to the output end of an electrical processor outside the system, and the output end of each DAC is connected to the input end of the OPU.
[0049] The electronic processor can output a digital signal representing a certain numerical value, and the digital signal can be received collaboratively by multiple DACs. Specifically, since the digital signal contains multiple bits (i.e., the digital signal is a multi-bit digital signal), the digital signal can be split bit by bit, thereby splitting the digital signal into multiple sub-digital signals. It can be seen that in these multiple sub-digital signals, each sub-digital signal corresponds to at least one bit of the digital signal, so these multiple sub-digital signals can form the digital signal after being spliced in sequence. In this way, the electronic processor can send the digital signal in the form of multiple sub-digital signals to multiple DACs respectively. Then, after these multiple DACs receive the corresponding sub-digital signals, since these multiple DACs can be regarded as a whole, it is equivalent to receiving the digital signal. For example, suppose there is a digital signal X representing 409, and digital signal X is 110011001. Since digital signal X can be split into sub-digital signal X1, sub-digital signal X2, and sub-digital signal X3 (sub-digital signal X1 is 110, sub-digital signal X2 is 011, and sub-digital signal X3 is 001), the electronic processor can send sub-digital signal X1 to DAC1, send sub-digital signal X2 to DAC2, and send sub-digital signal X3 to DAC3. In this way, DAC1, DAC2, and DAC3 as a whole are equivalent to receiving the digital signal 110011001.
[0050] It's worth noting that, among these multiple sub-digital signals, although each sub-digital signal corresponds to at least one bit of the digital signal, the values represented by most of these sub-digital signals are smaller than the values represented by the corresponding bits of the digital signal. For example, sub-digital signal X1 corresponds to the first three bits of digital signal X, "110." However, the value represented by sub-digital signal X1, "110," is 12, while the value represented by the first three bits of digital signal X, "110," is 384. Similarly, sub-digital signal X2 corresponds to the middle three bits of digital signal X, "011." However, the value represented by sub-digital signal X2, "011," is 6, while the value represented by the middle three bits of digital signal X, "110," is 24.
[0051] Any one of these multiple DACs can convert the received sub-digital signal into an analog signal and send it to the OPU. The remaining DACs in this group, except for this one, can also perform similar operations. Therefore, the OPU can receive multiple analog signals and perform electrical-to-optical conversion on each of these analog signals, generating multiple optical signals to be calculated that correspond to each of these analog signals. The OPU then performs calculations on each of these optical signals to generate multiple calculated optical signals that correspond to each of these optical signals.
[0052] It should be noted that, among the multiple optical signals to be calculated, although each optical signal to be calculated corresponds to at least one bit of the digital signal, the numerical values represented by most of the optical signals to be calculated are less than or equal to the numerical values represented by the bits of the digital signal to which they correspond (because the multiple optical signals to be calculated correspond one-to-one to the multiple sub-digital signals). Therefore, the multiple calculated optical signals that correspond one-to-one to the multiple optical signals to be calculated cannot be directly spliced as the calculation results of the digital signal (because the numerical values represented by most of the calculated optical signals are relatively small). The OPU needs to amplify and superimpose these multiple calculated optical signals before they can be used as the calculation results of the digital signal.
[0053] In order to further understand the working process of the above-mentioned optical computing system, the following is a further introduction to the operation implemented by the optical computing system as a matrix multiplication operation. It should be noted that the operations that can be implemented by the optical computing system are not limited to matrix multiplication operations. The following is only a schematic illustration of the matrix multiplication operation and does not limit the type of operations that can be implemented by the optical computing system. As shown in Figure 3 (Figure 3 is another structural schematic diagram of the optical computing system provided in an embodiment of the present application), the computing task that the optical computing system needs to implement is to implement the multiplication operation between matrix A and matrix B. Suppose matrix A is an m×n matrix and matrix B is an n×k matrix. The two matrices are shown in formula (3):
[0054]
[0055] The precision of the DAC in the optical computing system is d bits, the precision of the elements in matrix A is r1 bits, and the precision of the elements in matrix B is r2 bits. r1=h1*d+v1,r2=h2*d+v2,where r1、r2、h1、h2、v1、v2 and d are all integers greater than 0. Since r1>d,r2>d,therefore, for the elements of matrix A and matrix B, a certain relationship is satisfied. 11 Contains r1 bit, a 11 The first to dth digits of 0 11 , the d+1th to 2dth positions are a 1 11 , ..., the (h1-1)*d+1th to h1*dth positions are a h1-1 11 , the h1*d+1th to r1th positions are a h1 11 So, a 11 =a h1 11 *2 h1*d +a h1-1 11 *2 (h1-1)*d +…+a1 11 *2+a 0 11 For example, if d = 4, the digital signal representing 153 is 10011001, 10011001 = 1001*2 4 +1001.
[0056] Then, when performing matrix multiplication on matrix A and matrix B, the decomposition can be performed as shown in formula (4):
[0057]
[0058] In the above formula, 2 h1*d+h2*d The matrix to be multiplied is:
[0059]
[0060] 2 0 The matrix to be multiplied is:
[0061]
[0062] The matrices multiplied by the other powers of 2 in the result obtained by formula (4) can also be referred to in formulas (5) and (6), and will not be repeated here. Based on formulas (4) to (6), it can be seen that, excluding the term of the power of 2, matrix A can be decomposed into h1+1 m×n matrices, and matrix B can be decomposed into h2+1 n×k matrices. The result of multiplying matrix A by matrix B contains (h1+1)×(h2+1) m×k matrices.
[0063] Based on the above decomposition process, it can be seen that the electronic processor outputs the digital signal a 11 When h1+1 DACs are set to receive, the first DAC receives the digital signal a 0 11 , (digital signal a 0 11 Corresponding to the digital signal a 11 The first to the dth bit of the digital signal a 11 The first to dth bits of the DAC are converted into corresponding analog signals), and the second DAC receives the digital signal a 1 11 ,…, the h1th DAC receives the digital signal a h1-1 , the h1+1th DAC receives the digital signal a h1 11 (Digital signal a h1 11 Corresponding to the digital signal a 11 The h1*d+1th bit to the r1th bit, that is, the h1+1th DAC is used to convert the digital signal a11 After receiving the corresponding digital signal, these h1+1 DACs can convert their respective digital signals into analog signals and send them to the OPU. That is, the first DAC converts the digital signal a 0 11 Convert to a 0 11 The corresponding analog signal is sent to the OPU, ..., the h1+1th DAC converts the digital signal a h1 11 Convert to a h1 11 The corresponding analog signal is sent to the OPU.
[0064] Similarly, for the matrix A except a 11 For any element other than , the electronic processor can also use h1+1 DACs to receive the digital signal corresponding to that element when outputting the digital signal. Thus, receiving matrix A can be accomplished by setting (m×n) groups of DACs (each group of DACs contains (h1+1) DACs, which is used to receive one element of matrix A). Similarly, receiving matrix B can be accomplished by setting (n×k) groups of DACs (each group of DACs contains (h2+1) DACs, which is used to receive one element of matrix B).
[0065] Based on this, the OPU may include (h1+1)×(h2+1) modulators (e.g., micro-ring modulator, electro-absorption external modulator, or Mach-Zehnder interferometer, etc.), wherein the (h1+1)×(h2+1)th modulator is used to obtain 2 h1*d+h2*d The multiplied matrix (i.e., formula (5)), then the modulator needs to obtain the following two matrices:
[0066]
[0067]
[0068] Then, in the (m×n) groups of DACs, the modulator can be connected to the h1+1th DAC in each group, so the modulator can receive the same h1 11 The corresponding analog signal is h1 12 The corresponding analog signal, ..., is a h1 mn The modulator converts the analog signals into electrical and optical signals, and obtains the analog signals corresponding to a h1 11 The corresponding optical signal, h1 12 The corresponding optical signal, ..., is ah1 mn The corresponding optical signals can be composed of the optical signals corresponding to the matrix shown in formula (7). Similarly, the modulator is in (n×k) groups of DACs. The modulator can be connected to the h2+1th DAC in each group, so the modulator can receive the same signal as b h2 11 The corresponding analog signal, h2 12 The corresponding analog signal, ..., is h2 mn The modulator converts these analog signals into optical signals, and obtains optical signals corresponding to the matrix shown in formula (8). In this way, the modulator can use these two optical signals to perform matrix multiplication to obtain the optical signal corresponding to formula (5).
[0069] The first modulator is used to obtain 2 0 The multiplied matrix (i.e., formula (6)), then the modulator needs to obtain the following two matrices:
[0070]
[0071]
[0072] Then, in the (m×n) groups of DACs, the modulator can be connected to the first DAC in each group, so the modulator can receive the same 0 11 The corresponding analog signal is 0 12 The corresponding analog signal, ..., is a 0 mn The modulator converts the analog signals into optical signals and obtains the optical signals corresponding to the matrix shown in formula (9). Similarly, in the (n×k) groups of DACs, the modulator can be connected to the first DAC in each group, so the modulator can receive the optical signals corresponding to b 0 11 The corresponding analog signal, 0 12 The corresponding analog signal, ..., is 0 mn The modulator performs electro-optical conversion on these analog signals to obtain optical signals corresponding to the matrix shown in formula (10). In this way, the modulator can use these two optical signals to perform matrix multiplication to obtain the optical signal corresponding to formula (6).
[0073] Similarly, for the remaining modulators except the (h1+1)×(h2+1)th modulator and the first modulator, the DACs and workflows connected to these modulators can also refer to the aforementioned descriptions of the (h1+1)×(h2+1)th modulator and the first modulator, and will not be repeated here.
[0074] After the (h1+1)×(h2+1) modulators complete the operation, (h1+1)×(h2+1) optical signals can be obtained. These (h1+1)×(h2+1) optical signals correspond one-to-one to the (h1+1)×(h2+1) m×k matrices, including the optical signal corresponding to formula (5), the optical signal corresponding to formula (6), and so on.
[0075] In order to obtain the result as shown in formula (4), an amplifier and an adder are also provided in the OPU. The amplifier can be used to amplify the (h1+1)×(h2+1) optical signals obtained by the (h1+1)×(h2+1) modulators to obtain (h1+1)×(h2+1) amplified optical signals. Among them, the matrix shown in formula (5) is 2 h1*d+h2*d The multiplied matrix, so the optical signal corresponding to formula (5) needs to be amplified by 2 h1*d+h2*d times, the matrix shown in formula (6) is 2 0 The multiplied matrix, so the optical signal corresponding to formula (6) needs to be amplified by 2 0 The amplification times of the remaining optical signals also follow the same rule and will not be described here. The adder is used to add the (h1+1)×(h2+1) amplified optical signals to obtain an optical signal corresponding to the result obtained by formula (4).
[0076] It should be understood that the first significant bit of the aforementioned digital signal is the (i-1)*d+1th to i*dth bits of the digital signal, and the second significant bit of the aforementioned digital signal is the h*d+1th to rth bits of the digital signal. For example, assuming that the digital signal is digital signal a 11 , then, i=1,...,h1, that is, the first significant bit can be a 11 The first to the dth position can also be a 11 The d+1th to 2dth positions, ..., can also be a 11 The (h1-1)*d+1th to h1*dth and so on, and the second significant bit can only be a 11 Of course, the digital signal can be a digital signal a 12 、b 11 etc.
[0077] Furthermore, since a digital signal can be split into multiple sub-digital signals by bit, the sub-digital signal corresponding to the first significant bit of the digital signal can be converted into a first analog signal by a corresponding DAC (i.e., the aforementioned first DAC). Similarly, the sub-digital signal corresponding to the second significant bit of the digital signal can be converted into a second analog signal by a corresponding DAC (i.e., the aforementioned second DAC). For example, assuming that the first significant bit can be a 11 The first to the dth bit of the 11 Then, the first ADC is the first DAC (for receiving digital signal a) among the h1+1 DACs for receiving digital signal. 0 11 ), the first analog signal is 0 11 The corresponding analog signal, the second DAC is the h1+1th DAC among the h1+1 DACs for receiving the digital signal (for receiving the digital signal a h1 11 ), the second analog signal is h1 11 Corresponding analog signals, etc.
[0078] Further, based on the above example, the first optical signal is 0 11 The third optical signal is the optical signal corresponding to the matrix shown in formula (6), the first modulator is the first modulator, and the second optical signal is the optical signal corresponding to a h1 11 The fourth optical signal is an optical signal corresponding to the matrix shown in formula (5), and the second modulator is the (h1+1)×(h2+1)th modulator. Of course, the third optical signal can also be an optical signal corresponding to the remaining matrices, and the remaining matrices are obtained based on the matrix shown in formula (9) (matrix multiplication operation) (in this case, the first modulator is transformed into the corresponding modulator). Similarly, the fourth optical signal can also be an optical signal corresponding to the remaining matrices, and the remaining matrices are obtained based on the matrix shown in formula (7) (matrix multiplication operation) (in this case, the second modulator is transformed into the corresponding modulator).
[0079] Furthermore, the amplification factor of the third optical signal is greater than or equal to 2 to the power of (i-1)*d, and the amplification factor of the fourth optical signal is greater than or equal to 2 to the power of h1*d. For example, based on the above example, when the third optical signal is an optical signal corresponding to the matrix shown in formula (6), the amplification factor of the third optical signal is 2 0 , when the fourth optical signal is an optical signal corresponding to the matrix shown in formula (5), the amplification factor of the fourth optical signal is 2 h1*d+h2*d .
[0080] It should also be understood that this embodiment is only illustrated by taking r1=h1*d+v1 and r2=h2*d+v2 as examples. In actual applications, the following situation may also occur: r1=h1*d and r2=h2*d. Then, the first significant bit of the aforementioned digital signal is the (i-1)*d+1th to the i*dth bit of the digital signal, and the second significant bit of the digital signal is the (j-1)*d+1th to the j*dth bit of the digital signal. For example, suppose the digital signal is digital signal a 11 , then, i=1,...,h1,j=1,...,h1,i≠j, that is, the first significant bit can be a 11 The first to the dth bit of the , and the second significant bit can be a 11 Alternatively, the first significant bit can be a 11 (h1-2)*d+1 to (h1-1)*d, and the second significant bit can be a 11 Of course, the digital signal can be a digital signal a 12 、b 11 etc.
[0081] Furthermore, since a digital signal can be split into multiple sub-digital signals by bit, the sub-digital signal corresponding to the first significant bit of the digital signal can be converted into a first analog signal by a corresponding DAC (i.e., the aforementioned first DAC). Similarly, the sub-digital signal corresponding to the second significant bit of the digital signal can be converted into a second analog signal by a corresponding DAC (i.e., the aforementioned second DAC). For example, assuming that the first significant bit can be a 11 The first to the dth bit of the 11 Then, the first ADC is the first DAC (for receiving digital signal a) among the h1+1 DACs for receiving digital signal. 0 11 ), the first analog signal is 0 11 The corresponding analog signal, the second DAC is the h1th DAC among the h1+1 DACs for receiving the digital signal (for receiving the digital signal a h1-1 11 ), the second analog signal is h1-1 11 Corresponding analog signals, etc.
[0082] Further, based on the above example, the first optical signal is 0 11The third optical signal is the optical signal corresponding to the matrix shown in formula (6), the first modulator is the first modulator, and the second optical signal is the optical signal corresponding to a h1-1 11 The fourth optical signal is an optical signal corresponding to the matrix shown in formula (11), and the second modulator is the h1×h2 modulator. Of course, the third optical signal can also be an optical signal corresponding to the remaining matrices, and the remaining matrices are obtained based on the matrix shown in formula (9) (matrix multiplication operation). Similarly, the fourth optical signal can also be an optical signal corresponding to the remaining matrices, and the remaining matrices are obtained based on the matrix shown in formula (12) (matrix multiplication operation). Formula (11) and formula (12) are:
[0083]
[0084]
[0085] Furthermore, the amplification factor of the third optical signal is greater than or equal to 2 to the power of (i-1)*d, and the amplification factor of the fourth optical signal is greater than or equal to 2 to the power of (j-1)*d. For example, based on the above example, when the third optical signal is an optical signal corresponding to the matrix shown in formula (6), the amplification factor of the third optical signal is 2 0 , when the fourth optical signal is an optical signal corresponding to the matrix shown in formula (11), the fourth optical signal is amplified by a factor of 2(h1-1)*d+(h2-1)*d.
[0086] In order to further understand the workflow of the above optical computing system, the following will further introduce the optical computing system with two application examples. As shown in Figure 4 (Figure 4 is a schematic diagram of an application example of the optical computing system provided by an embodiment of the present application), it is assumed that the system needs to implement the multiplication operation of matrix A and matrix B. Matrix A and matrix B are as shown in formula (1). Assuming that the precision of the elements in matrix A and the precision of the elements in matrix B are both 8 bits (bit), and the precision of the DAC is 4 bits, define a 11 =a 1 11 *2 4 +a 0 11 , where a 1 11 Corresponding to a 11 5th to 8th place, a 0 11 Corresponding to a 11 Then, matrix A multiplied by matrix B can be decomposed as follows:
[0087]
[0088] Based on formula (13), we can see that by eliminating the n-th power term of 2, matrix A can be decomposed into matrix A1 and matrix A2, and matrix B can be decomposed into matrix B1 and matrix B2, as shown in formula (14):
[0089]
[0090] It can be seen that 32 groups of ADCs need to be set up in the system, each group contains 2 DACs. The 1st to 16th groups of DACs can be used to receive matrix A, that is, each group of DACs in these 16 groups is used to receive an element in matrix A, and the 17th to 32nd groups of DACs can be used to receive matrix B, that is, each group of DACs in these 16 groups is used to receive an element in matrix B (it should be noted that Figure 4 only illustrates one of the 1st to 16th groups and one of the 17th to 32nd groups).
[0091] The OPU requires four modulators. The first modulator is used to calculate matrices A1 and B1, the second modulator is used to calculate matrices A1 and B2, the third modulator is used to calculate matrices A2 and B1, and the fourth modulator is used to calculate matrices A2 and B2. Therefore, the first modulator is connected to the first DAC in each of the first to 16 groups and the first DAC in each of the 17th to 32nd groups. The second modulator is connected to the first DAC in each of the first to 16 groups and the second DAC in each of the 17th to 32nd groups. The third modulator is connected to the second DAC in each of the first to 16 groups and the first DAC in each of the 17th to 32nd groups. The fourth modulator is connected to the second DAC in each of the 1st to 16th groups, and is connected to the second DAC in each of the 17th to 32nd groups.
[0092] Furthermore, the first modulator can be connected to the first amplifier, which can amplify the output of the first modulator by 2 8 The second modulator can also be connected to the second amplifier, which can amplify the output of the second modulator by 2 4 The third modulator can also be connected to the third amplifier, which can amplify the output of the third modulator by 2 4 The fourth modulator can also be connected to a fourth amplifier, which can amplify the output of the fourth modulator by 1 times.
[0093] The four amplifiers are connected to an adder, which is used to add the outputs of the four amplifiers to obtain an optical signal corresponding to the result in formula (13).
[0094] As shown in Figure 5 (Figure 5 is a schematic diagram of another application example of the optical computing system provided by an embodiment of the present application), the optical computing system needs to implement the multiplication operation of two 4×4 matrices. Assume that the precision of the elements in matrix A and the precision of the elements in matrix B are both 16 bits (bits), and the precision of the DAC is 4 bits. Then, matrix A can be decomposed into matrix ①, matrix ②, matrix ③, and matrix ④, and matrix B can be decomposed into matrix ⑤, matrix ⑥, matrix ⑦, and matrix ⑧. Therefore, 32 groups of DACs are required in the system, each group of DACs contains 4 DACs, and the OPU is equipped with 16 modulators.
[0095] Through the connection relationship shown in FIG5 , the multiplication operation of the matrix A and the matrix B can be realized, thereby obtaining the corresponding optical signal.
[0096] The optical computing system provided in an embodiment of the present application includes a first DAC, a second DAC and an OPU, wherein after the first DAC and the second DAC cooperate to receive a digital signal from an electronic processor, the first DAC can convert the first valid bit of the digital signal into a first analog signal, and the second DAC can convert the second valid bit of the digital signal into a second analog signal. Then, the OPU can convert the first analog signal into a first optical signal, convert the second analog signal into a second optical signal, and perform operations on the first optical signal and the second optical signal respectively to obtain a third optical signal and a fourth optical signal. Finally, the OPU can amplify and superimpose the third optical signal and the fourth optical signal to obtain the calculation result of the digital signal. In the above process, since the accuracy of the DAC is usually 4 bits, if the number of bits of the digital signal is greater than 4 bits, the digital signal can be split into multiple parts and received by multiple DACs to achieve digital-to-analog conversion. In this way, even if the accuracy of each DAC itself is limited, multiple DACs can cooperate to complete the digital-to-analog conversion of high-bit digital signals, so that the entire optical computing system can achieve optical operations on digital signals of 8 bits or more.
[0097] Furthermore, the modulator precision in an OPU is typically 4 bits. By configuring multiple modulators in the OPU, even if the precision of each modulator itself is limited, high-bit digital signal operations can still be achieved. Thus, the optical computing system provided in the embodiments of the present application can achieve high-precision optical operations on digital signals by deploying low-precision devices, which is beneficial for improving the computing performance of optical computing without any performance loss compared to electrical computing.
[0098] Furthermore, in the optical computing system, the OPU is equipped with a 2n-power linear optical amplifier and an adder, which can process the output of the modulator accordingly to obtain accurate calculation results, which is conducive to achieving low-cost, low-power, and low-latency optical computing.
[0099] The above is a detailed description of the optical computing system provided by the embodiment of the present application. The optical signal processing method provided by the embodiment of the present application will be introduced below. Figure 6 is a flow chart of the optical signal processing method provided by the embodiment of the present application. As shown in Figure 6, the method is implemented by the optical computing system, which includes a first DAC, a second DAC and an OPU. The method includes:
[0100] 1001. Convert a first significant bit of a digital signal into a first analog signal through a first DAC;
[0101] 1002. Convert a second significant bit of the digital signal into a second analog signal through a second DAC;
[0102] 1003. Performing a calculation on the first optical signal derived from the first analog signal by the OPU to obtain a third optical signal.
[0103] 1004. Performing a calculation on the second optical signal derived from the second analog signal by the OPU to obtain a fourth optical signal.
[0104] 1005. Amplify and superimpose the third optical signal and the fourth optical signal through the OPU to obtain a calculation result of the digital signal.
[0105] The optical computing system provided in an embodiment of the present application includes a first DAC, a second DAC and an OPU, wherein after the first DAC and the second DAC cooperate to receive a digital signal from an electronic processor, the first DAC can convert the first valid bit of the digital signal into a first analog signal, and the second DAC can convert the second valid bit of the digital signal into a second analog signal. Then, the OPU can convert the first analog signal into a first optical signal, convert the second analog signal into a second optical signal, and perform operations on the first optical signal and the second optical signal respectively to obtain a third optical signal and a fourth optical signal. Finally, the OPU can amplify and superimpose the third optical signal and the fourth optical signal to obtain the calculation result of the digital signal. In the above process, since the accuracy of the DAC is usually 4 bits, if the number of bits of the digital signal is greater than 4 bits, the digital signal can be split into multiple parts and received by multiple DACs to achieve digital-to-analog conversion. In this way, even if the accuracy of each DAC itself is limited, multiple DACs can cooperate to complete the digital-to-analog conversion of high-bit digital signals, so that the entire optical computing system can achieve optical operations on digital signals of 8 bits or more.
[0106] In one possible implementation, the accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal contains r bits, the first significant bit is the (i-1)*d+1th to i*dth bits of the digital signal, and the second significant bit is the (j-1)*d+1th to j*dth bits of the digital signal, where r=h*d, r, h, and d are all integers greater than zero, i=1,…,h, j=1,…,h, and i≠j.
[0107] In one possible implementation, the accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal contains r bits, the first significant bit is the (i-1)*d+1th to i*dth bits of the digital signal, and the second significant bit is the h*d+1th to rth bits of the digital signal, where r = h*d+v, r, h, d and v are all integers greater than zero, and i = 1,…, h.
[0108] In a possible implementation, the third optical signal is amplified by a factor greater than or equal to 2 to the power of (i-1)*d, and the fourth optical signal is amplified by a factor greater than or equal to 2 to the power of (j-1)*d.
[0109] In a possible implementation, the third optical signal is amplified by a factor greater than or equal to 2 to the power of (i-1)*d, and the fourth optical signal is amplified by a factor greater than or equal to 2 to the power of h*d.
[0110] In one possible implementation, the OPU includes a first modulator, a second modulator, an amplifier, and an adder. The steps performed by the OPU include: converting a first analog signal into a first optical signal by the first modulator, and performing an operation based on the first optical signal to obtain a third optical signal; converting the second analog signal into a second optical signal by the second modulator, and performing an operation based on the second optical signal to obtain a fourth optical signal; amplifying the third optical signal by the amplifier to obtain a fifth optical signal; amplifying the fourth optical signal to obtain a sixth optical signal; and superimposing the fifth and sixth optical signals by the adder to obtain a calculation result of a digital signal.
[0111] In a possible implementation, the first modulator and the second modulator are micro-ring modulators, electro-absorption external modulators, or Mach-Zehnder interferometers.
[0112] In one possible implementation, the operation is a matrix multiplication operation.
[0113] The above are only specific embodiments of the present application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. An optical computing system, characterized in that The system comprises: a first digital-to-analog converter DAC, configured to convert a first significant bit of the digital signal into a first analog signal; a second DAC, configured to convert a second significant bit of the digital signal into a second analog signal; The optical computing unit (OPU) is configured to: perform a calculation based on a first optical signal derived from the first analog signal to obtain a third optical signal; perform a calculation based on a second optical signal derived from the second analog signal to obtain a fourth optical signal; and amplify and superimpose the third optical signal and the fourth optical signal to obtain a calculation result of the digital signal.
2. The system according to claim 1, wherein: The precision of the first DAC and the precision of the second DAC are d bits, the digital signal includes r bits, the first valid bit is the (i-1)*d+1th to the i*dth bit of the digital signal, and the second valid bit is the (j-1)*d+1th to the j*dth bit of the digital signal, where r=h*d, r, h and d are all integers greater than zero, i=1,…,h, j=1,…,h, i≠j.
3. The system according to claim 1, wherein: The accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal includes r bits, the first valid bits are the (i-1)*d+1th to i*dth bits of the digital signal, and the second valid bits are the h*d+1th to rth bits of the digital signal, where r=h*d+v, r, h, d and v are all integers greater than zero, and i=1,…,h.
4. The system according to claim 2, wherein: The amplification factor of the third optical signal is greater than or equal to 2 to the power of (i-1)*d, and the amplification factor of the fourth optical signal is greater than or equal to 2 to the power of (j-1)*d.
5. The system according to claim 3, wherein: The amplification factor of the third optical signal is greater than or equal to 2 to the power of (i-1)*d, and the amplification factor of the fourth optical signal is greater than or equal to 2 to the power of h*d.
6. The system according to any one of claims 1 to 5, characterized in that: The OPU includes a first modulator, a second modulator, an amplifier, and an adder; The first modulator is configured to convert the first analog signal into a first optical signal, and perform an operation based on the first optical signal to obtain a third optical signal; the second modulator is configured to convert the second analog signal into a second optical signal, and perform an operation based on the second optical signal to obtain a fourth optical signal; The amplifier is configured to amplify the third optical signal to obtain a fifth optical signal; amplifying the fourth optical signal to obtain a sixth optical signal; The adder is used to superimpose the fifth optical signal and the sixth optical signal to obtain a calculation result of the digital signal.
7. The system according to claim 6, characterized in that The first modulator and the second modulator are micro-ring modulators, electro-absorption external modulators or Mach-Zehnder interferometers.
8. The system according to any one of claims 1 to 7, characterized in that: The operation is a matrix multiplication operation.
9. A method for processing an optical signal, characterized in that: The method is implemented by an optical computing system, the system including a first DAC, a second DAC, and an OPU, and the method includes: converting a first significant bit of the digital signal into a first analog signal by the first DAC; converting a second significant bit of the digital signal into a second analog signal by the second DAC; performing a calculation by the OPU based on the first optical signal derived from the first analog signal to obtain a third optical signal; performing, by the OPU, a calculation based on the second optical signal derived from the second analog signal, to obtain a fourth optical signal; The third optical signal and the fourth optical signal are amplified and superimposed by the OPU to obtain a calculation result of the digital signal.
10. The method according to claim 9, characterized in that The precision of the first DAC and the precision of the second DAC are d bits, the digital signal includes r bits, the first valid bit is the (i-1)*d+1th to the i*dth bit of the digital signal, and the second valid bit is the (j-1)*d+1th to the j*dth bit of the digital signal, where r=h*d, r, h and d are all integers greater than zero, i=1,…,h, j=1,…,h, i≠j.
11. The method according to claim 9, characterized in that The accuracy of the first DAC and the accuracy of the second DAC are d bits, the digital signal includes r bits, the first valid bits are the (i-1)*d+1th to i*dth bits of the digital signal, and the second valid bits are the h*d+1th to rth bits of the digital signal, where r=h*d+v, r, h, d and v are all integers greater than zero, and i=1,…,h.
12. The method according to claim 10, characterized in that The amplification factor of the third optical signal is greater than or equal to 2 to the power of (i-1)*d, and the amplification factor of the fourth optical signal is greater than or equal to 2 to the power of (j-1)*d.
13. The method according to claim 11, characterized in that The amplification factor of the third optical signal is greater than or equal to 2 to the power of (i-1)*d, and the amplification factor of the fourth optical signal is greater than or equal to 2 to the power of h*d.
14. The method according to any one of claims 9 to 12, characterized in that The OPU includes a first modulator, a second modulator, an amplifier, and an adder. The steps performed by the OPU include: converting the first analog signal into a first optical signal through the first modulator, and performing an operation based on the first optical signal to obtain a third optical signal; converting the second analog signal into a second optical signal through the second modulator, and performing an operation based on the second optical signal to obtain a fourth optical signal; amplifying the third optical signal by the amplifier to obtain a fifth optical signal; and amplifying the fourth optical signal to obtain a sixth optical signal; The fifth optical signal and the sixth optical signal are superimposed by the adder to obtain a calculation result of the digital signal.
15. The method according to claim 14, characterized in that The first modulator and the second modulator are micro-ring modulators, electro-absorption external modulators or Mach-Zehnder interferometers.
16. The method according to any one of claims 9 to 15, characterized in that The operation is a matrix multiplication operation.
