CN109272099B - Coincidence counting management method and device - Google Patents

Coincidence counting management method and device Download PDF

Info

Publication number
CN109272099B
CN109272099B CN201811093455.7A CN201811093455A CN109272099B CN 109272099 B CN109272099 B CN 109272099B CN 201811093455 A CN201811093455 A CN 201811093455A CN 109272099 B CN109272099 B CN 109272099B
Authority
CN
China
Prior art keywords
counting
combination
channel
coincidence
combinations
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.)
Active
Application number
CN201811093455.7A
Other languages
Chinese (zh)
Other versions
CN109272099A (en
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.)
Shanghai Siminics Photoelectric Technology Co ltd
Original Assignee
Shanghai Siminics Photoelectric Technology 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 Shanghai Siminics Photoelectric Technology Co ltd filed Critical Shanghai Siminics Photoelectric Technology Co ltd
Priority to CN201811093455.7A priority Critical patent/CN109272099B/en
Publication of CN109272099A publication Critical patent/CN109272099A/en
Application granted granted Critical
Publication of CN109272099B publication Critical patent/CN109272099B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M1/00Design features of general application
    • G06M1/27Design features of general application for representing the result of count in the form of electric signals, e.g. by sensing markings on the counter drum
    • G06M1/272Design features of general application for representing the result of count in the form of electric signals, e.g. by sensing markings on the counter drum using photoelectric means

Abstract

The application provides a coincidence counting management method and device. The method comprises the following steps: receiving a coincidence counting instruction, and analyzing the coincidence counting instruction to obtain a plurality of counting combinations and channel data of each counting combination; judging whether a combination containing relationship exists between the counting combinations according to the obtained channel data of the counting combinations, and dividing the counting combinations with the combination containing relationship into the same counting strategy; and photon generation time data of each optical channel corresponding to each counting strategy is obtained, and in a time period corresponding to a preset counting time length, the thread corresponding to the counting strategy is controlled to carry out coincidence counting on each optical channel corresponding to the counting strategy based on the preset time window width and the corresponding photon generation time data. The method can save system computing resources, improve coincidence counting efficiency among different optical channel combinations, remove the limitation of the number of the optical channels by equipment and improve the design flexibility of a scheme of photon correlation experiments.

Description

Coincidence counting management method and device
Technical Field
The application relates to the technical field of photon counting, in particular to a coincidence counting management method and device.
Background
With the rapid development of physical optics, people have higher requirements on single photon counting and analyzing systems in terms of functions and performance. When people determine the correlation among photons, coincidence counting needs to be performed on photon generation time data of different optical channels, and in order to ensure normal realization of real-time counting, a currently common coincidence counting management mode in the industry is to correspondingly allocate one thread to each channel combination for coincidence counting, wherein the channel combination is a combination of a plurality of optical channels which need to be coincidentally counted. The computing resources occupied by the coincidence computing management mode are increased in a factorial mode when the number of the channels is linearly changed, so that the consumption of the computing resources of the system is accelerated, the system cannot provide redundant computing resources for coincidence counting when the number of the channels reaches a certain value, and the counting efficiency of the system is greatly reduced.
Disclosure of Invention
In order to overcome the above deficiencies in the prior art, the present application aims to provide a coincidence counting management method and apparatus, where the coincidence counting management method can save system computing resources, improve coincidence counting efficiency between different optical channel combinations, remove the limitation on the number of optical channels by a device, and improve flexibility in designing schemes of photon correlation experiments.
As to a method, an embodiment of the present application provides a coincidence management method, which is applied to a terminal device, and the method includes:
receiving a coincidence counting instruction, and analyzing the coincidence counting instruction to obtain a plurality of counting combinations and channel data of each counting combination, wherein the channel data of each counting combination comprises channel numbers of all optical channels participating in coincidence counting in the counting combination;
judging whether a combination inclusion relationship exists between the counting combinations according to the obtained channel data of the counting combinations, and dividing a plurality of counting combinations with the combination inclusion relationship into the same counting strategy, wherein the channel number of each optical channel participating in the counting according is the same as the channel number corresponding to the counting combination with the largest channel number under the counting strategy;
and acquiring photon generation time data of each optical channel corresponding to each counting strategy, and controlling a thread corresponding to the counting strategy to perform coincidence counting on each optical channel corresponding to the counting strategy based on the preset time window width and the corresponding photon generation time data in a time period corresponding to the preset counting time.
As for an apparatus, an embodiment of the present application provides a coincidence management apparatus, which is applied to a terminal device, and the apparatus includes:
The instruction analysis module is used for receiving a coincidence counting instruction and analyzing the coincidence counting instruction to obtain a plurality of counting combinations and channel data of each counting combination, wherein the channel data of each counting combination comprises channel numbers of all optical channels participating in coincidence counting in the counting combination;
the combination division module is used for judging whether a combination inclusion relationship exists between the counting combinations according to the obtained channel data of each counting combination, and dividing a plurality of counting combinations with the combination inclusion relationship into the same counting strategy, wherein the channel number of each optical channel participating in the counting according in the counting strategy is the same as the channel number corresponding to the counting combination with the largest channel number under the counting strategy;
and the counting execution module is used for acquiring photon generation time data of each optical channel corresponding to each counting strategy, controlling a thread corresponding to the counting strategy to perform coincidence counting on each optical channel corresponding to the counting strategy based on the preset time window width and the corresponding photon generation time data in a time period corresponding to the preset counting time length.
Compared with the prior art, the coincidence counting management method and device provided by the embodiment of the application have the following beneficial effects: the coincidence counting management method can save system computing resources, improve coincidence counting efficiency among different optical channel combinations, remove the limitation of equipment on the number of optical channels and improve the flexibility of scheme design of photon correlation experiments. Firstly, the method receives a coincidence counting instruction, and analyzes the coincidence counting instruction to obtain a plurality of counting combinations and channel data of each counting combination. Then, the method judges whether a combination containing relationship exists between the counting combinations according to the obtained channel data of the counting combinations, and divides the counting combinations with the combination containing relationship into the same counting strategy. Finally, the method obtains photon generation time data of each optical channel corresponding to each counting strategy, controls threads corresponding to the counting strategies based on the preset time window width and the corresponding photon generation time data in a time period corresponding to the preset counting time length, and performs coincidence counting on each optical channel corresponding to the counting strategies, so that multiple counting combinations under the same counting strategy are subjected to coincidence counting through one thread, repeated coincidence counting between different optical channel combinations is avoided, system computing resources are saved, coincidence counting efficiency between different optical channel combinations is improved, limitation of equipment on the number of the optical channels is removed, and design flexibility of schemes of photon related experiments is improved. The channel data of each counting combination comprises the channel numbers of all optical channels participating in the coincidence counting in the counting combination, and the channel numbers of all the optical channels participating in the coincidence counting in the counting strategy are the same as the channel numbers corresponding to the counting combination with the largest channel number under the counting strategy.
In order to make the aforementioned objects, features and advantages of the present application comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments are briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope of the claims of the present application, and it is obvious for those skilled in the art that other related drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic block diagram of a terminal device according to an embodiment of the present disclosure.
Fig. 2 is a schematic flowchart of a coincidence management method according to an embodiment of the present disclosure.
Fig. 3 is a schematic flowchart of the sub-steps included in step S220 in fig. 2.
Fig. 4 is a flowchart illustrating the sub-steps included in step S230 in fig. 2.
Fig. 5 is a second flowchart illustrating a coincidence management method according to an embodiment of the present disclosure.
Fig. 6 is a block diagram of the coincidence management device shown in fig. 1 according to an embodiment of the present disclosure.
Fig. 7 is a block diagram of the combined partitioning module shown in fig. 6.
Fig. 8 is a second block diagram of the coincidence management device shown in fig. 1 according to the second embodiment of the present disclosure.
An icon: 10-a terminal device; 11-a memory; 12-a processor; 13-a communication unit; 100-coincidence counting management means; 110-an instruction parsing module; 120-a combined partitioning module; 130-count execution module; 121-set alignment submodule; 122-a relationship determination sub-module; 140-parameter configuration module; 150-thread assignment module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, as generally described and illustrated in the figures herein, could be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments and features of the embodiments described below can be combined with each other without conflict.
Fig. 1 is a block schematic diagram of a terminal device 10 according to an embodiment of the present disclosure. In this embodiment of the present application, the terminal device 10 can perform coincidence counting on multiple counting combinations under the same counting strategy through one thread, thereby avoiding repeated coincidence counting between different optical channel combinations, saving system computing resources, improving coincidence counting efficiency between different optical channel combinations, removing the limitation of the device on the number of optical channels, and improving the flexibility of design of schemes of photon-related experiments. Each optical channel has a channel number different from other optical channels at the terminal device 10, the counting combination is a combination that multiple optical channels perform coincidence counting, the counting strategy is a union combination of multiple counting combinations that satisfy a combination inclusion relationship, and the channel number of each optical channel in the counting strategy that is in coincidence counting is the same as the channel number corresponding to the counting combination with the largest channel number under the counting strategy. For example, the number of the optical channels supported by the terminal device 10 is 10, and the channel numbers corresponding to the 10 optical channels may be 1, 2, 3, … …, 9, and 10, or a, B, C, … …, I, and J, and the specific channel numbers may be configured differently according to requirements. In the present embodiment, the terminal device 10 may be, but is not limited to, a Personal Computer (PC), a tablet PC, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), and the like.
In the present embodiment, the terminal device 10 includes a coincidence management apparatus 100, a memory 11, a processor 12, and a communication unit 13. The memory 11, the processor 12 and the communication unit 13 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
In this embodiment, the memory 11 may be configured to buffer photon generation time data of each optical channel, where the photon generation time data is time data when a single photon counter externally connected to the terminal device 10 generates a photon in a corresponding optical channel, and the time data includes time information when the photon is generated in a time period and time period information when the photon is generated in an interval. In this embodiment, the memory 11 may further store a program, and the processor 12 may execute the program accordingly after receiving the execution instruction.
In this embodiment, the processor 12 may be an integrated circuit chip having signal processing capabilities. The Processor 12 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like that implements or executes the methods, steps and logic blocks disclosed in the embodiments of the present application.
In this embodiment, the communication unit 13 is configured to establish a communication connection between the terminal device 10 and another external device through a network, and to transceive data through the network, where the network may be a wired network or a wireless network. For example, the terminal device 10 is externally connected to a single photon counter for each optical channel through the communication unit 13, and obtains photon generation time data when the single photon counter corresponding to each optical channel performs single photon counting through the communication unit 13.
In this embodiment, the coincidence management device 100 includes at least one software functional module that can be stored in the memory 11 in the form of software or firmware or solidified in the operating system of the terminal device 10. The processor 12 may be used to execute executable modules stored by the memory 11, such as software functional modules and computer programs included by the coincidence management device 100. The terminal device 10 creates a thread for coincidence counting for each counting strategy through the coincidence counting management device 100, and allocates a plurality of counting combinations under each counting strategy according to a combination inclusion relationship, so as to perform coincidence counting on each optical channel under the counting strategy through the thread corresponding to each counting strategy, and obtain coincidence counting results of all counting combinations corresponding to the counting strategy, thereby avoiding repeated coincidence counting between different optical channel combinations, saving system computing resources, improving coincidence counting efficiency between different optical channel combinations, removing the limitation of the device on the number of optical channels, and improving flexibility of scheme design of photon correlation experiments.
It is understood that the block diagram shown in fig. 1 is only a schematic structural component of the terminal device 10, and the terminal device 10 may include more or less components than those shown in fig. 1, or have a different configuration from that shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
Fig. 2 is a schematic flow chart of a coincidence management method according to an embodiment of the present disclosure. In the embodiment of the present application, the coincidence management method is applied to the terminal device 10 described above, and specific flows and steps of the coincidence management method shown in fig. 2 are described in detail below.
Step S210, receiving a coincidence counting instruction, and analyzing the coincidence counting instruction to obtain a plurality of counting combinations and channel data of each counting combination.
In this embodiment, the user may input a coincidence counting instruction to the terminal device 10, so that the terminal device 10 performs coincidence counting according to the coincidence counting instruction. After receiving the coincidence count instruction, the terminal device 10 obtains a plurality of count combinations and channel data of each count combination included in the coincidence count instruction by analyzing the coincidence count instruction, where the channel data of each count combination includes channel numbers of each optical channel in the count combination, which is associated with a coincidence count. For example, a coincidence counting instruction includes a counting combination a, a counting combination b, a counting combination c, and a counting combination d, wherein the optical channels participating in coincidence counting corresponding to the counting combination a are the optical channels with channel numbers 1 and 2, the optical channels participating in coincidence counting corresponding to the counting combination b are the optical channels with channel numbers 1 and 3, the optical channels participating in coincidence counting corresponding to the counting combination c are the optical channels with channel numbers 1, 2, and 3, and the optical channels participating in coincidence counting corresponding to the counting combination d are the optical channels with channel numbers 1 and 4.
Step S220, determining whether a combination inclusion relationship exists between the counting combinations according to the obtained channel data of each counting combination, and dividing the counting combinations having the combination inclusion relationship into the same counting policy.
In this embodiment, when the terminal device 10 obtains the plurality of count combinations and the channel data of each count combination included in the coincidence count instruction, it determines whether a combination inclusion relationship exists between the count combinations according to the channel data of each count combination, and then classifies the plurality of count combinations having the combination inclusion relationship under the same count policy, and separately classifies the count combinations not having the combination inclusion relationship under another count policy.
Optionally, please refer to fig. 2, which is a flowchart illustrating the sub-steps included in step S220 in fig. 2. In this embodiment, the step S220 may include a sub-step S221 and a sub-step S222.
In the substep S221, the channel number set corresponding to each counting combination is compared with the channel number sets corresponding to other counting combinations.
In this embodiment, each channel number set includes channel numbers of optical channels in the corresponding count combination, and the terminal device 10 compares the channel number set corresponding to each count combination with channel number sets corresponding to other count combinations to determine whether a combination inclusion relationship is stored between the count combinations.
In the sub-step S222, if the channel number set of one count combination of any two count combinations is a subset of the channel number set of the other count combination, it is determined that a combination inclusion relationship exists between the any two count combinations.
In this embodiment, the terminal device 10 divides all the count combinations included in the coincidence counting instruction into the count policies by performing a channel number set comparison between all the count combinations, and the channel number of each optical channel participating in coincidence counting in each count policy is the same as the channel number corresponding to the count combination with the largest number of channels in the count policy. For example, when the channel number sets corresponding to the counting combination a are 1 and 2, the channel number sets corresponding to the counting combination b are 1 and 3, the channel number sets corresponding to the counting combination c are 1, 2 and 3, and the channel number sets corresponding to the counting combination d are 1 and 4, the channel number sets corresponding to the counting combination a and the counting combination b are subsets of the channel number sets corresponding to the counting combination c, the counting combination a, the counting combination b and the counting combination c are divided into the same counting strategy 1, and the counting combination d is divided into another counting strategy 2.
Step S230, obtaining photon generation time data of each optical channel corresponding to each counting policy, and controlling a thread corresponding to the counting policy to perform coincidence counting on each optical channel corresponding to the counting policy based on a preset time window width and the corresponding photon generation time data in a time period corresponding to a preset counting duration.
In this embodiment, the preset counting duration represents a working duration of the terminal device 10 during coincidence counting at each thread, and the terminal device 10 may create a data pump in the memory 11, so as to cache photon generation time data of multiple optical channels acquired by the terminal device 10 through the data pump, distribute the photon generation time data corresponding to each optical channel to a thread corresponding to a corresponding counting policy according to a stable data flow through the data pump when coincidence counting is required, and perform coincidence counting on the multiple optical channels under the same counting policy through corresponding matched threads. For example, the channel number sets corresponding to the count combination a are 1 and 2, the channel number sets corresponding to the count combination b are 1 and 3, the channel number set corresponding to the count combination c is 1, 2 and 3, the channel number set corresponding to the count combination d is 1 and 4, the count combination corresponding to the count strategy 1 includes the count combination a, the count combination b and the count combination c, when the count combination corresponding to the count strategy 2 includes the count combination d, the photon generation time data acquired by the thread corresponding to the count strategy 1 includes photon generation time data of optical channels with channel numbers of 1, 2 and 3, respectively, and the photon generation time data acquired by the thread corresponding to the count strategy 2 includes photon generation time data of optical channels with channel numbers of 1 and 4.
Optionally, please refer to fig. 4, which is a flowchart illustrating the sub-steps included in step S230 in fig. 2. In this embodiment, the step S230 may include a substep S231 and a substep S232.
And a substep S231 controlling the thread to perform time difference operation between each item of photon generation time data of each optical channel in all optical channels corresponding to the counting strategy and corresponding item of photon generation time data of other optical channels.
In this embodiment, the terminal device 10 may control, in a time period corresponding to a preset counting duration, a thread corresponding to each counting policy to perform time difference operation between photon generation time data of each optical channel in all optical channels under the counting policy and photon generation time data of other optical channels, so as to obtain a time difference at each time of time difference operation between each optical channel and other optical channels under the counting policy.
And a substep S232, when the time difference calculated each time is not greater than the preset time window width, adding one to the coincidence count between the optical channel and the other optical channels.
In this embodiment, the terminal device 10 obtains a coincidence counting result corresponding to a counting combination between any two optical channels under the counting policy by calculating a coincidence counting between each optical channel and another optical channel under the counting policy. For example, when the channel number set corresponding to the counting combination a is 1 and 2, the channel number set corresponding to the counting combination b is 1 and 3, the channel number set corresponding to the counting combination c is 1, 2 and 3, and the counting combination corresponding to the counting policy 1 includes the counting combination a, the counting combination b and the counting combination c, when the terminal device 10 calculates the coincidence counting result between any two of the three optical channels corresponding to the counting policy 1, the terminal device 10 can obtain the coincidence counting result of the counting combination a, the counting combination b and the counting combination c through the thread corresponding to the counting policy 1, thereby performing coincidence counting on a plurality of counting combinations under the same counting policy through one thread, avoiding repeated coincidence counting between different optical channel combinations, saving system calculation resources, and improving coincidence counting efficiency between different optical channel combinations, the limit of the device on the number of optical channels is removed, and the design flexibility of the scheme of photon correlation experiments is improved.
Fig. 5 is a second flowchart illustrating a coincidence management method according to an embodiment of the present disclosure. In the embodiment of the present application, the coincidence management method may further include step S208 and step S209.
Step S208, configuring and storing the preset counting duration and the preset time window width.
Step S209 is to create a plurality of threads and establish a corresponding relationship between the threads and counting policies, wherein each counting policy is assigned with a thread.
Fig. 6 is a block diagram of the coincidence management device 100 shown in fig. 1 according to an embodiment of the present disclosure. In the embodiment of the present application, the coincidence management device 100 includes an instruction parsing module 110, a combination partitioning module 120, and a count executing module 130.
The instruction parsing module 110 is configured to receive a coincidence counting instruction, and parse the coincidence counting instruction to obtain a plurality of counting combinations and channel data of each counting combination, where the channel data of each counting combination includes a channel number of each optical channel in the counting combination, where the channel number is associated with the coincidence counting.
In this embodiment, the instruction parsing module 110 may execute step S210 in fig. 2, and the detailed description may refer to the above detailed description of step S210.
The combination partitioning module 120 is configured to determine whether a combination inclusion relationship exists between the counting combinations according to the obtained channel data of each counting combination, and partition a plurality of counting combinations having the combination inclusion relationship into the same counting policy, where a channel number of each optical channel participating in the counting according in the counting policy is the same as a channel number corresponding to the counting combination with the largest channel number in the counting policy.
Optionally, please refer to fig. 7, which is a block diagram of the combination partitioning module 120 shown in fig. 6. In this embodiment, the combination partitioning module 120 includes a set comparison sub-module 121 and a relationship determination sub-module 122.
The set comparison sub-module 121 is configured to compare the channel number set corresponding to each count combination with the channel number sets corresponding to other count combinations, where each channel number set includes channel numbers of optical channels that are included in the corresponding count combination and correspond to the coincident count.
In this embodiment, the set comparison sub-module 121 may perform the sub-step S221 in fig. 3, and the detailed description may refer to the above detailed description of the sub-step S221.
The relationship determination submodule 122 is configured to determine that a combination inclusion relationship exists between any two count combinations if the channel number set of one count combination of the two count combinations is a subset of the channel number set of the other count combination.
In this embodiment, the relationship determining sub-module 122 may perform the sub-step S222 in fig. 3, and the detailed description may refer to the detailed description of the sub-step S222 above.
The counting execution module 130 is configured to obtain photon generation time data of each optical channel corresponding to each counting policy, and control a thread corresponding to the counting policy to perform coincidence counting on each optical channel corresponding to the counting policy based on a preset time window width and the corresponding photon generation time data in a time period corresponding to a preset counting duration.
In this embodiment, the manner in which the count executing module 130 controls the thread corresponding to the count policy to perform coincidence counting on each optical channel corresponding to the count policy based on the preset time window width and the corresponding photon generation time data includes:
controlling the thread to perform time difference operation between each item of photon generation time data of each optical channel in all optical channels corresponding to the counting strategy and corresponding item of photon generation time data of other optical channels;
and when the time difference calculated each time is not more than the width of the preset time window, adding one to the coincidence count between the optical channel and the other optical channels.
Fig. 8 is a second block diagram of the coincidence management device 100 shown in fig. 1 according to an embodiment of the present disclosure. In the embodiment of the present application, the coincidence management device 100 further includes a parameter configuration module 140 and a thread allocation module 150.
The parameter configuration module 140 is configured to configure and store a preset counting time and a preset time window width.
The thread allocating module 150 is configured to create a plurality of threads and establish a correspondence between the threads and counting policies, where each counting policy corresponds to one thread being allocated.
In summary, in the coincidence counting management method and apparatus provided in the embodiments of the present application, the coincidence counting management method can save system computing resources, improve coincidence counting efficiency between different optical channel combinations, remove the limitation on the number of optical channels by the device, and improve flexibility of design of schemes for photon correlation experiments. Firstly, the method receives a coincidence counting instruction, and analyzes the coincidence counting instruction to obtain a plurality of counting combinations and channel data of each counting combination. Then, the method judges whether a combination containing relationship exists between the counting combinations according to the obtained channel data of the counting combinations, and divides the counting combinations with the combination containing relationship into the same counting strategy. Finally, the method obtains photon generation time data of each optical channel corresponding to each counting strategy, controls threads corresponding to the counting strategies based on the preset time window width and the corresponding photon generation time data in a time period corresponding to the preset counting time length, and counts all the optical channels corresponding to the counting strategies in a coincidence mode, so that multiple counting combinations under the same counting strategy are counted in a coincidence mode through one thread, repeated coincidence counting between different optical channel combinations is avoided, system computing resources are saved, coincidence counting efficiency between different optical channel combinations is improved, limitation of equipment on the number of the optical channels is removed, and design flexibility of schemes of photon correlation experiments is improved. The channel data of each counting combination comprises the channel number of each optical channel participating in the coincidence counting in the counting combination, and the channel number of each optical channel participating in the coincidence counting in the counting strategy is the same as the channel number corresponding to the counting combination with the largest channel number under the counting strategy.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made to the present application by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (8)

1. A coincidence counting management method is characterized in that the coincidence counting management method is applied to terminal equipment, and the method comprises the following steps:
receiving a coincidence counting instruction, and analyzing the coincidence counting instruction to obtain a plurality of counting combinations and channel data of each counting combination, wherein the channel data of each counting combination comprises channel numbers of all optical channels participating in coincidence counting in the counting combination;
judging whether a combination inclusion relation exists between the counting combinations according to the obtained channel data of each counting combination, and dividing a plurality of counting combinations with the combination inclusion relation into the same counting strategy, wherein the channel number of each optical channel participating in the counting according is the same as the channel number corresponding to the counting combination with the largest channel number under the counting strategy;
acquiring photon generation time data of each optical channel corresponding to each counting strategy, and controlling threads corresponding to the counting strategies to perform coincidence counting on each optical channel corresponding to the counting strategies on the basis of the widths of preset time windows and the corresponding photon generation time data in a time period corresponding to preset counting duration;
Wherein, the step of judging whether a combination containing relationship exists between the counting combinations according to the obtained channel data of the counting combinations comprises the following steps:
comparing the channel number set corresponding to each counting combination with the channel number sets corresponding to other counting combinations, wherein each channel number set comprises the channel numbers of all the optical channels which are in the corresponding counting combination and are in accordance with the counting;
and if the channel number set of one count combination in any two count combinations is a subset of the channel number set of the other count combination, judging that a combination inclusion relationship exists between any two count combinations.
2. The method of claim 1, wherein the step of controlling the thread corresponding to the counting strategy to count the optical channels corresponding to the counting strategy in accordance with the predetermined time window width and the corresponding photon generation time data comprises:
controlling the thread to perform time difference operation between each item of photon generation time data of each optical channel in all optical channels corresponding to the counting strategy and corresponding item of photon generation time data of other optical channels;
and when the time difference calculated each time is not more than the width of the preset time window, adding one to the coincidence count between the optical channel and the other optical channels.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and configuring and storing the preset counting time and the preset time window width.
4. The method of claim 3, further comprising:
creating a plurality of threads and establishing a corresponding relation between the threads and counting strategies, wherein each counting strategy is correspondingly distributed with one thread.
5. A coincidence counting management apparatus, applied to a terminal device, the apparatus comprising:
the instruction analysis module is used for receiving a coincidence counting instruction and analyzing the coincidence counting instruction to obtain a plurality of counting combinations and channel data of each counting combination, wherein the channel data of each counting combination comprises channel numbers of all optical channels participating in coincidence counting in the counting combination;
the combination division module is used for judging whether a combination inclusion relationship exists between the counting combinations according to the obtained channel data of each counting combination, and dividing a plurality of counting combinations with the combination inclusion relationship into the same counting strategy, wherein the channel number of each optical channel participating in the counting according in the counting strategy is the same as the channel number corresponding to the counting combination with the largest channel number under the counting strategy;
The counting execution module is used for acquiring photon generation time data of each optical channel corresponding to each counting strategy, controlling a thread corresponding to the counting strategy based on the preset time window width and the corresponding photon generation time data in a time period corresponding to the preset counting time length, and performing coincidence counting on each optical channel corresponding to the counting strategy;
wherein the combination partitioning module comprises:
a set comparison submodule for comparing the channel number set corresponding to each counting combination with the channel number sets corresponding to other counting combinations, wherein each channel number set comprises the channel numbers of all the optical channels which are in the corresponding counting combination and are in accordance with the counting;
and the relationship judgment sub-module is used for judging that a combination inclusion relationship exists between any two counting combinations if the channel number set of one counting combination in the any two counting combinations is a subset of the channel number set of the other counting combination.
6. The apparatus of claim 5, wherein the count execution module controls the thread corresponding to the count policy to count the optical channels corresponding to the count policy in accordance with a predetermined time window width and corresponding photon generation time data, and comprises:
Controlling the thread to perform time difference operation between each item of photon generation time data of each optical channel in all optical channels corresponding to the counting strategy and corresponding item of photon generation time data of other optical channels;
and when the time difference calculated each time is not more than the width of the preset time window, adding one to the coincidence count between the optical channel and the other optical channels.
7. The apparatus of claim 5 or 6, further comprising:
and the parameter configuration module is used for configuring and storing the preset counting time and the preset time window width.
8. The apparatus of claim 7, further comprising:
the thread allocation module is used for creating a plurality of threads and establishing a corresponding relation between the threads and the counting strategies, wherein each counting strategy is correspondingly allocated with one thread.
CN201811093455.7A 2018-09-19 2018-09-19 Coincidence counting management method and device Active CN109272099B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811093455.7A CN109272099B (en) 2018-09-19 2018-09-19 Coincidence counting management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811093455.7A CN109272099B (en) 2018-09-19 2018-09-19 Coincidence counting management method and device

Publications (2)

Publication Number Publication Date
CN109272099A CN109272099A (en) 2019-01-25
CN109272099B true CN109272099B (en) 2022-07-15

Family

ID=65197561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811093455.7A Active CN109272099B (en) 2018-09-19 2018-09-19 Coincidence counting management method and device

Country Status (1)

Country Link
CN (1) CN109272099B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113029367B (en) * 2021-03-19 2022-05-17 南京大学 Single photon coincidence logarithm measurement method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4920271A (en) * 1989-02-27 1990-04-24 The United States Of America As Represented By The Department Of Energy Multiple channel programmable coincidence counter
CN106788399A (en) * 2016-12-22 2017-05-31 浙江神州量子网络科技有限公司 A kind of implementation method of the configurable multichannel coincidence counting device of window time

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4701385B2 (en) * 2005-03-03 2011-06-15 国立大学法人北海道大学 Optical characteristic measuring apparatus, optical characteristic measuring method, program used therefor, and recording medium
CN103364819B (en) * 2013-06-27 2015-12-02 南京邮电大学 A kind of high precision coincide counter implementation method based on FPGA
CN108139487B (en) * 2015-08-27 2021-12-31 皇家飞利浦有限公司 Photon counting apparatus and method
CN105450215B (en) * 2015-11-09 2018-03-27 科大国盾量子技术股份有限公司 A kind of coincidence measurement system and method
CN106525231B (en) * 2016-10-28 2018-03-06 中国科学技术大学 A kind of multi-photon coincidence counting device based on PLD
CN107610753A (en) * 2017-09-13 2018-01-19 沈阳东软医疗系统有限公司 One kind meets event determination method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4920271A (en) * 1989-02-27 1990-04-24 The United States Of America As Represented By The Department Of Energy Multiple channel programmable coincidence counter
CN106788399A (en) * 2016-12-22 2017-05-31 浙江神州量子网络科技有限公司 A kind of implementation method of the configurable multichannel coincidence counting device of window time

Also Published As

Publication number Publication date
CN109272099A (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN108462760B (en) Electronic device, automatic cluster access domain name generation method and storage medium
WO2021136137A1 (en) Resource scheduling method and apparatus, and related device
US10890960B2 (en) Method and apparatus for limiting rack power consumption
EP3507692A1 (en) Resource oversubscription based on utilization patterns in computing systems
WO2015101091A1 (en) Distributed resource scheduling method and device
CN105808328A (en) Task scheduling method, device and system
CN111694646A (en) Resource scheduling method and device, electronic equipment and computer readable storage medium
WO2015027935A1 (en) Method and device for allocating computational resources
CN112181613B (en) Heterogeneous resource distributed computing platform batch task scheduling method and storage medium
US10048987B1 (en) Methods and apparatus for a resource sharing platform having resource quality estimation
CN111858055A (en) Task processing method, server and storage medium
CN114816738A (en) Method, device and equipment for determining calculation force node and computer readable storage medium
CN109272099B (en) Coincidence counting management method and device
JP2013125548A (en) Virtual machine allocation system and method for using the same
CN110336888B (en) Server distribution method, device, system and medium
CN111382141B (en) Master-slave architecture configuration method, device, equipment and computer readable storage medium
CN112527509A (en) Resource allocation method and device, electronic equipment and storage medium
CN112214299A (en) Multi-core processor and task scheduling method and device thereof
CN114327918B (en) Method and device for adjusting resource amount, electronic equipment and storage medium
US10705885B2 (en) Autoscaling of data processing computing systems based on predictive queue length
CN114879832A (en) Power consumption control method, device, chip, apparatus, and medium for arithmetic device
US20220335047A1 (en) System and method for dynamic memory allocation for query execution
CN110247802B (en) Resource configuration method and device for cloud service single-machine environment
US10817341B1 (en) Adaptive tuning of thread weight based on prior activity of a thread
CN115391042B (en) Resource allocation method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant