Computing device

By designing a photon matrix computing device that utilizes multiple modulators and optical signal transmission modules, the problem of insufficient parallelism of photon matrix calculation in the prior art is solved, and more efficient calculation efficiency and higher reliability of calculation results are achieved.

CN120223198APending Publication Date: 2025-06-27UNITED MICROELECTRONICS CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510531490.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-25
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

The existing photon matrix computing devices have insufficient parallelism, resulting in low computing efficiency.

Method used

A computing device is designed to load N element values ​​of the same column in the first matrix using N first modulators, and route these optical signals to P second modulators through the optical signal transmission module, so as to realize that the second optical signal obtained by each second modulator contains N wavelength optical signals, carrying N element values ​​of the same column in the first matrix. Then, P second modulators respectively load P element values ​​of the same row in the second matrix to realize the N×P point multiplication operation.

Benefits of technology

The parallelism of photon matrix calculation is improved, thereby significantly improving the calculation efficiency, and the reliability and accuracy of the calculation results are improved through light intensity modulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120223198A_ABST
    Figure CN120223198A_ABST
Patent Text Reader

Abstract

A computing device comprises N first modulators, an n-th path of first optical signals output by the n-th first modulator comprises optical signals of K wavelengths, and the optical signals of the K wavelengths carry the same element value of the n-th row in a first matrix; the optical signal transmission module obtains P paths of second optical signals based on the N paths of first optical signals, and the optical signals of N wavelengths in each path of second optical signals respectively carry N element values of the same column in the first matrix; the pth second modulator is used for modulating the pth path of second optical signal based on the element value of the pth column in the second matrix so as to obtain a pth path of third optical signal, and the optical signals of N wavelengths in the pth path of third optical signal respectively carry the product of the N element values of the same column in the first matrix and the element value of the pth column in the second matrix; and the resolving module is used for obtaining a third matrix based on the P paths of third optical signals. The device provided by the invention can realize matrix calculation with higher degree of parallelism based on the optical signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of photonic computing technology, and in particular, to a computing device. Background Art

[0002] Photonic computing is a new computing paradigm that uses photons as information carriers for data storage, transmission, and processing. Its core relies on the manipulation of optical signals by optical devices (such as lasers, modulators, etc.), and information is carried through the physical properties of light (such as wavelength, phase, polarization, etc.) to achieve computing functions. Compared with traditional electronic computing that relies on the movement of electrons in semiconductors, photonic computing has almost no mass transfer in the medium and theoretically has advantages such as ultra-high speed, low energy consumption, high parallelism, and anti-electromagnetic interference.

[0003] Photonic matrix computing is an important branch of photonic computing. Matrix operations, as the core content of linear algebra, are widely used in many fields such as artificial intelligence, big data processing, and scientific computing. In these scenarios, the scale of matrices is often extremely large. Compared with traditional electronic computing methods, photonic matrix computing can effectively improve the computing speed and reduce energy consumption. Summary of the Invention

[0004] One of the technical objectives of the embodiments of this application is to provide a computing device that can improve the parallelism of photonic matrix computing, thereby further improving the efficiency of photonic matrix computing.

[0005] The embodiments of the application provide a computing device, including: a first modulation module, including N first modulators. The optical signal output by the nth first modulator is the nth first optical signal. The nth first optical signal includes optical signals of K wavelengths. The optical signals of the K wavelengths carry the same element value in the nth row of the first matrix. The first matrix is a matrix with N rows and M columns, where N and K are positive integers greater than 1, M is a positive integer, n is a positive integer, and 1 ≤ n ≤ N;

[0006] An optical signal transmission module, having N input ends and P output ends. The nth input end is coupled to the output end of the nth first modulator. The optical signals of P wavelengths in each first optical signal are respectively transmitted to the P output ends to obtain P second optical signals. Among them, each second optical signal includes optical signals of N wavelengths, and the optical signals of the N wavelengths respectively carry N element values in the same column of the first matrix. P is a positive integer greater than 1, and K is the larger value of N and P;

[0007] A second modulation module, including P second modulators, the input end of the p-th second modulator is coupled to the p-th output end, and the p-th second modulator is configured to modulate the p-th second optical signal based on the element values in the p-th column of the second matrix to obtain the p-th third optical signal, the p-th third optical signal includes optical signals of N wavelengths, and the optical signals of the N wavelengths respectively carry the product of the N element values in the same column of the first matrix and the element values in the p-th column of the second matrix. The second matrix is a matrix of M rows and P columns, p is a positive integer, and 1 ≤ p ≤ P;

[0008] A solving module, including P groups of solving units, the p-th group of solving units is configured to obtain the N element values in the p-th column of the third matrix based on the optical signals of N wavelengths in the p-th third optical signal, and the third matrix is the product of the first matrix and the second matrix.

[0009] Optionally, it further includes: a beam splitter, having a single input port and N output ports. The single input port is used to be coupled to a light source, the n-th output port of the beam splitter is coupled to the n-th first modulator, the light source is used to provide input light, and the input light includes optical signals of K wavelengths.

[0010] Optionally, it further includes: the light source.

[0011] Optionally, it further includes: a pulse modulator, the input end of the pulse modulator is coupled to the light source, and the output end of the pulse modulator is coupled to the input port of the beam splitter. The pulse modulator is configured to modulate the input light into a pulse signal.

[0012] Optionally, M is greater than 1. The n-th first modulator is configured to modulate the optical signals of K wavelengths in the n-th first optical signal at the m-th moment to load the element value in the n-th row and m-th column of the first matrix; the p-th second modulator is configured to modulate the optical signals of N wavelengths in the p-th second optical signal at the m-th moment to load the element value in the m-th row and p-th column of the second matrix; each group of solving units includes N solving units, where the n-th solving unit in the p-th group is configured to sum the detection results of the optical signals of the n-th wavelength in the p-th third optical signal at M moments to obtain the element value in the n-th row and p-th column of the third matrix.

[0013] Optionally, M = 1, and the computing device is configured to calculate the outer product of the first matrix and the fourth matrix, and the second matrix is the transpose matrix of the fourth matrix.

[0014] Optionally, the optical signal transmission module includes: N groups of microring resonators, each group of microring resonators includes P microring resonators, and each microring resonator has an input end, a through end, a download end, and an upload end. Among them, the input end of the first microring resonator in the nth group of microring resonators is coupled to the output end of the nth first modulator, the through end of the jth microring resonator in the nth group of microring resonators is coupled to the input end of the (j + 1)th microring resonator in the nth group of microring resonators, where j is a positive integer and 1 ≤ j ≤ P - 1; the download end of the pth microring resonator in the kth group of microring resonators is coupled to the upload end of the pth microring resonator in the (k + 1)th group of microring resonators, where both k and p are positive integers, 1 ≤ k ≤ N - 1, and 1 ≤ p ≤ P; the download end of the pth microring resonator in the Nth group of microring resonators is coupled to the pth second modulator.

[0015] Optionally, the first modulator is any one of an electro-optic modulator, an acousto-optic modulator, a magneto-optic modulator, and a phase change material optical modulator; and / or, the second modulator is any one of an electro-optic modulator, an acousto-optic modulator, a magneto-optic modulator, and a phase change material optical modulator.

[0016] Optionally, the first modulator is used for optical intensity modulation, and / or, the second modulator is used for optical intensity modulation.

[0017] Optionally, the computing device is an optical chip.

[0018] Compared with the prior art, the technical solution of the embodiment of the present invention has the following beneficial effects:

[0019] Use N first modulators to load the N element values in the same column of the first matrix. Each first modulator performs the same modulation on the optical signals of K wavelengths, so that the optical signals of K wavelengths in the same first optical signal carry the same element value. Further, through the optical signal transmission module, the optical signals of P wavelengths in the same first optical signal are routed to P second modulators respectively. The wavelengths of the optical signals routed to the same second modulator in different first optical signals are different, so that each second modulator obtains a second optical signal that contains optical signals of N wavelengths, and the optical signals of N wavelengths carry the N element values in the same column of the first matrix. Further, P second modulators respectively load the P element values in the same row of the second matrix in the second optical signals obtained by each of them. Each second modulator can simultaneously implement the dot product result of one element value in the second matrix and the N element values in the first matrix. Thus, the computing device can obtain N × P dot product results at the same time. Therefore, the computing device provided by the embodiment of the present application can improve the parallelism of photon matrix calculation, thereby improving the efficiency of photon matrix calculation.

[0020] Furthermore, in the solution of the embodiment of the present application, the optical intensity of the optical signal is modulated so that the optical signal carries information. Compared with the phase modulation solution, the anti-interference performance of the optical intensity modulation is better, which improves the reliability and accuracy of the result of the matrix multiplication calculation.

[0021] Furthermore, in the solution of the embodiment of the present application, the number of modulators in the computing device is (N + P). Using fewer devices to achieve high-parallel matrix multiplication calculation is beneficial to reducing the volume of the computing device. In addition, since the modulation of the modulator is achieved by the control of the electrical signal, the fewer number of modulators in the embodiment of the present application is also beneficial to reducing the number of electrical ports of the computing device.

[0022] Furthermore, in the solution of the embodiment of the present application, the optical signal transmission module includes N×P microring resonators, which realizes the conversion of N first optical signals into P second optical signals, so that P second resonators perform N×P dot product operations through the loading at one moment. The optical signal transmission module with this structure is simple in structure and small in volume, which is beneficial to improving the integration of the computing device. Description of the Drawings

[0023] Figure 1 is a schematic structural diagram of a computing device in an embodiment of the present application;

[0024] Figure 2 is a schematic structural diagram of a microring resonator in an embodiment of the present application;

[0025] Figure 3 is Figure 1 a schematic structural diagram of an optical signal transmission module in

[0026] Figure 4 is a schematic structural diagram of another computing device in an embodiment of the present application. Detailed Embodiments

[0027] One of the technical purposes of the embodiment of the present application is to improve the parallelism of the photonic matrix calculation, thereby improving the efficiency of the photonic matrix calculation.

[0028] In view of this, an embodiment of the present application provides a computing device, including: a first modulation module, including N first modulators, the optical signal output by the nth first modulator is the nth first optical signal, and the nth first optical signal includes optical signals of K wavelengths, and the optical signals of the K wavelengths carry the same element value in the nth row of the first matrix. The first matrix is a matrix with N rows and M columns, N and P are positive integers greater than 1, K is the larger value of N and P, M is a positive integer, n and p are positive integers, 1 ≤ n ≤ N, 1 ≤ p ≤ P; an optical signal transmission module, having N input ends and P output ends, the nth input end is coupled to the output end of the nth first modulator, and the optical signals of P wavelengths in each first optical signal are respectively transmitted to the P output ends to obtain P second optical signals. Among them, each second optical signal includes optical signals of N wavelengths, and the optical signals of the N wavelengths respectively carry N element values in the same column of the first matrix; a second modulation module, including P second modulators, the input end of the pth second modulator is coupled to the pth output end, and the pth second modulator is used to modulate the pth second optical signal based on the element value in the pth column of the second matrix to obtain the pth third optical signal. The pth third optical signal includes optical signals of N wavelengths, and the optical signals of the N wavelengths respectively carry the product of the N element values in the same column of the first matrix and the element value in the pth column of the second matrix. The second matrix is a matrix with M rows and P columns; a solving module, including P solving unit groups, and the pth solving unit group is used to obtain N element values in the pth column of the third matrix based on the optical signals of N wavelengths in the pth third optical signal. The third matrix is the product of the first matrix and the second matrix.

[0029] In the above solution, N first modulators are used to load N element values in the same column of the first matrix, and each first modulator performs the same modulation on the optical signals of K wavelengths, so that the optical signals of K wavelengths in the same first optical signal carry the same element value. Further, through the optical signal transmission module, the optical signals of P wavelengths in the same first optical signal are respectively routed to P second modulators, and the wavelengths of the optical signals routed to the same second modulator in different first optical signals are different, so that each second modulator obtains a second optical signal that includes optical signals of N wavelengths, and the optical signals of the N wavelengths carry N element values in the same column of the first matrix. Further, the P second modulators respectively load P element values in the same row of the second matrix in the second optical signals obtained by each of them, and each second modulator can simultaneously implement the dot product result of one element value in the second matrix and N element values in the first matrix. Thus, the computing device can obtain N×P dot product results at the same time. Therefore, the computing device provided by the embodiment of the present application can improve the parallelism of photon matrix calculation, thereby improving the efficiency of photon matrix calculation.

[0030] To make the above objects, features, and beneficial effects of the present invention more obvious and understandable, the following provides a detailed description of specific embodiments of the present invention with reference to the accompanying drawings.

[0031] The computing device provided in the embodiments of the present application can be used to implement the multiplication of a first matrix and a second matrix. In this document, the first matrix is an N-row and M-column matrix, the second matrix is an M-row and P-column matrix, N is a positive integer greater than 1, P is a positive integer greater than 1, and M is a positive integer. In practical applications, the element values in the first matrix and the second matrix in the embodiments of the present application can all change rapidly. The solution provided in the embodiments of the present application can implement high-parallel multiplication calculations for two rapidly and dynamically changing matrices.

[0032] Embodiment 1

[0033] In the solution of this embodiment, the first matrix can be an N-row and 1-column matrix, the second matrix can be a 1-row and P-column matrix, and the third matrix is the product of the first matrix and the second matrix, and the third matrix is an N-row and P-column matrix.

[0034] This embodiment mainly takes N = P = 4 as an example for illustrative description. The first matrix can be represented as A = [a1, a2, a3, a4] T , the second matrix can be represented as B = [b1, b2, b3, b4], and the third matrix C = A × B = = .

[0035] Referring to Figure 1 , Figure 1 is a schematic structural diagram of a computing device in the embodiments of the present application. As Figure 1 shown, the computing device 1 can include: a light source 11, a beam splitter 12, a first modulation module 13, an optical signal transmission module 14, a second modulation module 15, and a solution module 16.

[0036] Among them, the light source 11 can provide an input optical signal, and the input optical signal includes optical signals of K wavelengths. The input optical signal provided by the light source 11 is a continuous multi-wavelength light, and the input optical signal includes single-wavelength signals of K wavelengths. Exemplarily, the light source 11 can be a multi-wavelength laser. In the case of N = P = 4, K = 4, and the four wavelengths can be respectively represented as λ1, λ2, λ3, λ4.

[0037] In the solution of the embodiments of the present application, K is the larger value of N and P. That is, if N > P, then K = N; if P > N, then K = P.

[0038] Further, the beam splitter 12 has a single input port and N output ports, that is, the beam splitter can be a 1×N beam splitter. Specifically, the single input port of the beam splitter 12 is used to couple with the light source 11 to receive the input light. Among them, the input light contains optical signals of K wavelengths. The beam splitter 12 is used to split the input light and output it to the N ports of the beam splitter 12.

[0039] More specifically, the beam splitter 12 splits the optical signal of each wavelength in the input light and outputs it to the N ports of the beam splitter 12. Thus, the optical signal output from each port contains optical signals of K wavelengths. As Figure 1 shown, when N = P = 4, the optical signals output from the 4 output ports of the beam splitter 12 all contain the optical signal with wavelength λ1, the optical signal with wavelength λ2, the optical signal with wavelength λ3, and the optical signal with wavelength λ4.

[0040] It should be noted that the optical signals output from each port of the beam splitter 12 do not carry information.

[0041] The beam splitter 12 is optional. In other possible implementation manners, the computing device 13 may include N light sources 11, and the input end of the nth first modulator 131 is coupled with the nth light source 11 to provide an input optical signal to the nth first modulator 131. Among them, the wavelengths of the optical signals provided by the N light sources 11 are the same, and all contain optical signals of K wavelengths.

[0042] Further, the first modulation module 13 includes N first modulators 131, and the nth output port of the beam splitter 12 is coupled with the input end of the nth first modulator 131. Thus, the optical signal received by each first modulator 131 also contains optical signals of K wavelengths.

[0043] Further, the first modulators 131 in the first modulation module 13 correspond one by one to the rows in the first matrix. Specifically, the nth first modulator 131 modulates the received optical signal based on the element values in the nth row of the first matrix to obtain the nth first optical signal. That is, the optical signal output by the nth first modulator 131 is denoted as the nth first optical signal. Among them, the N first optical signals carry the N element values in the same column of the first matrix, and the nth first optical signal carries the element values in the nth row of the first matrix.

[0044] In a specific implementation, the first modulator 131 modulates the optical intensity of the received optical signal. Compared with the solution of loading matrix information through phase modulation, the method of intensity modulation has higher anti-interference ability, which is beneficial to ensuring the stability and accuracy of the calculation results. The first modulator 131 in this embodiment can be a wavelength-independent modulator. That is, each first modulator 141 performs the same modulation on all wavelengths. Exemplarily, the first modulator 141 is any one of an electro-optic modulator, an acousto-optic modulator, a magneto-optic modulator, and a phase change material optical modulator.

[0045] It should be noted that each first modulator 131 performs the same modulation on the optical signals of K wavelengths received, and the information carried by the optical signals of each wavelength in each first optical signal is the same. Specifically, in the nth first optical signal, the optical signals of K wavelengths all carry a in the first matrix n .

[0046] Exemplarily, as Figure 1 shown, in the first optical signal of the first path, the optical signals with wavelengths of λ1, λ2, λ3, and λ4 all carry a1; in the first optical signal of the second path, the optical signals with wavelengths of λ1, λ2, λ3, and λ4 all carry a2; in the first optical signal of the third path, the optical signals with wavelengths of λ1, λ2, λ3, and λ4 all carry a3; in the first optical signal of the fourth path, the optical signals with wavelengths of λ1, λ2, λ3, and λ4 all carry a4.

[0047] Further, the optical signal transmission module 14 has N input ends and P output ends. Among them, the N input ends of the optical signal transmission module 14 correspond one-to-one with N first modulators 131 to receive N first optical signals. Specifically, the nth input end of the optical signal transmission module 14 is coupled to the output end of the nth first modulator 131 to receive the nth first optical signal. Thus, each first optical signal received by each input end of the optical signal transmission module 14 contains optical signals of K wavelengths, where each optical signal of each wavelength in the first optical signal received by the nth input end carries a in the first matrix n .

[0048] Further, the N first optical signals are transmitted in the optical signal transmission module 14 and output from P output ends to obtain P second optical signals. Among them, the optical signal output from the pth output end among the P output ends is denoted as the pth second optical signal. p is a positive integer, and 1 ≤ p ≤ P.

[0049] In the solution of this embodiment, the N input ends and P output ends of the optical signal transmission module 14 are in a fully connected state. Specifically, each input end is connected to P output ends. In other words, each output end is connected to N input ends.

[0050] Further, for the first optical signals received by each input terminal, the first optical signals include optical signals of K wavelengths. Among the optical signals of K wavelengths, the optical signals of P wavelengths are respectively transmitted to P output terminals, and the wavelengths of the optical signals transmitted from N input terminals to the same output terminal are different from each other. Thus, each second optical signal includes optical signals of N wavelengths. Since the same output terminal obtains the optical signals from N input terminals, the information carried by the optical signals of N wavelengths in each second optical signal is different from each other.

[0051] Specifically, each second optical signal carries the element values of N rows in the same column of the first matrix (such as a1, a2,... a N ). That is to say, the optical signals of N wavelengths in the second optical signal carry N element values. That is, each optical signal of each wavelength in each second optical signal carries one element value, and the rows of the element values carried by the optical signals of different wavelengths are different. In other words, the information carried by different second optical signals is the same, which is the element values of N rows in the same column of the first matrix (such as a1, a2,... a N ), but the information carried by the optical signals of the same wavelength in different second optical signals is different.

[0052] Take Figure 1 as an example. The first second optical signal includes optical signals with wavelengths of λ1, λ2, λ3, and λ4. Among them, the optical signal with wavelength λ1 carries a1, the optical signal with wavelength λ2 carries a2, the optical signal with wavelength λ3 carries a3, and the optical signal with wavelength λ4 carries a4. The second second optical signal includes optical signals with wavelengths of λ1, λ2, λ3, and λ4. Among them, the optical signal with wavelength λ2 carries a1, the optical signal with wavelength λ3 carries a2, the optical signal with wavelength λ4 carries a3, and the optical signal with wavelength λ1 carries a4. The third second optical signal includes optical signals with wavelengths of λ1, λ2, λ3, and λ4. Among them, the optical signal with wavelength λ3 carries a1, the optical signal with wavelength λ4 carries a2, the optical signal with wavelength λ1 carries a3, and the optical signal with wavelength λ2 carries a4. The fourth second optical signal includes optical signals with wavelengths of λ1, λ2, λ3, and λ4. Among them, the optical signal with wavelength λ4 carries a1, the optical signal with wavelength λ1 carries a2, the optical signal with wavelength λ2 carries a3, and the optical signal with wavelength λ3 carries a4.

[0053] Further, the P second optical signals are input into the second modulation module 15.

[0054] Specifically, the second modulation module 15 includes P second modulators 151. Among them, the input terminal of the p-th second modulator 151 among the P second modulators 151 is coupled to the p-th output terminal of the optical signal transmission module 14 and receives the p-th second optical signal.

[0055] Among them, the second modulators 151 correspond one-to-one with the columns in the second matrix. The second modulators 151 in this embodiment may be wavelength-independent modulators. That is, each second modulator 151 performs the same modulation on all wavelengths. Exemplarily, the second modulator 151 is any one of an electro-optic modulator, an acousto-optic modulator, a magneto-optic modulator, and a phase change material optical modulator.

[0056] Exemplarily, the p-th second modulator 151 modulates the optical intensity of the p-th second optical signal to obtain the p-th third optical signal, and the p-th third optical signal is the optical signal output by the p-th second modulator 151. Compared with the scheme of loading matrix information through phase modulation, the method of intensity modulation has higher anti-interference ability, which is beneficial to ensuring the stability and accuracy of the calculation results.

[0057] Specifically, the p-th second modulator 151 is used to modulate the p-th second optical signal based on the element value b in the p-th column of the second matrix p to obtain the p-th third optical signal. Among them, each third optical signal includes optical signals of N wavelengths, and the optical signals of N wavelengths in the p-th third optical signal respectively carry the product of the N element values in the same column of the first matrix and the element value in the p-th column of the second matrix.

[0058] Thus, the P third optical signals output by the second modulation module 15 together carry the product of the N element values in the same column of the first matrix and the P element values in the same row of the second matrix. That is, at one moment, the computing device 1 completes N×P dot product operations. In this embodiment, the P third optical signals output by the second modulation module 15 carry the respective element values in the third matrix.

[0059] As Figure 1 described, the input end of the first second modulator 151 is coupled to the first output end of the optical signal transmission module 14 to receive the first second optical signal and modulate the optical intensity of the first second optical signal to obtain the first third optical signal, and the first third optical signal includes an optical signal with a wavelength of λ1, an optical signal with a wavelength of λ2, an optical signal with a wavelength of λ3, and an optical signal with a wavelength of λ4. Among them, the optical signal with a wavelength of λ1 carries a1×b1, the optical signal with a wavelength of λ2 carries a2×b1, the optical signal with a wavelength of λ3 carries a3×b1, and the optical signal with a wavelength of λ4 carries a4×b1.

[0060] The input end of the second second modulator 151 is coupled to the second output end of the optical signal transmission module 14 to receive the second second optical signal of the second path, and modulate the optical intensity of the second second optical signal of the second path to obtain the third optical signal of the second path. The third optical signal of the second path includes an optical signal with a wavelength of λ1, an optical signal with a wavelength of λ2, an optical signal with a wavelength of λ3, and an optical signal with a wavelength of λ4. Among them, the optical signal with a wavelength of λ2 carries a1×b2, the optical signal with a wavelength of λ3 carries a2×b2, the optical signal with a wavelength of λ4 carries a3×b2, and the optical signal with a wavelength of λ1 carries a4×b2.

[0061] The input end of the third second modulator 151 is coupled to the third output end of the optical signal transmission module 14 to receive the second second optical signal of the third path, and modulate the optical intensity of the second second optical signal of the third path to obtain the third optical signal of the third path. The third optical signal of the third path includes an optical signal with a wavelength of λ1, an optical signal with a wavelength of λ2, an optical signal with a wavelength of λ3, and an optical signal with a wavelength of λ4. Among them, the optical signal with a wavelength of λ3 carries a1×b3, the optical signal with a wavelength of λ4 carries a2×b3, the optical signal with a wavelength of λ1 carries a3×b3, and the optical signal with a wavelength of λ2 carries a4×b3.

[0062] The input end of the fourth second modulator 151 is coupled to the fourth output end of the optical signal transmission module 14 to receive the second second optical signal of the fourth path, and modulate the optical intensity of the second second optical signal of the fourth path to obtain the third optical signal of the fourth path. The third optical signal of the fourth path includes an optical signal with a wavelength of λ1, an optical signal with a wavelength of λ2, an optical signal with a wavelength of λ3, and an optical signal with a wavelength of λ4. Among them, the optical signal with a wavelength of λ4 carries a1×b4, the optical signal with a wavelength of λ1 carries a2×b4, the optical signal with a wavelength of λ2 carries a3×b4, and the optical signal with a wavelength of λ3 carries a4×b4.

[0063] Further, the output end of the second modulation module 15 is coupled to the input end of the resolution module 16. The resolution module 16 resolves the optical signals of each wavelength in the P third optical signals to obtain the element values in the third matrix.

[0064] Specifically, the resolution module 16 may include P resolution unit groups 160, and each resolution unit group 160 includes N resolution units 161. Among them, the pth resolution unit group 160 is used to resolve the information carried by the third optical signal of the pth path. Different resolution units 161 in the same resolution unit group 160 are used to resolve the information carried by the optical signals of different wavelengths in the third optical signal of the same path.

[0065] Such as Figure 1As shown in the figure, the solving unit 161 may include one add-drop type microring resonator (MRR) and one photodetector. The add-drop type MRR has an input end, a through end, and a drop end. The input end of the first solving unit in each group of solving units 160 is coupled to the output end of the second modulator 151 to receive the third optical signal. Further, the through end of the i-th solving unit 161 is coupled to the input end of the (i + 1)-th solving unit 161, where 1 ≤ i ≤ N - 1. In addition, the drop end of each add-drop type MRR is coupled to the photodetector.

[0066] It should be noted that the add-drop type MRR also has an add end. In the solving unit, the add end is in a vacant state, that is, the add end is not coupled to other devices. For the specific structure of the add-drop type MRR, reference can be made to the following description about Figure 2 the specific description.

[0067] Further, the photodetector has an optical signal input end and an electrical signal output end. The drop end of the add-drop type MRR is coupled to the optical signal input end of the photodetector. The photodetector can convert the optical signal input from the optical signal input end into an electrical signal and output it to an external circuit through the electrical signal output end. The external circuit processes the electrical signal to obtain the information carried by the optical signal. Exemplarily, the photodetector in the embodiment of the present application may be a high-speed photodetector, such as an avalanche photodiode, a quantum well photodetector, a PIN photodiode, etc.

[0068] Specifically, different add-drop type MRRs in the p-th group of solving units extract optical signals of different wavelengths and transmit the extracted optical signals to the coupled photodetectors to obtain the N element values in the p-th column of the third matrix.

[0069] More specifically, the n-th solving unit 161 in the p-th group of solving units 160 is used to solve the information carried by the optical signal of the n-th wavelength in the p-th third optical signal. The MRR in the n-th solving unit 161 in the p-th group of solving units 160 extracts the optical signal of the n-th wavelength in the p-th third optical signal from the input optical signal. The optical signal of the n-th wavelength is output from the drop end to the photodetector. Thus, the photodetector can convert the optical signal of the n-th wavelength in the p-th third optical signal into an electrical signal to obtain the information carried by the optical signal of the n-th wavelength in the p-th third optical signal. This information is also the element value in the n-th row and p-th column of the third matrix.

[0070] It should be noted that in the solution of this embodiment, the nth wavelength in the third optical signal can be understood as the wavelength carrying the product of the element value in the nth row and the element value in the pth column of the second matrix in the third optical signal.

[0071] Exemplarily, as Figure 1 shown, in the first set of solving units 160, the first third optical signal is input from the input end of the first solving unit 161. The up-down type MRR therein extracts the optical signal with the wavelength of λ1 from the first third optical signal, and transmits the optical signal with the wavelength of λ1 to the photodetector in the first solving unit 161 to obtain c 11 . Further, the optical signals with the wavelengths of λ2, λ3, and λ4 in the first third optical signal are output from the through end of the first solving unit 161 to the second solving unit 161. The up-down type MRR in the second solving unit 161 extracts the optical signal with the wavelength of λ2 from the received optical signals, and transmits the optical signal with the wavelength of λ2 to the photodetector in the second solving unit 161 to obtain c 21 . Further, the optical signals with the wavelengths of λ3 and λ4 in the first third optical signal are output from the through end of the second solving unit 161 to the third solving unit. The up-down type MRR in the third solving unit 161 extracts the optical signal with the wavelength of λ3 from the received optical signals, and transmits the optical signal with the wavelength of λ3 to the photodetector in the third solving unit 161 to obtain c 31 . Further, the optical signal with the wavelength of λ4 in the first third optical signal is output from the through end of the third solving unit 161 to the fourth solving unit 161. The up-down type MRR in the fourth solving unit 161 extracts the optical signal with the wavelength of λ4 from the received optical signals, and transmits the optical signal with the wavelength of λ4 to the photodetector in the fourth solving unit 161 to obtain c 41 .

[0072] Similarly, in the second set of solving units 160, the second third optical signal is input from the input end of the first solving unit 160. The up-down type MRR therein extracts the optical signal with the wavelength of λ2 from the second third optical signal, and transmits the optical signal with the wavelength of λ2 to the photodetector in the first solving unit 160 to obtain c 12 . Further, the optical signals with the wavelengths of λ1, λ3, and λ4 in the second third optical signal are output from the through end of the first solving unit 160 to the second solving unit 160. The up-down type MRR in the second solving unit 160 extracts the optical signal with the wavelength of λ3 from the received optical signals, and transmits the optical signal with the wavelength of λ3 to the photodetector in the second solving unit 160 to obtain c22 Further, the optical signals with wavelengths of λ1 and λ4 in the second path of the third optical signal are output from the through end of the second resolver unit 160 to the third resolver unit 160. The up-down type MRR in the third resolver unit 160 extracts the optical signal with wavelength of λ4 from the received optical signals, and transmits the optical signal with wavelength of λ4 to the photodetector in the third resolver unit 160 to obtain c 32 Further, the optical signal with wavelength of λ1 in the second path of the third optical signal is output from the through end of the third resolver unit 160 to the fourth resolver unit 160. The up-down type MRR in the fourth resolver unit 160 extracts the optical signal with wavelength of λ1 from the received optical signals, and transmits the optical signal with wavelength of λ1 to the photodetector in the fourth resolver unit 160 to obtain c 42 。

[0073] Similarly, in the third resolver unit group 160, the third path of the third optical signal is input from the input end of the first resolver unit 161. The up-down type MRR therein extracts the optical signal with wavelength of λ3 from the third path of the third optical signal, and transmits the optical signal with wavelength of λ3 to the photodetector in the first resolver unit 161 to obtain c 13 Further, the optical signals with wavelengths of λ1, λ2, and λ4 in the third path of the third optical signal are output from the through end of the first resolver unit 161 to the second resolver unit 161. The up-down type MRR in the second resolver unit 161 extracts the optical signal with wavelength of λ4 from the received optical signals, and transmits the optical signal with wavelength of λ4 to the photodetector in the second resolver unit 161 to obtain c 23 Further, the optical signals with wavelengths of λ1 and λ4 in the third path of the third optical signal are output from the through end of the second resolver unit 161 to the third resolver unit 161. The up-down type MRR in the third resolver unit 161 extracts the optical signal with wavelength of λ4 from the received optical signals, and transmits the optical signal with wavelength of λ4 to the photodetector in the third resolver unit 161 to obtain c 33 Further, the optical signal with wavelength of λ1 in the third path of the third optical signal is output from the through end of the third resolver unit 161 to the fourth resolver unit 161. The up-down type MRR in the fourth resolver unit 161 extracts the optical signal with wavelength of λ1 from the received optical signals, and transmits the optical signal with wavelength of λ1 to the photodetector in the fourth resolver unit 161 to obtain c 43 。

[0074] In the fourth set of solving units 160, the fourth third optical signal is input from the input end of the first solving unit 161. The upload-download type MRR therein extracts the optical signal with wavelength λ4 from the fourth third optical signal, and transmits the optical signal with wavelength λ4 to the photodetector in the first solving unit 161 to obtain c 14 Further, the optical signals with wavelengths λ1, λ2, and λ3 in the fourth third optical signal are output from the through end of the first solving unit 161 to the second solving unit 161. The upload-download type MRR in the second solving unit 161 extracts the optical signal with wavelength λ1 from the received optical signals, and transmits the optical signal with wavelength λ1 to the photodetector in the second solving unit 161 to obtain c 24 Further, the optical signals with wavelengths λ2 and λ3 in the fourth third optical signal are output from the through end of the second solving unit 161 to the third solving unit 161. The upload-download type MRR in the third solving unit 161 extracts the optical signal with wavelength λ2 from the received optical signals, and transmits the optical signal with wavelength λ2 to the photodetector in the third solving unit 161 to obtain c 34 Further, the optical signal with wavelength λ3 in the fourth third optical signal is output from the through end of the third solving unit 161 to the fourth solving unit 161. The upload-download type MRR in the fourth solving unit 161 extracts the optical signal with wavelength λ3 from the received optical signals, and transmits the optical signal with wavelength λ3 to the photodetector in the fourth solving unit 161 to obtain c 44 .

[0075] In a specific implementation, Figure 1 The shown calculation module can be used to calculate the outer product of the first matrix and the fourth matrix. Among them, the first matrix is a matrix with N rows and 1 column, and the fourth matrix is a matrix with P rows and 1 column. In a specific implementation, the second matrix can be the transpose matrix of the fourth matrix.

[0076] As above, in the solution of Embodiment 1, N elements of the first matrix are loaded by the first modulation module, and N first optical signals are converted into P second optical signals by the optical signal transmission module. Each second optical signal carries N elements of the first matrix. The second modulation module simultaneously loads P elements of the second matrix on the basis of the P second optical signals, so that N×P dot product operations can be completed at one moment, greatly improving the parallelism of the two matrix multiplications.

[0077] Embodiment 2

[0078] This embodiment provides a specific implementation manner of the optical signal transmission module.

[0079] In the solution of this embodiment, the optical signal transmission module may include N×P upload-download type MRRs. Refer to Figure 2 , Figure 2 which is a schematic structural diagram of the upload-download type MRR in the embodiments of the present application.

[0080] As Figure 2 shown, the upload-download type MRR includes a first straight waveguide 21, a second straight waveguide 22, and a ring waveguide 23. The ports of the two straight waveguides serve as the ports of the upload-download type MRR. Specifically, each upload-download type MRR has an input end (in) 211, a through end (through) 212, a drop end (drop) 221, and an add end (add) 222. Among them, the two ends of the first straight waveguide 21 are the input end 211 and the through end 212 respectively, and the two ends of the second straight waveguide 22 are the drop end 221 and the add end 222 respectively.

[0081] The upload-download type MRR has wavelength selectivity and can extract light with a resonant-state wavelength. The light with the resonant-state wavelength in the optical signal input from the input end 211 is transmitted through the ring waveguide 23 to the second straight waveguide 22 and output from the drop end 221. The light with a non-resonant-state wavelength in the optical signal input from the input end 211 is transmitted along the first straight waveguide 22 and output from the through end 212. The light with the resonant-state wavelength in the optical signal input from the add end 222 is transmitted through the ring waveguide 23 to the first straight waveguide 21 and output from the through end 212. The light with a non-resonant-state wavelength in the optical signal input from the add end 222 is transmitted along the second straight waveguide 22 and output from the drop end 221.

[0082] Assume Figure 2 the resonant-state wavelength of the MRR shown is λi. The optical signal input from the input end 211 includes an optical signal with a wavelength of λi and an optical signal with a wavelength of λj. Among them, the optical signal with a wavelength of λi is coupled into the ring waveguide 23, further coupled into the second straight waveguide 23, and then output from the drop end 221. The optical signal with a wavelength of λj is transmitted in the first straight waveguide 21 and output from the through end 212. The optical signal input from the add end 222 includes an optical signal with a wavelength of λi and an optical signal with a wavelength of λk. The optical signal with a wavelength of λi is coupled into the ring waveguide 23, further coupled into the first straight waveguide 21, and then output from the through end 212. The optical signal with a wavelength of λk is transmitted along the second straight waveguide 22 and output from the drop end 221.

[0083] Refer to Figure 3 , Figure 3 which is Figure 1 a schematic structural diagram of an optical signal transmission module 14 in

[0084] The optical signal transmission module 14 in this embodiment includes N MRR groups 140. Among them, each MMR group 140 includes P MRRs 20. Among them, the MRRs 20 in the optical signal transmission module 14 are all upload-download type MRRs.

[0085] In this embodiment, the input end of the first MRR 20 in each MRR group 140 is coupled to the output end of the first modulator 131 to receive the first optical signal. The through end of the jth MRR 20 in each MRR group 140 is coupled to the input end of the (j + 1)th MRR 20. The through end of the Pth MRR 20 can be in an idle state, that is, not coupled to other devices. j is a positive integer, and 1 ≤ j ≤ P - 1.

[0086] Among them, the P MRRs 20 in the same MRR group 140 are respectively used to extract the optical signals of P wavelengths in the first optical signal, and different MRRs 20 are used to extract the optical signals of different wavelengths among the P wavelengths in the first optical signal. That is, the resonant state wavelengths of the P MRRs 20 in the same MRR group 140 are different from each other. Specifically, the input end of the first MRR 20 in the nth MRR group 140 is coupled to the output end of the nth first modulator 131 to receive the nth first optical signal. Further, the P MRRs 20 in the nth MRR group 140 respectively extract the optical signals of P wavelengths in the nth first optical signal.

[0087] In addition, the download end of the MRR 20 in the first MRR group 140 is coupled to the upload end of the MRR 20 in the second MRR group 140. Specifically, the download end of the pth MRR 20 in the kth MRR group 140 is coupled to the upload end of the pth MRR 20 in the (k + 1)th MRR group 140. The download ends of the P MRRs 20 in the Nth MRR group 140 are the P output ends of the optical signal transmission module 14. Or rather, the download ends of the P MRRs 20 in the Nth MRR group 140 are respectively coupled to the P output ends of the optical signal transmission module 14. In other words, the download end of the pth MRR 20 in the Nth MRR group 140 is coupled to the pth second modulator 151. Among them, both k and p are positive integers, 1 ≤ k ≤ N - 1, and 1 ≤ p ≤ P. Among them, the upload end of the MRR 20 in the first MRR group is in an idle state, that is, not coupled to other devices.

[0088] Such as Figure 1As shown, the input end of the first MRR 20 in the first MRR group 140 is coupled to the output end of the first modulator 131 to obtain the first optical signal of the first path. The resonant state wavelength of the first MRR 20 in the first MRR group 140 is λ1, the resonant state wavelength of the second MRR 20 is λ2, the resonant state wavelength of the third MRR 20 is λ3, and the resonant state wavelength of the fourth MRR 20 is λ4.

[0089] Thus, the optical signal with wavelength λ1 in the first optical signal of the first path is transmitted from the download end to the upload end of the first MRR 20 in the second MRR group 140, and the optical signals with wavelengths λ2, λ3, and λ4 in the first optical signal of the first path are transmitted from the through end to the input end of the second MRR 20 in the first MRR group 140. Among them, the optical signal with wavelength λ2 in the first optical signal of the first path is transmitted from the download end to the upload end of the second MRR 20 in the second MRR group 140, and the optical signals with wavelengths λ3 and λ4 in the first optical signal of the first path are transmitted from the through end to the input end of the third MRR 20 in the first MRR group 140. Among them, the optical signal with wavelength λ3 in the first optical signal of the first path is transmitted from the download end to the upload end of the third MRR 20 in the second MRR group 140, and the optical signal with wavelength λ4 in the first optical signal of the first path is transmitted from the through end to the input end of the fourth MRR 20 in the first MRR group 140. Among them, the optical signal with wavelength λ4 in the first optical signal of the first path is transmitted from the download end to the upload end of the fourth MRR 20 in the second MRR group 140.

[0090] The input end of the first MRR 20 in the second MRR group 140 is coupled to the output end of the second modulator 131 to obtain the first optical signal of the second path. The resonant state wavelength of the first MRR 20 in the second MRR group 140 is λ2, the resonant state wavelength of the second MRR 20 is λ3, the resonant state wavelength of the third MRR 20 is λ4, and the resonant state wavelength of the fourth MRR 20 is λ1.

[0091] Accordingly, the optical signal with wavelength λ2 in the second first optical signal and the optical signal with wavelength λ1 in the first first optical signal input from the upload end are transmitted from the download end to the upload end of the first MRR 20 in the third MRR group 140. The optical signals with wavelengths λ1, λ3, and λ4 in the second first optical signal are transmitted from the through end to the input end of the second MRR 20 in the second MRR group 140. Among them, the optical signal with wavelength λ3 in the second first optical signal and the optical signal with wavelength λ2 in the first first optical signal input from the upload end are transmitted from the download end to the upload end of the second MRR 20 in the third MRR group 140. The optical signals with wavelengths λ1 and λ4 in the second first optical signal are transmitted from the through end to the input end of the third MRR 20 in the second MRR group 140. Among them, the optical signal with wavelength λ4 in the first first optical signal and the optical signal with wavelength λ3 in the first first optical signal input from the upload end are transmitted from the download end to the upload end of the third MRR 20 in the third MRR group 140. The optical signal with wavelength λ1 in the second first optical signal is transmitted from the through end to the input end of the fourth MRR 20 in the second MRR group 140. Among them, the optical signal with wavelength λ1 in the second first optical signal and the optical signal with wavelength λ4 in the first first optical signal input from the upload end are transmitted from the download end to the upload end of the fourth MRR 20 in the third MRR group 140.

[0092] The input end of the first MRR 20 in the third MRR group 140 is coupled to the output end of the third first modulator 131 to obtain the third first optical signal. The resonant state wavelength of the first MRR 20 in the third MRR group 140 is λ3, the resonant state wavelength of the second MRR 20 is λ4, the resonant state wavelength of the third MRR 20 is λ1, and the resonant state wavelength of the fourth MRR 20 is λ2.

[0093] Thus, the optical signal with wavelength λ3 in the third first optical signal, the optical signal with wavelength λ1 in the first first optical signal input from the upload end, and the optical signal with wavelength λ2 in the second first optical signal are transmitted from the download end to the upload end of the first MRR 20 in the fourth MRR group 140. The optical signals with wavelengths λ1, λ2, and λ4 in the third first optical signal are transmitted from the through end to the input end of the second MRR 20 in the third MRR group 140. Among them, the optical signal with wavelength λ4 in the third first optical signal, the optical signals with wavelengths λ2 in the first first optical signal input from the upload end and λ3 in the second first optical signal are transmitted from the download end to the upload end of the second MRR 20 in the fourth MRR group 140. The optical signals with wavelengths λ1 and λ2 in the third first optical signal are transmitted from the through end to the input end of the third MRR 20 in the third MRR group 140. Among them, the optical signal with wavelength λ1 in the third first optical signal, the optical signal with wavelength λ3 in the first first optical signal input from the upload end, and the optical signal with wavelength λ4 in the second first optical signal are transmitted from the download end to the upload end of the third MRR 20 in the fourth MRR group 140. The optical signal with wavelength λ2 in the third first optical signal is transmitted from the through end to the input end of the fourth MRR 20 in the fourth MRR group 140. Among them, the optical signal with wavelength λ2 in the third first optical signal, the optical signal with wavelength λ4 in the first first optical signal input from the upload end, and the optical signal with wavelength λ1 in the second first optical signal are transmitted from the download end to the upload end of the fourth MRR 20 in the fourth MRR group 140.

[0094] The input end of the first MRR 20 in the fourth MRR group 140 is coupled to the output end of the fourth first modulator 131 to obtain the fourth first optical signal. The resonant state wavelength of the first MRR 20 in the fourth MRR group 140 is λ4, the resonant state wavelength of the second MRR 20 is λ1, the resonant state wavelength of the third MRR 20 is λ2, and the resonant state wavelength of the fourth MRR 20 is λ3.

[0095] Accordingly, the optical signal with wavelength λ4 in the fourth first optical signal, the optical signal with wavelength λ1 in the first first optical signal input from the upload end, the optical signal with wavelength λ2 in the second first optical signal, and the optical signal with wavelength λ3 in the third first optical signal are transmitted from the download end to the input end of the first second modulator 151. The optical signals with wavelengths λ1, λ2, and λ3 in the fourth first optical signal are transmitted from the through end to the input end of the second MRR 20 in the fourth MRR group 140. Among them, the optical signal with wavelength λ1 in the fourth first optical signal, the optical signals with wavelengths λ2 in the first first optical signal input from the upload end, λ3 in the second first optical signal, and λ4 in the third first optical signal are transmitted from the download end to the input end of the second second modulator 151. The optical signals with wavelengths λ2 and λ3 in the fourth first optical signal are transmitted from the through end to the input end of the third MRR 20 in the fourth MRR group 140. Among them, the optical signal with wavelength λ2 in the fourth first optical signal, the optical signal with wavelength λ3 in the first first optical signal input from the upload end, the optical signal with wavelength λ4 in the second first optical signal, and the optical signal with wavelength λ1 in the third first optical signal are transmitted from the download end to the input end of the third second modulator 151. The optical signal with wavelength λ3 in the fourth first optical signal is transmitted from the through end to the input end of the fourth MRR 20 in the fourth MRR group 140. Among them, the optical signal with wavelength λ3 in the fourth first optical signal, the optical signal with wavelength λ4 in the first first optical signal input from the upload end, the optical signal with wavelength λ1 in the second first optical signal, and the optical signal with wavelength λ2 in the third first optical signal are transmitted from the download end to the upload end of the fourth MRR 20 in the fourth MRR group 140.

[0096] As described above, the optical signal transmission module provided in this embodiment can route the optical signals with P wavelengths in each first optical signal to P output ends respectively, and the wavelengths of the optical signals routed to the same output end in different first optical signals are different. Thus, each second optical signal contains N wavelengths, and the N wavelengths carry the N element values in the same column of the first matrix, and the element values carried by different wavelengths are different.

[0097] Embodiment III

[0098] In the solution of this embodiment, the first matrix can be an N×M matrix, the second matrix can be an M×P matrix, and the third matrix is the product of the first matrix and the second matrix, and the third matrix is an N×P matrix. Among them, M, N, and P are all positive integers greater than 1.

[0099] This embodiment mainly takes N = M = P = 4 as an example for illustrative description. In this embodiment, the first matrix can be expressed as , and the second matrix can be expressed as , the third matrix C = A × B = = , where n and p are positive integers, 1 ≤ n ≤ N, 1 ≤ p ≤ P.

[0100] The following mainly specifically describes the differences between Example 3 and Example 1.

[0101] Referring to Figure 4 , Figure 4 is a schematic structural diagram of another computing device in the embodiments of the present application. As Figure 4 shown, the computing device 4 may include: a light source 41, a pulse modulator 42, a beam splitter 43, a first modulation module 44, an optical signal transmission module 45, a second modulation module 46, and a resolution module 47.

[0102] Specifically, the input end of the pulse modulator 42 is coupled to the light source 41 to receive the input optical signal provided by the light source 41. It should be noted that the input optical signal provided by the light source 41 is a non-pulsed optical signal, and the pulse modulator 42 is used to modulate the continuous input optical signal into a pulsed input optical signal.

[0103] In a specific implementation, the pulse modulator 42 may be various modulators capable of modulating a non-pulsed optical signal into a pulsed optical signal. The specific type of the pulse modulator 42 is not limited in this embodiment. It should be noted that in the solution of the embodiments of the present application, 1 pulse width is recorded as 1 moment.

[0104] Furthermore, the output end of the pulse modulator 42 is coupled to the input end of the beam splitter 43.

[0105] As a transformation example, the computing device 4 may include N pulse modulators 42. The input end of the nth pulse modulator 42 is coupled to the nth output end of the beam splitter 43, and the output end of the nth pulse modulator 42 is coupled to the nth first modulator.

[0106] Thus, the optical signals received by the N first modulators are all pulsed optical signals.

[0107] At the mth moment, the nth first modulator modulates the optical signals of K wavelengths in the input optical signal based on the element value in the nth row and mth column of the first matrix to obtain the nth first optical signal at the mth moment. Thus, the nth first optical signal at the mth moment carries the element value in the nth row and mth column of the first matrix. Among them, 1 ≤ m ≤ M, and m is a positive integer. Thus, at the mth moment, the N first optical signals output by the first modulation module 44 carry the N element values in the mth column.

[0108] Furthermore, each second optical signal at the mth moment carries the N element values in the mth column of the first matrix.

[0109] For the specific details of the first modulation module 44 and the optical signal transmission module 45, reference may be made to the specific descriptions of Embodiment 1 and Embodiment 2 above.

[0110] Further, the second modulation module 46 includes P second modulators. Among them, at the m-th moment, the p-th second modulator is used to modulate the optical signals of N wavelengths in the p-th second optical signal based on the element value in the m-th row and p-th column of the second matrix, so that the optical signal of the n-th wavelength in the p-th third optical signal at the m-th moment carries the element value a in the n-th row and m-th column of the first matrix nm and the element value b in the m-th row and p-th column of the second matrix mp of the product (that is, a nm ×b mp ). Thus, at the m-th moment, the p-th third optical signal carries the product of the N element values in the m-th column of the first matrix and the element value in the m-th row and p-th column of the second matrix. Thus, the P third optical signals carry the product of the N element values in the m-th column of the first matrix and the P element values in the m-th row of the second matrix. That is, at one moment, the computing device 4 completes N×P dot product operations.

[0111] Further, the solving module 47 includes P groups of solving units. Each group of solving units includes N solving units. The output end of the p-th second modulator of the second modulation module 46 is coupled to the input end of the p-th group of solving units. Each group of solving units contains N solving units. The n-th solving unit in the p-th group of solving units is used to sum the values carried by the optical signals of the n-th wavelength in the p-th third optical signal at M moments to obtain the element value in the n-th row and p-th column of the third matrix.

[0112] Specifically, the n-th solving unit in the p-th group of solving units extracts the optical signal of the n-th wavelength in the p-th third optical signal at each of the M moments, and converts the optical signals of the n-th wavelength in the p-th third optical signal received at the M moments into electrical signals and outputs them to an external circuit, so as to obtain the sum of the values carried by the optical signals of the n-th wavelength in the p-th third optical signal at the M moments. The sum is the element value in the n-th row and p-th column of the third matrix.

[0113] The following combines Figure 4 to specifically illustrate the example where N = M = P = 4.

[0114] At the t0 moment, the first modulation module 44 modulates the input optical signal to obtain 4 first optical signals. Among them, each n-th first optical signal carries the element value a in the 1st column and n-th row of the first matrix n1. Further, four first optical signals are input into the optical signal transmission module to obtain P second optical signals, and each second optical signal carries four element values in the first column of the first matrix. Among them, the optical signal with wavelength λ1 in the first second optical signal carries a 11 , the optical signal with wavelength λ2 carries a 21 , the optical signal with wavelength λ3 carries a 31 , and the optical signal with wavelength λ4 carries a 41 . The optical signal with wavelength λ2 in the second second optical signal carries a 11 , the optical signal with wavelength λ3 carries a 21 , the optical signal with wavelength λ4 carries a 31 , and the optical signal with wavelength λ1 carries a 41 . The optical signal with wavelength λ3 in the third second optical signal carries a 11 , the optical signal with wavelength λ4 carries a 21 , the optical signal with wavelength λ1 carries a 31 , and the optical signal with wavelength λ2 carries a 41 . The optical signal with wavelength λ4 in the fourth second optical signal carries a 11 , the optical signal with wavelength λ1 carries a 21 , the optical signal with wavelength λ2 carries a 31 , and the optical signal with wavelength λ3 carries a 41 .

[0115] Further, the p-th second modulator modulates the p-th second optical signal to obtain the p-th third optical signal, thereby obtaining four third optical signals, and each third optical signal includes optical signals of four wavelengths. Among them, the optical signal with wavelength λ1 in the first third optical signal carries a 11 ×b 11 , the optical signal with wavelength λ2 carries a 21 ×b 11 , the optical signal with wavelength λ3 carries a 31 ×b 11 , and the optical signal with wavelength λ4 carries a 41 ×b 11 . The optical signal with wavelength λ2 in the second third optical signal carries a 11 ×b 12 , the optical signal with wavelength λ3 carries a 21 ×b 12 , the optical signal with wavelength λ4 carries a 31 ×b 12 , and the optical signal with wavelength λ1 carries a 41 ×b 12 . The optical signal with wavelength λ3 in the third third optical signal carries a 11 ×b13 The optical signal with wavelength λ4 carries a 21 ×b 13 The optical signal with wavelength λ1 carries a 31 ×b 13 The optical signal with wavelength λ2 carries a 41 ×b 13 In the 4th third optical signal, the optical signal with wavelength λ4 carries a 11 ×b 14 The optical signal with wavelength λ1 carries a 21 ×b 14 The optical signal with wavelength λ2 carries a 31 ×b 14 The optical signal with wavelength λ3 carries a 41 ×b 14 .

[0116] At time t1, the first modulation module 44 modulates the input optical signal to obtain 4 first optical signals. Among them, every n first optical signals carry the element value a in the nth row of the 2nd column of the first matrix n2 . Further, the 4 first optical signals are input into the optical signal transmission module to obtain P second optical signals. Each second optical signal carries 4 element values in the 2nd column of the first matrix. Among them, in the 1st second optical signal, the optical signal with wavelength λ1 carries a 12 , the optical signal with wavelength λ2 carries a 22 , the optical signal with wavelength λ3 carries a 32 , the optical signal with wavelength λ4 carries a 42 . In the 2nd second optical signal, the optical signal with wavelength λ2 carries a 12 , the optical signal with wavelength λ3 carries a 22 , the optical signal with wavelength λ4 carries a 32 , the optical signal with wavelength λ1 carries a 42 . In the 3rd second optical signal, the optical signal with wavelength λ3 carries a 12 , the optical signal with wavelength λ4 carries a 22 , the optical signal with wavelength λ1 carries a 32 , the optical signal with wavelength λ2 carries a 42 . In the 4th second optical signal, the optical signal with wavelength λ4 carries a 12 , the optical signal with wavelength λ1 carries a 22 , the optical signal with wavelength λ2 carries a 32 , the optical signal with wavelength λ3 carries a 42 .

[0117] Further, the p-th second modulator modulates the p-th second optical signal to obtain the p-th third optical signal, thereby obtaining 4 third optical signals, and each third optical signal includes optical signals of 4 wavelengths. Among them, the optical signal with wavelength λ1 in the first third optical signal carries a 12 ×b 21 , the optical signal with wavelength λ2 carries a 22 ×b 21 , the optical signal with wavelength λ3 carries a 32 ×b 21 , and the optical signal with wavelength λ4 carries a 42 ×b 21 . The optical signal with wavelength λ2 in the second third optical signal carries a 12 ×b 22 , the optical signal with wavelength λ3 carries a 22 ×b 22 , the optical signal with wavelength λ4 carries a 32 ×b 22 , and the optical signal with wavelength λ1 carries a 42 ×b 22 . The optical signal with wavelength λ3 in the third third optical signal carries a 12 ×b 23 , the optical signal with wavelength λ4 carries a 22 ×b 23 , the optical signal with wavelength λ1 carries a 32 ×b 23 , and the optical signal with wavelength λ2 carries a 42 ×b 23 . In the fourth third optical signal, the optical signal with wavelength λ4 carries a 12 ×b 24 , the optical signal with wavelength λ1 carries a 22 ×b 24 , the optical signal with wavelength λ2 carries a 32 ×b 24 , and the optical signal with wavelength λ3 carries a 42 ×b 24 .

[0118] At time t2, the first modulation module 44 modulates the input optical signal to obtain 4 first optical signals. Among them, each n-th first optical signal carries the element value a at the n-th row of the 3rd column in the first matrix n3 . Further, the 4 first optical signals are input to the optical signal transmission module to obtain P second optical signals, and each second optical signal carries 4 element values in the 3rd column of the first matrix. Among them, the optical signal with wavelength λ1 in the first second optical signal carries a 13 , and the optical signal with wavelength λ2 carries a 23, the optical signal with wavelength λ3 carries a 33 , the optical signal with wavelength λ4 carries a 43 . In the second optical signal of the second path, the optical signal with wavelength λ2 carries a 13 , the optical signal with wavelength λ3 carries a 23 , the optical signal with wavelength λ4 carries a 33 , the optical signal with wavelength λ1 carries a 43 . In the second optical signal of the third path, the optical signal with wavelength λ3 carries a 13 , the optical signal with wavelength λ4 carries a 23 , the optical signal with wavelength λ1 carries a 33 , the optical signal with wavelength λ2 carries a 43 . In the second optical signal of the fourth path, the optical signal with wavelength λ4 carries a 13 , the optical signal with wavelength λ1 carries a 23 , the optical signal with wavelength λ2 carries a 33 , the optical signal with wavelength λ3 carries a 43 .

[0119] Furthermore, the p-th second modulator modulates the second optical signal of the p-th path to obtain the third optical signal of the p-th path, thereby obtaining 4 third optical signals, and each third optical signal contains optical signals of 4 wavelengths. Among them, in the first third optical signal, the optical signal with wavelength λ1 carries a 13 ×b 31 , the optical signal with wavelength λ2 carries a 23 ×b 31 , the optical signal with wavelength λ3 carries a 33 ×b 31 , the optical signal with wavelength λ4 carries a 43 ×b 31 . In the second third optical signal, the optical signal with wavelength λ2 carries a 13 ×b 32 , the optical signal with wavelength λ3 carries a 23 ×b 32 , the optical signal with wavelength λ4 carries a 33 ×b 32 , the optical signal with wavelength λ1 carries a 43 ×b 32 . In the third third optical signal, the optical signal with wavelength λ3 carries a 13 ×b 33 , the optical signal with wavelength λ4 carries a 23 ×b 33 , the optical signal with wavelength λ1 carries a 33 ×b 33 , the optical signal with wavelength λ2 carries a 43 ×b33 In the fourth third optical signal, the optical signal with wavelength λ4 carries a 13 ×b 34 , and the optical signal with wavelength λ1 carries a 23 ×b 34 , and the optical signal with wavelength λ2 carries a 33 ×b 34 , and the optical signal with wavelength λ3 carries a 43 ×b 34 .

[0120] At time t3, the first modulation module 44 modulates the input optical signal to obtain 4 first optical signals. Among them, every n first optical signals carry the element value a in the nth row of the 4th column in the first matrix n4 . Further, the 4 first optical signals are input into the optical signal transmission module to obtain P second optical signals. Each second optical signal carries 4 element values in the 4th column of the first matrix. Among them, in the first second optical signal, the optical signal with wavelength λ1 carries a 14 , and the optical signal with wavelength λ2 carries a 24 , and the optical signal with wavelength λ3 carries a 34 , and the optical signal with wavelength λ4 carries a 44 . In the second second optical signal, the optical signal with wavelength λ2 carries a 14 , and the optical signal with wavelength λ3 carries a 24 , and the optical signal with wavelength λ4 carries a 34 , and the optical signal with wavelength λ1 carries a 44 . In the third second optical signal, the optical signal with wavelength λ3 carries a 14 , and the optical signal with wavelength λ4 carries a 24 , and the optical signal with wavelength λ1 carries a 34 , and the optical signal with wavelength λ2 carries a 44 . In the fourth second optical signal, the optical signal with wavelength λ4 carries a 14 , and the optical signal with wavelength λ1 carries a 24 , and the optical signal with wavelength λ2 carries a 34 , and the optical signal with wavelength λ3 carries a 44 .

[0121] Further, the pth second modulator modulates the pth second optical signal to obtain the pth third optical signal, thus obtaining 4 third optical signals. Each third optical signal contains optical signals of 4 wavelengths. Among them, in the first third optical signal, the optical signal with wavelength λ1 carries a 14 ×b 41 , and the optical signal with wavelength λ2 carries a 24 ×b 41, the optical signal with wavelength λ3 carries a 34 ×b 41 , the optical signal with wavelength λ4 carries a 44 ×b 41 . The optical signal with wavelength λ2 in the second third optical signal carries a 14 ×b 42 , the optical signal with wavelength λ3 carries a 24 ×b 42 , the optical signal with wavelength λ4 carries a 34 ×b 42 , the optical signal with wavelength λ1 carries a 44 ×b 42 . The optical signal with wavelength λ3 in the third third optical signal carries a 14 ×b 43 , the optical signal with wavelength λ4 carries a 24 ×b 43 , the optical signal with wavelength λ1 carries a 34 ×b 43 , the optical signal with wavelength λ2 carries a 44 ×b 43 . In the fourth third optical signal, the optical signal with wavelength λ4 carries a 14 ×b 44 , the optical signal with wavelength λ1 carries a 24 ×b 44 , the optical signal with wavelength λ2 carries a 34 ×b 44 , the optical signal with wavelength λ3 carries a 44 ×b 44 .

[0122] Based on the above results, the first arithmetic unit in the first arithmetic unit group in the arithmetic module 47 is used to determine a 11 ×b 11 + a 12 ×b 21 +a 13 ×b 31 + a 14 ×b 41 of the result, and this result is c 11 . The second arithmetic unit in the first arithmetic unit group is used to determine a 21 ×b 11 + a 22 ×b 21 +a 23 ×b 31 + a 24 ×b41 The result, which is c 21 The third computing unit in the first computing unit group is used to determine a based on the optical signal with wavelength λ3 in the first third optical signal from time t0 to time t3 31 ×b 11 + a 32 ×b 21 +a 33 ×b 31 + a 34 ×b 41 The result, which is c 31 The fourth computing unit in the first computing unit group is used to determine a based on the optical signal with wavelength λ4 in the first third optical signal from time t0 to time t3 41 ×b 11 + a 42 ×b 21 +a 43 ×b 31 + a 44 ×b 41 The result, which is c 41 .

[0123] The first computing unit in the second computing unit group is used to determine a based on the optical signal with wavelength λ2 in the second third optical signal from time t0 to time t3 11 ×b 12 + a 12 ×b 22 +a 13 ×b 32 + a 14 ×b 42 The result, which is c 12 The second computing unit in the second computing unit group is used to determine a based on the optical signal with wavelength λ3 in the second third optical signal from time t0 to time t3 21 ×b 12 + a 22 ×b 22 +a 23 ×b 32 + a 24 ×b 42 The result, which is c 22 The third computing unit in the first computing unit group is used to determine a based on the optical signal with wavelength λ4 in the second third optical signal from time t0 to time t3 31 ×b 12 + a 32 ×b 22 +a 33 ×b 32 + a 34 ×b42 The result, which is c 32 The fourth resolver in the second resolver group is used to determine a based on the optical signal with wavelength λ1 in the second third optical signal from time t0 to time t3 41 ×b 12 + a 42 ×b 22 +a 43 ×b 32 + a 44 ×b 42 The result, which is c 42 .

[0124] The first resolver in the third resolver group is used to determine a based on the optical signal with wavelength λ3 in the third third optical signal from time t0 to time t3 11 ×b 13 + a 12 ×b 23 +a 13 ×b 33 + a 14 ×b 43 The result, which is c 13 . The second resolver in the third resolver group is used to determine a based on the optical signal with wavelength λ4 in the third third optical signal from time t0 to time t3 21 ×b 13 + a 22 ×b 23 +a 23 ×b 33 + a 24 ×b 43 The result, which is c 23 . The third resolver in the third resolver group is used to determine a based on the optical signal with wavelength λ1 in the third third optical signal from time t0 to time t3 31 ×b 13 + a 32 ×b 23 +a 33 ×b 33 + a 34 ×b 43 The result, which is c 33 . The fourth resolver in the third resolver group is used to determine a based on the optical signal with wavelength λ2 in the third third optical signal from time t0 to time t3 41 ×b 13 + a 42 ×b 23 +a 43 ×b 33 + a 44 ×b43 The result, which is c 43 。

[0125] The first arithmetic unit in the fourth arithmetic unit group is used to determine a based on the optical signal with wavelength λ4 in the fourth third optical signal from time t0 to time t3 11 ×b 14 + a 12 ×b 24 +a 13 ×b 34 + a 14 ×b 44 The result, which is c 14 。The second arithmetic unit in the fourth arithmetic unit group is used to determine a based on the optical signal with wavelength λ1 in the fourth third optical signal from time t0 to time t3 21 ×b 14 + a 22 ×b 24 +a 23 ×b 34 + a 24 ×b 44 The result, which is c 24 。The third arithmetic unit in the fourth arithmetic unit group is used to determine a based on the optical signal with wavelength λ2 in the fourth third optical signal from time t0 to time t3 31 ×b 14 + a 32 ×b 24 +a 33 ×b 34 + a 34 ×b 44 The result, which is c 34 。The fourth arithmetic unit in the fourth arithmetic unit group is used to determine a based on the optical signal with wavelength λ3 in the fourth third optical signal from time t0 to time t3 41 ×b 14 + a 42 ×b 24 +a 43 ×b 34 + a 44 ×b 44 The result, which is c 44 。

[0126] As described above, in the solution of Embodiment 3, an optical pulse signal is provided, and the same element value in the first matrix is loaded onto K wavelengths in the optical pulse signal to obtain a first optical signal. The optical signal transmission module converts N first optical signals into P second optical signals, and each second optical signal carries N elements of the first matrix. The second modulation module simultaneously loads P elements of a certain row of the second matrix on the basis of the P second optical signals, so that N×P dot product operations can be completed at one moment. Finally, by summing the information carried by the optical signals at M moments, the multiplication operation of the two matrices is obtained, which greatly improves the parallelism of the multiplication operation of the two matrices.

[0127] For more content about the computing device in Embodiment 3, reference can be made to the descriptions in Embodiment 1 and Embodiment 2 above, which will not be elaborated here.

[0128] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this article indicates that the associated objects before and after are in an "or" relationship.

[0129] The term "a plurality of" appearing in the embodiments of the present application refers to two or more.

[0130] The descriptions such as the first and the second appearing in the embodiments of the present application are only for schematic and distinguishing description objects, without an order, nor do they represent a special limitation on the number of devices in the embodiments of the present application, and cannot constitute any limitation to the embodiments of the present application.

[0131] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention should be subject to the scope defined by the claims.

Claims

1. A computing device, characterized in that: include: A first modulation module includes N first modulators, wherein an optical signal output by the nth first modulator is an nth first optical signal, wherein the nth first optical signal includes optical signals of K wavelengths, and the optical signals of the K wavelengths carry the same element value of the nth row in a first matrix, wherein the first matrix is ​​a matrix of N rows and M columns, wherein N and K are positive integers greater than 1, M is a positive integer, and n is a positive integer, and 1≤n≤N; An optical signal transmission module, having N input ends and P output ends, wherein the nth input end is coupled to the output end of the nth first modulator, and optical signals of P wavelengths in each of the first optical signals are respectively transmitted to the P output ends to obtain P second optical signals, wherein each of the second optical signals includes optical signals of N wavelengths, and the optical signals of the N wavelengths respectively carry N element values ​​of the same column in the first matrix, P is a positive integer greater than 1, and K is a larger value of N and P; A second modulation module includes P second modulators, wherein an input end of the p-th second modulator is coupled to a p-th output end, and the p-th second modulator is used to modulate the p-th second optical signal based on an element value of a p-th column in a second matrix to obtain a p-th third optical signal, wherein the p-th third optical signal includes optical signals of N wavelengths, and the optical signals of the N wavelengths respectively carry the product of N element values ​​of the same column in the first matrix and an element value of a p-th column in the second matrix, and the second matrix is ​​a matrix of M rows and P columns, and p is a positive integer, and 1≤p≤P; The solution module includes P solution unit groups, and the pth solution unit group is used to obtain N element values ​​in the pth column of the third matrix based on the optical signals of N wavelengths in the pth third optical signal, and the third matrix is ​​the product of the first matrix and the second matrix.

2. The computing device according to claim 1, wherein: Also includes: A beam splitter has a single input port and N output ports, wherein the single input port is used to couple with a light source, and the nth output port of the beam splitter is coupled with the nth first modulator, wherein the light source is used to provide input light, and the input light contains optical signals of K wavelengths.

3. The computing device according to claim 2, characterized in that Also includes: The light source.

4. The computing device according to claim 2, wherein: Also includes: A pulse modulator, wherein the input end of the pulse modulator is coupled to the light source, the output end of the pulse modulator is coupled to the input port of the beam splitter, and the pulse modulator is used to modulate the input light into a pulse signal.

5. The computing device according to claim 4, characterized in that: M is greater than 1, and the nth first modulator is used to modulate the optical signal of K wavelengths in the nth first optical signal at the mth time to load the element value of the nth row and mth column in the first matrix; The p-th second modulator is used to modulate the optical signals of N wavelengths in the p-th second optical signal at the m-th time to load the element value of the m-th row and the p-th column in the second matrix; Each group of solving units includes N solving units, wherein the nth solving unit of the pth group is used to sum the detection results of the optical signal of the nth wavelength in the pth third optical signal at M moments to obtain the element value of the nth row and pth column in the third matrix.

6. The computing device according to claim 1, wherein: M=1, the computing device is used to calculate the outer product of the first matrix and the fourth matrix, and the second matrix is ​​the transposed matrix of the fourth matrix.

7. The computing device according to claim 1, wherein: The optical signal transmission module includes: N micro-ring resonator groups, each micro-ring resonator group includes P micro-ring resonators, each micro-ring resonator has an input end, a through end, a download end and an upload end, wherein: The input end of the first microring resonator in the nth microring resonator group is coupled to the output end of the nth first modulator, and the through end of the jth microring resonator in the nth microring resonator group is coupled to the input end of the j+1th microring resonator in the nth microring resonator group, where j is a positive integer, 1≤j≤P-1; The download end of the p-th microring resonator in the k-th microring resonator group is coupled to the upload end of the p-th microring resonator in the k+1-th microring resonator group, where k and p are both positive integers, 1≤k≤N-1, 1≤p≤P; The download end of the p-th micro-ring resonator in the N-th micro-ring resonator group is coupled to the p-th second modulator.

8. The computing device according to claim 1, wherein: The first modulator is any one of an electro-optic modulator, an acousto-optic modulator, a magneto-optic modulator and a phase-change material optical modulator; And / or, the second modulator is any one of an electro-optic modulator, an acousto-optic modulator, a magneto-optic modulator and a phase change material optical modulator.

9. The computing device according to claim 1, wherein: The first modulator is used for light intensity modulation, and / or the second modulator is used for light intensity modulation.

10. The computing device according to claim 1, wherein: The computing device is an optical chip.