[go: up one dir, main page]

CN115268090A - Optical correlator, optical correlation computing method and optical computing device - Google Patents

Optical correlator, optical correlation computing method and optical computing device Download PDF

Info

Publication number
CN115268090A
CN115268090A CN202110484191.3A CN202110484191A CN115268090A CN 115268090 A CN115268090 A CN 115268090A CN 202110484191 A CN202110484191 A CN 202110484191A CN 115268090 A CN115268090 A CN 115268090A
Authority
CN
China
Prior art keywords
dimensional
dimensional slm
slm
light
optical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110484191.3A
Other languages
Chinese (zh)
Inventor
李腾浩
杨童
谢洪波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110484191.3A priority Critical patent/CN115268090A/en
Publication of CN115268090A publication Critical patent/CN115268090A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B27/00Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
    • G02B27/09Beam shaping, e.g. changing the cross-sectional area, not otherwise provided for
    • G02B27/0927Systems for changing the beam intensity distribution, e.g. Gaussian to top-hat
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B27/00Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
    • G02B27/10Beam splitting or combining systems
    • G02B27/106Beam splitting or combining systems for splitting or combining a plurality of identical beams or images, e.g. image replication
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B27/00Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
    • G02B27/28Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00 for polarising
    • G02B27/283Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00 for polarising used for beam splitting or combining

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Optical Communication System (AREA)

Abstract

本申请实施例公开了一种光学相关器、光学相关运算方法和光计算装置,主要应用于基因序列比对、条形码比对、文本库检索等一维序列匹配的场景中。光学相关器包括光源、一维空间光调制器SLM、光扩束装置、第一折射装置、二维SLM、第二折射装置和光探测器。光源用于发射光束。一维SLM用于对光源输出的光束进行调制。光扩束装置用于在第二方向上对经过一维SLM调制后的光束进行扩束。第一折射装置用于在第一方向上对扩束后的光束进行会聚。二维SLM用于对会聚后的光束进行调制。第二折射装置用于对经过二维SLM调制后的光束进行准直。光探测器用于对经过第二折射装置准直后的光束进行像素采集,以得到多个相关峰的光场信息。

Figure 202110484191

The embodiments of the present application disclose an optical correlator, an optical correlation computing method, and an optical computing device, which are mainly used in one-dimensional sequence matching scenarios such as gene sequence alignment, barcode alignment, and text library retrieval. The optical correlator includes a light source, a one-dimensional spatial light modulator SLM, a light beam expanding device, a first refractive device, a two-dimensional SLM, a second refractive device and a light detector. The light source is used to emit light beams. One-dimensional SLM is used to modulate the light beam output by the light source. The light beam expanding device is used for expanding the beam modulated by the one-dimensional SLM in the second direction. The first refraction device is used for condensing the expanded beam in the first direction. A two-dimensional SLM is used to modulate the converged beam. The second refraction device is used for collimating the light beam modulated by the two-dimensional SLM. The photodetector is used for pixel collection of the light beam collimated by the second refraction device, so as to obtain light field information of multiple correlation peaks.

Figure 202110484191

Description

一种光学相关器、光学相关运算方法和光计算装置Optical correlator, optical correlation computing method and optical computing device

技术领域technical field

本申请涉及光学计算领域,尤其涉及一种光学相关器、光学相关运算方法和光计算装置。The present application relates to the field of optical computing, in particular to an optical correlator, an optical correlation calculation method and an optical computing device.

背景技术Background technique

光计算利用光学特性在光域实现信号处理,具备功耗低、运算时间短的优势。其中,光学相关器(optical correlator)是一种用光学方法实现信号相关处理的光学系统,其基于傅里叶光学,在自由空间中对光场进行变换和处理,能够实现数据(信号、编码、图像等)的匹配和搜索。Optical computing uses optical characteristics to realize signal processing in the optical domain, which has the advantages of low power consumption and short computing time. Among them, the optical correlator (optical correlator) is an optical system that uses optical methods to achieve signal correlation processing. It is based on Fourier optics, transforms and processes light fields in free space, and can realize data (signal, coding, images, etc.) matching and searching.

目前的光学相关器都是基于二维空间的傅里叶变换,其主要作用是用于对二维图像进行匹配,难以应用于一维序列的匹配。具体地,该光学相关器采用的是二维空间光调制器(Spatial Light Modulator,SLM)和二维光探测器。如果输入的是多行不同的一维序列,每一行一维序列都要进行多次匹配,最终会在二维光探测器上呈现较多的匹配结果,很难进行区分。但是,如果采用时分的方式每次输入一行一维序列,又会导致整体的运算耗时较长,匹配的过程较慢。The current optical correlators are all based on Fourier transform in two-dimensional space, and their main function is to match two-dimensional images, which is difficult to apply to one-dimensional sequence matching. Specifically, the optical correlator uses a two-dimensional spatial light modulator (Spatial Light Modulator, SLM) and a two-dimensional light detector. If the input is multiple lines of different one-dimensional sequences, each line of one-dimensional sequence needs to be matched multiple times, and finally there will be more matching results on the two-dimensional photodetector, which is difficult to distinguish. However, if a one-dimensional sequence is input one row at a time in a time-division manner, the overall calculation time will be longer and the matching process will be slower.

发明内容Contents of the invention

本申请实施例提供了一种光学相关器、光学相关运算方法和光计算装置。该光学相关器应用于一维序列的匹配场景,一次运算就可以完成目标序列与多组参考序列的匹配,减少了运算耗时,提高了序列的匹配速度。Embodiments of the present application provide an optical correlator, an optical correlation calculation method, and an optical calculation device. The optical correlator is applied to a one-dimensional sequence matching scene, and a single operation can complete the matching of the target sequence and multiple sets of reference sequences, which reduces the time-consuming operation and improves the sequence matching speed.

第一方面,本申请提供了一种光学相关器。该光学相关器包括:光源、一维SLM、光扩束装置、第一折射装置、二维SLM、第二折射装置和光探测器。第一折射装置的后焦面与第二折射装置的前焦面重合,光扩束装置的出瞳平面位于第一折射装置的前焦面,二维SLM位于第一折射装置的后焦面,光探测器位于第二折射装置的后焦面。具体地,光源用于发射光束。一维SLM用于对光源输出的光束进行调制。其中,一维SLM上加载有一组目标序列对应的电信号,一维SLM包括在第一方向上排列的一排像素点。光扩束装置用于在第二方向上对经过一维SLM调制后的光束进行扩束。其中,第二方向与第一方向垂直,并且第二方向与光束输入光扩束装置的方向垂直。第一折射装置用于在第一方向上对扩束后的光束进行会聚。二维SLM用于对会聚后的光束进行调制。其中,二维SLM上加载有多组参考序列对应的电信号,二维SLM包括在第一方向上排列的多排像素点。第二折射装置用于对经过二维SLM调制后的光束进行准直。光探测器用于对经过第二折射装置准直后的光束进行像素采集。In a first aspect, the present application provides an optical correlator. The optical correlator includes: a light source, a one-dimensional SLM, an optical beam expander, a first refraction device, a two-dimensional SLM, a second refraction device and a light detector. The back focal plane of the first refraction device coincides with the front focal plane of the second refraction device, the exit pupil plane of the beam expander is located at the front focal plane of the first refraction device, and the two-dimensional SLM is located at the back focal plane of the first refraction device, The light detector is located at the back focal plane of the second refraction device. Specifically, a light source is used to emit light beams. One-dimensional SLM is used to modulate the beam output by the light source. Wherein, the one-dimensional SLM is loaded with a group of electrical signals corresponding to the target sequence, and the one-dimensional SLM includes a row of pixels arranged in a first direction. The optical beam expander is used for expanding the beam modulated by the one-dimensional SLM in the second direction. Wherein, the second direction is perpendicular to the first direction, and the second direction is perpendicular to the direction in which the light beam enters the optical beam expander. The first refraction device is used for converging the expanded beam in the first direction. A two-dimensional SLM is used to modulate the converged beam. Wherein, the two-dimensional SLM is loaded with multiple sets of electrical signals corresponding to the reference sequences, and the two-dimensional SLM includes multiple rows of pixel points arranged in the first direction. The second refraction device is used for collimating the light beam modulated by the two-dimensional SLM. The light detector is used for pixel collection of the light beam collimated by the second refraction device.

在该实施方式中,在空间上对一维SLM调制后的光进行扩束,从而可以将一维SLM上加载的一排目标序列复制为相同的多排目标序列。之后,这多排相同的目标序列可以同时与二维SLM上加载的多排参考序列进行相关运算以实现一对一匹配。相当于一次运算就完成了目标序列与多组参考序列的匹配,减少了相关运算的耗时,提高了序列的匹配效率。In this embodiment, the beam modulated by the one-dimensional SLM is spatially expanded, so that a row of target sequences loaded on the one-dimensional SLM can be copied into the same multiple rows of target sequences. Afterwards, the multiple rows of the same target sequence can be correlated with multiple rows of reference sequences loaded on the 2D SLM at the same time to achieve one-to-one matching. It is equivalent to completing the matching of the target sequence and multiple sets of reference sequences in one operation, reducing the time consumption of correlation operations and improving the efficiency of sequence matching.

在一些可能的实施方式中,一维SLM将调制后的光束透射至光扩束装置,二维SLM将调制后的光束透射至第二折射装置。即本申请提供的一维SLM和二位SLM都是透射式的SLM,增强了本方案的可实现性。In some possible implementation manners, the one-dimensional SLM transmits the modulated beam to the beam expander, and the two-dimensional SLM transmits the modulated beam to the second refraction device. That is, the one-dimensional SLM and the two-dimensional SLM provided in this application are both transmission-type SLMs, which enhances the feasibility of this solution.

在一些可能的实施方式中,光学相关器还包括第一分束器和第二分束器。第一分束器用于对扩束后的光束进行分路。其中,分路后的第一路光束传输至第一折射装置,分路后的第二路光束传输至第二分束器。第二分束器用于将第二路光束传输至第一折射装置。通过上述方式,在光扩束装置对光束进行扩束的基础上,还可以通过第一分束器和第二分束器新增了一路光束,相当于对光束进一步地扩束,对目标序列复制的数量也进一步翻倍,提高了运算效率。In some possible implementations, the optical correlator further includes a first beam splitter and a second beam splitter. The first beam splitter is used to split the expanded beam. Wherein, the split first beam is transmitted to the first refracting device, and the split second beam is transmitted to the second beam splitter. The second beam splitter is used to transmit the second beam to the first refraction device. Through the above method, on the basis of expanding the beam by the optical beam expander, a new beam can also be added through the first beam splitter and the second beam splitter, which is equivalent to further expanding the beam and improving the target sequence. The number of copies is further doubled, which improves the computing efficiency.

在一些可能的实施方式中,经过第一分束器分路后的其中一路光束沿第一方向或第二方向传输,也就是说,本申请通过第一分束器可以在多个不同方向上扩展光束,提高了本方案的灵活性。In some possible implementations, one of the beams split by the first beam splitter is transmitted along the first direction or the second direction, that is to say, the application can transmit in multiple different directions through the first beam splitter The expanded beam increases the flexibility of the scheme.

在一些可能的实施方式中,光学相关器还包括第一偏振分束器和第二偏振分束器。第一偏振分束器用于对扩束后的光束进行分路。其中,第一偏振分束器将第一偏振方向的光束传输至第一折射装置,第一偏振分束器将第二偏振方向的光束传输至第二偏振分束器,第一偏振方向与第二偏振方向相互正交。第二偏振分束器用于将第二偏振方向的光束传输至第一折射装置。通过上述方式,由于第二偏振分束器接收到的只有第二偏振方向的光束,只需要将第二偏振方向的光束反射至第一折射装置,不会再有光束透过第二偏振分束器,减少了光束不必要的浪费。并且,在光扩束装置对光束进行扩束的基础上,还可以通过第一偏振分束器和第二偏振分束器新增了一路光束,相当于对目标序列复制的数量也进一步翻倍,提高了运算效率。In some possible implementation manners, the optical correlator further includes a first polarization beam splitter and a second polarization beam splitter. The first polarizing beam splitter is used for splitting the expanded beam. Wherein, the first polarization beam splitter transmits the beam of the first polarization direction to the first refraction device, the first polarization beam splitter transmits the beam of the second polarization direction to the second polarization beam splitter, and the first polarization direction and the second polarization beam splitter The two polarization directions are orthogonal to each other. The second polarization beam splitter is used to transmit the light beam in the second polarization direction to the first refraction device. Through the above method, since the second polarization beam splitter receives only the light beam of the second polarization direction, it only needs to reflect the light beam of the second polarization direction to the first refraction device, and no light beam will pass through the second polarization beam splitter. The device reduces unnecessary waste of light beams. Moreover, on the basis of expanding the beam by the optical beam expander, a new beam can be added through the first polarizing beam splitter and the second polarizing beam splitter, which is equivalent to further doubling the number of copies of the target sequence , improving the operational efficiency.

在一些可能的实施方式中,光学相关器还包括反光装置和第三分束器。一维SLM具体用于将调制后的光束反射至光扩束装置。反光装置用于将扩束后的光束反射至第一折射装置。第三分束器用于将会聚后的光束传输至二维SLM。二维SLM用于对接收到的光束进行调制,并将调制后的光束反射至第三分束器。第三分束器还用于将经过二维SLM调制后的光束传输至第二折射装置。通过上述方式,一维SLM和二维SLM采用的都是反射式的SLM,并且新增了反光装置和第三分束器来改变光路,从而实现了折叠式的光路。避免了所有器件都沿着同一个方向排布,通过折叠式的光路更便于在有限的空间内集成,也更容易实现小型化。In some possible implementation manners, the optical correlator further includes a light reflecting device and a third beam splitter. The one-dimensional SLM is specifically used to reflect the modulated beam to the optical beam expander. The reflective device is used to reflect the expanded beam to the first refracting device. The third beam splitter is used to transmit the converged light beam to the two-dimensional SLM. The two-dimensional SLM is used to modulate the received beam, and reflect the modulated beam to the third beam splitter. The third beam splitter is also used to transmit the light beam modulated by the two-dimensional SLM to the second refraction device. Through the above method, both the one-dimensional SLM and the two-dimensional SLM are reflective SLMs, and a reflective device and a third beam splitter are added to change the optical path, thereby realizing a folded optical path. It avoids that all devices are arranged in the same direction, and the folded optical path is more convenient for integration in a limited space, and it is also easier to realize miniaturization.

在一些可能的实施方式中,述光源包括激光器和光束准直装置。激光器用于发射光束。光束准直装置用于对激光器发射的光束进行光束准直,并将光束准直后的光束输出至一维SLM。在该实施方式中,提供了一种光源的具体实现方式,增强了本方案的可实现性。In some possible implementation manners, the light source includes a laser and a beam collimating device. Lasers are used to emit beams of light. The beam collimating device is used to collimate the beam emitted by the laser, and output the collimated beam to the one-dimensional SLM. In this implementation manner, a specific implementation manner of a light source is provided, which enhances the feasibility of this solution.

在一些可能的实施方式中,光扩束装置包括第一透镜和第二透镜。第一透镜用于在第二方向上对经过一维SLM调制后的光束进行会聚。第二透镜用于对经过第一透镜会聚后的光束进行准直。在该实施方式中,提供了一种光扩束装置的具体实现方式,进一步增强了本方案的可实现性。In some possible implementation manners, the optical beam expander includes a first lens and a second lens. The first lens is used for converging the light beam modulated by the one-dimensional SLM in the second direction. The second lens is used to collimate the light beam converged by the first lens. In this implementation manner, a specific implementation manner of an optical beam expander is provided, which further enhances the feasibility of this solution.

在一些可能的实施方式中,光扩束装置还用于在第一方向上对经过一维SLM调制后的光束进行缩束,从而可以更好地与二维SLM的大小匹配。In some possible implementation manners, the optical beam expander is further configured to shrink the beam modulated by the one-dimensional SLM in the first direction, so as to better match the size of the two-dimensional SLM.

在一些可能的实施方式中,光探测器包括多个像素点,每个像素点用于采集一个相关峰的光场信息。由于本申请只是对一维序列进行匹配,因此光探测器具体可以采用一维探测器,即光探测器只包括一列像素点,相对于二位探测器成本更低。In some possible implementation manners, the light detector includes a plurality of pixels, and each pixel is used to collect light field information of a correlation peak. Since the present application only matches the one-dimensional sequence, the photodetector can specifically adopt a one-dimensional detector, that is, the photodetector only includes one column of pixel points, and the cost is lower than that of a two-dimensional detector.

在一些可能的实施方式中,光学相关器还包括控制器。控制器用于:向一维SLM发送一组目标序列对应的电信号,以驱动一维SLM对光源输出的光束进行调制。向二维SLM发送多组参考序列对应的电信号,以驱动二维SLM对接收到的光束进行调制。接收光探测器发送的输出信号,并根据输出信号确定目标序列与多组参考序列的匹配结果,输出信号包括多个相关峰的光场信息。在该实施方式中,可以通过控制器来实现电信号的输入和输出,以实现自动化控制。In some possible implementations, the optical correlator further includes a controller. The controller is used to: send a group of electrical signals corresponding to the target sequence to the one-dimensional SLM, so as to drive the one-dimensional SLM to modulate the light beam output by the light source. Send multiple sets of electrical signals corresponding to the reference sequence to the two-dimensional SLM to drive the two-dimensional SLM to modulate the received light beam. The output signal sent by the light detector is received, and the matching result between the target sequence and multiple groups of reference sequences is determined according to the output signal, and the output signal includes the light field information of multiple correlation peaks. In this embodiment, the input and output of electrical signals can be realized through the controller, so as to realize automatic control.

在一些可能的实施方式中,控制器还用于:向一维SLM发送更新后的一组目标序列对应的电信号,以控制一维SLM对加载的目标序列进行更新。向二维SLM发送更新后的多组参考序列对应的电信号,以控制二维SLM对加载的多组参考序列进行更新。其中,一维SLM的更新频率大于或等于二维SLM的更新频率。在该实施方式中,控制器还可以控制一维SLM和二位SLM更新各自所加载的序列,这种自动控制更新的方式提高了光学相关器的工作效率。In some possible implementation manners, the controller is further configured to: send an electrical signal corresponding to the updated set of target sequences to the one-dimensional SLM, so as to control the one-dimensional SLM to update the loaded target sequences. Sending electrical signals corresponding to the updated multiple sets of reference sequences to the two-dimensional SLM, so as to control the two-dimensional SLM to update the loaded multiple sets of reference sequences. Wherein, the update frequency of the one-dimensional SLM is greater than or equal to the update frequency of the two-dimensional SLM. In this implementation manner, the controller can also control the one-dimensional SLM and the two-dimensional SLM to update the respective loaded sequences, and this way of automatically controlling the update improves the working efficiency of the optical correlator.

在一些可能的实施方式中,控制器还用于向一维SLM、二维SLM和光探测器发送控制信号,以控制一维SLM、二维SLM和光探测器保持时钟同步。从而保证一维SLM和二维SLM每次更新后光探测器都可以更新采样信息。In some possible implementation manners, the controller is further configured to send control signals to the one-dimensional SLM, the two-dimensional SLM and the photodetector, so as to control the one-dimensional SLM, the two-dimensional SLM and the photodetector to maintain clock synchronization. Therefore, it is ensured that the photodetector can update the sampling information after each update of the one-dimensional SLM and the two-dimensional SLM.

在一些可能的实施方式中,第一折射装置为柱面透镜或傅里叶镜头,第二折射装置为柱面透镜或傅里叶镜头,增强了本方案的扩展性。In some possible implementations, the first refraction device is a cylindrical lens or a Fourier lens, and the second refraction device is a cylindrical lens or a Fourier lens, which enhances the scalability of the solution.

在一些可能的实施方式中,光探测器可以是电荷耦合器件(Charge CoupledDevice,CCD)相机或互补金属氧化物半导体(Complementary Metal OxideSemiconductor,CMOS)。二维SLM具体可以是硅基液晶(Liquid Crystal on Silicon,Lcos)。In some possible implementations, the photodetector may be a Charge Coupled Device (Charge Coupled Device, CCD) camera or a Complementary Metal Oxide Semiconductor (Complementary Metal Oxide Semiconductor, CMOS). Specifically, the two-dimensional SLM may be liquid crystal on silicon (Liquid Crystal on Silicon, Lcos).

第二方面,本申请提供了一种光学相关运算方法。该方法包括如下步骤。通过光源发射光束。通过一维SLM对光源输出的光束进行调制。一维SLM上加载有一组目标序列对应的电信号,一维SLM包括在第一方向上排列的一排像素点。通过光扩束装置在第二方向上对经过一维SLM调制后的光束进行扩束。第二方向与第一方向垂直,并且第二方向与光束输入光扩束装置的方向垂直。通过第一折射装置在第一方向上对扩束后的光束进行会聚。通过二维SLM对会聚后的光束进行调制。二维SLM上加载有多组参考序列对应的电信号,二维SLM包括在第一方向上排列的多排像素点。通过第二折射装置对经过二维SLM调制后的光束进行准直。通过光探测器对对经过第二折射装置准直后的光束进行像素采集。其中,第一折射装置的后焦面与第二折射装置的前焦面重合,光扩束装置的出瞳平面位于第一折射装置的前焦面,二维SLM位于第一折射装置的后焦面,光探测器位于第二折射装置的后焦面。In a second aspect, the present application provides an optical correlation calculation method. The method includes the following steps. Sends a beam of light through a light source. The beam output by the light source is modulated by a one-dimensional SLM. The one-dimensional SLM is loaded with a group of electrical signals corresponding to the target sequence, and the one-dimensional SLM includes a row of pixels arranged in a first direction. The light beam modulated by the one-dimensional SLM is expanded in the second direction by the optical beam expander. The second direction is perpendicular to the first direction, and the second direction is perpendicular to the direction in which the light beam enters the optical beam expander. The expanded beam is converged in the first direction by the first refracting device. The converged beam is modulated by a 2D SLM. The two-dimensional SLM is loaded with electrical signals corresponding to multiple sets of reference sequences, and the two-dimensional SLM includes multiple rows of pixels arranged in a first direction. The light beam modulated by the two-dimensional SLM is collimated by the second refraction device. The light beam collimated by the second refraction device is collected by a photodetector. Wherein, the back focal plane of the first refraction device coincides with the front focal plane of the second refraction device, the exit pupil plane of the beam expander is located at the front focal plane of the first refraction device, and the two-dimensional SLM is located at the back focal plane of the first refraction device The photodetector is located on the back focal plane of the second refraction device.

在一些可能的实施方式中,通过一维SLM对光源输出的光束进行调制之后,将调制后的光束透射至光扩束装置。通过二维SLM对会聚后的光束进行调制之后,将调制后的光束透射至第二折射装置。In some possible implementation manners, after the light beam output by the light source is modulated by the one-dimensional SLM, the modulated light beam is transmitted to the optical beam expander. After the converged light beam is modulated by the two-dimensional SLM, the modulated light beam is transmitted to the second refraction device.

在一些可能的实施方式中,方法还包括:通过第一分束器对扩束后的光束进行分路。其中,分路后的第一路光束传输至第一折射装置,分路后的第二路光束传输至第二分束器。通过第二分束器将第二路光束传输至第一折射装置。In some possible implementation manners, the method further includes: splitting the expanded beam through a first beam splitter. Wherein, the split first beam is transmitted to the first refracting device, and the split second beam is transmitted to the second beam splitter. The second light beam is transmitted to the first refraction device through the second beam splitter.

在一些可能的实施方式中,经过分路后的其中一路光束沿第一方向或第二方向传输。In some possible implementation manners, one of the branched light beams is transmitted along the first direction or the second direction.

在一些可能的实施方式中,方法还包括:通过第一偏振分束器对扩束后的光束进行分路。其中,第一偏振分束器将第一偏振方向的光束传输至第一折射装置,第一偏振分束器将第二偏振方向的光束传输至第二偏振分束器,第一偏振方向与第二偏振方向相互正交。通过第二偏振分束器将第二偏振方向的光束传输至第一折射装置。In some possible implementation manners, the method further includes: splitting the expanded beam by using a first polarization beam splitter. Wherein, the first polarization beam splitter transmits the beam of the first polarization direction to the first refraction device, the first polarization beam splitter transmits the beam of the second polarization direction to the second polarization beam splitter, and the first polarization direction and the second polarization beam splitter The two polarization directions are orthogonal to each other. The light beam in the second polarization direction is transmitted to the first refraction device through the second polarization beam splitter.

在一些可能的实施方式中,方法还包括:通过一维SLM将调制后的光束反射至光扩束装置。通过反光装置用于将扩束后的光束反射至第一折射装置。通过第三分束器将会聚后的光束传输至二维SLM。通过二维SLM用于对接收到的光束进行调制,并将调制后的光束反射至第三分束器。通过第三分束器将经过二维SLM调制后的光束传输至第二折射装置。In some possible implementation manners, the method further includes: reflecting the modulated light beam to an optical beam expander through a one-dimensional SLM. The reflective device is used to reflect the expanded beam to the first refracting device. The converged light beam is transmitted to the two-dimensional SLM through the third beam splitter. The two-dimensional SLM is used to modulate the received light beam, and reflect the modulated light beam to the third beam splitter. The light beam modulated by the two-dimensional SLM is transmitted to the second refraction device through the third beam splitter.

在一些可能的实施方式中,通过光源发射光束包括:通过激光器发射光束。通过光束准直装置对激光器发射的光束进行光束准直,并将光束准直后的光束输出至一维SLM。In some possible implementation manners, emitting a light beam through a light source includes: emitting a light beam through a laser. The beam emitted by the laser is collimated by the beam collimating device, and the collimated beam is output to the one-dimensional SLM.

在一些可能的实施方式中,通过光扩束装置在第二方向上对经过一维SLM调制后的光束进行扩束包括:通过第一透镜在第二方向上对经过一维SLM调制后的光束进行会聚。通过第二透镜对经过第一透镜会聚后的光束进行准直。In some possible implementation manners, expanding the beam modulated by the one-dimensional SLM in the second direction through the optical beam expander includes: expanding the beam modulated by the one-dimensional SLM in the second direction through the first lens to converge. The beam converged by the first lens is collimated by the second lens.

在一些可能的实施方式中,方法还包括:通过光扩束装置在第一方向上对经过一维SLM调制后的光束进行缩束。In some possible implementation manners, the method further includes: shrinking the light beam modulated by the one-dimensional SLM in the first direction by an optical beam expander.

在一些可能的实施方式中,光探测器包括多个像素点,每个像素点用于采集一个相关峰的光场信息。In some possible implementation manners, the light detector includes a plurality of pixels, and each pixel is used to collect light field information of a correlation peak.

在一些可能的实施方式中,方法还包括:向一维SLM发送一组目标序列对应的电信号,以驱动一维SLM对光源输出的光束进行调制。向二维SLM发送多组参考序列对应的电信号,以驱动二维SLM对接收到的光束进行调制。接收光探测器发送的输出信号,并根据输出信号确定目标序列与多组参考序列的匹配结果,输出信号包括多个相关峰的光场信息。In some possible implementation manners, the method further includes: sending a group of electrical signals corresponding to the target sequence to the one-dimensional SLM, so as to drive the one-dimensional SLM to modulate the light beam output by the light source. Send multiple sets of electrical signals corresponding to the reference sequence to the two-dimensional SLM to drive the two-dimensional SLM to modulate the received light beam. The output signal sent by the light detector is received, and the matching result between the target sequence and multiple groups of reference sequences is determined according to the output signal, and the output signal includes the light field information of multiple correlation peaks.

在一些可能的实施方式中,方法还包括:向一维SLM发送更新后的一组目标序列对应的电信号,以控制一维SLM对加载的目标序列进行更新。向二维SLM发送更新后的多组参考序列对应的电信号,以控制二维SLM对加载的多组参考序列进行更新,其中,一维SLM的更新频率大于或等于二维SLM的更新频率。In some possible implementation manners, the method further includes: sending an electrical signal corresponding to the updated set of target sequences to the one-dimensional SLM, so as to control the one-dimensional SLM to update the loaded target sequences. Sending electrical signals corresponding to the updated multiple sets of reference sequences to the two-dimensional SLM to control the two-dimensional SLM to update the loaded multiple sets of reference sequences, wherein the update frequency of the one-dimensional SLM is greater than or equal to the update frequency of the two-dimensional SLM.

在一些可能的实施方式中,方法还包括:向一维SLM、二维SLM和光探测器发送控制信号,以控制一维SLM、二维SLM和光探测器保持时钟同步。In some possible implementation manners, the method further includes: sending a control signal to the one-dimensional SLM, the two-dimensional SLM and the photodetector, so as to control the one-dimensional SLM, the two-dimensional SLM and the photodetector to maintain clock synchronization.

在一些可能的实施方式中,第一折射装置为柱面透镜或傅里叶镜头,第二折射装置为柱面透镜或傅里叶镜头。In some possible implementation manners, the first refraction device is a cylindrical lens or a Fourier lens, and the second refraction device is a cylindrical lens or a Fourier lens.

在一些可能的实施方式中,光探测器为CCD相机或CMOS相机,二维SLM为Lcos。In some possible implementation manners, the light detector is a CCD camera or a CMOS camera, and the two-dimensional SLM is Lcos.

第三方面,本申请提供了一种光学相关器。该光学相关器包括:光源、一维SLM、光扩束装置、反光装置、第一分束器、折射装置、二维SLM和光探测器。光扩束装置的出瞳平面位于折射装置的前焦面,二维SLM位于折射装置的后焦面。光源用于发射光束。一维SLM用于对光源输出的光束进行调制,并将调制后的光束反射至光扩束装置。一维SLM上加载有一组目标序列对应的电信号,一维SLM包括在第一方向上排列的一排像素点。光扩束装置用于在第二方向上对经过一维SLM调制后的光束进行扩束。第二方向与第一方向垂直,并且第二方向与光束输入光扩束装置的方向垂直。反光装置用于将扩束后的光束反射至第一分束器。第一分束器用于将经过反光装置反射后的光束传输至折射装置。折射装置用于在第一方向上对经过分束器反射的光束进行会聚。二维SLM用于对会聚后的光束进行调制,并将调制后的光束反射至折射装置。二维SLM上加载有多组参考序列对应的电信号,二维SLM包括在第一方向上排列的多排像素点。折射装置还用于对经过二维SLM反射的光束进行准直。第一分束器还用于将经过折射装置准直后的光束传输至光探测器。光探测器用于对输入的光束进行像素采集。In a third aspect, the present application provides an optical correlator. The optical correlator includes: a light source, a one-dimensional SLM, a light beam expander, a light reflection device, a first beam splitter, a refraction device, a two-dimensional SLM and a light detector. The exit pupil plane of the light beam expander is located on the front focal plane of the refraction device, and the two-dimensional SLM is located on the back focal plane of the refraction device. A light source is used to emit light beams. The one-dimensional SLM is used to modulate the beam output by the light source, and reflect the modulated beam to the beam expander. The one-dimensional SLM is loaded with a group of electrical signals corresponding to the target sequence, and the one-dimensional SLM includes a row of pixels arranged in a first direction. The optical beam expander is used for expanding the beam modulated by the one-dimensional SLM in the second direction. The second direction is perpendicular to the first direction, and the second direction is perpendicular to the direction in which the light beam enters the optical beam expander. The light reflecting device is used to reflect the expanded beam to the first beam splitter. The first beam splitter is used to transmit the light beam reflected by the light reflecting device to the refracting device. The refraction device is used for converging the beam reflected by the beam splitter in the first direction. The two-dimensional SLM is used to modulate the converged beam and reflect the modulated beam to the refraction device. The two-dimensional SLM is loaded with electrical signals corresponding to multiple sets of reference sequences, and the two-dimensional SLM includes multiple rows of pixels arranged in a first direction. The refraction device is also used to collimate the beam reflected by the 2D SLM. The first beam splitter is also used to transmit the beam collimated by the refraction device to the photodetector. The photodetector is used for pixel acquisition of the input light beam.

在一些可能的实施方式中,光学相关器还包括第二分束器和第三分束器。第二分束器用于对扩束后的光束进行分路。其中,分路后的第一路光束传输至反光装置。分路后的第二路光束传输至第三分束器。第三分束器用于将第二路光束传输至反光装置。In some possible implementation manners, the optical correlator further includes a second beam splitter and a third beam splitter. The second beam splitter is used to split the expanded beam. Wherein, the split first light beam is transmitted to the reflective device. The split second beam is sent to the third beam splitter. The third beam splitter is used to transmit the second light beam to the reflective device.

在一些可能的实施方式中,经过第二分束器分路后的其中一路光束沿第一方向或第二方向传输。In some possible implementation manners, one of the beams split by the second beam splitter is transmitted along the first direction or the second direction.

在一些可能的实施方式中,光学相关器还包括第一偏振分束器和第二偏振分束器。第一偏振分束器用于对扩束后的光束进行分路。其中,第一偏振分束器将第一偏振方向的光束传输至反光装置。第一偏振分束器将第二偏振方向的光束传输至第二偏振分束器。第一偏振方向与第二偏振方向相互正交。第二偏振分束器用于将第二偏振方向的光束传输至反光装置。In some possible implementation manners, the optical correlator further includes a first polarization beam splitter and a second polarization beam splitter. The first polarizing beam splitter is used for splitting the expanded beam. Wherein, the first polarization beam splitter transmits the light beam in the first polarization direction to the light reflecting device. The first polarization beam splitter transmits the light beam in the second polarization direction to the second polarization beam splitter. The first polarization direction and the second polarization direction are orthogonal to each other. The second polarization beam splitter is used to transmit the light beam in the second polarization direction to the reflective device.

在一些可能的实施方式中,光源包括激光器和光束准直装置。激光器用于发射光束。光束准直装置用于对激光器发射的光束进行光束准直,并将光束准直后的光束输出至一维SLM。In some possible implementations, the light source includes a laser and a beam collimating device. Lasers are used to emit beams of light. The beam collimating device is used to collimate the beam emitted by the laser, and output the collimated beam to the one-dimensional SLM.

在一些可能的实施方式中,光扩束装置包括第一透镜和第二透镜。第一透镜用于在第二方向上对经过一维SLM调制后的光束进行会聚。第二透镜用于对经过第一透镜会聚后的光束进行准直。In some possible implementation manners, the optical beam expander includes a first lens and a second lens. The first lens is used for converging the light beam modulated by the one-dimensional SLM in the second direction. The second lens is used to collimate the light beam converged by the first lens.

在一些可能的实施方式中,光扩束装置还用于在第一方向上对经过一维SLM调制后的光束进行缩束。In some possible implementation manners, the optical beam expander is further configured to shrink the beam modulated by the one-dimensional SLM in the first direction.

在一些可能的实施方式中,光探测器包括多个像素点,每个像素点用于采集一个相关峰的光场信息。In some possible implementation manners, the light detector includes a plurality of pixels, and each pixel is used to collect light field information of a correlation peak.

在一些可能的实施方式中,光学相关器还包括控制器,控制器用于:向一维SLM发送一组目标序列对应的电信号,以驱动一维SLM对光源输出的光束进行调制。向二维SLM发送多组参考序列对应的电信号,以驱动二维SLM对接收到的光束进行调制。接收光探测器发送的输出信号,并根据输出信号确定目标序列与多组参考序列的匹配结果,输出信号包括多个相关峰的光场信息。In some possible implementation manners, the optical correlator further includes a controller, and the controller is configured to: send a group of electrical signals corresponding to the target sequence to the one-dimensional SLM, so as to drive the one-dimensional SLM to modulate the light beam output by the light source. Send multiple sets of electrical signals corresponding to the reference sequence to the two-dimensional SLM to drive the two-dimensional SLM to modulate the received light beam. The output signal sent by the light detector is received, and the matching result between the target sequence and multiple groups of reference sequences is determined according to the output signal, and the output signal includes the light field information of multiple correlation peaks.

在一些可能的实施方式中,控制器还用于:向一维SLM发送更新后的一组目标序列对应的电信号,以控制一维SLM对加载的目标序列进行更新。向二维SLM发送更新后的多组参考序列对应的电信号,以控制二维SLM对加载的多组参考序列进行更新。其中,一维SLM的更新频率大于或等于二维SLM的更新频率。In some possible implementation manners, the controller is further configured to: send an electrical signal corresponding to the updated set of target sequences to the one-dimensional SLM, so as to control the one-dimensional SLM to update the loaded target sequences. Sending electrical signals corresponding to the updated multiple sets of reference sequences to the two-dimensional SLM, so as to control the two-dimensional SLM to update the loaded multiple sets of reference sequences. Wherein, the update frequency of the one-dimensional SLM is greater than or equal to the update frequency of the two-dimensional SLM.

在一些可能的实施方式中,控制器还用于:向一维SLM、二维SLM和光探测器发送控制信号,以控制一维SLM、二维SLM和光探测器保持时钟同步。In some possible implementation manners, the controller is further configured to: send a control signal to the one-dimensional SLM, the two-dimensional SLM and the photodetector, so as to control the one-dimensional SLM, the two-dimensional SLM and the photodetector to maintain clock synchronization.

在一些可能的实施方式中,折射装置为柱面透镜或傅里叶镜头。In some possible implementation manners, the refraction device is a cylindrical lens or a Fourier lens.

在一些可能的实施方式中,光探测器为CCD相机或CMOS相机。二维SLM为Lcos。In some possible implementations, the light detector is a CCD camera or a CMOS camera. 2D SLM is Lcos.

第四方面,本申请提供了一种光学相关运算方法。该方法包括如下步骤。通过光源用于发射光束。通过一维SLM对光源输出的光束进行调制,并将调制后的光束反射至光扩束装置。一维SLM上加载有一组目标序列对应的电信号,一维SLM包括在第一方向上排列的一排像素点。通过光扩束装置在第二方向上对经过一维SLM调制后的光束进行扩束。第二方向与第一方向垂直,并且第二方向与光束输入光扩束装置的方向垂直。通过反光装置将扩束后的光束反射至第一分束器。通过第一分束器用于将经过反光装置反射后的光束传输至折射装置。通过折射装置在第一方向上对经过分束器反射的光束进行会聚。通过二维SLM对会聚后的光束进行调制,并将调制后的光束反射至折射装置。二维SLM上加载有多组参考序列对应的电信号,二维SLM包括在第一方向上排列的多排像素点。还通过折射装置对经过二维SLM反射的光束进行准直。还通过第一分束器将经过折射装置准直后的光束传输至光探测器。通过光探测器对输入的光束进行像素采集。光扩束装置的出瞳平面位于折射装置的前焦面,二维SLM位于折射装置的后焦面。In a fourth aspect, the present application provides an optical correlation calculation method. The method includes the following steps. Used by light sources to emit light beams. The beam output by the light source is modulated by the one-dimensional SLM, and the modulated beam is reflected to the beam expander. The one-dimensional SLM is loaded with a group of electrical signals corresponding to the target sequence, and the one-dimensional SLM includes a row of pixels arranged in a first direction. The light beam modulated by the one-dimensional SLM is expanded in the second direction by the optical beam expander. The second direction is perpendicular to the first direction, and the second direction is perpendicular to the direction in which the light beam enters the optical beam expander. The expanded beam is reflected to the first beam splitter through the reflector. The first beam splitter is used to transmit the light beam reflected by the reflection device to the refraction device. The light beam reflected by the beam splitter is converged in the first direction by the refraction device. The converged light beam is modulated by a two-dimensional SLM, and the modulated light beam is reflected to the refraction device. The two-dimensional SLM is loaded with electrical signals corresponding to multiple sets of reference sequences, and the two-dimensional SLM includes multiple rows of pixels arranged in a first direction. The beam reflected by the two-dimensional SLM is also collimated by a refraction device. The light beam collimated by the refraction device is also transmitted to the photodetector through the first beam splitter. The input light beam is pixel-collected by a photodetector. The exit pupil plane of the light beam expander is located on the front focal plane of the refraction device, and the two-dimensional SLM is located on the back focal plane of the refraction device.

在一些可能的实施方式中,光学相关器还包括第二分束器和第三分束器。方法还包括:通过第二分束器对扩束后的光束进行分路。其中,分路后的第一路光束传输至反光装置。分路后的第二路光束传输至第三分束器。通过第三分束器将第二路光束传输至反光装置。In some possible implementation manners, the optical correlator further includes a second beam splitter and a third beam splitter. The method also includes: splitting the expanded beam through a second beam splitter. Wherein, the split first light beam is transmitted to the reflective device. The split second beam is sent to the third beam splitter. The second light beam is transmitted to the reflective device through the third beam splitter.

在一些可能的实施方式中,经过第二分束器分路后的其中一路光束沿第一方向或第二方向传输。In some possible implementation manners, one of the beams split by the second beam splitter is transmitted along the first direction or the second direction.

在一些可能的实施方式中,光学相关器还包括第一偏振分束器和第二偏振分束器。方法还包括:通过第一偏振分束器对扩束后的光束进行分路。其中,第一偏振分束器将第一偏振方向的光束传输至反光装置。第一偏振分束器将第二偏振方向的光束传输至第二偏振分束器。第一偏振方向与第二偏振方向相互正交。通过第二偏振分束器将第二偏振方向的光束传输至反光装置。In some possible implementation manners, the optical correlator further includes a first polarization beam splitter and a second polarization beam splitter. The method further includes: splitting the expanded beam through a first polarization beam splitter. Wherein, the first polarization beam splitter transmits the light beam in the first polarization direction to the light reflecting device. The first polarization beam splitter transmits the light beam in the second polarization direction to the second polarization beam splitter. The first polarization direction and the second polarization direction are orthogonal to each other. The light beam in the second polarization direction is transmitted to the reflective device through the second polarization beam splitter.

在一些可能的实施方式中,光源包括激光器和光束准直装置。通过光源用于发射光束包括:通过激光器发射光束。通过光束准直装置对激光器发射的光束进行光束准直,并将光束准直后的光束输出至一维SLM。In some possible implementations, the light source includes a laser and a beam collimating device. Using the light source for emitting the light beam includes: emitting the light beam through the laser. The beam emitted by the laser is collimated by the beam collimating device, and the collimated beam is output to the one-dimensional SLM.

在一些可能的实施方式中,光扩束装置包括第一透镜和第二透镜。通过光扩束装置在第二方向上对经过一维SLM调制后的光束进行扩束包括:通过第一透镜在第二方向上对经过一维SLM调制后的光束进行会聚。通过述第二透镜对经过第一透镜会聚后的光束进行准直。In some possible implementation manners, the optical beam expander includes a first lens and a second lens. Expanding the beam modulated by the one-dimensional SLM in the second direction by the optical beam expander includes: converging the beam modulated by the one-dimensional SLM in the second direction through the first lens. The beam converged by the first lens is collimated by the second lens.

在一些可能的实施方式中,方法还包括:通过光扩束装置在第一方向上对经过一维SLM调制后的光束进行缩束。In some possible implementation manners, the method further includes: shrinking the light beam modulated by the one-dimensional SLM in the first direction by an optical beam expander.

在一些可能的实施方式中,光探测器包括多个像素点,每个像素点用于采集一个相关峰的光场信息。In some possible implementation manners, the light detector includes a plurality of pixels, and each pixel is used to collect light field information of a correlation peak.

在一些可能的实施方式中,方法还包括:向一维SLM发送一组目标序列对应的电信号,以驱动一维SLM对光源输出的光束进行调制。向二维SLM发送多组参考序列对应的电信号,以驱动二维SLM对接收到的光束进行调制。接收光探测器发送的输出信号,并根据输出信号确定目标序列与多组参考序列的匹配结果,输出信号包括多个相关峰的光场信息。In some possible implementation manners, the method further includes: sending a group of electrical signals corresponding to the target sequence to the one-dimensional SLM, so as to drive the one-dimensional SLM to modulate the light beam output by the light source. Send multiple sets of electrical signals corresponding to the reference sequence to the two-dimensional SLM to drive the two-dimensional SLM to modulate the received light beam. The output signal sent by the light detector is received, and the matching result between the target sequence and multiple groups of reference sequences is determined according to the output signal, and the output signal includes the light field information of multiple correlation peaks.

在一些可能的实施方式中,方法还包括:向一维SLM发送更新后的一组目标序列对应的电信号,以控制一维SLM对加载的目标序列进行更新。向二维SLM发送更新后的多组参考序列对应的电信号,以控制二维SLM对加载的多组参考序列进行更新。其中,一维SLM的更新频率大于或等于二维SLM的更新频率。In some possible implementation manners, the method further includes: sending an electrical signal corresponding to the updated set of target sequences to the one-dimensional SLM, so as to control the one-dimensional SLM to update the loaded target sequences. Sending electrical signals corresponding to the updated multiple sets of reference sequences to the two-dimensional SLM, so as to control the two-dimensional SLM to update the loaded multiple sets of reference sequences. Wherein, the update frequency of the one-dimensional SLM is greater than or equal to the update frequency of the two-dimensional SLM.

在一些可能的实施方式中,方法还包括:向一维SLM、二维SLM和光探测器发送控制信号,以控制一维SLM、二维SLM和光探测器保持时钟同步。In some possible implementation manners, the method further includes: sending a control signal to the one-dimensional SLM, the two-dimensional SLM and the photodetector, so as to control the one-dimensional SLM, the two-dimensional SLM and the photodetector to maintain clock synchronization.

在一些可能的实施方式中,折射装置为柱面透镜或傅里叶镜头。In some possible implementation manners, the refraction device is a cylindrical lens or a Fourier lens.

在一些可能的实施方式中,光探测器为CCD相机或CMOS相机。二维SLM为Lcos。In some possible implementations, the light detector is a CCD camera or a CMOS camera. 2D SLM is Lcos.

第五方面,本申请提供了一种光计算装置,该光计算装置包括处理器以及上述第一方面和第三方面任一实施方式中的光学相关器,处理器用于向光学相关器输出一组目标序列和多组参考序列。In the fifth aspect, the present application provides an optical computing device, the optical computing device includes a processor and the optical correlator in any implementation manner of the first aspect and the third aspect above, and the processor is used to output a set of Target sequence and multiple sets of reference sequences.

本申请实施例中,在空间上对一维SLM调制后的光进行扩束,从而可以将一维SLM上加载的一排目标序列复制为相同的多排目标序列。之后,这多排相同的目标序列可以同时与二维SLM上加载的多排参考序列进行相关运算以实现一对一匹配。相当于一次运算就完成了目标序列与多组参考序列的匹配,减少了相关运算的耗时,提高了序列的匹配效率。In the embodiment of the present application, the beam modulated by the one-dimensional SLM is spatially expanded, so that a row of target sequences loaded on the one-dimensional SLM can be copied into the same multiple rows of target sequences. Afterwards, the multiple rows of the same target sequence can be correlated with multiple rows of reference sequences loaded on the 2D SLM at the same time to achieve one-to-one matching. It is equivalent to completing the matching of the target sequence and multiple sets of reference sequences in one operation, reducing the time consumption of correlation operations and improving the efficiency of sequence matching.

附图说明Description of drawings

图1是一种应用于二维图像匹配的光学相关器的结构示意图;Fig. 1 is a kind of structural representation of the optical correlator applied to two-dimensional image matching;

图2为本申请中光学相关器的一种结构示意图;Fig. 2 is a kind of structural representation of optical correlator in the present application;

图3(a)为本申请中光学相关器的一种立体结构示意图;Fig. 3 (a) is a kind of three-dimensional structure schematic diagram of optical correlator in the present application;

图3(b)为本申请中光学相关器的一种平面主视图;Fig. 3 (b) is a kind of plane front view of optical correlator in the present application;

图3(c)为本申请中光学相关器的一种平面俯视图;Fig. 3 (c) is a kind of plane top view of optical correlator in the present application;

图4为本申请中光探测器上的相关峰示意图;Fig. 4 is a schematic diagram of correlation peaks on the photodetector in the present application;

图5(a)为本申请中光学相关器的另一种平面主视图;Fig. 5 (a) is another kind of plane front view of optical correlator in the present application;

图5(b)为本申请中光学相关器的另一种平面俯视图;Fig. 5 (b) is another kind of top plan view of optical correlator in the present application;

图6(a)为本申请中光学相关器的另一种平面主视图;Fig. 6 (a) is another kind of plane front view of optical correlator in the present application;

图6(b)为本申请中光学相关器的另一种平面俯视图;Fig. 6 (b) is another kind of top plan view of optical correlator in the present application;

图7为本申请中光学相关器的另一种平面俯视图;Fig. 7 is another kind of top plan view of the optical correlator in the present application;

图8(a)为本申请中光学相关器的另一种平面主视图;Fig. 8 (a) is another kind of plane front view of optical correlator in the present application;

图8(b)为本申请中光学相关器的另一种平面主视图;Fig. 8 (b) is another kind of plane front view of the optical correlator in the present application;

图8(c)为本申请中光学相关器的另一种平面主视图;Fig. 8 (c) is another kind of plane front view of the optical correlator in the present application;

图9(a)为本申请中光学相关器的另一种平面主视图;Fig. 9 (a) is another kind of plane front view of the optical correlator in the present application;

图9(b)为本申请中光学相关器的另一种平面主视图;Fig. 9 (b) is another kind of plane front view of the optical correlator in the present application;

图9(c)为本申请中光学相关器的另一种平面俯视图;Fig. 9 (c) is another kind of top view of the optical correlator in the present application;

图9(d)为本申请中光学相关器的另一种平面俯视图;Figure 9(d) is another plan view of the optical correlator in the present application;

图10为本申请提供的一种光学相关运算方法的实施例示意图。FIG. 10 is a schematic diagram of an embodiment of an optical correlation calculation method provided by the present application.

具体实施方式Detailed ways

本申请实施例提供了一种光学相关器、光学相关运算方法和光计算装置。该光学相关器应用于一维序列的匹配场景,一次运算就可以完成目标序列与多组参考序列的匹配,减少了运算耗时,提高了序列的匹配速度。本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。Embodiments of the present application provide an optical correlator, an optical correlation calculation method, and an optical calculation device. The optical correlator is applied to a one-dimensional sequence matching scene, and a single operation can complete the matching of the target sequence and multiple sets of reference sequences, which reduces the time-consuming operation and improves the sequence matching speed. The terms "first", "second" and the like in the description and claims of the present application and the above drawings (if any) are used to distinguish similar objects and not necessarily to describe a specific order or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

图1是一种应用于二维图像匹配的光学相关器的结构示意图。目前的光学相关器大都是基于二维空间的傅里叶变换,其主要作用是用于对二维图像进行匹配。如图1所示,光源S输出的光经过准直透镜L1后被准直为平行光。傅里叶变换透镜L2和L3的焦距均为f,且傅里叶变换透镜L2的后焦面与傅里叶变换L3的前焦面重合,构成4f光路结构。相应地,傅里叶变换透镜L2的前焦面为物面,其上放置二维空间光调制器(Spatial LightModulator,SLM)P1。傅里叶变换透镜L2的后焦面为频谱面,其上放置二维空间光调制器P2。傅里叶变换透镜L3的后焦面为像面,其上放置二维探测器阵列P3。傅里叶变换透镜L2和L3分别实现了一次光学傅里叶变换(Optical Fourier Transform,OFT)。Fig. 1 is a schematic structural diagram of an optical correlator applied to two-dimensional image matching. Most of the current optical correlators are based on Fourier transform in two-dimensional space, and their main function is to match two-dimensional images. As shown in FIG. 1 , the light output by the light source S is collimated into parallel light after passing through the collimating lens L1. The focal lengths of Fourier transform lenses L2 and L3 are both f, and the rear focal plane of Fourier transform lens L2 coincides with the front focal plane of Fourier transform L3, forming a 4f optical path structure. Correspondingly, the front focal plane of the Fourier transform lens L2 is the object plane, on which a two-dimensional spatial light modulator (Spatial LightModulator, SLM) P1 is placed. The back focal plane of the Fourier transform lens L2 is a spectrum plane, on which the two-dimensional spatial light modulator P2 is placed. The back focal plane of the Fourier transform lens L3 is the image plane, on which the two-dimensional detector array P3 is placed. The Fourier transform lenses L2 and L3 respectively implement an Optical Fourier Transform (OFT).

二维空间光调制器P1和P2根据承载的二维调制量矩阵信息的电信号对输入的平行光束进行相应的二维光场调制。其中,光场调制包括光强调制和相位调制。二维空间光调制器P1对应的调制量矩阵信息为二维矩阵A1。二维空间光调制器P2对应的调制量矩阵信息为二维矩阵A2的傅里叶变换。通过L2和L3两次的OFT运算,输出的光束被二维探测器阵列P3接收并转换为承载了二维相关矩阵C12信息的电信号,之后解调得到二维相关矩阵C12。通过上述过程,光学相关器将对应二维矩阵A1和二维矩阵A2的两路电信号转换为光信号。在光学域上实现了二维矩阵A1和二维矩阵A2的相关运算,得到了对应二维矩阵C12信息的光信号,并将其转换为电信号最终提取出二维矩阵C12。The two-dimensional spatial light modulators P1 and P2 perform corresponding two-dimensional light field modulation on the input parallel light beams according to the electrical signal carrying the two-dimensional modulation amount matrix information. Wherein, light field modulation includes light intensity modulation and phase modulation. The modulation amount matrix information corresponding to the two-dimensional spatial light modulator P1 is a two-dimensional matrix A1. The modulation amount matrix information corresponding to the two-dimensional spatial light modulator P2 is the Fourier transform of the two-dimensional matrix A2. Through two OFT operations of L2 and L3, the output beam is received by the two-dimensional detector array P3 and converted into an electrical signal carrying the information of the two-dimensional correlation matrix C12, and then demodulated to obtain the two-dimensional correlation matrix C12. Through the above process, the optical correlator converts the two electrical signals corresponding to the two-dimensional matrix A1 and the two-dimensional matrix A2 into optical signals. In the optical domain, the correlation operation of the two-dimensional matrix A1 and the two-dimensional matrix A2 is realized, and the optical signal corresponding to the information of the two-dimensional matrix C12 is obtained, which is converted into an electrical signal and finally the two-dimensional matrix C12 is extracted.

但是,上述的光学相关器很难应用在一维序列匹配的场景中,例如基因序列比对、条形码比对、文本库检索等。其中一个典型的应用场景为基因序列比对。在该场景中,对人类基因组的标准序列预先处理准备为参考序列数据库。具体包括:确定基因序列的长度,对基因序列长度进行分割,按基因序列的碱基对应的编码构成参考序列,对参考序列的一维傅里叶变换的频谱或相位谱进行提取。之后,待匹配基因序列按照其碱基对应编码构成目标序列。进而,将编码后的目标序列和参考序列数据库送入光学相关器,即可进行目标序列在参考序列数据库中的比对和定位。However, the above-mentioned optical correlator is difficult to be applied in one-dimensional sequence matching scenarios, such as gene sequence alignment, barcode alignment, text library retrieval, etc. One of the typical application scenarios is gene sequence alignment. In this scenario, a standard sequence preprocessing of the human genome is prepared as a reference sequence database. Specifically include: determining the length of the gene sequence, dividing the length of the gene sequence, constructing a reference sequence according to the code corresponding to the base of the gene sequence, and extracting the spectrum or phase spectrum of the one-dimensional Fourier transform of the reference sequence. Afterwards, the gene sequence to be matched is coded according to its base correspondence to form the target sequence. Furthermore, the encoded target sequence and the reference sequence database are sent to the optical correlator, and then the comparison and positioning of the target sequence in the reference sequence database can be performed.

首先,上述的光学相关器采用的是二维SLM和二维探测器阵列。受限于物理器件和生产工艺,二维SLM和二维探测器阵列对于电信号与光信号的转换速度较慢,导致其输入输出速度慢。因此,上述光学相关器更适用于刷新频率较低的二维图像匹配,很难应用于刷新频率较高的一维序列匹配。其次,假设二维SLM输入的是多行不同的一维序列,例如100行待匹配的目标序列。数据库中存储有100行参考序列,那么最终会得到10000个匹配结果。在二维探测器阵列上呈现的相关峰数量较多,叠加在一起很难区分。但是,如果采用时分的方式每次输入一行一维序列,又会导致整体的运算耗时较长,匹配的过程较慢。First, the above-mentioned optical correlator uses a two-dimensional SLM and a two-dimensional detector array. Limited by physical devices and production processes, two-dimensional SLMs and two-dimensional detector arrays have slow conversion speeds for electrical signals and optical signals, resulting in slow input and output speeds. Therefore, the above-mentioned optical correlator is more suitable for two-dimensional image matching with a low refresh rate, and it is difficult to apply to one-dimensional sequence matching with a high refresh rate. Second, assume that the input of the two-dimensional SLM is multiple lines of different one-dimensional sequences, for example, 100 lines of target sequences to be matched. If there are 100 rows of reference sequences stored in the database, 10,000 matching results will eventually be obtained. The number of correlation peaks presented on the two-dimensional detector array is large, and it is difficult to distinguish them when superimposed. However, if a one-dimensional sequence is input one row at a time in a time-division manner, the overall calculation time will be longer and the matching process will be slower.

为此,本申请提供了一种应用于一维序列匹配的光学相关器,一次运算就可以完成目标序列与多组参考序列的匹配,减少了运算耗时,提高了序列的匹配速度。下面进行详细介绍。For this reason, the present application provides an optical correlator applied to one-dimensional sequence matching, which can complete the matching of the target sequence and multiple sets of reference sequences in one operation, which reduces the time-consuming operation and improves the sequence matching speed. Details are given below.

图2为本申请中光学相关器的一种结构示意图。如图2所示,该光学相关器包括光源10、一维SLM 20、光扩束装置30、第一折射装置40、二维SLM 50、第二折射装置60和光探测器70。其中,图2中的实线用于体现光束的传输,虚线用于体现电信号的传输。一组目标序列以电信号的形式加载到一维SLM 20,多组参考序列以电信号的形式加载到二维SLM 50。光探测器70采集一组目标序列与多组参考序列进行相关运算后的相关峰的光场信息。具体地,光源10发射的激光传输到一维SLM 20。一维SLM 20进行光束调制,以将一组目标序列调制到该光束上。光扩束装置30对调制后的光束进行扩束,经过扩束后的光束发散角变小并且束腰直径变大,相当于在空间上将一组目标序列复制为多组相同的目标序列。第一折射装置40对扩束后的光束进行折射,以实现光学傅里叶变换,其中,多组目标序列的傅里叶变换谱相同。二维SLM 50对输入的光束进行调制,其输出的光束调制了多组目标序列的傅里叶变换谱和多组参考序列的傅里叶变换谱的逐点乘积。第二折射装置60对输入的光束进行折射,以实现光学傅里叶逆变换,其输出的光束调制了相关运算的结果,在上述逐点乘积后进行傅里叶逆变换即可得到该相关运算的结果,该相关运算结果是一个函数分布。光探测器70对输入的光束进行采样,以得到多个相关峰的光场信息,用于体现上述相关运算的结果。具体地,该相关峰的光场分布是与相关运算结果的函数分布相对应的,其中,相关峰的光场强度的最大值就对应相关运算结果的函数分布的最大值。多个相关峰的光场信息可以体现一组目标序列与多组参考序列的相关运算结果。需要说明的是,上述一维SLM 20对光束进行的调制包括光强调制和/或相位调制,同理,上述二维SLM 50对光束进行的调制也包括光强调制和/或相位调制,具体此处不做限定。FIG. 2 is a schematic structural diagram of an optical correlator in the present application. As shown in FIG. 2 , the optical correlator includes a light source 10 , a one-dimensional SLM 20 , a beam expander 30 , a first refraction device 40 , a two-dimensional SLM 50 , a second refraction device 60 and a photodetector 70 . Wherein, the solid line in FIG. 2 is used to represent the transmission of light beams, and the dotted line is used to represent the transmission of electrical signals. A group of target sequences is loaded to the one-dimensional SLM 20 in the form of electrical signals, and multiple sets of reference sequences are loaded to the two-dimensional SLM 50 in the form of electrical signals. The light detector 70 collects the light field information of the correlation peaks after performing correlation calculations between a group of target sequences and multiple groups of reference sequences. Specifically, laser light emitted from the light source 10 is transmitted to the one-dimensional SLM 20 . The one-dimensional SLM 20 performs beam modulation to modulate a set of target sequences onto the beam. The optical beam expander 30 expands the modulated beam, and the divergence angle of the beam after beam expansion becomes smaller and the beam waist diameter becomes larger, which is equivalent to spatially copying a group of target sequences into multiple groups of identical target sequences. The first refraction device 40 refracts the expanded beam to realize optical Fourier transform, wherein the Fourier transform spectra of multiple sets of target sequences are the same. The two-dimensional SLM 50 modulates the input beam, and the output beam modulates the point-by-point product of multiple sets of Fourier transform spectra of target sequences and multiple sets of Fourier transform spectra of reference sequences. The second refraction device 60 refracts the input beam to realize the inverse optical Fourier transform, and the output beam modulates the result of the correlation operation, and the correlation operation can be obtained by performing the inverse Fourier transform after the above-mentioned point-by-point product The result of this correlation operation is a function distribution. The light detector 70 samples the input light beam to obtain the light field information of multiple correlation peaks, which is used to reflect the result of the above correlation calculation. Specifically, the light field distribution of the correlation peak corresponds to the function distribution of the correlation operation result, wherein the maximum value of the light field intensity of the correlation peak corresponds to the maximum value of the function distribution of the correlation operation result. The light field information of multiple correlation peaks can reflect the correlation calculation results between a set of target sequences and multiple sets of reference sequences. It should be noted that the modulation of the light beam by the above-mentioned one-dimensional SLM 20 includes light intensity modulation and/or phase modulation. Similarly, the modulation of the light beam by the above-mentioned two-dimensional SLM 50 also includes light intensity modulation and/or phase modulation. There is no limit here.

需要说明的是,上述的光学相关器还包括如图2所示的控制器80。控制器80用于为一维SLM 20和二维SLM 50提供输入的电信号,还用于接收光探测器70输出的电信号。具体地,控制器80向一维SLM 20发送包括目标序列的电信号,并向二维SLM 50发送包括多组参考序列的电信号,以分别驱动一维SLM 20和二维SLM 50对输入的光束进行调制。光探测器70采集到的相关峰的光场信息也可以通过电信号输出至控制器80,由控制器80根据相关峰的光场信息确定目标序列与多组参考序列的匹配结果。此外,在目标序列需要更新时,控制器80还将向一维SLM 20发送更新后的目标序列,以使得一维SLM 20对加载的目标序列进行更新。同理,在参考序列需要更新时,控制器80还将向二维SLM 50发送更新后的参考序列,以使得二维SLM 50对加载的参考序列进行更新。其中,一维SLM 20的更新频率应当高于二维SLM 50的更新频率。应理解,光探测器70的探测速率应当大于或等于一维SLM 20的调制速率,从而保证一维SLM 20每次更新后光探测器70都可以更新采样信息,例如,一维SLM的调制速率为500KHz,光探测器70的探测速率≥500KHz。在一些可能的实施方式中,控制器80也可以向一维SLM 20、二维SLM 50和光探测器70发送控制信号,以控制光探测器70与一维SLM 20和二维SLM 50进行时钟同步。也就是说,在对一维SLM 20进行更新多次后,可以对二维SLM 50进行一次更新,并且,一维SLM20和二维SLM 50每次更新也需要让光探测器70同步更新其采集的信息。在实际应用中,控制器80可以是集成在光学相关器内部的器件,也可以是光学相关器外部的独立器件,具体此处不做限定。应理解,下面介绍的每一个实施例中也都包括上述的控制器,为了便于介绍,下面不在每个实施例中再介绍控制器的功能了,也不后续的附图中一一展示控制器了。It should be noted that the above-mentioned optical correlator further includes a controller 80 as shown in FIG. 2 . The controller 80 is used to provide input electrical signals to the one-dimensional SLM 20 and the two-dimensional SLM 50 , and is also used to receive electrical signals output from the photodetector 70 . Specifically, the controller 80 sends an electrical signal including a target sequence to the one-dimensional SLM 20, and sends an electrical signal including multiple sets of reference sequences to the two-dimensional SLM 50, so as to respectively drive the one-dimensional SLM 20 and the two-dimensional SLM 50 to input The beam is modulated. The light field information of the correlation peak collected by the photodetector 70 can also be output to the controller 80 through an electrical signal, and the controller 80 determines the matching result between the target sequence and multiple sets of reference sequences according to the light field information of the correlation peak. In addition, when the target sequence needs to be updated, the controller 80 will also send the updated target sequence to the one-dimensional SLM 20, so that the one-dimensional SLM 20 can update the loaded target sequence. Similarly, when the reference sequence needs to be updated, the controller 80 will also send the updated reference sequence to the 2D SLM 50, so that the 2D SLM 50 can update the loaded reference sequence. Wherein, the updating frequency of the one-dimensional SLM 20 should be higher than that of the two-dimensional SLM 50 . It should be understood that the detection rate of the photodetector 70 should be greater than or equal to the modulation rate of the one-dimensional SLM 20, so as to ensure that the photodetector 70 can update the sampling information after each update of the one-dimensional SLM 20, for example, the modulation rate of the one-dimensional SLM is 500KHz, and the detection rate of the light detector 70 is ≥500KHz. In some possible implementations, the controller 80 may also send control signals to the one-dimensional SLM 20, the two-dimensional SLM 50 and the photodetector 70, so as to control the clock synchronization between the photodetector 70 and the one-dimensional SLM 20 and the two-dimensional SLM 50 . That is to say, after the one-dimensional SLM 20 is updated many times, the two-dimensional SLM 50 can be updated once, and each update of the one-dimensional SLM 20 and the two-dimensional SLM 50 also needs to let the photodetector 70 update its collection synchronously. Information. In practical applications, the controller 80 may be a device integrated inside the optical correlator, or an independent device outside the optical correlator, which is not specifically limited here. It should be understood that each embodiment described below also includes the above-mentioned controller. For the convenience of introduction, the function of the controller will not be introduced in each embodiment below, and the controllers will not be shown one by one in the subsequent drawings. up.

下面通过多个具体的实施例对本申请提供的光学相关器进行进一步的介绍。为了便于介绍,首先对下面各附图中的第一方向和第二方向进行定义。其中,一维SLM 20上的像素点在第一方向上排列,并且一维SLM 20上只分布有一排像素点。二维SLM 50上的像素点同样在第一方向上排列,但是二维SLM 50上分布有多排像素点。光扩束装置30是在第二方向上对光束进行扩束,第二方向与第一方向垂直,并且第二方向还与光束输入光扩束装置30的方向垂直。The optical correlator provided by the present application will be further introduced through multiple specific embodiments below. For ease of introduction, firstly, the first direction and the second direction in the following figures are defined. Wherein, the pixels on the one-dimensional SLM 20 are arranged in the first direction, and there is only one row of pixels distributed on the one-dimensional SLM 20 . The pixels on the two-dimensional SLM 50 are also arranged in the first direction, but there are multiple rows of pixels distributed on the two-dimensional SLM 50 . The optical beam expander 30 expands the beam in a second direction, the second direction is perpendicular to the first direction, and the second direction is also perpendicular to the direction in which the beam enters the optical expander 30 .

实施例一:Embodiment one:

图3(a)为本申请中光学相关器的一种立体结构示意图。图3(b)为本申请中光学相关器的一种平面主视图。图3(c)为本申请中光学相关器的一种平面俯视图。如图3(a)-图3(c)所示,扩束装置30的出瞳平面位于第一折射装置40的前焦面。二维SLM 50位于第一折射装置40的后焦面,并且第一折射装置40的后焦面与第二折射装置的前焦面重合。光探测器70位于第二折射装置60的后焦面。Fig. 3(a) is a schematic diagram of a three-dimensional structure of the optical correlator in the present application. Fig. 3(b) is a planar front view of the optical correlator in this application. Fig. 3(c) is a top plan view of the optical correlator in the present application. As shown in FIG. 3( a )- FIG. 3( c ), the exit pupil plane of the beam expander 30 is located on the front focal plane of the first refracting device 40 . The two-dimensional SLM 50 is located on the back focal plane of the first refraction device 40, and the back focal plane of the first refraction device 40 coincides with the front focal plane of the second refraction device. The light detector 70 is located at the back focal plane of the second refraction device 60 .

光源10包括激光器101和光束准直装置102,本申请不限定激光器101和光束准直装置102的具体类型。作为一个示例,该激光器101可以是线型发散的激光器,光束准直装置102为柱透镜,如图3(b)所示,光束准直装置102用于对激光器101输出的光束进行准直。作为另一个示例,光束准直装置102还可以采用准直匀化镜头,准直匀化镜头可以将激光器101发射的单模高斯激光变为发散角约±5°的高斯光,并在高斯光束发散的过程中将能量分布匀化,准直匀化镜头除了对光束具有准直作用外还具有会聚作用,以使得光源10输出的光束可以会聚到一维SLM 20上的一排像素点。The light source 10 includes a laser 101 and a beam collimating device 102 , and the application does not limit the specific types of the laser 101 and the beam collimating device 102 . As an example, the laser 101 may be a linear divergent laser, and the beam collimating device 102 is a cylindrical lens. As shown in FIG. 3( b ), the beam collimating device 102 is used to collimate the beam output by the laser 101 . As another example, the beam collimating device 102 can also adopt a collimating and homogenizing lens. The collimating and homogenizing lens can change the single-mode Gaussian laser emitted by the laser 101 into Gaussian light with a divergence angle of about ±5°, and in the Gaussian beam The energy distribution is homogenized during the divergence process, and the collimating homogenization lens not only has a collimating effect on the light beam but also has a converging effect, so that the light beam output by the light source 10 can be converged to a row of pixels on the one-dimensional SLM 20 .

一维SLM 20上沿第一方向排列的一行像素点与一维SLM 20上加载的一组目标序列对应。该目标序列可以是比特序列,序列中每一位的取值为0或1。该目标序列也可以是有更高阶灰度的序列,例如8阶灰度的序列,序列中每一位的取值范围是0-255(28),具体此处不做限定。一维SLM 20上像素点的数量应当大于或等于目标序列的编码单元数,每个编码单元可以采用二值或多值编码。也就是说,在一维SLM 20上可以为目标序列的每个编码单元分配与之对应的像素点。作为一个示例,目标序列为具有100个片段的基因序列,目标序列共包含1000个编码单元,每个编码单元的编码值为0或1,一维SLM 20包括一行上的1000个像素点,1000个像素点与1000个编码单元一一对应。每10个编码单元对应一个片段,每个片段为AGCT四种碱基类型中的一种。对应四种碱基有四种不同的排列,例如,1010101010对应A,1001001001对应G,1001110001对应C,0110101010对应T。A row of pixels arranged along the first direction on the one-dimensional SLM 20 corresponds to a group of target sequences loaded on the one-dimensional SLM 20 . The target sequence may be a bit sequence, and the value of each bit in the sequence is 0 or 1. The target sequence may also be a sequence with higher gray levels, such as a sequence with 8-level gray levels, and the value range of each bit in the sequence is 0-255 (2 8 ), which is not limited here. The number of pixels on the one-dimensional SLM 20 should be greater than or equal to the number of coding units of the target sequence, and each coding unit can adopt binary or multi-value coding. That is to say, on the one-dimensional SLM 20 , each coding unit of the target sequence can be assigned a corresponding pixel. As an example, the target sequence is a gene sequence with 100 fragments, the target sequence contains 1000 coding units in total, and the coding value of each coding unit is 0 or 1, and the one-dimensional SLM 20 includes 1000 pixels on a line, 1000 There is a one-to-one correspondence between pixels and 1000 coding units. Every 10 coding units corresponds to a fragment, and each fragment is one of the four base types of AGCT. There are four different arrangements corresponding to the four bases, for example, 1010101010 corresponds to A, 1001001001 corresponds to G, 1001110001 corresponds to C, and 0110101010 corresponds to T.

扩束装置30包括第一透镜301和第二透镜302。第一透镜301和第二透镜302构成了一个类似望远镜的系统,以对输入的光束进行扩束。具体地,输入的光束是在第二方向上实现了扩束,从而可以在空间上将输入光束上调制的一组目标序列复制成多组目标序列,用于和二维SLM 50上加载的多组参考序列进行匹配。本申请不限定第一透镜301和第二透镜302的类型。作为一个示例,第一透镜301和第二透镜302均为柱透镜,如图3(b)所示,第一透镜301和第二透镜302只在第二方向上改变光束的方向。优选地,经过扩束装置30扩束后的光束尺寸应当与二维SLM 50的大小匹配,从而可以刚好覆盖二维SLM 50上的多排像素点。例如,二维SLM 50上分布有2000排像素点,扩束后的光束若只能覆盖1000排像素点,最终只能得到1000个匹配结果,无法最大限度地利用二维SLM 50,而如果扩束后地光束尺寸太大最多也只能得到2000个匹配结果,也会造成不必要的浪费。The beam expander 30 includes a first lens 301 and a second lens 302 . The first lens 301 and the second lens 302 constitute a telescope-like system to expand the input beam. Specifically, the input beam is expanded in the second direction, so that a set of target sequences modulated on the input beam can be spatially copied into multiple sets of target sequences, which can be used to combine with multiple sets of target sequences loaded on the two-dimensional SLM 50. group reference sequences for matching. The application does not limit the types of the first lens 301 and the second lens 302 . As an example, both the first lens 301 and the second lens 302 are cylindrical lenses. As shown in FIG. 3( b ), the first lens 301 and the second lens 302 only change the direction of the light beam in the second direction. Preferably, the size of the beam expanded by the beam expander 30 should match the size of the two-dimensional SLM 50 , so as to just cover multiple rows of pixel points on the two-dimensional SLM 50 . For example, there are 2000 rows of pixels distributed on the two-dimensional SLM 50. If the expanded beam can only cover 1000 rows of pixels, only 1000 matching results can be obtained in the end, and the two-dimensional SLM 50 cannot be used to the maximum extent. If the size of the post-beam beam is too large, only 2000 matching results can be obtained at most, which will also cause unnecessary waste.

需要说明的是,上述对光扩束装置30的介绍只是一个示例,在实际应用中还可以采用其他结构的光扩束装置来对输入光束进行扩束,具体此处不做限定。例如,光扩束装置30还可以是耦合镜头,耦合镜头具体可以包括4个柱面透镜。应理解,上述的第一透镜301和第二透镜302只能在第二方向上进行扩束,在此基础上,耦合镜头可以再配置两个类似第一透镜301和第二透镜302的透镜,区别在于这两个透镜只在第一方向上改变光束的方向。因此,通过耦合镜头还可以在第一方向上对输入的光束进行缩束,从而可以更好地与二维SLM50的大小匹配。It should be noted that the above introduction to the optical beam expander 30 is just an example, and in practical applications, an optical beam expander with other structures can also be used to expand the input beam, which is not specifically limited here. For example, the optical beam expander 30 may also be a coupling lens, and the coupling lens may specifically include four cylindrical lenses. It should be understood that the above-mentioned first lens 301 and second lens 302 can only expand the beam in the second direction, on this basis, the coupling lens can be configured with two lenses similar to the first lens 301 and the second lens 302, The difference is that these two lenses only redirect the light beam in a first direction. Therefore, the input light beam can also be narrowed in the first direction through the coupling lens, so as to better match the size of the two-dimensional SLM 50 .

如图3(b)所示,第一折射装置40用于在第一方向上对扩束后的光束进行会聚,以进行一次一维的光学傅里叶变换,将空间域的光强分布转换为频域分布。本申请不限定第一折射装置40的类型,作为一个示例,该第一折射装置40为一个柱透镜。作为另一个示例,该第一折射装置40还可以是傅里叶镜头,为保证傅里叶变换的空间域采样率,傅里叶镜头可以使用长焦镜头实现变换功能。傅里叶镜头具体可以由多个柱面透镜组成,并且该傅里叶镜头的通光口径应覆盖二维SLM 50的有效光学区域。As shown in Figure 3(b), the first refraction device 40 is used to converge the expanded beam in the first direction to perform a one-dimensional optical Fourier transform to transform the light intensity distribution in the spatial domain distribution in the frequency domain. The present application does not limit the type of the first refraction device 40 , as an example, the first refraction device 40 is a cylindrical lens. As another example, the first refraction device 40 may also be a Fourier lens. In order to ensure the spatial domain sampling rate of the Fourier transform, the Fourier lens may use a telephoto lens to realize the transformation function. Specifically, the Fourier lens can be composed of multiple cylindrical lenses, and the aperture of the Fourier lens should cover the effective optical area of the two-dimensional SLM 50 .

二维SLM 50包括多排像素点,其中,二维SLM 50上加载的每一组参考序列都有与之对应的一排像素点。具体地,每一组参考序列与一排像素点的对应方式可以参考上述一维SLM 20上像素点与目标序列的对应方式,此处不再赘述。应理解,本实施例中的一维SLM20和二维SLM 50均为透射式的SLM,经过一维SLM 20和二维SLM 50调制后的光束将透射至后面的器件。在一些可能的实施方式中,二维SLM 50具体可以是硅基液晶(LiquidCrystal on Silicon,Lcos)。The two-dimensional SLM 50 includes multiple rows of pixel points, wherein each set of reference sequences loaded on the two-dimensional SLM 50 has a corresponding row of pixel points. Specifically, the correspondence manner between each group of reference sequences and a row of pixel points may refer to the above-mentioned correspondence manner between pixels on the one-dimensional SLM 20 and the target sequence, and will not be repeated here. It should be understood that the one-dimensional SLM 20 and the two-dimensional SLM 50 in this embodiment are all transmissive SLMs, and the light beams modulated by the one-dimensional SLM 20 and the two-dimensional SLM 50 will be transmitted to subsequent devices. In some possible implementation manners, the two-dimensional SLM 50 may specifically be a liquid crystal on silicon (Liquid Crystal on Silicon, Lcos).

如图3(b)所示,第二折射装置60用于对输入的光束进行准直,以进行一次一维的光学傅里叶逆变换,将频域分布转换为空间域的光强分布。本申请同样不限定第二折射装置60的类型,其具体类型可以参考上述对于第一折射装置40的介绍,此处不再赘述。As shown in FIG. 3( b ), the second refraction device 60 is used to collimate the input light beam to perform a one-dimensional inverse optical Fourier transform to convert the frequency domain distribution into the spatial domain light intensity distribution. The present application also does not limit the type of the second refraction device 60 , and for the specific type, reference may be made to the above introduction to the first refraction device 40 , which will not be repeated here.

如图3(a)所示,由于本申请只是对一维序列进行匹配,因此光探测器70具体可以采用一维探测器。该光探测器70包括一列像素点,用于对输入的光束进行像素采集,以得到多个相关峰的光场信息。在本实施例中,光探测器70上的像素点可以理解为沿第二方向排列的像素点。例如,二维SLM 50上有2000排像素点,那光探测器70上这一列像素点应当有2000个。作为一个示例,光探测器70用于对光束的强度进行接收,并根据每个像素点提取相关峰强度,进而,控制器80可以将每一个相关峰的强度与阈值进行比较来确定匹配结果。As shown in FIG. 3( a ), since the present application only performs matching on one-dimensional sequences, the light detector 70 may specifically be a one-dimensional detector. The photodetector 70 includes a column of pixels, which are used to collect the input light beams by pixels, so as to obtain the light field information of multiple correlation peaks. In this embodiment, the pixel points on the photodetector 70 can be understood as pixel points arranged along the second direction. For example, if there are 2000 rows of pixels on the two-dimensional SLM 50 , there should be 2000 pixels in this column on the photodetector 70 . As an example, the photodetector 70 is used to receive the intensity of the light beam, and extract the correlation peak intensity according to each pixel point, and then, the controller 80 can compare the intensity of each correlation peak with a threshold to determine the matching result.

图4为本申请中光探测器上的相关峰示意图。如图4所示,只有第3行相关峰的峰值超过了阈值,其他行的峰值均为超过峰值,因此,一维SLM 20上加载的目标序列与二维SLM50上加载的第3排参考序列匹配,与其他的参考序列均不匹配。在一些可能的实施方式中,光探测器70可以是电荷耦合器件(Charge Coupled Device,CCD)相机或互补金属氧化物半导体(Complementary Metal Oxide Semiconductor,CMOS)。Fig. 4 is a schematic diagram of the correlation peaks on the photodetector in the present application. As shown in Figure 4, only the peak value of the correlation peak in the third row exceeds the threshold value, and the peak values in the other rows all exceed the peak value. Therefore, the target sequence loaded on the one-dimensional SLM 20 and the third row reference sequence loaded on the two-dimensional SLM50 match and did not match any other reference sequences. In some possible implementations, the photodetector 70 may be a Charge Coupled Device (Charge Coupled Device, CCD) camera or a Complementary Metal Oxide Semiconductor (Complementary Metal Oxide Semiconductor, CMOS).

实施例二:Embodiment two:

图5(a)为本申请中光学相关器的另一种平面主视图。图5(b)为本申请中光学相关器的另一种平面俯视图。如图5(a)和图5(b)所示,实施例二与上述实施例一的区别在于,实施例一中光源10输出的是准直后的光束,而实施例二中光源10输出的发散的光束。具体地,光源10只包括激光器101。激光器101输出的发散光束到达一维SLM 20后还会继续发散,到达光扩束装置30的也是发散光束。因此,区别于上述实施例一,实施例二中光扩束装置30只包括透镜302,透镜302用于对输入的发散光束进行准直并输出。应理解,除了上述介绍的区别点,实施例二中光学相关器的其他器件都与实施例一介绍的器件类似,例如,本实施例中的一维SLM 20、第一折射装置40、二维SLM 50、第二折射装置60和光探测器70都可以参考实施例一的相关描述,此处不再赘述。通过上述描述可知,实施例二相对于实施例一的结构更为简单,在一些场景中使用实施例二这种结构的光学相关器可以更加节省成本。Fig. 5(a) is another planar front view of the optical correlator in this application. Fig. 5(b) is another top plan view of the optical correlator in this application. As shown in Figure 5(a) and Figure 5(b), the difference between the second embodiment and the above-mentioned first embodiment is that the output of the light source 10 in the first embodiment is a collimated beam, while the output of the light source 10 in the second embodiment is diverging beams. Specifically, the light source 10 only includes a laser 101 . The divergent beam output by the laser 101 will continue to diverge after reaching the one-dimensional SLM 20 , and the divergent beam reaching the optical beam expander 30 is also a divergent beam. Therefore, different from the above-mentioned first embodiment, the optical beam expander 30 in the second embodiment only includes a lens 302, and the lens 302 is used to collimate the input diverging light beam and output it. It should be understood that, except for the differences described above, other devices of the optical correlator in Embodiment 2 are similar to those described in Embodiment 1, for example, the one-dimensional SLM 20, the first refraction device 40, the two-dimensional For the SLM 50 , the second refraction device 60 and the photodetector 70 , reference may be made to the relevant description of Embodiment 1, and details will not be repeated here. It can be known from the above description that the structure of the second embodiment is simpler than that of the first embodiment, and the use of the optical correlator with the structure of the second embodiment can save costs in some scenarios.

实施例三:Embodiment three:

图6(a)为本申请中光学相关器的另一种平面主视图。图6(b)为本申请中光学相关器的另一种平面俯视图。如图6(a)所示,实施例三与实施例一的区别在于,实施例三中在光扩束装置30和第一折射装置401之间增加了第一分束器90和第二分束器100。具体地,第一分束器90用于对输入的光束进行分路,其中,分路后的第一路光束传输至第一折射装置401,分路后的第二路光束传输至第二分束器100。作为一个示例,第一分束器90可以将一路光束透射出去,并将另一路光束反射出去。第一折射装置401可以在透射的光束上,第二分束器100在反射的光路上,或者,第一折射装置401可以在反射的光束上,第二分束器100在透射的光路上。以图6(a)为例,第一路光束经过第一分束器90透射至第一折射装置401,第二路光束经过第一分束器90反射至第二分束器100。第二分束器100进一步对输入的光束进行分路,第二分束器100与第一分束器90的功能类似。仍以图6(a)为例,其中一路光束经过第二分束器100反射至第一折射装置402,另一路光束经过第二分束器100透射出去。基于上述方式,在光扩束装置30对光束进行扩束的基础上,还可以通过第一分束器90和第二分束器100新增了一路光束,相当于在第二方向上对光束进一步地扩束,对目标序列复制的数量也进一步翻倍,提高了运算效率。应理解,由于光束在第二方向上分成了两路,那么在第一分束器90和第二分束器100之后的器件也都相应地需要增加一组,例如图6(a)中所示的第一折射装置402、二维SLM 502、第二折射装置602和光探测器702。除此之外,也可以采用尺寸更大的第一折射装置40,使其能够接收两路光束,这样就无需配置两个第一折射装置。同理,二维SLM 50、第二折射装置60和光探测器70也可以采用尺寸更大的器件,此处不再一一赘述。需要说明的是,上述的第一分束器90和第二分束器100都是基于光束的能量进行分光的,本申请不限定其分光比。Fig. 6(a) is another planar front view of the optical correlator in this application. Fig. 6(b) is another top plan view of the optical correlator in this application. As shown in Figure 6(a), the difference between the third embodiment and the first embodiment is that, in the third embodiment, a first beam splitter 90 and a second beam splitter 90 are added between the optical beam expander 30 and the first refraction device 401. Beamer 100. Specifically, the first beam splitter 90 is used to split the input light beam, wherein the split first beam is transmitted to the first refraction device 401, and the split second beam is transmitted to the second split beam. Beamer 100. As an example, the first beam splitter 90 may transmit one beam and reflect the other beam. The first refraction device 401 may be on the transmitted light beam and the second beam splitter 100 on the reflected light path, or the first refraction device 401 may be on the reflected light beam and the second beam splitter 100 on the transmitted light path. Taking FIG. 6( a ) as an example, the first beam is transmitted to the first refraction device 401 through the first beam splitter 90 , and the second beam is reflected to the second beam splitter 100 through the first beam splitter 90 . The second beam splitter 100 further splits the input beam, and the function of the second beam splitter 100 is similar to that of the first beam splitter 90 . Still taking FIG. 6( a ) as an example, one beam is reflected to the first refraction device 402 through the second beam splitter 100 , and the other beam is transmitted through the second beam splitter 100 . Based on the above method, on the basis of expanding the beam by the optical beam expander 30, a new beam can also be added through the first beam splitter 90 and the second beam splitter 100, which is equivalent to expanding the beam in the second direction. With further beam expansion, the number of copies of the target sequence is further doubled, which improves the computational efficiency. It should be understood that since the light beam is split into two paths in the second direction, then the devices behind the first beam splitter 90 and the second beam splitter 100 also need to be increased by one group accordingly, for example, as shown in FIG. 6( a ). The first refraction device 402, the two-dimensional SLM 502, the second refraction device 602 and the photodetector 702 are shown. In addition, the first refraction device 40 with a larger size can also be used so that it can receive two beams, so that there is no need to configure two first refraction devices. Similarly, the two-dimensional SLM 50 , the second refraction device 60 and the photodetector 70 may also use larger devices, which will not be repeated here. It should be noted that the above-mentioned first beam splitter 90 and the second beam splitter 100 perform light splitting based on the energy of the light beam, and the present application does not limit the light splitting ratio.

图6(b)与图6(a)的区别在于,图6(b)所示的第一分束器90和第二分束器100是在第一方向上对输入的光束进行分路,目标序列复制的数量也可以实现进一步翻倍,提高了运算效率。第一分束器90和第二分束器100的工作原理与上述图6(a)所示实施例的介绍类似,此处不再赘述。应理解,在实际应用中,可以采用图6(a)所示的方式对光束进行分路,也可以采用图6(b)所示的方式对光束进行分路,还可以同时采用图6(a)和图6(b)所示的方式对光束进行分路,具体此处不做限定。需要说明的是,除了新增的第一分束器90反射至第二分束器100,本实施例中的其他器件都与实施例一介绍的器件类似,此处不再赘述。实施例三中的光源10和光扩束装置30也可以采用实施例二中介绍的结构,具体此处不做限定。The difference between Fig. 6(b) and Fig. 6(a) is that the first beam splitter 90 and the second beam splitter 100 shown in Fig. 6(b) split the input light beam in the first direction, The number of copies of the target sequence can also be further doubled, improving the computational efficiency. The working principles of the first beam splitter 90 and the second beam splitter 100 are similar to those described in the embodiment shown in FIG. 6( a ), and will not be repeated here. It should be understood that in practical applications, the beam can be divided in the manner shown in FIG. 6(a), or the beam can be divided in the manner shown in FIG. The methods shown in a) and FIG. 6(b) split the light beams, which are not specifically limited here. It should be noted that, except that the newly added first beam splitter 90 is reflected to the second beam splitter 100 , other devices in this embodiment are similar to those described in Embodiment 1, and will not be repeated here. The light source 10 and the optical beam expander 30 in the third embodiment may also adopt the structure introduced in the second embodiment, which is not limited here.

实施例四:Embodiment four:

图7为本申请中光学相关器的另一种平面俯视图。如图7所示,实施例四与实施例一的区别在于,实施例四中在光扩束装置30和第一折射装置401之间增加了第一偏振分束器110和第二偏振分束器120。实施例四与实施例三的区别在于,第一偏振分束器110和第二偏振分束器120是基于输入光束的偏振方向进行分路的。具体地,第一偏振分束器110用于对输入的光束进行分路,其中,分路后第一偏振方向的光束传输至第一折射装置401,分路后第二偏振方向的光束传输至第二分束器100。作为一个示例,第一偏振分束器110可以将一路光束透射出去,并将另一路光束反射出去。第一折射装置401可以在透射的光束上,第二偏振分束器120在反射的光路上,或者,第一折射装置401可以在反射的光束上,第二偏振分束器120在透射的光路上。以图7为例,第一偏振方向的光束透射至第一折射装置401,第二偏振方向的光束反射至第二偏振分束器120。其中,第一偏振方向与第二偏振方向相互正交。由于第二偏振分束器120接收到的只有第二偏振方向的光束,只需要将第二偏振方向的光束反射至第一折射装置402,不会再有光束透过第二偏振分束器120,相对于实施例三减少了光束不必要的浪费。基于上述方式,在光扩束装置30对光束进行扩束的基础上,还可以通过第一偏振分束器110和第二偏振分束器120新增了一路光束,相当于对目标序列复制的数量也进一步翻倍,提高了运算效率。应理解,上述第一偏振方向和第二偏振方向可以是在如图7所示俯视图的平面内相互正交,也可以是在如图6(a)所示主视图的平面内相互正交,具体此处不做限定。还应理解,由于光束分成了两路,那么在第一偏振分束器110和第二偏振分束器120之后的器件也都相应地需要增加一组,例如图7中所示的第一折射装置402、二维SLM 502、第二折射装置602和光探测器702。除此之外,也可以采用尺寸更大的第一折射装置40,使其能够接收两路光束,这样就无需配置两个第一折射装置。同理,二维SLM 50、第二折射装置60和光探测器70也可以采用尺寸更大的器件,此处不再一一赘述。需要说明的是,除了新增的第一偏振分束器110和第二偏振分束器120,本实施例中的其他器件都与实施例一介绍的器件类似,此处不再赘述。实施例四中的光源10和光扩束装置30也可以采用实施例二中介绍的结构,具体此处不做限定。Fig. 7 is another top plan view of the optical correlator in the present application. As shown in Figure 7, the difference between Embodiment 4 and Embodiment 1 is that in Embodiment 4, a first polarization beam splitter 110 and a second polarization beam splitter 110 are added between the optical beam expander 30 and the first refraction device 401 device 120. The difference between the fourth embodiment and the third embodiment is that the first polarizing beam splitter 110 and the second polarizing beam splitter 120 perform splitting based on the polarization direction of the input beam. Specifically, the first polarization beam splitter 110 is used to split the input beam, where the beam in the first polarization direction is transmitted to the first refraction device 401 after the split, and the beam in the second polarization direction is transmitted to the The second beam splitter 100. As an example, the first polarization beam splitter 110 can transmit one beam and reflect the other beam. The first refraction device 401 may be on the transmitted beam, and the second polarizing beam splitter 120 is on the reflected light path, or the first refracting device 401 may be on the reflected beam, and the second polarizing beam splitter 120 is on the transmitted light on the way. Taking FIG. 7 as an example, the light beam in the first polarization direction is transmitted to the first refraction device 401 , and the light beam in the second polarization direction is reflected to the second polarization beam splitter 120 . Wherein, the first polarization direction and the second polarization direction are orthogonal to each other. Since the second polarization beam splitter 120 receives only the light beam of the second polarization direction, it only needs to reflect the light beam of the second polarization direction to the first refraction device 402, and no light beam will pass through the second polarization beam splitter 120 , compared with the third embodiment, the unnecessary waste of light beams is reduced. Based on the above method, on the basis of expanding the beam by the optical beam expander 30, a new beam can also be added through the first polarizing beam splitter 110 and the second polarizing beam splitter 120, which is equivalent to copying the target sequence The number is further doubled, which improves the computing efficiency. It should be understood that the above-mentioned first polarization direction and the second polarization direction may be mutually orthogonal in the plane of the plan view as shown in FIG. 7, or may be mutually orthogonal in the plane of the front view as shown in FIG. 6(a), Specifically, there is no limitation here. It should also be understood that since the light beam is divided into two paths, the devices after the first polarizing beam splitter 110 and the second polarizing beam splitter 120 need to be added correspondingly, such as the first refraction beam shown in FIG. device 402 , two-dimensional SLM 502 , second refraction device 602 and light detector 702 . In addition, the first refraction device 40 with a larger size may also be used so that it can receive two beams, so that there is no need to configure two first refraction devices. Similarly, the two-dimensional SLM 50 , the second refraction device 60 and the photodetector 70 may also use larger devices, which will not be repeated here. It should be noted that, except for the newly added first polarizing beam splitter 110 and the second polarizing beam splitter 120 , other devices in this embodiment are similar to those described in Embodiment 1, and will not be repeated here. The light source 10 and the optical beam expander 30 in the fourth embodiment may also adopt the structure introduced in the second embodiment, which is not limited here.

实施例五:Embodiment five:

图8(a)为本申请中光学相关器的另一种平面主视图。图8(b)为本申请中光学相关器的另一种平面主视图。图8(c)为本申请中光学相关器的另一种平面主视图。如图8(a)所示,实施例五与实施例一的区别在于,实施例五中一维SLM 20和二维SLM 50采用的都是反射式的SLM,并且新增了反光装置130和分束器140来改变光路,从而实现了折叠式的光路。实施例五的实现方式避免了所有器件都沿着同一个方向排布,通过折叠式的光路更便于在有限的空间内集成,也更容易实现小型化。具体地,一维SLM 20将调制后的光束反射至光扩束装置30。反光装置130将光扩束装置30输出的光束反射至第一折射装置40。分束器140对第一折射装置40输出的光束进行分路,其中,经分束器140反射的一路光束传输至二维SLM50。之后,分束器140再对二维SLM 50反射回的光束进行分路,其中,经分束器140透射的一路光束传输至第二折射装置60。经分束器140反射的一路光束也会传输回第一折射装置40,在回光光路上的各器件可以通过设计使其对回光不敏感。应理解,除了上述介绍的区别点,实施例五中光学相关器的其他器件都与实施例一介绍的器件类似,此处不再赘述。Fig. 8(a) is another planar front view of the optical correlator in this application. Fig. 8(b) is another planar front view of the optical correlator in this application. Fig. 8(c) is another planar front view of the optical correlator in this application. As shown in Figure 8(a), the difference between the fifth embodiment and the first embodiment is that the one-dimensional SLM 20 and the two-dimensional SLM 50 in the fifth embodiment are reflective SLMs, and a new reflective device 130 and The beam splitter 140 is used to change the optical path, thereby realizing a folded optical path. The implementation of the fifth embodiment avoids that all devices are arranged in the same direction, and the folded optical path facilitates integration in a limited space and facilitates miniaturization. Specifically, the one-dimensional SLM 20 reflects the modulated beam to the optical beam expander 30 . The reflective device 130 reflects the beam output by the beam expander 30 to the first refracting device 40 . The beam splitter 140 splits the beam output by the first refraction device 40 , wherein one beam reflected by the beam splitter 140 is transmitted to the two-dimensional SLM 50 . Afterwards, the beam splitter 140 splits the light beams reflected by the two-dimensional SLM 50 , wherein one beam transmitted by the beam splitter 140 is transmitted to the second refraction device 60 . A beam of light reflected by the beam splitter 140 will also be transmitted back to the first refraction device 40, and the components on the return light path can be designed to be insensitive to the return light. It should be understood that, except for the differences described above, other components of the optical correlator in Embodiment 5 are similar to those described in Embodiment 1, and will not be repeated here.

图8(b)与图8(a)的区别在于,图8(b)所示的实施例中一维SLM 20为反射式SLM,二维SLM 50为透射式SLM,除此之外的其他组件的功能都与图8(a)所示的实施例类似,此处不再一一赘述。图8(c)与图8(a)的区别在于,图8(c)所示的实施例中一维SLM 20为透射式SLM,二维SLM 50为反射式SLM,并且新增了反光装置150。反光装置150用于将光扩束装置30输出的光束反射至反光装置130,除此之外的其他组件的功能都与图8(a)所示的实施例类似,此处不再一一赘述。应理解,在上述图8(a)-图8(c)所示实施例的基础上,还可以通过类似反光装置和分束器等器件灵活地改变光路,基于这种设计思路的其他类似实施方式都在本申请的保护范围之内。还应理解,实施例五还可以与实施例二至实施例四中至少一种实现方式的区别点相结合来使用,具体此处不做限定。The difference between Fig. 8(b) and Fig. 8(a) is that in the embodiment shown in Fig. 8(b), the one-dimensional SLM 20 is a reflective SLM, the two-dimensional SLM 50 is a transmissive SLM, and other The functions of the components are similar to those of the embodiment shown in FIG. 8( a ), and will not be repeated here. The difference between Fig. 8(c) and Fig. 8(a) is that in the embodiment shown in Fig. 8(c), the one-dimensional SLM 20 is a transmissive SLM, the two-dimensional SLM 50 is a reflective SLM, and a new reflective device is added. 150. The light reflecting device 150 is used to reflect the light beam output by the optical beam expander 30 to the light reflecting device 130, and the functions of other components are similar to the embodiment shown in Fig. 8(a), and will not be repeated here. . It should be understood that on the basis of the above-mentioned embodiments shown in Figure 8(a)-Figure 8(c), the light path can also be flexibly changed through devices such as reflectors and beam splitters, and other similar implementations based on this design idea All methods are within the protection scope of the present application. It should also be understood that Embodiment 5 may also be used in combination with the differences of at least one implementation manner in Embodiment 2 to Embodiment 4, which is not specifically limited here.

实施例六:Embodiment six:

实施例六与上述几个实施例的区别在于,实施例六可以只用一个折射装置来实现上述第一折射装置和第二折射装置的功能。也就是说,实施例六中只需要设置折射装置40,折射装置40先后实现一次光学傅里叶变换和一次光学傅里叶逆变换,在一些应用场景中,可以减少光学相关器的组件,节省成本和使用空间。应理解,在实施例六中二维SLM 50需要采用反射式的SLM,下面通过几个具体的示例进行介绍。图9(a)为本申请中光学相关器的另一种平面主视图。图9(b)为本申请中光学相关器的另一种平面主视图。图9(c)为本申请中光学相关器的另一种平面俯视图。图9(d)为本申请中光学相关器的另一种平面俯视图。The difference between the sixth embodiment and the above-mentioned several embodiments is that in the sixth embodiment, only one refraction device can be used to realize the functions of the above-mentioned first refraction device and the second refraction device. That is to say, in the sixth embodiment, only the refraction device 40 needs to be provided, and the refraction device 40 successively realizes an optical Fourier transform and an optical inverse Fourier transform. In some application scenarios, the components of the optical correlator can be reduced, saving cost and use of space. It should be understood that in the sixth embodiment, the two-dimensional SLM 50 needs to adopt a reflective SLM, which will be described below through several specific examples. Fig. 9(a) is another planar front view of the optical correlator in this application. Fig. 9(b) is another planar front view of the optical correlator in this application. Fig. 9(c) is another top plan view of the optical correlator in this application. Fig. 9(d) is another top plan view of the optical correlator in the present application.

如图9(a)所示,该实施方式采用了类似上述图8(a)所示的折叠式光路。具体地,一维SLM 20和二维SLM 50采用的都是反射式的SLM。一维SLM 20将调制后的光束反射至光扩束装置30。反光装置130将光扩束装置30输出的光束反射至分束器140。分束器140对输入的光束进行分路,其中,经分束器140反射的一路光束传输至折射装置40。折射装置40先对输入的光束进行会聚,再对二维SLM 50反射回的光束进行准直,并输出光束至分束器140。分束器140再对来自折射装置40的光束进行分路,其中,经分束器140透射的一路光束传输至光探测器70。As shown in Fig. 9(a), this embodiment adopts a folded optical path similar to that shown in Fig. 8(a) above. Specifically, both the one-dimensional SLM 20 and the two-dimensional SLM 50 are reflective SLMs. The one-dimensional SLM 20 reflects the modulated beam to the beam expander 30 . The reflective device 130 reflects the beam output by the beam expander 30 to the beam splitter 140 . The beam splitter 140 splits the input beams, wherein one beam reflected by the beam splitter 140 is transmitted to the refraction device 40 . The refraction device 40 first converges the input beam, then collimates the beam reflected by the two-dimensional SLM 50 , and outputs the beam to the beam splitter 140 . The beam splitter 140 then splits the beam from the refraction device 40 , wherein one beam transmitted by the beam splitter 140 is transmitted to the photodetector 70 .

如图9(b)所示,该实施方式采用了类似上述图8(c)所示的折叠式光路。具体地,一维SLM 20为透射式SLM,二维SLM 50为反射式SLM。一维SLM 20将调制后的光束透射至光扩束装置30。反光装置150将光扩束装置30输出的光束反射至反光装置130。反光装置130再将光束反射至分束器140。分束器140对输入的光束进行分路,其中,经分束器140反射的一路光束传输至折射装置40。折射装置40先对输入的光束进行会聚,再对二维SLM 50反射回的光束进行准直,并输出光束至分束器140。分束器140再对来自折射装置40的光束进行分路,其中,经分束器140透射的一路光束传输至光探测器70。As shown in Fig. 9(b), this embodiment adopts a folded optical path similar to that shown in Fig. 8(c) above. Specifically, the one-dimensional SLM 20 is a transmissive SLM, and the two-dimensional SLM 50 is a reflective SLM. The one-dimensional SLM 20 transmits the modulated beam to the beam expander 30 . The reflective device 150 reflects the light beam output by the beam expander 30 to the reflective device 130 . The light reflecting device 130 reflects the beam to the beam splitter 140 again. The beam splitter 140 splits the input beams, wherein one beam reflected by the beam splitter 140 is transmitted to the refraction device 40 . The refraction device 40 first converges the input beam, then collimates the beam reflected by the two-dimensional SLM 50 , and outputs the beam to the beam splitter 140 . The beam splitter 140 then splits the beam from the refraction device 40 , wherein one beam transmitted by the beam splitter 140 is transmitted to the photodetector 70 .

应理解,除了上述介绍的区别点,图9(a)和图9(b)中所示光学相关器的其他器件都与实施例一介绍的器件类似,此处不再赘述。还应理解,图9(a)和图9(b)中所示光学相关器还可以与实施例二至实施例四中至少一种实现方式的区别点相结合来使用,具体此处不做限定。上述图9(a)和图9(b)可以理解为是在实施例五的基础上进行的变换,下面的图9(c)可以理解为是在实施例三的基础上进行的变换,图9(d)可以理解为是在实施例四的基础上进行的变换。It should be understood that other components of the optical correlator shown in FIG. 9( a ) and FIG. 9( b ) are similar to those described in Embodiment 1 except for the differences described above, and will not be repeated here. It should also be understood that the optical correlators shown in FIG. 9(a) and FIG. 9(b) can also be used in combination with the differences of at least one implementation in Embodiment 2 to Embodiment 4, which will not be specifically described here. limited. The above-mentioned Fig. 9 (a) and Fig. 9 (b) can be understood as the transformation carried out on the basis of the fifth embodiment, and the following Fig. 9 (c) can be understood as the transformation carried out on the basis of the third embodiment, Fig. 9(d) can be understood as a transformation based on the fourth embodiment.

如图9(c)所示,该实施方式采用了类似上述图6(b)所示的光路。具体地,一维SLM20为透射式SLM,二维SLM 50为反射式SLM。第一分束器90对来自光扩束装置30的光束进行分路,其中一路光束经过第一分束器90透射至折射装置401,另一路光束经过第一分束器90反射至第二分束器100。第二分束器100进一步对输入的光束进行分路,其中一路光束经过第二分束器100反射至折射装置402,另一路光束经过第二分束器100透射出去。折射装置401先对输入的光束进行会聚,再对二维SLM 501反射回的光束进行准直,并输出光束至第一分束器90。同理,折射装置402先对输入的光束进行会聚,再对二维SLM 502反射回的光束进行准直,并输出光束至第二分束器100。第一分束器90再对来自折射装置401的光束进行分路,其中,经分束器140反射的一路光束传输至光探测器701。第二分束器100再对来自折射装置402的光束进行分路,其中,经分束器100透射的一路光束传输至光探测器702。As shown in Fig. 9(c), this embodiment adopts an optical path similar to that shown in Fig. 6(b) above. Specifically, the one-dimensional SLM 20 is a transmissive SLM, and the two-dimensional SLM 50 is a reflective SLM. The first beam splitter 90 splits the beam from the optical beam expander 30, wherein one beam is transmitted to the refraction device 401 through the first beam splitter 90, and the other beam is reflected to the second splitter through the first beam splitter 90. Beamer 100. The second beam splitter 100 further splits the input beams, wherein one beam is reflected to the refraction device 402 through the second beam splitter 100 , and the other beam is transmitted through the second beam splitter 100 . The refraction device 401 first converges the input beam, then collimates the beam reflected by the two-dimensional SLM 501 , and outputs the beam to the first beam splitter 90 . Similarly, the refraction device 402 first converges the input beam, then collimates the beam reflected by the two-dimensional SLM 502 , and outputs the beam to the second beam splitter 100 . The first beam splitter 90 then splits the beam from the refraction device 401 , wherein one beam reflected by the beam splitter 140 is transmitted to the photodetector 701 . The second beam splitter 100 then splits the beam from the refraction device 402 , wherein one beam transmitted by the beam splitter 100 is transmitted to the photodetector 702 .

如图9(d)所示,该实施方式采用了类似上述图7所示的光路。具体地,一维SLM 20为透射式SLM,二维SLM 50为反射式SLM。第一偏振分束器110对来自光扩束装置30的光束进行分路,其中第一偏振方向的光束经过第一分束器110透射至折射装置401,第二偏振方向的光束经过第一分束器110反射至第二偏振分束器120。第二偏振分束器120进一步将第二偏振方向的光束反射至折射装置402。折射装置401先对输入的光束进行会聚,再对二维SLM501反射回的光束进行准直,并输出第一偏振方向的光束至第一偏振分束器110。同理,折射装置402先对输入的光束进行会聚,再对二维SLM 502反射回的光束进行准直,并输出第二偏振方向的光束至第二偏振分束器120。第一偏振分束器110再将第一偏振方向的光束反射至光探测器701。第二分束器100再将第二偏振方向的光束透射至光探测器702。应理解,除了上述介绍的区别点,图9(c)和图9(d)中所示光学相关器的其他器件都与实施例一介绍的器件类似,此处不再赘述。还应理解,图9(c)和图9(d)中的光源10和光扩束装置30也可以采用实施例二中介绍的结构,具体此处不做限定。As shown in FIG. 9( d ), this embodiment employs an optical path similar to that shown in FIG. 7 above. Specifically, the one-dimensional SLM 20 is a transmissive SLM, and the two-dimensional SLM 50 is a reflective SLM. The first polarization beam splitter 110 splits the light beam from the optical beam expander 30, wherein the light beam in the first polarization direction is transmitted to the refraction device 401 through the first beam splitter 110, and the light beam in the second polarization direction passes through the first splitting The beam splitter 110 reflects to the second polarizing beam splitter 120 . The second polarization beam splitter 120 further reflects the light beam in the second polarization direction to the refraction device 402 . The refraction device 401 first converges the input beam, then collimates the beam reflected by the two-dimensional SLM 501 , and outputs the beam in the first polarization direction to the first polarization beam splitter 110 . Similarly, the refraction device 402 first converges the input beam, then collimates the beam reflected by the two-dimensional SLM 502 , and outputs the beam with the second polarization direction to the second polarization beam splitter 120 . The first polarization beam splitter 110 then reflects the light beam in the first polarization direction to the light detector 701 . The second beam splitter 100 then transmits the light beam in the second polarization direction to the light detector 702 . It should be understood that other components of the optical correlator shown in FIG. 9( c ) and FIG. 9( d ) are similar to those described in Embodiment 1 except for the differences described above, and will not be repeated here. It should also be understood that the light source 10 and the beam expander 30 in FIG. 9(c) and FIG. 9(d) may also adopt the structure introduced in Embodiment 2, which is not specifically limited here.

本申请实施例还提供了一种光计算装置,光计算装置中可以集成上述任一实施例介绍的光学相关器。并且,该光计算装置还包括处理器。具体地,处理器用于向光学相关器中的控制器输出一组目标序列和多组参考序列。进而,控制器向一维SLM发送一组目标序列对应的电信号,并向二维SLM发送多组参考序列对应的电信号。此外,控制器还可以将一组目标序列与多组参考序列的匹配结果输出至处理器。处理器进一步结合实际的应用场景来根据匹配结果进行相应处理,例如,根据基因序列的匹配结果进一步判断其对应的疾病等。需要说明的是,光计算装置可以是服务器,也可以是单板等,具体此处不做限定。The embodiment of the present application also provides an optical computing device, and the optical correlator introduced in any of the above embodiments can be integrated in the optical computing device. Moreover, the optical computing device further includes a processor. Specifically, the processor is used to output a set of target sequences and multiple sets of reference sequences to the controller in the optical correlator. Furthermore, the controller sends a set of electrical signals corresponding to the target sequence to the one-dimensional SLM, and sends multiple sets of electrical signals corresponding to the reference sequence to the two-dimensional SLM. In addition, the controller can also output the matching results of a set of target sequences and multiple sets of reference sequences to the processor. The processor further combines the actual application scenarios to perform corresponding processing according to the matching results, for example, further judging the corresponding diseases according to the matching results of the gene sequence. It should be noted that the optical computing device may be a server, or a single board, etc., which is not specifically limited here.

本申请实施例中,在空间上对一维SLM调制后的光进行扩束,从而可以将一维SLM上加载的一排目标序列复制为相同的多排目标序列。之后,这多排相同的目标序列可以同时与二维SLM上加载的多排参考序列进行相关运算以实现一对一匹配。相当于一次运算就完成了目标序列与多组参考序列的匹配,减少了相关运算的耗时,提高了序列的匹配效率。In the embodiment of the present application, the beam modulated by the one-dimensional SLM is spatially expanded, so that a row of target sequences loaded on the one-dimensional SLM can be copied into the same multiple rows of target sequences. Afterwards, the multiple rows of the same target sequence can be correlated with multiple rows of reference sequences loaded on the 2D SLM at the same time to achieve one-to-one matching. It is equivalent to completing the matching of the target sequence and multiple sets of reference sequences in one operation, reducing the time consumption of correlation operations and improving the efficiency of sequence matching.

上面对本申请实施例中的光学相关器进行了介绍,下面对采用上述光学相关器实现的一种光学相关运算方法进行介绍。图10为本申请提供的一种光学相关运算方法的实施例示意图。在该实施例中,光学相关运算方法包括如下步骤。The optical correlator in the embodiment of the present application has been introduced above, and an optical correlation operation method realized by using the above optical correlator will be introduced below. FIG. 10 is a schematic diagram of an embodiment of an optical correlation calculation method provided by the present application. In this embodiment, the optical correlation calculation method includes the following steps.

1001、通过光源发射光束。1001. Emit a light beam through a light source.

本实施例所采用的光源可以如上述实施例一和实施例二任一实施例中的光源所示,此处不再赘述。The light source used in this embodiment may be as shown in any one of the first and second embodiments above, and will not be repeated here.

1002、通过一维SLM对光源输出的光束进行调制。1002. Use a one-dimensional SLM to modulate the light beam output by the light source.

本实施例中,一维SLM的具体功能实现可以参考上述实施例一的相关描述,此处不再赘述。In this embodiment, for the implementation of specific functions of the one-dimensional SLM, reference may be made to the relevant description of the first embodiment above, and details are not repeated here.

1003、通过光扩束装置在第二方向上对经过一维SLM调制后的光束进行扩束。1003. Expand the beam modulated by the one-dimensional SLM in the second direction by using the beam expander.

本实施例所采用的光扩束装置可以如上述实施例一和实施例二任一实施例中的光扩束装置所示,此处不再赘述。The optical beam expander used in this embodiment may be shown as the optical beam expander in any one of the first and second embodiments above, and will not be repeated here.

1004、通过第一折射装置在第一方向上对扩束后的光束进行会聚。1004. Converge the expanded beam in the first direction by using the first refracting device.

本实施例中,第一折射装置的具体功能实现可以参考上述实施例一的相关描述,此处不再赘述。In this embodiment, for the implementation of specific functions of the first refraction device, reference may be made to the relevant description of the first embodiment above, and details are not repeated here.

1005、通过二维SLM对经过第一折射装置会聚后的光束进行调制。1005. Use a two-dimensional SLM to modulate the beam converged by the first refraction device.

本实施例中,二维SLM的具体功能实现可以参考上述实施例一的相关描述,此处不再赘述。In this embodiment, for the implementation of specific functions of the two-dimensional SLM, reference may be made to the relevant description of the above-mentioned Embodiment 1, and details are not repeated here.

1006、通过第二折射装置对经过二维SLM调制后的光束进行准直。1006. Collimate the light beam modulated by the two-dimensional SLM by using the second refraction device.

本实施例中,第二折射装置的具体功能实现可以参考上述实施例一的相关描述,此处不再赘述。In this embodiment, the implementation of the specific functions of the second refraction device can refer to the relevant description of the first embodiment above, and will not be repeated here.

1007、通过光探测器对经过第二折射装置准直后的光束进行像素采集,以得到多个相关峰的光场信息。1007. Use a photodetector to collect pixels of the light beam collimated by the second refraction device, so as to obtain light field information of multiple correlation peaks.

本实施例中,光探测器的具体功能实现可以参考上述实施例一的相关描述,此处不再赘述。In this embodiment, the implementation of the specific functions of the photodetector can refer to the related description of the above-mentioned embodiment 1, which will not be repeated here.

在一些可能的实施方式中,还可以通过控制器为一维SLM和二维SLM提供输入的电信号,并通过控制器接收光探测器输出的电信号。具体请参阅上述图2所示实施例关于控制器的相关描述,此处不再赘述。In some possible implementation manners, the controller may also provide input electrical signals for the one-dimensional SLM and the two-dimensional SLM, and receive the electrical signals output by the photodetector through the controller. For details, please refer to the relevant description about the controller in the above-mentioned embodiment shown in FIG. 2 , which will not be repeated here.

在一些可能的实施方式中,在光扩束装置对光束进行扩束的基础上,还可以通过第一分束器和第二分束器的处理新增了一路光束,相当于对目标序列复制的数量也进一步翻倍,提高了运算效率。具体请参阅上述实施例三的相关描述,此处不再赘述。In some possible implementations, on the basis of expanding the beam by the optical beam expander, a new beam can also be added through the processing of the first beam splitter and the second beam splitter, which is equivalent to duplicating the target sequence The number of is further doubled, which improves the computing efficiency. For details, please refer to the relevant description of the third embodiment above, and details are not repeated here.

在一些可能的实施方式中,在光扩束装置对光束进行扩束的基础上,还可以通过第一偏振分束器和第二偏振分束器的处理新增了一路光束,相当于对目标序列复制的数量也进一步翻倍,提高了运算效率。具体请参阅上述实施例四的相关描述,此处不再赘述。In some possible implementations, on the basis of expanding the beam by the optical beam expander, a new beam can also be added through the processing of the first polarizing beam splitter and the second polarizing beam splitter, which is equivalent to the target The number of sequence replications is also further doubled, improving operational efficiency. For details, please refer to the relevant description of the fourth embodiment above, which will not be repeated here.

在一些可能的实施方式中,还以通过反光装置和分束器等装置来改变光束在光学相关器中的光路,从而实现了折叠式的光路,避免了所有器件都沿着同一个方向排布,通过折叠式的光路更便于在有限的空间内集成,也更容易实现小型化。具体请参阅上述实施例五的相关描述,此处不再赘述。In some possible implementations, the optical path of the light beam in the optical correlator is changed by means of reflective devices, beam splitters and other devices, thereby realizing a folded optical path and avoiding that all devices are arranged in the same direction , it is easier to integrate in a limited space through the folded optical path, and it is also easier to realize miniaturization. For details, please refer to the relevant description of the fifth embodiment above, which will not be repeated here.

需要说明的是,上述图10所示的实施例主要是基于上述实施例一至实施例五的光学相关器结构的实现方法。在一些可能的实施方式中,还可以采用上述实施例六介绍的光学相关器来实现相应的光学相关运算方法。具体请参阅上述实施例六的相关描述,此处不再赘述。It should be noted that the above-mentioned embodiment shown in FIG. 10 is mainly based on the realization method of the optical correlator structure in the above-mentioned first to fifth embodiments. In some possible implementation manners, the optical correlator introduced in Embodiment 6 above may also be used to implement a corresponding optical correlation calculation method. For details, please refer to the relevant description of the sixth embodiment above, which will not be repeated here.

以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。The above is only the specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application, and should cover Within the protection scope of this application.

Claims (21)

1.一种光学相关器,其特征在于,包括:光源、一维空间光调制器SLM、光扩束装置、第一折射装置、二维SLM、第二折射装置和光探测器,所述第一折射装置的后焦面与所述第二折射装置的前焦面重合,所述光扩束装置的出瞳平面位于所述第一折射装置的前焦面,所述二维SLM位于所述第一折射装置的后焦面,所述光探测器位于所述第二折射装置的后焦面;1. An optical correlator, characterized in that it comprises: a light source, a one-dimensional spatial light modulator SLM, an optical beam expander, a first refraction device, a two-dimensional SLM, a second refraction device and a light detector, the first The rear focal plane of the refraction device coincides with the front focal plane of the second refraction device, the exit pupil plane of the beam expander is located at the front focal plane of the first refraction device, and the two-dimensional SLM is located at the first focal plane of the first refraction device. a back focal plane of a refraction device, the photodetector is located at the back focal plane of the second refraction device; 所述光源用于发射光束;The light source is used to emit light beams; 所述一维SLM用于对所述光源输出的光束进行调制,所述一维SLM上加载有一组目标序列对应的电信号,所述一维SLM包括在第一方向上排列的一排像素点;The one-dimensional SLM is used to modulate the light beam output by the light source, the one-dimensional SLM is loaded with a group of electrical signals corresponding to the target sequence, and the one-dimensional SLM includes a row of pixels arranged in a first direction ; 所述光扩束装置用于在第二方向上对经过所述一维SLM调制后的光束进行扩束,所述第二方向与所述第一方向垂直,并且所述第二方向与光束输入所述光扩束装置的方向垂直;The optical beam expander is used to expand the beam modulated by the one-dimensional SLM in a second direction, the second direction is perpendicular to the first direction, and the second direction is parallel to the beam input The direction of the optical beam expander is vertical; 所述第一折射装置用于在所述第一方向上对所述扩束后的光束进行会聚;The first refraction device is used to converge the expanded beam in the first direction; 所述二维SLM用于对所述会聚后的光束进行调制,所述二维SLM上加载有多组参考序列对应的电信号,所述二维SLM包括在所述第一方向上排列的多排像素点;The two-dimensional SLM is used to modulate the converged light beam, the two-dimensional SLM is loaded with electrical signals corresponding to multiple sets of reference sequences, and the two-dimensional SLM includes multiple sets of signals arranged in the first direction Row pixels; 所述第二折射装置用于对经过所述二维SLM调制后的光束进行准直;The second refraction device is used to collimate the light beam modulated by the two-dimensional SLM; 所述光探测器用于对经过所述第二折射装置准直后的光束进行像素采集。The light detector is used to collect pixels of the light beam collimated by the second refraction device. 2.根据权利要求1所述的光学相关器,其特征在于,所述一维SLM将调制后的光束透射至所述光扩束装置,所述二维SLM将调制后的光束透射至所述第二折射装置。2. The optical correlator according to claim 1, wherein the one-dimensional SLM transmits the modulated beam to the optical beam expander, and the two-dimensional SLM transmits the modulated beam to the Second refraction device. 3.根据权利要求1或2所述的光学相关器,其特征在于,所述光学相关器还包括第一分束器和第二分束器;3. The optical correlator according to claim 1 or 2, wherein the optical correlator further comprises a first beam splitter and a second beam splitter; 所述第一分束器用于对所述扩束后的光束进行分路,其中,分路后的第一路光束传输至所述第一折射装置,分路后的第二路光束传输至所述第二分束器;The first beam splitter is used to split the expanded beam, wherein the split first beam is transmitted to the first refraction device, and the split second beam is transmitted to the the second beam splitter; 所述第二分束器用于将所述第二路光束传输至所述第一折射装置。The second beam splitter is used to transmit the second light beam to the first refraction device. 4.根据权利要求3所述的光学相关器,其特征在于,经过所述第一分束器分路后的其中一路光束沿所述第一方向或所述第二方向传输。4. The optical correlator according to claim 3, wherein one of the beams split by the first beam splitter is transmitted along the first direction or the second direction. 5.根据权利要求1或2所述的光学相关器,其特征在于,所述光学相关器还包括第一偏振分束器和第二偏振分束器;5. The optical correlator according to claim 1 or 2, wherein the optical correlator further comprises a first polarization beam splitter and a second polarization beam splitter; 所述第一偏振分束器用于对所述扩束后的光束进行分路,其中,所述第一偏振分束器将第一偏振方向的光束传输至所述第一折射装置,所述第一偏振分束器将第二偏振方向的光束传输至所述第二偏振分束器,所述第一偏振方向与所述第二偏振方向相互正交;The first polarization beam splitter is used to split the expanded beam, wherein the first polarization beam splitter transmits the beam in the first polarization direction to the first refraction device, and the first polarization beam splitter A polarization beam splitter transmits the light beam of the second polarization direction to the second polarization beam splitter, and the first polarization direction and the second polarization direction are orthogonal to each other; 所述第二偏振分束器用于将所述第二偏振方向的光束传输至所述第一折射装置。The second polarization beam splitter is used to transmit the light beam in the second polarization direction to the first refraction device. 6.根据权利要求1所述的光学相关器,其特征在于,所述光学相关器还包括反光装置和第三分束器;6. The optical correlator according to claim 1, characterized in that, the optical correlator further comprises a light reflecting device and a third beam splitter; 所述一维SLM具体用于将调制后的光束反射至所述光扩束装置;The one-dimensional SLM is specifically used to reflect the modulated beam to the optical beam expander; 所述反光装置用于将所述扩束后的光束反射至所述第一折射装置;The reflective device is used to reflect the expanded beam to the first refracting device; 所述第三分束器用于将所述会聚后的光束传输至所述二维SLM;The third beam splitter is used to transmit the converged light beam to the two-dimensional SLM; 所述二维SLM用于对接收到的光束进行调制,并将调制后的光束反射至所述第三分束器;The two-dimensional SLM is used to modulate the received beam, and reflect the modulated beam to the third beam splitter; 所述第三分束器还用于将经过所述二维SLM调制后的光束传输至所述第二折射装置。The third beam splitter is also used to transmit the light beam modulated by the two-dimensional SLM to the second refraction device. 7.根据权利要求1至6中任一项所述的光学相关器,其特征在于,所述光扩束装置还用于在所述第一方向上对经过所述一维SLM调制后的光束进行缩束。7. The optical correlator according to any one of claims 1 to 6, wherein the optical beam expander is also used for adjusting the beam modulated by the one-dimensional SLM in the first direction Perform shrinkage. 8.根据权利要求1至7中任一项所述的光学相关器,其特征在于,所述光学相关器还包括控制器,所述控制器用于:8. The optical correlator according to any one of claims 1 to 7, wherein the optical correlator further comprises a controller, the controller is used for: 向所述一维SLM发送所述一组目标序列对应的电信号,以驱动所述一维SLM对所述光源输出的光束进行调制;Sending electrical signals corresponding to the set of target sequences to the one-dimensional SLM to drive the one-dimensional SLM to modulate the light beam output by the light source; 向所述二维SLM发送所述多组参考序列对应的电信号,以驱动所述二维SLM对接收到的光束进行调制;Sending electrical signals corresponding to the plurality of sets of reference sequences to the two-dimensional SLM to drive the two-dimensional SLM to modulate the received light beam; 接收所述光探测器发送的输出信号,并根据所述输出信号确定所述目标序列与所述多组参考序列的匹配结果。receiving an output signal sent by the photodetector, and determining a matching result between the target sequence and the multiple sets of reference sequences according to the output signal. 9.根据权利要求8所述的光学相关器,其特征在于,所述控制器还用于:9. The optical correlator according to claim 8, wherein the controller is also used for: 向所述一维SLM发送更新后的一组目标序列对应的电信号,以控制所述一维SLM对加载的目标序列进行更新;Sending an electrical signal corresponding to an updated set of target sequences to the one-dimensional SLM, so as to control the one-dimensional SLM to update the loaded target sequence; 向所述二维SLM发送更新后的多组参考序列对应的电信号,以控制所述二维SLM对加载的多组参考序列进行更新,其中,所述一维SLM的更新频率大于或等于所述二维SLM的更新频率。Sending electrical signals corresponding to the updated multiple sets of reference sequences to the two-dimensional SLM, so as to control the two-dimensional SLM to update the loaded multiple sets of reference sequences, wherein the update frequency of the one-dimensional SLM is greater than or equal to the The update frequency of the 2D SLM described above. 10.根据权利要求8或9所述的光学相关器,其特征在于,所述控制器还用于:10. The optical correlator according to claim 8 or 9, wherein the controller is further used for: 向所述一维SLM、所述二维SLM和所述光探测器发送控制信号,以控制所述一维SLM、所述二维SLM和所述光探测器保持时钟同步。Sending a control signal to the one-dimensional SLM, the two-dimensional SLM and the photodetector to control the one-dimensional SLM, the two-dimensional SLM and the photodetector to maintain clock synchronization. 11.一种光学相关运算方法,其特征在于,包括:11. An optical correlation calculation method, comprising: 通过光源发射光束;emit a beam of light through a light source; 通过一维空间光调制器SLM对所述光源输出的光束进行调制,所述一维SLM上加载有一组目标序列对应的电信号,所述一维SLM包括在第一方向上排列的一排像素点;The light beam output by the light source is modulated by a one-dimensional spatial light modulator SLM, the one-dimensional SLM is loaded with a group of electrical signals corresponding to the target sequence, and the one-dimensional SLM includes a row of pixels arranged in a first direction point; 通过光扩束装置在第二方向上对经过所述一维SLM调制后的光束进行扩束,所述第二方向与所述第一方向垂直,并且所述第二方向与光束输入所述光扩束装置的方向垂直;The light beam modulated by the one-dimensional SLM is expanded in a second direction by an optical beam expander, the second direction is perpendicular to the first direction, and the second direction is the same as the light beam input to the light beam The direction of the beam expander is vertical; 通过第一折射装置在所述第一方向上对所述扩束后的光束进行会聚;converging the expanded beam in the first direction by a first refracting device; 通过二维SLM对所述会聚后的光束进行调制,所述二维SLM上加载有多组参考序列对应的电信号,所述二维SLM包括在所述第一方向上排列的多排像素点;The converged light beam is modulated by a two-dimensional SLM, the two-dimensional SLM is loaded with electrical signals corresponding to multiple sets of reference sequences, and the two-dimensional SLM includes multiple rows of pixels arranged in the first direction ; 通过第二折射装置对经过所述二维SLM调制后的光束进行准直;Collimating the light beam modulated by the two-dimensional SLM through the second refraction device; 通过光探测器对对经过所述第二折射装置准直后的光束进行像素采集,其中,所述第一折射装置的后焦面与所述第二折射装置的前焦面重合,所述光扩束装置的出瞳平面位于所述第一折射装置的前焦面,所述二维SLM位于所述第一折射装置的后焦面,所述光探测器位于所述第二折射装置的后焦面。The light beam collimated by the second refraction device is collected by a photodetector, wherein the rear focal plane of the first refraction device coincides with the front focal plane of the second refraction device, and the light The exit pupil plane of the beam expander is located at the front focal plane of the first refraction device, the two-dimensional SLM is located at the back focal plane of the first refraction device, and the photodetector is located at the rear of the second refraction device focal surface. 12.根据权利要求11所述的方法,其特征在于,通过所述一维SLM对所述光源输出的光束进行调制之后,将调制后的光束透射至所述光扩束装置;12. The method according to claim 11, wherein after the light beam output by the light source is modulated by the one-dimensional SLM, the modulated light beam is transmitted to the optical beam expander; 通过所述二维SLM对所述会聚后的光束进行调制之后,将调制后的光束透射至所述第二折射装置。After the condensed light beam is modulated by the two-dimensional SLM, the modulated light beam is transmitted to the second refraction device. 13.根据权利要求11或12所述的方法,其特征在于,所述方法还包括:13. The method according to claim 11 or 12, characterized in that the method further comprises: 通过第一分束器对所述扩束后的光束进行分路,其中,分路后的第一路光束传输至所述第一折射装置,分路后的第二路光束传输至所述第二分束器;The expanded beam is split by a first beam splitter, wherein the split first beam is transmitted to the first refraction device, and the split second beam is transmitted to the first Two beam splitters; 通过第二分束器将所述第二路光束传输至所述第一折射装置。The second light beam is transmitted to the first refraction device through a second beam splitter. 14.根据权利要求13所述的方法,其特征在于,经过所述第一分束器分路后的其中一路光束沿所述第一方向或所述第二方向传输。14. The method according to claim 13, wherein one of the beams split by the first beam splitter is transmitted along the first direction or the second direction. 15.根据权利要求11或12所述的方法,其特征在于,所述方法还包括:15. The method according to claim 11 or 12, characterized in that the method further comprises: 通过第一偏振分束器对所述扩束后的光束进行分路,其中,所述第一偏振分束器将第一偏振方向的光束传输至所述第一折射装置,所述第一偏振分束器将第二偏振方向的光束传输至所述第二偏振分束器,所述第一偏振方向与所述第二偏振方向相互正交;The expanded beam is split by a first polarization beam splitter, wherein the first polarization beam splitter transmits the beam in the first polarization direction to the first refraction device, and the first polarization The beam splitter transmits the beam of the second polarization direction to the second polarization beam splitter, and the first polarization direction and the second polarization direction are orthogonal to each other; 通过第二偏振分束器将所述第二偏振方向的光束传输至所述第一折射装置。The light beam in the second polarization direction is transmitted to the first refraction device through a second polarization beam splitter. 16.根据权利要求11所述的方法,其特征在于,所述方法还包括:16. The method of claim 11, further comprising: 通过所述一维SLM将调制后的光束反射至所述光扩束装置;reflecting the modulated beam to the optical beam expander through the one-dimensional SLM; 通过反光装置用于将所述扩束后的光束反射至所述第一折射装置;Reflecting the expanded light beam to the first refracting device through a light reflecting device; 通过第三分束器将所述会聚后的光束传输至所述二维SLM;transmitting the converged light beam to the two-dimensional SLM through a third beam splitter; 通过所述二维SLM用于对接收到的光束进行调制,并将调制后的光束反射至所述第三分束器;The two-dimensional SLM is used to modulate the received beam, and reflect the modulated beam to the third beam splitter; 通过所述第三分束器将经过所述二维SLM调制后的光束传输至所述第二折射装置。The light beam modulated by the two-dimensional SLM is transmitted to the second refraction device through the third beam splitter. 17.根据权利要求11至16中任一项所述的方法,其特征在于,所述方法还包括:17. The method according to any one of claims 11 to 16, further comprising: 通过所述光扩束装置在所述第一方向上对经过所述一维SLM调制后的光束进行缩束。The light beam modulated by the one-dimensional SLM is reduced in the first direction by the optical beam expander. 18.根据权利要求11至17中任一项所述的方法,其特征在于,所述方法还包括:18. The method according to any one of claims 11 to 17, further comprising: 向所述一维SLM发送所述一组目标序列对应的电信号,以驱动所述一维SLM对所述光源输出的光束进行调制;Sending electrical signals corresponding to the set of target sequences to the one-dimensional SLM to drive the one-dimensional SLM to modulate the light beam output by the light source; 向所述二维SLM发送所述多组参考序列对应的电信号,以驱动所述二维SLM对接收到的光束进行调制;Sending electrical signals corresponding to the plurality of sets of reference sequences to the two-dimensional SLM to drive the two-dimensional SLM to modulate the received light beam; 接收所述光探测器发送的输出信号,并根据所述输出信号确定所述目标序列与所述多组参考序列的匹配结果。receiving an output signal sent by the photodetector, and determining a matching result between the target sequence and the multiple sets of reference sequences according to the output signal. 19.根据权利要求18所述的方法,其特征在于,所述方法还包括:19. The method of claim 18, further comprising: 向所述一维SLM发送更新后的一组目标序列对应的电信号,以控制所述一维SLM对加载的所述目标序列进行更新;Sending an electrical signal corresponding to the updated set of target sequences to the one-dimensional SLM, so as to control the one-dimensional SLM to update the loaded target sequence; 向所述二维SLM发送更新后的多组参考序列对应的电信号,以控制所述二维SLM对加载的所述多组参考序列进行更新,其中,所述一维SLM的更新频率大于或等于所述二维SLM的更新频率。Sending electrical signals corresponding to the updated sets of reference sequences to the two-dimensional SLM to control the two-dimensional SLM to update the loaded sets of reference sequences, wherein the update frequency of the one-dimensional SLM is greater than or is equal to the update frequency of the two-dimensional SLM. 20.根据权利要求18或19所述的方法,其特征在于,所述方法还包括:20. The method according to claim 18 or 19, further comprising: 向所述一维SLM、所述二维SLM和所述光探测器发送控制信号,以控制所述一维SLM、所述二维SLM和所述光探测器保持时钟同步。Sending a control signal to the one-dimensional SLM, the two-dimensional SLM and the photodetector to control the one-dimensional SLM, the two-dimensional SLM and the photodetector to maintain clock synchronization. 21.一种光计算装置,其特征在于,包括处理器和如权利要求1至10中任一项所述的光学相关器,所述处理器用于向所述光学相关器输出一组目标序列和多组参考序列。21. An optical computing device, comprising a processor and the optical correlator according to any one of claims 1 to 10, the processor is used to output a set of target sequences and Multiple sets of reference sequences.
CN202110484191.3A 2021-04-30 2021-04-30 Optical correlator, optical correlation computing method and optical computing device Pending CN115268090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110484191.3A CN115268090A (en) 2021-04-30 2021-04-30 Optical correlator, optical correlation computing method and optical computing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110484191.3A CN115268090A (en) 2021-04-30 2021-04-30 Optical correlator, optical correlation computing method and optical computing device

Publications (1)

Publication Number Publication Date
CN115268090A true CN115268090A (en) 2022-11-01

Family

ID=83745970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110484191.3A Pending CN115268090A (en) 2021-04-30 2021-04-30 Optical correlator, optical correlation computing method and optical computing device

Country Status (1)

Country Link
CN (1) CN115268090A (en)

Similar Documents

Publication Publication Date Title
US9330344B2 (en) Photonic processor with pattern matching and image recognition
EP1803077B1 (en) Optical correlation apparatus and method
US8285138B2 (en) Optical correlation apparatus
MXPA01003035A (en) Improvements relating to pattern recognition.
CN115564037A (en) Optical convolution computing system and method based on multi-imaging projection architecture
CN116258624A (en) Optical tensor convolution computing system and method based on multi-imaging projection architecture
JP2020516924A (en) Optical processing system
CN115268090A (en) Optical correlator, optical correlation computing method and optical computing device
US8145011B2 (en) Correlation apparatus
CN118050706A (en) A synthetic aperture radar optical processing system
US20230233057A1 (en) Visual data transfer between the end and side of a multimode fiber
CN115752726A (en) DMD-based variable-field-of-view wide-spectrum associated imaging system
Maleki et al. OptCAM: An ultra‐fast all‐optical architecture for DNA variant discovery
US20100027087A1 (en) Improvements to optical correlation apparatus
CN1053969C (en) Variable-angle-spacing optical beam splitting method and beam splitting and imaging device
RU2079874C1 (en) Optical digital multifunctional correlator
EP1400917A1 (en) improvements relating to pattern recognition and other inventions
SU1417037A1 (en) Optical associative correlator for storage
TW202518116A (en) Image display device
CN110426863A (en) A kind of quantum random switching
Shahriar et al. Demonstration of a super-parallel holographic correlator for ultrfast database search
Hsu et al. Implementation of projection of three-dimensional binary patterns using programmable fresnel lenslet arrays
HK1113839A (en) Optical correlation apparatus and method
Buczynski et al. Photonic morphological image processing
KR20070099573A (en) Beam splitter device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination