CN115509167B - Parameter configuration method of pulse sequence, signal control and acquisition method and equipment - Google Patents

Parameter configuration method of pulse sequence, signal control and acquisition method and equipment Download PDF

Info

Publication number
CN115509167B
CN115509167B CN202211461781.5A CN202211461781A CN115509167B CN 115509167 B CN115509167 B CN 115509167B CN 202211461781 A CN202211461781 A CN 202211461781A CN 115509167 B CN115509167 B CN 115509167B
Authority
CN
China
Prior art keywords
pulse sequence
configuration
time
parameters
unit
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
CN202211461781.5A
Other languages
Chinese (zh)
Other versions
CN115509167A (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.)
Anhui Guosheng Quantum Technology Co ltd
Original Assignee
Anhui Guosheng Quantum 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 Anhui Guosheng Quantum Technology Co ltd filed Critical Anhui Guosheng Quantum Technology Co ltd
Priority to CN202211461781.5A priority Critical patent/CN115509167B/en
Publication of CN115509167A publication Critical patent/CN115509167A/en
Application granted granted Critical
Publication of CN115509167B publication Critical patent/CN115509167B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Tests Of Electronic Circuits (AREA)
  • Radar Systems Or Details Thereof (AREA)

Abstract

The invention provides a parameter configuration method of a pulse sequence, a signal control and acquisition method and equipment, wherein the parameter configuration method is to divide a pulse sequence group into a plurality of sections of configuration units along the time extension direction, each configuration unit is used as a configuration parameter, the parameter configuration of each time unit after initial configuration is based on the parameter of each configuration unit in the initial configuration step as the continuous configuration, the changed parameter of the configuration unit is obtained according to a corresponding change formula or a change table aiming at the configuration unit needing the changed parameter, and meanwhile, the parameter which does not need to be changed in each configuration unit is kept the same. The parameter configuration method is used in the signal control and acquisition method and equipment of quantum sensing, can realize the control and acquisition of the detection signals output by the quantum sensor, can realize the rapidness and convenience of parameter configuration, reduces the storage space required by the parameters, greatly improves the operation performance, reduces the cost, and is favorable for the popularization and application of the quantum sensing technology.

Description

Parameter configuration method of pulse sequence, signal control and acquisition method and equipment
Technical Field
The invention relates to the field of signal control processing, in particular to a parameter configuration method of a pulse sequence, a signal control and acquisition method and equipment.
Background
Pulse control is a technology with a wide application range in the field of signal control processing, particularly in the field of quantum sensing which is rapidly developed at present, and is mainly used for controlling and collecting signals in the measurement process. In the field of pursuing high-precision measurement such as quantum sensing, for example, high-sensitivity measurement of various physical quantities is realized by precisely controlling the spin state of atoms based on the solid-state spin characteristic of a diamond nitrogen vacancy color center (also referred to as NV color center) by using an optical method, a large number of pulse sequences are required to realize a plurality of different measurement operations, and parameters of the pulse sequences required to be configured for different measurement operations are different, so that the parameter configuration work of the pulse sequences is very tedious, and higher requirements are put forward on the memory and the operating performance of a controller.
The parameter configuration of the existing pulse sequence is realized by adopting an upper computer, and particularly, each measurement work is taken as a time unit, the pulse sequence required by each time unit is configured by taking the pulse sequence of each channel as an independent configuration unit, all the channels are configured in sequence to form parameters required by the time unit, then parameters of other time units are configured according to the method, and finally all the configured pulse sequence parameters are sent to a lower computer at one time. In order to reduce the requirement on the performance of a lower computer, pulse sequence parameters required by a time unit are configured by an upper computer, the pulse sequence parameters are sent to the lower computer such as an FPGA (field programmable gate array), the lower computer completes the measurement work of the time unit and then feeds back the measurement work to the upper computer, the upper computer receives a feedback signal and then determines whether to configure the pulse sequence parameters required by the next time unit, although the method reduces the requirement on the lower computer and reduces the cost, the new pulse sequence needs to be reconfigured for each time unit measurement, and because the parameter configuration adopts each channel as a configuration unit, the configuration of each channel adopts an absolute time mode, namely, the configuration is marked according to the time points of the upper edge and the lower edge, if the duration time of the pulse amplitude of a T1-T2 time period of one channel needs to be changed, all the parameters after the T2 time are changed, and all the parameters after the corresponding T1 time of other channels need to be changed for keeping the relative consistency between the channels, so that the configuration work is still tedious and the efficiency is low; moreover, the feedback mechanism of the lower computer and the upper computer also makes the operation complex and the coordination poor.
Aiming at the problems in the prior art, how to simply and rapidly realize the parameter configuration of the pulse sequence, and reduce the storage space required by the parameters, the requirements on the performance of a lower computer and the cost become technical problems to be solved urgently.
Disclosure of Invention
In view of the above drawbacks of the prior art, an object of the present invention is to provide a method for configuring parameters of a pulse sequence, a method and a device for controlling and acquiring signals, which are used to solve the technical problems of the prior art, such as tedious parameter configuration method, low efficiency, large storage space occupied by configured parameters, high performance requirement on a lower computer, and high cost.
To achieve the above and other related objects, the present invention provides a method for configuring parameters of a pulse sequence, comprising:
a primary configuration step: dividing a pulse sequence group of an i =1 time unit containing one channel or a plurality of channel pulse sequences into a plurality of sections of configuration units along the extending direction of time, and configuring parameters for each section of configuration units according to the required pulse sequence group of the i =1 time unit to form pulse sequence group parameters of the i =1 time unit, wherein the configuration parameters of each configuration unit comprise the pulse amplitude and the duration of each channel of the configuration unit and the cycle number of the configuration unit; outputting the parameters of the pulse sequence group of the i =1 time unit;
determining a rule: determining parameters needing to be changed in each configuration unit in the initial configuration step according to the required pulse sequence group of the ith time unit, and determining a change formula or a change table of the parameters; wherein i is an integer from 1 to n, n is a predetermined number of time units and is an integer greater than or equal to 1;
a first judgment step: judging whether a preset condition for parameter configuration is reached; if yes, executing a second judging step; if not, continuing to execute the first judgment step;
a second judgment step: judging whether the time unit i is equal to n; if not, executing the step of continuing configuration; if so, ending the parameter configuration of the pulse sequence;
and continuing the configuration step: adding 1 to the time unit i in an accumulated mode; taking the parameters of each configuration unit in the initial configuration step as the basis of continuous configuration, aiming at the configuration unit needing to change the parameters, obtaining the changed corresponding parameters of the configuration unit according to the change formula or the change table in the rule determining step, and simultaneously keeping the parameters which do not need to change in each configuration unit the same so as to form the pulse sequence group parameters of the ith time unit; outputting the pulse sequence group parameters of the ith time unit; and continuing to execute the first judgment step.
Furthermore, the pulse sequence group is divided by using a longitudinal line where two end points of each pulse amplitude are located as boundaries to form a plurality of configuration units.
In order to achieve the above and other related objects, the present invention also provides a signal control and acquisition method for quantum sensing, which is applied in a quantum sensor, wherein the quantum sensor includes a detector for detecting and outputting a detection signal, and the signal control and acquisition method includes:
a pulse parameter forming step: configuring a pulse sequence group parameter by adopting the pulse sequence parameter configuration method, wherein the pulse sequence group parameter comprises a configuration parameter of a pulse sequence for acquisition control;
a pulse sequence forming step: generating a pulse sequence group according to the configured parameters of the pulse sequence group, and outputting the pulse sequence group;
a pulse control step: acquiring and controlling a detection signal output by the quantum sensor by using the generated pulse sequence for acquisition and control;
and (3) data processing: and processing and analyzing the acquired detection signals.
Further, the pulse sequence forming step specifically includes:
an analysis processing step: analyzing the parameters of the pulse sequence group formed in the pulse parameter forming step;
FIFO buffer step: performing FIFO caching on the pulse sequence group parameters after the analysis processing in the analysis processing step;
a pulse sequence generation step: generating a pulse sequence group according to the parameters of the pulse sequence group cached in the FIFO caching step;
a clock distribution step: and distributing clocks to the analysis processing step, the FIFO buffering step and the pulse sequence generating step respectively according to a given reference clock.
Further, the step of generating the pulse sequence specifically includes:
and (3) initial assignment step: extracting configuration parameters of a j =1 configuration unit of an ith time unit from a FIFO (first in first out) buffer, wherein a duration parameter i _ time is extracted, a starting time _ cnt is timed from 0, an amplitude parameter of each extracted channel is assigned to the corresponding channel along with the timing of time to form a pulse sequence of the current configuration unit, a cycle number parameter i _ circle is extracted, and the starting cycle _ cnt is counted from 1; executing a real-time judgment step; wherein i is an integer from 1 to n, n is a predetermined number of time units and is an integer greater than or equal to 1;
a real-time judgment step: judging whether (1) time _ cnt is equal to i _ time in real time; (2) Whether circle _ cnt is equal to c, wherein c is more than or equal to 1 and less than or equal to i _ circle and is an integer; (3) whether circle _ cnt is equal to i _ circle;
if not, (1) and if not, (3) continuing to execute the real-time judgment step;
if (1) is not, if (2) is not, and if (3) is yes, continuously executing the real-time judgment step;
if not, (2) if yes, and (3) judging whether the time _ cnt is equal to T, wherein T is more than or equal to 0 and less than or equal to i _ time, if yes, executing a re-judgment step, and continuously executing the real-time judgment step, otherwise, continuously executing the real-time judgment step;
if the current configuration unit is in the (1) state, the current configuration unit is in the (2) state, if the current configuration unit is in the (3) state, the cycle _ cnt plus 1,time_cnt = 0 state, a new cycle time clock is started, a pulse sequence of the current configuration unit is formed along with the time clock cycle, and the real-time judgment step is continuously executed;
if the current configuration unit is the current configuration unit, (1) yes, (2) if the current configuration unit is the current configuration unit, (3) if the current configuration unit is the current configuration unit, judging whether the current configuration unit is the current configuration unit or not, and if the current configuration unit is the current configuration unit, judging whether the current configuration unit is the current configuration unit or not, and judging whether the current configuration unit is the current configuration unit or not;
if (1) is yes, and if (3) is yes, a continuous assignment step is executed;
and a judging step: judging whether j is equal to m, wherein m is the number of configuration units and is an integer greater than or equal to 1; if not, executing a preloading step, and executing one of the steps when executing the continuous assignment step; if yes, executing the two steps when the continuous assignment step is executed;
a preloading step: adding 1 to the configuration unit j in an accumulated mode; preloading configuration parameters of a jth configuration unit to a storage space;
and continuing the assignment step:
the method comprises the following steps: extracting configuration parameters of a jth configuration unit from a storage space, wherein a duration parameter i _ time is extracted, a starting time _ cnt starts timing from 0, the extracted amplitude parameter of each channel is assigned to the corresponding channel along with the timing of time, a cycle number parameter i _ circle is extracted, and the starting cycle _ cnt starts counting from 1; executing a real-time judgment step;
a second step: and extracting preset default values from the storage space to assign the pulse amplitude of each channel.
Further, the pulse control step specifically includes:
triggering and configuring: configuring high-amplitude pulse trigger sampling, receiving a pulse sequence for sampling control, detecting the pulse sequence, and triggering the sampling step when the high amplitude of the pulse sequence is detected;
and DMA configuration step: determining the storage address of the data acquired in the acquisition step, setting the storage address as a source address of DMA transmission, setting a target address of the DMA transmission, configuring the length of single DMA transmission, and starting DMA interruption;
the collection step: performing ADC conversion acquisition on the detection signal and storing acquired data;
and DMA transmission step: in the acquisition step, counting and accumulating are executed every time acquisition is completed, when the accumulated value is equal to the DMA transmission length, the DMA is triggered to transmit the acquired data from a source address to a target address, and the DMA interrupt processing step is triggered;
DMA interrupt processing step: and reading the acquired data in the target address to a data processing step.
Furthermore, the condition which is preset in the first judgment step and can be used for parameter configuration in the parameter configuration method of the pulse sequence is that the acquisition operation of the current time unit is completed; the quantum sensor further comprises a laser generation unit and a microwave generation unit, and the pulse sequence group parameters in the pulse parameter forming step further comprise configuration parameters for regulating and controlling the pulse sequences of the laser generation unit and the microwave generation unit respectively.
To achieve the above and other related objects, the present invention also provides a signal control and acquisition apparatus for quantum sensing, including:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a signal control and acquisition method for quantum sensing as described in any of the preceding.
The two processors are respectively a single chip microcomputer and an FPGA (field programmable gate array) connected with the single chip microcomputer, the single chip microcomputer is also connected with a detection signal output end of the quantum sensor, the single chip microcomputer is used for realizing the pulse parameter forming step, the pulse control step and the data processing step and sending the configured parameters of the pulse sequence group to the FPGA, the FPGA is used for realizing the pulse sequence forming step according to the received parameters of the pulse sequence group and sending the formed pulse sequence for acquisition control to the single chip microcomputer, and the single chip microcomputer is used for acquiring and controlling the detection signals output by the quantum sensor by using the received pulse sequence.
To achieve the above and other related objects, the present invention also provides a computer-readable storage medium having a computer program stored thereon; when being executed by a processor, the computer program realizes the signal control and acquisition method for quantum sensing as described in any one of the preceding paragraphs.
As described above, the parameter configuration method, the signal control and acquisition method, and the device of the pulse sequence of the present invention have the following advantages:
1. the parameter configuration method of the pulse sequence divides the pulse sequence group in the initial configuration into a plurality of sections of configuration units along the time extension direction, configures parameters for each configuration unit, and for the parameter configuration of each time unit after the initial configuration, only the parameters of each configuration unit in the initial configuration step are needed to be used as the basis of continuous configuration, and for the configuration unit needing parameter change, the changed parameters of the configuration unit are obtained according to a corresponding change formula or a change table, and meanwhile, the parameters which do not need to be changed in each configuration unit are kept the same, so that the parameter configuration of each time unit after the initial configuration can be realized. Since each configuration unit is configured independently, parameters of the configuration units are changed only for the configuration unit needing to be changed, and the parameters of other configuration units are not affected and kept the same. The parameter configuration method of the pulse sequence has the advantages of simple and quick configuration work, effective reduction of the storage space required by the parameters, reduction of the performance requirements on the lower computer, low cost and high efficiency, and has wide application prospect in the field of pulse control.
2. Furthermore, the pulse sequence group is divided by taking a longitudinal line where two end points of each pulse amplitude are located as a boundary to form a plurality of configuration units, so that the pulse amplitude in each channel in each configuration unit is a single value, configuration operation and change operation are simpler, more convenient and faster, and the configuration of parameters is further optimized, so that the method has the advantages of more excellent convenience and rapidness in operation and high efficiency.
3. The signal control and acquisition method and device for quantum sensing can realize control and acquisition of detection signals output by a quantum sensor, wherein the pulse sequence parameters are configured by adopting the pulse sequence parameter configuration method, so that the configuration operation can be fast and convenient, the storage space required by the parameters is reduced, the operation performance is greatly improved, the cost is reduced, and the popularization and the application of the quantum sensing technology are facilitated.
4. Furthermore, the configuration of pulse sequence parameters, the generation of a pulse sequence and the control and acquisition of detection signals are realized by adopting the singlechip and the FPGA, so that the problems of complex operation and poor coordination caused by feedback communication between an upper computer and a lower computer are solved, the whole parameter configuration process can be realized by the singlechip without performing feedback communication with another lower computer, the singlechip has high integration level, the generation of the pulse sequence can be realized without adopting a high-performance FPGA, the cost is greatly reduced, and the singlechip and the FPGA have wide application prospects.
Drawings
FIG. 1 is a schematic flow chart of a parameter configuration method for a pulse sequence according to the present invention;
FIG. 2 is a diagram illustrating an exemplary partitioning configuration unit of the parameter configuration method for pulse sequences according to the present invention;
FIG. 3 shows an exemplary diagram of parameters configured for the configuration unit of FIG. 2;
FIG. 4 is a diagram illustrating exemplary pulse sequence parameters of the ith time unit in an embodiment of the parameter configuration method for pulse sequences according to the present invention;
FIG. 5 is a diagram showing a comparison between two partitioning modes of a configuration unit of the parameter configuration method for pulse sequences according to the present invention;
FIG. 6 is a diagram showing exemplary parameters configured for the configuration unit in the right diagram of FIG. 5;
FIG. 7 is a schematic flow chart of a signal control and acquisition method for quantum sensing according to the present invention;
FIG. 8 is a schematic structural diagram of a signal control and acquisition device for quantum sensing according to the present invention;
fig. 9 is a schematic structural relationship diagram of the signal control and acquisition device for quantum sensing of the present invention.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the drawings only show the components related to the present invention rather than being drawn according to the number, shape and size of the components in actual implementation, and the type, amount and proportion of each component in actual implementation can be changed freely, and the layout of the components can be more complicated.
As shown in fig. 1, the present invention provides a parameter configuration method for a pulse sequence, which can be widely applied to the field of pulse control, and as shown in fig. 2 to 3, the parameter configuration method for an exemplary given pulse sequence is as follows:
a primary configuration step: as shown in fig. 2, a pulse sequence group of i =1 time unit including four channels is divided into 12 arrangement units in the extending direction of time; as shown in fig. 3, configuring parameters for each section of configuration unit according to the pulse sequence group of the time unit, where fig. 3 exemplarily shows a program code of the configuration parameters, the parameters of each configuration unit are configured by 12 bytes, 1 to 4 bytes in each section of configuration unit represent pulse duration, 5 to 8 bytes represent pulse amplitude of each channel in the configuration unit, and sequentially represent 1 to 4 channels from right to left, where 0x00 represents a low amplitude, that is, a low level, 0xff represents a high amplitude, that is, a high level, and 9 to 12 bytes represent cycle times of the configuration unit;
determining a rule: determining that the duration of the 4 th configuration unit in the initial configuration needs to be changed according to the required pulse sequence group of the ith time unit, wherein the change rule is from 9ns to 1000ns (less than or equal to 1000 ns), the change formula is t = start _ t + (i-1) × step _ t, strat _ t is the duration of the 4 th configuration unit in the initial configuration, step _ t is 2ns, and the number of time units n is 496;
a first judgment step: judging whether a preset condition for parameter configuration is reached; if yes, executing a second judgment step; if not, continuing to execute the first judgment step;
a second judgment step: judging whether the time unit i is equal to n; if not, executing the step of continuing configuration; if so, ending the parameter configuration of the pulse sequence;
and continuing the configuration step: adding 1 to the time unit i in an accumulated mode; on the basis of continuously configuring the parameters of each configuration unit in the initial configuration step, aiming at a 4 th configuration unit needing to change the parameters, obtaining the changed duration parameters of the 4 th configuration unit according to a change formula t = start _ t + (i-1) step _ t in the rule determining step, and simultaneously keeping the parameters which do not need to be changed in each configuration unit the same to form pulse sequence group parameters of the ith time unit; outputting the pulse sequence group parameters of the ith time unit; and continuing to execute the first judgment step. For example, i =2, the pulse sequence group parameter of the 2 nd time unit is as shown in fig. 4, where the time parameter of the 4 th configuration unit becomes 0x0000000B, and none of the other parameters changes. Here, only the time parameter of only one configuration unit needs to be changed is illustrated, and when one or more parameters of one or more configuration units need to be changed, the change principle is the same as that in the above example, and different parameters that need to be changed are changed according to respective change formulas or change tables, which is not described again.
The parameter configuration method of the pulse sequence provided by the invention divides the pulse sequence group of the i =1 time unit into a plurality of sections of configuration units along the time extending direction, and takes each configuration unit as the configuration parameter, when starting the parameter configuration of the next time unit, only the parameter of each configuration unit in the initial configuration step is taken as the basis of continuous configuration, and the changed corresponding parameter of the configuration unit is obtained according to the corresponding change formula or change table aiming at the configuration unit needing the parameter change, meanwhile, the parameter not needing to be changed in each configuration unit is kept the same, so that the parameter configuration of the time unit can be realized, and all the parameters are not required to be reconfigured. And because each configuration unit is configured independently, the configuration parameter of each configuration unit includes the pulse amplitude and the duration of each channel of the configuration unit, and the duration is relative time for the configuration unit and is different from absolute time marked according to upper and lower edge time points in the prior art, so that only the configuration unit needing to be changed is subjected to parameter change, and the configuration parameters of other configuration units are not influenced, thereby overcoming the technical problems of redundant configuration work and low efficiency caused by the mode that a single channel is used as the configuration unit, absolute time is adopted and upper and lower edge marks are adopted in the prior art. In addition, the pulse sequence group parameters of all time units do not need to be configured at one time, and the technical problems that in the prior art, a large number of parameters need to be configured at one time, the work is tedious, the efficiency is low, the occupied memory is large, and the performance requirement on a lower computer is high are effectively solved. Therefore, the parameter configuration method of the pulse sequence has the advantages of simple and quick configuration work, effective reduction of the storage space required by the parameters, reduction of the performance requirement on the lower computer, low cost and high efficiency, and has wide application prospect in the field of pulse control.
As shown in fig. 2, when the configuration units are divided, the pulse sequence group is divided by using the vertical line where the two end points of each pulse amplitude are located as a boundary to form a plurality of configuration units, so that the pulse amplitude in each channel in each configuration unit is a single value; the configuration parameters for each configuration unit include the duration of the pulse amplitude, the pulse amplitude for each channel, and the number of cycles.
Since the amplitude of each channel of each configuration unit is a single value, a unified configuration mode can be adopted when performing parameter configuration, for example, in the 1 st configuration unit shown in fig. 3, the first parameter is a time parameter, which is a time parameter of all channels of the entire 1 st configuration unit, and the second parameter is an amplitude parameter, which is configured in sequence for the amplitude of each channel.
The advantage that each channel has a single amplitude is that the configuration operation is simple, convenient and fast, and the change operation is still simple, convenient and fast, when configuring parameters for the pulse sequence group of the next time unit, only the configuration unit that needs to be changed in the initial configuration step needs to be subjected to parameter change, for example, the pulse duration of the 4 th configuration unit needs to be changed, only the time parameter of the 4 th configuration unit needs to be changed, the time parameters of all four channels of the configuration unit are changed, and each channel does not need to be changed one by one. This has the effect of being more convenient and quicker than when there are multiple amplitudes for one or more channels in the configured configuration unit, because: as shown in fig. 5, the 6 th to 8 th configuration units in fig. 2 are divided into one configuration unit and recorded as the 6 th configuration unit, three amplitudes, namely a low amplitude, a high amplitude and a low amplitude, exist in a third channel of the divided configuration unit from left to right, and as shown in fig. 6, when parameter configuration is performed, it is necessary to perform respective configuration of amplitude parameters for the three amplitudes, and the configured parameters in the figure are, in order, a duration parameter, a high amplitude number and a cycle number of the configuration unit, and when changing, it is necessary to change the three amplitude parameters, and configuration operation is relatively complicated. Therefore, the pulse sequence groups are further defined by the embodiment by dividing the pulse sequence groups by using the longitudinal line where the two end points of each pulse amplitude are located as boundaries to form a plurality of configuration units, so that the configuration of parameters is further optimized, and the method has the advantages of being excellent in convenience and rapidness in operation and high in efficiency.
In an embodiment, the step of determining the rule may also use a form of a change table to represent the change of the configuration parameter, and in the step of continuing the configuration, the changed parameter may be obtained by looking up the table. For example, when the time parameter of the 4 th configuration unit is changed as shown in fig. 2-3, the change table determined for 5 time units is tab = [0x00000009,0x0000000b,0x0000000d,0x0000000f,0x00000011], and when the parameter of the 4 th configuration unit of the i-th time unit is changed, the table is looked up to obtain the corresponding parameter. The method for configuring the parameters is further optimized by setting the change formula or the change table, so that the configuration operation is more convenient and quicker, the efficiency is higher, and the storage space required by the configuration parameters is effectively reduced.
In an embodiment, the predetermined condition for configuring the parameters in the first determining step may be that the pulse parameter configuration of the current time unit is completed, or the pulse sequence group is formed according to the pulse parameters of the current time unit, or the pulse control operation is completed according to the pulse sequence group formed by the pulse parameters of the current time unit, or other conditions set according to needs.
In an embodiment, the present application further provides a parameter configuration apparatus for a pulse sequence, including:
a primary configuration module: dividing a pulse sequence group of an i =1 time unit containing one channel or a plurality of channel pulse sequences into a plurality of sections of configuration units along the extending direction of time, and configuring parameters for each section of configuration units according to the required pulse sequence group of the i =1 time unit to form pulse sequence group parameters of the i =1 time unit, wherein the configuration parameters of each configuration unit comprise the pulse amplitude and the duration of each channel of the configuration unit and the cycle number of the configuration unit; outputting the parameters of the pulse sequence group of the i =1 time unit;
a rule determining module: determining parameters needing to be changed in each configuration unit in the initial configuration module according to the required pulse sequence group of the ith time unit, and determining a change formula or a change table of the parameters; wherein i is an integer from 1 to n, n is a predetermined number of time units and is an integer greater than or equal to 1;
a first judgment module: judging whether a preset condition for parameter configuration is reached; if yes, executing a second judging module; if not, continuing to execute the first judgment module;
a second judging module: judging whether the time unit i is equal to n; if not, executing a continuous configuration module; if so, ending the parameter configuration of the pulse sequence;
and a continuous configuration module: adding 1 to the time unit i in an accumulated mode; taking the parameters of each configuration unit in the initial configuration module as the basis of continuous configuration, aiming at the configuration unit needing parameter change, obtaining the changed corresponding parameters of the configuration unit according to a change formula or a change table in a rule determining module, and simultaneously keeping the parameters which do not need to be changed in each configuration unit the same so as to form the pulse sequence group parameters of the ith time unit; outputting the pulse sequence group parameters of the ith time unit; and continuing to execute the first judgment module.
In one embodiment, the pulse sequence groups are divided by a vertical line at which two end points of each pulse amplitude are located to form a plurality of configuration units.
In an embodiment, the present application further provides a parameter configuration device for a pulse sequence, which can be widely applied to the field of pulse control, and includes:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method for parameter configuration of pulse sequences in any of the foregoing embodiments.
The processor can adopt an upper computer such as a computer and the like, and can also adopt a lower computer such as a singlechip, a DSP, an FPGA and the like.
In one embodiment, the present application further provides a computer-readable storage medium comprising: a storage medium having a computer program stored thereon; the method for configuring parameters of a pulse sequence in any of the preceding embodiments is implemented when the computer program is executed by a processor.
In the field of quantum sensing, high-precision measurement of physical quantities is realized by using quantum mechanical properties, and variables in the measurement process need to be regulated and controlled by using a pulse sequence and acquisition of detection signals needs to be controlled. For example, in a quantum sensing technology based on a diamond NV color center, laser and microwave are modulated through a pulse sequence, the modulated laser and microwave act on the diamond NV color center to excite fluorescence, and then the acquisition of a detection signal is controlled through the pulse sequence, so that Optical Detection Magnetic Resonance (ODMR) is realized by scanning the microwave frequency to detect the resonance frequency of the ground state energy level of the NV color center, zero-field splitting, high-precision measurement of physical quantities such as a magnetic field and the like; or setting microwave frequency and scanning microwave action time to realize the measurement of the pull ratio oscillation.
In an embodiment, as shown in fig. 7, the present application further provides a signal control and acquisition method for quantum sensing, which is applied in a quantum sensor, where the quantum sensor includes a detector for detecting and outputting a detection signal, and the signal control and acquisition method includes:
a pulse parameter forming step: configuring parameters of a pulse sequence group by using the parameter configuration method for a pulse sequence in any one of the foregoing embodiments, where the parameters of the pulse sequence group include configuration parameters of a pulse sequence for acquisition control, for example, in a quantum-sensing rabi oscillation measurement, the parameter configuration method in any one of the foregoing embodiments is used to configure parameters of a pulse sequence of three channels, where a pulse sequence of a third channel is used for acquisition control of a detection signal;
a pulse sequence forming step: generating a pulse sequence group according to the configured pulse sequence group parameters, and outputting the pulse sequence group;
a pulse control step: acquiring and controlling a detection signal output by the quantum sensor by using the generated pulse sequence for sampling control;
a data processing step: and processing and analyzing the acquired detection signals.
The signal control and acquisition method for quantum sensing can realize control and acquisition of detection signals output by a quantum sensor, wherein the pulse sequence parameters are configured by adopting the pulse sequence parameter configuration method, so that rapidness and convenience in configuration operation can be realized, the storage space required by the parameters is reduced, the operation performance is greatly improved, the cost is reduced, and the popularization and the application of the quantum sensing technology are facilitated.
In an embodiment, the processing and analyzing methods used in the data processing step include difference operation, filtering, data fitting, slope operation, FFT change, and the like, and further include calculations required for implementing the target experiment, such as calculating pi pulse time in the rabi oscillation measurement.
In one embodiment, the pulse sequence forming step specifically includes:
analyzing and processing steps: analyzing the parameters of the pulse sequence group formed in the pulse parameter forming step;
FIFO buffering step: performing FIFO caching on the pulse sequence group parameters after the analysis processing in the analysis processing step;
a pulse sequence generation step: generating a pulse sequence group according to the parameters of the pulse sequence group cached in the FIFO caching step;
a clock distribution step: according to a given reference clock, the clock is distributed to the analyzing processing step, the FIFO buffering step, and the pulse sequence generating step.
The FIFO buffer refers to a first-in first-out data buffer, for example, parameters of a pulse sequence group are sequentially loaded into 1024 × 4 bytes of FIFOs, which are respectively a time FIFO, an amplitude state FIFO, and a cycle number FIFO. The set of pulse trains generated by the pulse train generation step may be output for a control application of the pulses.
In an embodiment, the pulse sequence forming step further includes a parallel-serial step: performing parallel-to-serial processing on the pulse sequence group generated in the pulse sequence generation step; the clock distribution step also comprises distributing the clock to the parallel-to-serial step. In an embodiment, the parallel-to-serial step specifically includes two clocks, the frequency of the output clock is F times the frequency of the input clock, parallel data is input in the input clock, serial data is output in the output clock, for example, the frequency of the input clock is 125MHZ, the frequency of the output clock is 1ghz, F =1g/125m =8, parallel data of 8 bits is input in the input clock, and serial data of 1bit is output in the output clock, thereby improving the resolution of the pulse.
In an embodiment, the analysis in the analysis processing step is to analyze configuration parameters required for generating the pulse sequence, such as time represented by bytes 1 to 4, amplitude state represented by bytes 5 to 8, cycle number represented by bytes 9 to 12, number of configuration units, and the like of a j configuration unit in the i time unit.
In one embodiment, the pulse sequence generating step comprises:
a primary assignment step: extracting the configuration parameters of the j =1 configuration unit of the ith time unit from a FIFO buffer, wherein a duration parameter i _ time is extracted, a time _ cnt is started to time from 0, the extracted amplitude parameter of each channel is assigned to the corresponding channel along with the time to form a pulse sequence of the current configuration unit, a cycle number parameter i _ circle is extracted, and a cycle _ cnt is started to count from 1; executing a real-time judgment step; wherein i is an integer from 1 to n, n is a predetermined number of time units and is an integer greater than or equal to 1; for example, parameters are simultaneously extracted from 3 parameter FIFOs, a time parameter i _ time = 0x00000009 is extracted from the time FIFO, the start time _ cnt is timed from 0, an amplitude state 0x000000FF is extracted from an assignment state FIFO and assigned to 1 to 4 channels, the 1 st channel is at a high level, the 2 nd to 4 th channels are at a low level, a cycle number parameter i _ circle = 0x00000009 is extracted, and the start cycle _ cnt is counted from 1;
a real-time judgment step: judging whether (1) time _ cnt is equal to i _ time in real time; (2) Whether the circle _ cnt is equal to c, wherein c is more than or equal to 1 and less than or equal to i _ circle and is an integer; (3) whether circle _ cnt is equal to i _ circle;
if (1) is not, (2) is not, (3) is not, the real-time judgment step is continuously executed;
if not, (1) yes, (2) yes, and if not, (3) the real-time judgment step is continuously executed;
if (1) is not, if (2) is not, and if (3) is yes, continuously executing the real-time judgment step;
if not, (1) if yes, (2) if yes, and (3) judging whether the time _ cnt is equal to T, wherein T is more than or equal to 0 and less than i _ time, if yes, executing a re-judging step, and continuously executing the real-time judging step, otherwise, continuously executing the real-time judging step;
if (1) is yes, (2) is no, and if (3) is no, the cycle _ cnt plus 1,time_cnt = 0 starts the time counting of a new cycle, forming a pulse sequence of the current configuration unit along with the timing cycle of time, and continuously executing the real-time judgment step;
if the current configuration unit is the current configuration unit, (1) yes, (2) if the current configuration unit is the current configuration unit, (3) if the current configuration unit is the current configuration unit, judging whether the current configuration unit is the current configuration unit or not, and if the current configuration unit is the current configuration unit, judging whether the current configuration unit is the current configuration unit or not, and judging whether the current configuration unit is the current configuration unit or not;
if (1) is yes, (2) is no, and if (3) is yes, executing a continuous assignment step;
if (1) is, (2) is, (3) is, carry out and continue the assigning step;
and a judging step: judging whether j is equal to m, wherein m is the number of configuration units and is an integer greater than or equal to 1; if not, executing a preloading step, and executing one step when executing the continuous assignment step; if yes, executing the two steps when executing the continuous assignment step;
a preloading step: adding 1 to the configuration unit j in an accumulated mode; preloading configuration parameters of a jth configuration unit to a storage space;
and continuing the assignment step:
the method comprises the following steps: extracting configuration parameters of a jth configuration unit from a storage space, wherein a duration parameter i _ time is extracted, a starting time _ cnt starts timing from 0, the extracted amplitude parameter of each channel is assigned to the corresponding channel along with the timing of time, a cycle number parameter i _ circle is extracted, and the starting cycle _ cnt starts counting from 1; executing a real-time judgment step;
a second step: and extracting preset default values from the storage space to assign the pulse amplitude of each channel.
E.g., the storage space is BRAM, from which the parameters are extracted.
In the second step, a default value in the storage space is extracted to assign a value to the pulse amplitude of each channel, the generated pulse sequence is used for prompting the end of the generation of the pulse sequence of the time unit, and in one embodiment, the default value is a low amplitude value.
In one embodiment, when i _ circle >1, c = i _ circle-1, the re-determining step is performed by setting at the time of completing the penultimate cycle of the current configuration unit, when i _ circle =1, c =1, and when time _ cnt is equal to T, the re-determining step is performed, wherein 0 ≦ T < i _ time.
The pulse sequence generation step of the invention sequentially completes the generation and the cycle generation of the pulse sequence of each configuration unit by utilizing the configured time parameter, the amplitude parameter and the cycle number, thereby realizing the generation of the pulse sequence of the time unit.
In one embodiment, the pulse control step specifically includes:
triggering and configuring: configuring high-amplitude pulse trigger sampling, receiving a pulse sequence for sampling control, detecting the pulse sequence, and triggering the sampling step when the high amplitude of the pulse sequence is detected;
and DMA configuration step: determining the storage address of the data acquired in the acquisition step, setting the storage address as a source address of DMA transmission, setting a target address of the DMA transmission, configuring the length of single DMA transmission, and starting DMA interruption; for example, setting a source address of DMA transfer as an ADC register, a target address as a memory space address, and setting a DMA transfer length, for example, DMA _ len = L × K bytes;
the collection step comprises: performing ADC conversion acquisition on the detection signal and storing acquired data;
and DMA transmission step: in the acquisition step, counting and accumulating are executed every time acquisition is completed, when the accumulated value is equal to the DMA transmission length, the DMA is triggered to transmit the acquired data from a source address to a target address, and the DMA interrupt processing step is triggered; for example, each time the ADC acquires K bytes, and each time the acquisition is completed, add K cumulatively to ADC _ cnt, and trigger DMA transfer when ADC _ cnt = DMA _ len;
DMA interrupt processing step: and reading the acquired data in the target address to a data processing step.
Where DMA is a direct memory access.
In an embodiment, the DMA transfer is configured as a double Buffer mode, and the sampled data is transferred to a double Buffer area for double Buffer operation, so as to implement ping-pong operation of sampling and data processing, thereby improving the efficiency of sampling and data processing.
In an embodiment, the condition that parameter configuration can be performed in the first determination step in the parameter configuration method for a pulse sequence is that the acquisition operation of the current time unit is completed. When the generated pulse sequence is used for collecting and controlling the detection signal, after the collection operation of one time unit is completed, the parameter configuration of the pulse sequence of the next time unit can be carried out.
In an embodiment, in the parameter configuration method of the pulse sequence, the completion of the acquisition operation of the current time unit is judged according to a predetermined time interval, and then the completion of the acquisition operation of the current time unit is used as a condition for parameter configuration.
In an embodiment, the quantum sensor further includes a laser generation unit and a microwave generation unit, and the pulse sequence group parameters in the pulse parameter forming step further include configuration parameters for regulating and controlling the pulse sequences of the laser generation unit and the microwave generation unit, respectively. In this embodiment, the laser generation unit and the microwave generation unit are controlled by using the pulse sequence, respectively, so as to realize laser pulse and microwave modulation required by quantum sensing. For example, in addition to the aforementioned third channel pulse for controlling acquisition of a detection signal, a first channel pulse control laser generation unit is provided, and a second channel pulse control microwave generation unit is provided, so as to implement laser pulse and microwave modulation required by quantum sensing.
In an embodiment, as shown in fig. 8, the present application further provides a signal control and acquisition apparatus for quantum sensing, which is applied in a quantum sensor, where the quantum sensor includes a detector for detecting and outputting a detection signal, and the signal control and acquisition apparatus includes:
a pulse parameter forming module: the method for configuring the parameters of the pulse sequence in any one of the embodiments is used for configuring the parameters of a pulse sequence group, wherein the parameters of the pulse sequence group comprise configuration parameters of the pulse sequence used for acquisition control;
a pulse sequence forming module: the pulse sequence set is generated according to the configured parameters of the pulse sequence set, and the pulse sequence set is output;
the pulse control module: the pulse sequence used for sampling control is generated and used for carrying out acquisition control on a detection signal output by the quantum sensor;
a data processing module: the device is used for processing and analyzing the acquired detection signals.
In one embodiment, the processing and analysis performed in the data processing module includes performing difference operation, filtering, data fitting, slope operation, FFT change, and the like, and also includes calculations required to achieve a target experiment, such as calculating pi pulse time in a rabi oscillation measurement.
In one embodiment, the pulse sequence forming module specifically includes:
an analysis processing module: the pulse parameter forming module is used for forming a pulse sequence group parameter;
FIFO buffer module: the FIFO buffer memory is used for carrying out FIFO buffer memory on the pulse sequence group parameters analyzed and processed by the analysis processing module;
a pulse sequence generation module: the FIFO buffer module is used for buffering the pulse sequence group parameters to generate a pulse sequence group;
a clock distribution module: the clock distribution module is used for distributing clocks to the analysis processing module, the FIFO buffer module and the pulse sequence generation module respectively according to a given reference clock.
In an embodiment, the pulse sequence forming module further includes a parallel-serial module: the pulse sequence group generating module is used for generating a pulse sequence group; the clock distribution module also comprises a clock distribution module for distributing the clock to the parallel-to-serial module. In an embodiment, the parallel-to-serial module is specifically implemented by giving two clocks, the frequency of the output clock is F times of the frequency of the input clock, parallel data is input under the input clock, serial data is output under the output clock, for example, the frequency of the input clock is 125MHZ, the frequency of the output clock is 1ghz, F =1g/125m =8, parallel data of 8 bits is input under the input clock, and serial data of 1bit is output under the output clock, so that the resolution of the pulses is improved.
In an embodiment, the pulse sequence generating module is configured to implement the pulse sequence generating steps in the foregoing embodiments.
In one embodiment, the pulse control module specifically includes:
a trigger configuration module: the pulse sequence detection module is used for configuring high-amplitude pulse trigger sampling, receiving and detecting a pulse sequence used for sampling control, and triggering the sampling module when the high amplitude of the pulse sequence is detected;
a DMA configuration module: determining the storage address of the data acquired in the acquisition step, setting the storage address as a source address of DMA transmission, setting a target address of the DMA transmission, configuring the length of single DMA transmission, and starting DMA interruption;
an acquisition module: performing ADC conversion acquisition on the detection signal and storing acquired data;
a DMA transfer module: when the acquisition is completed once in the acquisition module, counting and accumulating are executed, when the accumulated value is equal to the DMA transmission length, the DMA is triggered to transmit the acquired data from a source address to a target address, and the DMA interrupt processing module is triggered;
a DMA interrupt processing module: and reading the data in the target address to the data processing module.
In an embodiment, the DMA transfer is configured as a double Buffer mode, and the sampled data is transferred to a double Buffer area for double Buffer operation, so as to implement ping-pong operation of sampling and data processing, thereby improving the efficiency of sampling and data processing.
In an embodiment, the condition that parameter configuration can be performed in the first determination step in the parameter configuration method for a pulse sequence is that the acquisition operation of the current time unit is completed.
In an embodiment, in the parameter configuration method of the pulse sequence, the completion of the acquisition operation of the current time unit is judged according to a predetermined time interval, and then the completion of the acquisition operation of the current time unit is used as a condition for parameter configuration.
In an embodiment, the quantum sensor further includes a laser generation unit and a microwave generation unit, and the pulse sequence group parameters in the pulse parameter forming module further include configuration parameters for regulating and controlling the pulse sequences of the laser generation unit and the microwave generation unit, respectively. In this embodiment, the laser generation unit and the microwave generation unit are controlled by using the pulse sequence, respectively, so as to realize laser pulse and microwave modulation required by quantum sensing.
In an embodiment, as shown in fig. 9, the present invention further provides a signal control and acquisition apparatus for quantum sensing, including:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the signal control and acquisition method for quantum sensing in any of the foregoing embodiments.
Two processors are illustrated in fig. 9, but may be one or more.
In an embodiment, as shown in fig. 9, the two processors are a single chip microcomputer and an FPGA connected thereto, the single chip microcomputer is further connected to the detection signal output end of the quantum sensor, the single chip microcomputer is configured to implement the pulse parameter forming step, the pulse control step, and the data processing step, and send the configured parameters of the pulse sequence group to the FPGA, the FPGA is configured to implement the pulse sequence forming step according to the received parameters of the pulse sequence group, and send the formed pulse sequence for acquisition control to the single chip microcomputer, and the single chip microcomputer performs acquisition control on the detection signal output by the quantum sensor by using the received pulse sequence. In the embodiment, the configuration of the pulse sequence parameters, the generation of the pulse sequence and the control and acquisition of the detection signal are realized by adopting the single chip microcomputer and the FPGA, so that the problems of complex operation and poor coordination caused by feedback communication between an upper computer and a lower computer are solved, the whole parameter configuration process can be realized by the single chip microcomputer without performing feedback communication with another lower computer, the high integration level is realized, the generation of the pulse sequence can be realized without adopting a high-performance FPGA, the cost is greatly reduced, and the wide application prospect is realized.
In one embodiment, the single chip microcomputer adopts STM32, and the single chip microcomputer has the advantages of being good in control performance and low in cost.
In one embodiment, the single chip microcomputer adopts AVR. In one embodiment, other types of singlechips may be used.
In one embodiment, the present application provides a computer-readable storage medium having a computer program stored thereon; when the computer program is executed by a processor, the signal control and acquisition method for quantum sensing in any of the foregoing embodiments is implemented.
In one embodiment, the present application provides a signal control and acquisition system for quantum sensing, which includes the signal control and acquisition device for quantum sensing in any of the foregoing embodiments and a quantum sensor connected thereto.
In an embodiment, the quantum sensor further includes a laser generation unit and a microwave generation unit, and the signal control and acquisition device is further configured to respectively send pulse sequences to the laser generation unit and the microwave generation unit to respectively regulate and control generation of laser and generation of microwaves.
A computer readable medium in the present invention may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a computer-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Various implementations of the systems and techniques described above in this disclosure may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In conclusion, the parameter configuration method of the pulse sequence has the advantages of simple and quick configuration work, effective reduction of the storage space required by the parameters, reduction of the performance requirement on the lower computer, low cost and high efficiency; the signal control and acquisition method and the signal control and acquisition equipment for quantum sensing can realize the control and acquisition of detection signals output by a quantum sensor, and the pulse sequence parameters are configured by adopting the pulse sequence parameter configuration method, so that the configuration operation can be realized quickly and conveniently, the storage space required by the parameters is reduced, the running performance is greatly improved, the cost is reduced, and the popularization and the application of the quantum sensing technology are facilitated; the configuration of pulse sequence parameters, the generation of the pulse sequence and the control and acquisition of detection signals are realized by adopting the singlechip and the FPGA, on one hand, the problems of complex operation and poor coordination caused by feedback communication between an upper computer and a lower computer are avoided, the whole parameter configuration process can be realized by the singlechip without performing feedback communication with another lower computer, on the other hand, the singlechip has high integration level, the generation of the pulse sequence can be realized without adopting a high-performance FPGA, and the cost is greatly reduced. Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Those skilled in the art can modify or change the above-described embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which may be made by those skilled in the art without departing from the spirit and scope of the present invention as defined in the appended claims.

Claims (10)

1. A method for configuring parameters of a pulse sequence, comprising:
a primary configuration step: dividing a pulse sequence group of an i =1 time unit containing one channel or a plurality of channel pulse sequences into a plurality of sections of configuration units along the extending direction of time, and configuring parameters for each section of configuration units according to the required pulse sequence group of the i =1 time unit to form pulse sequence group parameters of the i =1 time unit, wherein the configuration parameters of each configuration unit comprise the pulse amplitude and the duration of each channel of the configuration unit and the cycle number of the configuration unit; outputting the parameters of the pulse sequence group of the i =1 time unit;
determining a rule: determining parameters needing to be changed in each configuration unit in the initial configuration step according to the required pulse sequence group of the ith time unit, and determining a change formula or a change table of the parameters; wherein i is an integer from 1 to n, n is a predetermined number of time units and is an integer greater than or equal to 1;
a first judgment step: judging whether a preset condition for parameter configuration is reached; if yes, executing a second judgment step; if not, continuing to execute the first judgment step;
a second judgment step: judging whether the time unit i is equal to n or not; if not, executing the step of continuous configuration; if yes, ending the parameter configuration of the pulse sequence;
and continuing the configuration step: adding 1 to the time unit i in an accumulated mode; taking the parameters of each configuration unit in the initial configuration step as the basis of continuous configuration, aiming at the configuration unit needing parameter change, obtaining the changed corresponding parameters of the configuration unit according to the change formula or the change table in the rule determining step, and simultaneously keeping the parameters which do not need to be changed in each configuration unit the same so as to form the pulse sequence group parameters of the ith time unit; outputting the pulse sequence group parameters of the ith time unit; and continuing to execute the first judgment step.
2. The method of claim 1, wherein: and dividing the pulse sequence group by taking a longitudinal line in which two end points of each pulse amplitude are positioned as a boundary to form a plurality of configuration units.
3. A signal control and acquisition method for quantum sensing is applied to a quantum sensor, the quantum sensor comprises a detector and is used for detecting and outputting a detection signal, and the signal control and acquisition method comprises the following steps:
a pulse parameter forming step: configuring parameters of a pulse sequence group by adopting the parameter configuration method of the pulse sequence according to any one of claims 1-2, wherein the parameters of the pulse sequence group comprise configuration parameters of the pulse sequence for acquisition control;
a pulse sequence forming step: generating a pulse sequence group according to the configured pulse sequence group parameters, and outputting the pulse sequence group;
a pulse control step: acquiring and controlling a detection signal output by the quantum sensor by using the generated pulse sequence for acquisition and control;
and (3) data processing: and processing and analyzing the acquired detection signals.
4. The signal control and acquisition method for quantum sensing of claim 3, wherein: the pulse sequence forming step specifically includes:
analyzing and processing steps: analyzing the parameters of the pulse sequence group formed in the pulse parameter forming step;
FIFO buffer step: performing FIFO caching on the pulse sequence group parameters after the analysis processing in the analysis processing step;
a pulse sequence generation step: generating a pulse sequence group according to the parameters of the pulse sequence group cached in the FIFO caching step;
a clock distribution step: and distributing clocks to the analysis processing step, the FIFO buffering step and the pulse sequence generating step respectively according to a given reference clock.
5. The signal control and acquisition method for quantum sensing of claim 4, wherein: the step of generating the pulse sequence specifically comprises:
and (3) initial assignment step: extracting configuration parameters of a j =1 configuration unit of an ith time unit from a FIFO (first in first out) buffer, wherein a duration parameter i _ time is extracted, a starting time _ cnt is timed from 0, an amplitude parameter of each extracted channel is assigned to the corresponding channel along with the timing of time to form a pulse sequence of the current configuration unit, a cycle number parameter i _ circle is extracted, and the starting cycle _ cnt is counted from 1; executing a real-time judgment step; wherein i is an integer from 1 to n, n is a predetermined number of time units and is an integer greater than or equal to 1;
a real-time judgment step: judging whether (1) time _ cnt is equal to i _ time in real time; (2) Whether circle _ cnt is equal to c, wherein c is more than or equal to 1 and less than or equal to i _ circle and is an integer; (3) whether circle _ cnt is equal to i _ circle;
if not, (1) and if not, (3) continuing to execute the real-time judgment step;
if (1) is not, if (2) is not, and if (3) is yes, continuously executing the real-time judgment step;
if not, (2) if yes, and (3) judging whether the time _ cnt is equal to T, wherein T is more than or equal to 0 and less than or equal to i _ time, if yes, executing a re-judgment step, and continuously executing the real-time judgment step, otherwise, continuously executing the real-time judgment step;
if the current configuration unit is in the (1) state, the current configuration unit is in the (2) state, if the current configuration unit is in the (3) state, the cycle _ cnt plus 1,time_cnt = 0 state, a new cycle time clock is started, a pulse sequence of the current configuration unit is formed along with the time clock cycle, and the real-time judgment step is continuously executed;
if the current configuration unit is the current configuration unit, (1) yes, (2) if the current configuration unit is the current configuration unit, (3) if the current configuration unit is the current configuration unit, judging whether the current configuration unit is the current configuration unit or not, and if the current configuration unit is the current configuration unit, judging whether the current configuration unit is the current configuration unit or not, and judging whether the current configuration unit is the current configuration unit or not;
if (1) is yes, and if (3) is yes, a continuous assignment step is executed;
and a judging step: judging whether j is equal to m, wherein m is the number of configuration units and is an integer greater than or equal to 1; if not, executing a preloading step, and executing one of the steps when executing the continuous assignment step; if yes, executing the two steps when executing the continuous assignment step;
a preloading step: adding 1 to the configuration unit j in an accumulated mode; preloading configuration parameters of a jth configuration unit to a storage space;
and continuing the assignment step: the method comprises the following steps: extracting configuration parameters of a j-th configuration unit from a storage space, wherein a duration parameter i _ time is extracted, a starting time _ cnt starts to time from 0, the extracted amplitude parameter of each channel is assigned to the corresponding channel along with the time, a cycle number parameter i _ circle is extracted, and a cycle circulating _ cnt starts to count from 1; executing a real-time judgment step;
the second step is that: and extracting preset default values from the storage space to assign the pulse amplitude of each channel.
6. The signal control and acquisition method for quantum sensing of claim 3, wherein: the pulse control step specifically includes:
triggering and configuring: configuring high-amplitude pulse trigger sampling, receiving a pulse sequence for sampling control, detecting the pulse sequence, and triggering the sampling step when the high amplitude of the pulse sequence is detected;
and DMA configuration step: determining the storage address of the data acquired in the acquisition step, setting the storage address as a source address of DMA transmission, setting a target address of the DMA transmission, configuring the length of single DMA transmission, and starting DMA interruption;
the collection step comprises: performing ADC conversion acquisition on the detection signal and storing acquired data;
and DMA transmission step: in the acquisition step, when the acquisition is completed once, counting and accumulating are executed, when the accumulated value is equal to the DMA transmission length, the DMA is triggered to transmit the acquired data from a source address to a target address, and the DMA interrupt processing step is triggered;
DMA interrupt processing step: and reading the acquired data in the target address to a data processing step.
7. The signal control and acquisition method for quantum sensing of claim 3, wherein: in the parameter configuration method of the pulse sequence, the condition which is preset in the first judgment step and can carry out parameter configuration is that the acquisition operation of the current time unit is completed; the quantum sensor further comprises a laser generation unit and a microwave generation unit, and the pulse sequence group parameters in the pulse parameter forming step further comprise configuration parameters for regulating and controlling the pulse sequences of the laser generation unit and the microwave generation unit respectively.
8. A signal control and acquisition device for quantum sensing, comprising:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the signal control and acquisition method for quantum sensing of any of claims 3-7.
9. The signal control and acquisition device for quantum sensing of claim 8, wherein: the system comprises two processors, a single chip microcomputer and an FPGA (field programmable gate array) connected with the single chip microcomputer, wherein the single chip microcomputer is also connected with a detection signal output end of a quantum sensor, the single chip microcomputer is used for realizing the pulse parameter forming step, the pulse control step and the data processing step and sending the configured parameters of a pulse sequence group to the FPGA, the FPGA is used for realizing the pulse sequence forming step according to the received parameters of the pulse sequence group and sending the formed pulse sequence for acquisition control to the single chip microcomputer, and the single chip microcomputer is used for acquiring and controlling the detection signals output by the quantum sensor by using the received pulse sequence.
10. A computer-readable storage medium characterized by: the storage medium having stored thereon a computer program; the computer program, when executed by a processor, implements a signal control and acquisition method for quantum sensing as claimed in any one of claims 3-7.
CN202211461781.5A 2022-11-17 2022-11-17 Parameter configuration method of pulse sequence, signal control and acquisition method and equipment Active CN115509167B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211461781.5A CN115509167B (en) 2022-11-17 2022-11-17 Parameter configuration method of pulse sequence, signal control and acquisition method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211461781.5A CN115509167B (en) 2022-11-17 2022-11-17 Parameter configuration method of pulse sequence, signal control and acquisition method and equipment

Publications (2)

Publication Number Publication Date
CN115509167A CN115509167A (en) 2022-12-23
CN115509167B true CN115509167B (en) 2023-01-20

Family

ID=84513761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211461781.5A Active CN115509167B (en) 2022-11-17 2022-11-17 Parameter configuration method of pulse sequence, signal control and acquisition method and equipment

Country Status (1)

Country Link
CN (1) CN115509167B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5317260A (en) * 1989-06-27 1994-05-31 Bruker Analytische Messtechnik Gmbh Process for generating a pulse sequence
JPH06160532A (en) * 1992-11-16 1994-06-07 Tokimec Inc Pulse train analyzer
CN103323804A (en) * 2012-03-22 2013-09-25 西门子公司 Method to determine a complete parameter of a magnetic resonance pulse sequence
CN106197648A (en) * 2016-07-25 2016-12-07 威海北洋光电信息技术股份公司 Fiber-optic vibration interference signal real-time data acquisition and transmitting device and application thereof
CN107145468A (en) * 2017-07-19 2017-09-08 中国科学技术大学 Signal generating and reading device and control method
CN108627867A (en) * 2018-03-14 2018-10-09 中国人民解放军火箭军工程大学 A kind of real-time discrimination systems of digitlization n- γ
CN109581016A (en) * 2018-11-07 2019-04-05 电子科技大学 A kind of random time equivalent sampling system
CN109613569A (en) * 2018-11-27 2019-04-12 北京航空航天大学 A kind of satellite navigation abnormal signal simulator and abnormal signal analogy method based on CPU+FPGA
CN112819170A (en) * 2021-01-22 2021-05-18 北京百度网讯科技有限公司 Control pulse generation method, device, system, equipment and storage medium
CN113516248A (en) * 2021-07-12 2021-10-19 北京百度网讯科技有限公司 Quantum gate testing method and device and electronic equipment
CN113890513A (en) * 2020-09-28 2022-01-04 北京百度网讯科技有限公司 Quantum hardware control method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7292656B2 (en) * 2002-04-22 2007-11-06 Cognio, Inc. Signal pulse detection scheme for use in real-time spectrum analysis

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5317260A (en) * 1989-06-27 1994-05-31 Bruker Analytische Messtechnik Gmbh Process for generating a pulse sequence
JPH06160532A (en) * 1992-11-16 1994-06-07 Tokimec Inc Pulse train analyzer
CN103323804A (en) * 2012-03-22 2013-09-25 西门子公司 Method to determine a complete parameter of a magnetic resonance pulse sequence
CN106197648A (en) * 2016-07-25 2016-12-07 威海北洋光电信息技术股份公司 Fiber-optic vibration interference signal real-time data acquisition and transmitting device and application thereof
CN107145468A (en) * 2017-07-19 2017-09-08 中国科学技术大学 Signal generating and reading device and control method
CN108627867A (en) * 2018-03-14 2018-10-09 中国人民解放军火箭军工程大学 A kind of real-time discrimination systems of digitlization n- γ
CN109581016A (en) * 2018-11-07 2019-04-05 电子科技大学 A kind of random time equivalent sampling system
CN109613569A (en) * 2018-11-27 2019-04-12 北京航空航天大学 A kind of satellite navigation abnormal signal simulator and abnormal signal analogy method based on CPU+FPGA
CN113890513A (en) * 2020-09-28 2022-01-04 北京百度网讯科技有限公司 Quantum hardware control method and device
CN112819170A (en) * 2021-01-22 2021-05-18 北京百度网讯科技有限公司 Control pulse generation method, device, system, equipment and storage medium
CN113516248A (en) * 2021-07-12 2021-10-19 北京百度网讯科技有限公司 Quantum gate testing method and device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于数字调制技术的核磁共振射频脉冲发生器;朱云峰等;《波谱学杂志》;20180911(第03期);全文 *

Also Published As

Publication number Publication date
CN115509167A (en) 2022-12-23

Similar Documents

Publication Publication Date Title
CN104345994B (en) The system and method for LIDAR signal adjustment
CN108886366B (en) ADC controller with time separation
US6563902B2 (en) Energy dispersive X-ray analyzer
CN105301627B (en) A kind of energy spectrum analysis method, energy spectrum analysis system and gamma-ray detection system
US8884807B1 (en) Pseudo real time receive signal sampling for ground penetrating radar
CN103713171A (en) Oscilloscope having delayed trigger function
CN106407153B (en) A kind of high-resolution data acquisition method and device
CN115509167B (en) Parameter configuration method of pulse sequence, signal control and acquisition method and equipment
CN103293420B (en) A kind of multiparameter digital signal processing hardware circuit and multiparameter disposal route
CN111143261A (en) PCIE (peripheral component interface express) -based high-speed data acquisition system
CN104007300A (en) Digital phosphor oscilloscope random sampling phase scrambling circuit design method
US9191241B2 (en) Method for acquiring and processing signals
CN103675381A (en) Parallel sampling oscilloscope with cycle triggering function
CN111413725B (en) System and method for realizing gamma-gamma digital coincidence measurement by using virtual instrument technology
CN115562135B (en) Parameter configuration method of pulse sequence and generation method and equipment of pulse sequence
CN103490783A (en) Method for converting analog signals into digital information
CN113091897B (en) Coincidence counting method and device, coincidence counting equipment and storage medium
CN106936435B (en) Method for rapidly determining ADC splicing sequence
CN206819120U (en) Data acquisition signal processing unit and optical fiber sensing system for optical fiber sensing system
Kang et al. A 128-channel high precision time measurement module
CN109030934A (en) A method of improving peak power measurement speed
CN104320094B (en) Pulse signal standing-wave protecting circuit
CN106647435A (en) Multichannel data sampling method, system and device
CN206400291U (en) Multi-channel data sampling apparatus and system
KR101719741B1 (en) Apparatus and method for transmitting data to power cable diagnostic 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
GR01 Patent grant
GR01 Patent grant