Signal synchronization method and apparatus, electronic device, and computer-readable storage medium
By configuring delay parameters in the quantum measurement and control system, the problem of synchronous and stable output caused by the uncertainty of the phase relationship between the acquisition clock edge and the pulse trigger signal within the device was solved, achieving accurate synchronization of the pulse trigger signal and improving the scalability and stability of the system.
Patent Information
- Application Number
- CN202211193839.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-28
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2042-09-28
AI Technical Summary
In quantum measurement and control systems, the uncertainty in the phase relationship between the acquisition clock edge and the pulse trigger signal in each device makes it impossible for the device to accurately determine the synchronous and stable output of the pulse trigger signal.
By acquiring multiple pulse trigger signals, configuring corresponding delay parameters, determining the synchronization stability of each pulse trigger signal, and adjusting the delay parameters as necessary, until a synchronous and stable output is achieved.
It achieves accurate, synchronous, and stable output of pulse trigger signals in the quantum measurement and control system, solves the synchronization problem between devices, and improves the system's scalability and stability.
Smart Images

Figure CN115796291B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of radio management and detection technology, and in particular to a signal synchronization method, apparatus, electronic device, and computer-readable storage medium. Background Technology
[0002] As the number of qubits integrated into superconducting quantum chips continues to grow, the scale of control and measurement systems (hereinafter referred to as quantum measurement and control systems) is also constantly increasing. These quantum measurement and control systems face serious challenges in terms of scalability, synchronization, low latency, noise suppression, and functional reconfiguration, thus limiting the scalability of quantum chips.
[0003] In this quantum measurement and control system, each device needs to ensure the synchronization of output waveforms across different channels. Each device can control its analog-to-digital converter module by inputting a unified pulse trigger signal, thereby synchronously and stably outputting the corresponding microwave signal. Therefore, the output synchronization of the signal in this quantum measurement and control system mainly relies on clock synchronization between devices and the trigger synchronization of the pulse trigger signal. In other words, after receiving a synchronized pulse trigger signal, each device in this quantum measurement and control system can synchronously and stably output microwave signals.
[0004] However, for the pulse trigger signals input by each device, due to the uncertainty in the phase relationship between the acquisition clock edge and the pulse trigger signal in each device, the digital circuits in each device may experience metastability when acquiring the pulse trigger signal. This may cause the devices to be unable to accurately determine the synchronous and stable output of each pulse trigger signal. Summary of the Invention
[0005] This invention provides a signal synchronization method, apparatus, electronic device, and computer-readable storage medium to address the shortcomings of existing technologies where the uncertainty in the phase relationship between the acquisition clock edge and the pulse trigger signal in each device of a quantum measurement and control system leads to the inability of each device to accurately determine the synchronous and stable output of each pulse trigger signal. The invention enables the configuration of corresponding delay parameters for each pulse trigger signal, thereby accurately determining the synchronous and stable output of each pulse trigger signal.
[0006] This invention provides a signal synchronization method, comprising:
[0007] Acquire multiple first pulse trigger signals;
[0008] Based on the first acquisition clock, if the first sampling signals corresponding to each first pulse trigger signal are not synchronized, a corresponding first delay parameter is configured for each first pulse trigger signal to obtain multiple second pulse trigger signals.
[0009] Based on the first acquisition clock, the second sampling signal corresponding to each of the second pulse trigger signals is determined;
[0010] The synchronization stability of each second sampling signal is determined based on the number of intervals corresponding to each second sampling signal.
[0011] According to a signal synchronization method provided by the present invention, determining the synchronization stability of each second sampled signal based on the number of intervals corresponding to each second sampled signal includes: determining that each second sampled signal is synchronously stable when the number of intervals corresponding to each second sampled signal is the same; and determining that each second sampled signal is not synchronously stable when the number of intervals corresponding to each second sampled signal is different.
[0012] According to a signal synchronization method provided by the present invention, after determining that each of the second sampled signals is synchronously stable, the method further includes: when it is determined that each of the second sampled signals is synchronously stable for the first time, configuring a corresponding second delay parameter for each of the second pulse trigger signals to obtain a plurality of third pulse trigger signals; when it is determined that the third sampled signals corresponding to each of the third pulse trigger signals are synchronously stable, configuring a corresponding third delay parameter for each of the third pulse trigger signals to obtain a plurality of fourth pulse trigger signals; until it is determined that the nth sampled signals corresponding to each of the nth pulse trigger signals are not synchronously stable, obtaining n-1 delay parameters, where n is an integer greater than or equal to 2; and determining a preset delay parameter corresponding to each of the nth pulse trigger signals based on the n-1 delay parameters.
[0013] According to a signal synchronization method provided by the present invention, determining a preset delay parameter corresponding to each of the first pulse trigger signals based on the n-1 delay parameters includes one of the following: determining a first average value corresponding to the n-1 delay parameters and determining the first average value as the preset delay parameter corresponding to each of the first pulse trigger signals; determining a weighted average value corresponding to the n-1 delay parameters and determining the weighted average value as the preset delay parameter corresponding to each of the first pulse trigger signals; and determining a second average value corresponding to the first delay parameter and the (n-1)th delay parameter and determining the second average value as the preset delay parameter corresponding to each of the first pulse trigger signals.
[0014] According to a signal synchronization method provided by the present invention, after determining that each of the second sampling signals is not synchronously stable, the method further includes: configuring a corresponding new first delay parameter for each of the first pulse trigger signals to obtain a plurality of new second pulse trigger signals; determining a new second sampling signal corresponding to each of the new second pulse trigger signals based on a third acquisition clock; and determining that each of the new second sampling signals is synchronously stable when the number of intervals corresponding to each of the new second sampling signals is the same.
[0015] According to a signal synchronization method provided by the present invention, after determining the preset delay parameters corresponding to each of the nth pulse trigger signals, the method further includes: automatically storing the preset delay parameters.
[0016] According to a signal synchronization method provided by the present invention, after automatically storing the preset delay parameter, the method further includes: when multiple first pulse trigger signals are acquired again, configuring corresponding preset delay parameters for each of the first pulse trigger signals to obtain multiple target pulse trigger signals; determining the target sampling signal corresponding to each of the target pulse trigger signals based on a second acquisition clock; and determining that each of the target sampling signals is synchronously stable when the number of intervals corresponding to each of the target sampling signals is the same.
[0017] The present invention also provides a signal synchronization device, comprising:
[0018] The acquisition module is used to acquire multiple first pulse trigger signals;
[0019] The determining module is configured to, when the first sampling signals corresponding to each first pulse trigger signal are not synchronized based on the first acquisition clock, configure corresponding first delay parameters for each first pulse trigger signal to obtain multiple second pulse trigger signals; determine the second sampling signals corresponding to each second pulse trigger signal based on the first acquisition clock; and determine the synchronization stability of each second sampling signal according to the number of intervals corresponding to each second sampling signal.
[0020] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the signal synchronization method as described above.
[0021] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the signal synchronization method as described above.
[0022] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the signal synchronization method as described above.
[0023] The present invention provides a signal synchronization method, apparatus, electronic device, and computer-readable storage medium. This method acquires multiple first pulse trigger signals; when, based on a first acquisition clock, it is determined that the first sampling signals corresponding to each of the first pulse trigger signals are asynchronous, it configures corresponding first delay parameters for each of the first pulse trigger signals to obtain multiple second pulse trigger signals; based on the first acquisition clock, it determines the second sampling signals corresponding to each of the second pulse trigger signals; and based on the number of intervals corresponding to each of the second sampling signals, it determines the synchronization stability of each of the second sampling signals. This method addresses the deficiency in the prior art where the uncertainty in the phase relationship between the acquisition clock edge and the pulse trigger signal in each device within a quantum measurement and control system leads to the inability of each device to accurately determine the synchronous stable output of each pulse trigger signal. By configuring corresponding delay parameters for each pulse trigger signal, the synchronous stable output of each pulse trigger signal can be accurately determined. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0025] Figure 1 This is a flowchart illustrating the signal synchronization method provided by the present invention;
[0026] Figure 2a This is a schematic diagram of the preset delay parameters provided by the present invention.
[0027] Figure 2b This is a schematic diagram showing that the various pulse trigger signals provided by this invention are not synchronously and stably output;
[0028] Figure 2c This is a schematic diagram showing that the various pulse trigger signals provided by this invention are synchronously and stably output;
[0029] Figure 3 This is a schematic diagram of the signal synchronization device provided by the present invention;
[0030] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0031] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0032] It should be noted that the electronic device involved in the embodiments of the present invention can also be called a quantum measurement and control device, which is used to measure and control the synchronous and stable output of multiple pulse trigger signals.
[0033] It should be noted that the execution subject involved in the embodiments of the present invention can be a feed stability detection device or an electronic device. The embodiments of the present invention will be further described below using an electronic device as an example.
[0034] like Figure 1 The diagram shown is a flowchart of the signal synchronization method provided by the present invention, which may include:
[0035] 101. Obtain multiple first pulse trigger signals.
[0036] Among them, the pulse trigger signal refers to a discrete signal with various shapes. Compared with ordinary analog signals (such as sine waves), the waveforms of the pulse trigger signal are discontinuous on the time axis and have a certain periodicity.
[0037] Optionally, the pulse trigger signal may include, but is not limited to, rectangular waves and triangular waves.
[0038] Optionally, the connection method of the pulse trigger signal may include, but is not limited to: sequential serial connection and one-to-many distribution.
[0039] The electronic device utilizes a Field-Programmable Gate Array (FPGA) controller to pre-set the signal period and number of signals of the first pulse trigger signal.
[0040] The signal period can be represented by T, which is an integer multiple of the acquisition clock period in the electronic device, and T≥1;
[0041] The number of signals can be represented by N, where N≥2.
[0042] The user can first import N consecutive first pulse trigger signals with an equal time interval of T into the electronic device; then, the electronic device can acquire these N first pulse trigger signals so that the electronic device can effectively determine the synchronous and stable output of each first pulse trigger signal.
[0043] Optionally, after step 101, the method may further include: the electronic device introducing a delay module of the FPGA controller; the electronic device using the delay module to configure a 0th-order delay parameter for each of the plurality of first pulse trigger signals in the initial state, the 0th-order delay parameter being 0 seconds (s).
[0044] Optionally, the delay module can be an IDELAYE primitive.
[0045] It should be noted that electronic devices can use the IDELAYE primitive to configure delay parameters for pulse trigger signals. There are 512 delay parameters in total. Each additional delay parameter in the IDELAYE primitive can add approximately 4 picoseconds of delay to the pulse trigger signal.
[0046] 102. Based on the first acquisition clock, if the first sampling signals corresponding to each first pulse trigger signal are not synchronized, configure the corresponding first delay parameter for each first pulse trigger signal to obtain multiple second pulse trigger signals.
[0047] The first acquisition clock, also known as the first sampling clock, refers to the moment when the first pulse trigger signal is sampled. This first acquisition clock has a certain periodicity on the time axis, and its sampling period is different from the signal period T of the aforementioned pulse trigger signal.
[0048] The first sampling signal refers to the signal obtained by the electronic device through discrete sampling of the first pulse trigger signal based on the first acquisition clock;
[0049] The first delay parameter is configured by the electronic device using the FPGA controller for the first pulse trigger signal. This first delay parameter can be used to change the relative phase relationship between the acquisition clock and the first pulse trigger signal, thereby affecting the trigger synchronization of multiple subsequent second pulse trigger signals.
[0050] After acquiring multiple first pulse trigger signals, the electronic device can sample these multiple first pulse trigger signals based on a first acquisition clock to obtain multiple first sampled signals. Then, the electronic device can determine the trigger synchronization of these multiple first sampled signals. If it is determined that these multiple first sampled signals are not synchronized, the FPGA controller can be used to configure corresponding first delay parameters for each first pulse trigger signal. To ensure the trigger synchronization of subsequent pulse trigger signals, each configured first delay parameter is different. Then, the electronic device can determine the first pulse trigger signal configured with the first delay parameter as the second pulse trigger signal so that the electronic device can effectively determine the synchronous and stable output of each second pulse trigger signal.
[0051] Optionally, the electronic device determines that the first sampling signals corresponding to each first pulse trigger signal are out of sync based on the first acquisition clock. This can include: the electronic device determining the first sampling signal corresponding to each first pulse trigger signal based on the first acquisition clock; the electronic device determining the number of intervals corresponding to each first sampling signal; and the electronic device determining that the first sampling signals are out of sync when it determines that the number of intervals is different.
[0052] The number of intervals refers to the number of waveform intervals of the first sampled signal.
[0053] In other words, when an electronic device determines whether multiple first sampled signals are synchronously and stably output, it only needs to determine whether the number of intervals corresponding to these multiple first sampled signals is the same. If the number of intervals is the same, then it can be directly determined that these multiple sampled signals are synchronously and stably output. If there are cases where the number of intervals is different, then it can be determined that these multiple first sampled signals are not synchronously and stably output.
[0054] 103. Based on the first acquisition clock, determine the second sampling signal corresponding to each second pulse trigger signal.
[0055] After determining multiple second pulse trigger signals, the electronic device can perform discrete sampling on these multiple second pulse trigger signals under the same acquisition clock, that is, based on the first acquisition clock, to obtain multiple second sample signals, so that the electronic device can effectively determine the synchronous and stable output of each second sample signal.
[0056] 104. Determine the synchronization stability of each second sampling signal based on the number of intervals corresponding to each second sampling signal.
[0057] After acquiring multiple second sampling signals, the electronic device can collect the number of intervals corresponding to each second sampling signal; then, based on the number of intervals, the electronic device can accurately determine the synchronization stability of each second sampling signal.
[0058] Optionally, the synchronization stability of each second sampled signal can be either synchronously stable or not synchronously stable; no specific limitation is made here.
[0059] In some embodiments, the electronic device determines the synchronization stability of each second sampling signal based on the number of intervals corresponding to each second sampling signal. This may include: determining that each second sampling signal is synchronously stable when the number of intervals corresponding to each second sampling signal is the same; and determining that each second sampling signal is not synchronously stable when the number of intervals corresponding to each second sampling signal is different.
[0060] In determining whether multiple second-sampled signals are synchronously stable, electronic devices only need to determine whether the number of waveform intervals corresponding to these multiple second-sampled signals is the same. If the number of intervals is the same, then it can be directly determined that these multiple sampled signals are synchronously stable. If there are cases where the number of intervals is different, then it can be determined that these multiple second-sampled signals are not synchronously stable.
[0061] In some embodiments, after the electronic device determines that each of the second sampling signals is synchronously stable, the method may further include: when the electronic device determines that each of the second sampling signals is synchronously stable for the first time, configuring a corresponding second delay parameter for each of the second pulse trigger signals to obtain a plurality of third pulse trigger signals; when the electronic device determines that the third sampling signals corresponding to each of the third pulse trigger signals are synchronously stable, configuring a corresponding third delay parameter for each of the third pulse trigger signals to obtain a plurality of fourth pulse trigger signals; until it is determined that the nth sampling signals corresponding to each of the nth pulse trigger signals are not synchronously stable, the electronic device acquires n-1 delay parameters, where n is an integer greater than or equal to 2; the electronic device determines a preset delay parameter corresponding to each of the nth pulse trigger signals based on the n-1 delay parameters.
[0062] After acquiring multiple first pulse trigger signals, the electronic device can adjust the delay of these signals starting from 0, i.e., pre-configure a 0th-order delay parameter. Then, if the electronic device determines that these multiple first pulse trigger signals are not synchronized, it determines a starting delay value for trigger synchronization, i.e., it configures a corresponding first delay parameter for each first pulse trigger signal to obtain a synchronously stable second pulse trigger signal. After obtaining the synchronously stable output second pulse trigger signal, the delay value of the trigger signal is increased, and synchronization detection between signals is performed. That is, the electronic device configures a corresponding second delay parameter for each second pulse trigger signal to obtain multiple third pulse trigger signals. Then, if it is determined that the third sampling signal corresponding to each third pulse trigger signal is synchronously stable, a corresponding third delay parameter is configured for each third pulse trigger signal to obtain multiple fourth pulse trigger signals. This process continues until it is determined that the nth sampling signal corresponding to each nth pulse trigger signal is not synchronously stable, and the pulse trigger synchronization detection fails, i.e., the trigger is no longer synchronized. At this point, the pulse trigger signals acquired by the electronic device between the first delay parameter and the (n-1)th delay parameter are all stably acquired, and the electronic device thus possesses trigger synchronization capability.
[0063] Optionally, the second delay parameter can be the next-order delay parameter of the first delay parameter, the third delay parameter can be the next-order delay parameter of the second delay parameter, and so on, with the nth delay parameter being the next-order delay parameter of the (n-1)th delay parameter.
[0064] For example, if the first delay parameter is 35 picoseconds, then the second delay parameter is 35+4=39 picoseconds, the third delay parameter is 39+4=43 picoseconds, ..., the (n-1)th delay parameter is 35+4(n-1) picoseconds.
[0065] In some embodiments, the electronic device determines the preset delay parameters corresponding to each first pulse trigger signal based on n-1 delay parameters, which may include, but is not limited to, one of the following implementation methods:
[0066] Implementation method 1: The electronic device determines the first average value corresponding to n-1 delay parameters, and sets the first average value as the preset delay parameter corresponding to each first pulse trigger signal.
[0067] Optionally, the electronic device determines the first average value corresponding to the n-1 delay parameters, which may include: the electronic device determines the first average value according to a first formula.
[0068] The first formula is m0 = (m1 + m2 + ... + m n-2 +m n-1 ) / (n-1);
[0069] m0 represents the first average value; m1 represents the first delay parameter; m2 represents the second delay parameter; m n-2 Represents the (n-2)th delay parameter; m n-1 This represents the (n-1)th delay parameter.
[0070] Implementation Method 2: The electronic device determines the weighted average value corresponding to n-1 delay parameters, and sets the weighted average value as the preset delay parameter corresponding to each first pulse trigger signal.
[0071] Optionally, the electronic device determines the weighted average value corresponding to the n-1 delay parameters, which may include: the electronic device determining the weighted average value according to the second formula.
[0072] The second formula is m′0=a1m1+a2m2+…+a n-2 m n-2 +a n-1 m n-1 a1+a2+…+a n-2 +a n-1 =1;
[0073] m′0 represents the weighted average; a1 represents the first weight corresponding to the first delay parameter m1; a2 represents the second weight corresponding to the second delay parameter m2; a n-2 Describes the (n-2)th delay parameter m n-2 The corresponding (n-2)th weight; a n-1 Describes the (n-1)th delay parameter m n-1 The corresponding (n-1)th weight.
[0074] Implementation method 3: The electronic device determines the second average value corresponding to the first delay parameter and the (n-1)th delay parameter, and sets the second average value as the preset delay parameter corresponding to each first pulse trigger signal.
[0075] Optionally, the electronic device determining the second average value corresponding to the first delay parameter and the (n-1)th delay parameter may include: the electronic device determining the second average value according to a third formula.
[0076] The third formula is m″0=(m1+m n-1 ) / 2;
[0077] m″0 indicates the second average value.
[0078] For example, such as Figure 2a The image shown is a window diagram illustrating the preset delay parameters provided by this invention. Figure 2a In the diagram, m1 represents the first delay parameter, m n-1 This represents the (n-1)th delay parameter, and m″0 represents the preset delay parameter.
[0079] It should be noted that, regardless of whether the electronic device is implemented in mode 1, mode 2, or mode 3, it can accurately determine the preset delay parameters corresponding to each first pulse trigger signal.
[0080] In some embodiments, after the electronic device determines the preset delay parameters corresponding to each nth pulse trigger signal, the method may further include: the electronic device automatically storing the preset delay parameters.
[0081] Optionally, the electronic device may automatically store preset delay parameters, which may include: the electronic device automatically storing the preset delay parameters in a programmable read-only memory (PROM).
[0082] Because PROMs have the characteristic of not losing data when power is off, this PROM, after storing preset delay parameters, can ensure that the electronic device can maintain data synchronization when it is powered on next time.
[0083] Optionally, the electronic device can automatically store the preset delay parameters in the PROM, which may include: the electronic device automatically writing the preset delay parameters into the PROM through the I2C communication interface.
[0084] The I2C communication interface is a data transmission interface used for data transmission between the PROM and the controller in the electronic device.
[0085] Optionally, after the electronic device automatically stores the preset delay parameters, the method may further include: the electronic device configuring the preset delay parameters into the delay module IDELAYE primitive.
[0086] This allows electronic devices to directly call upon the preset delay parameter, ensuring that the acquisition of each pulse trigger signal is relatively synchronous and stable under this preset delay parameter.
[0087] In some embodiments, after the electronic device automatically stores the preset delay parameters, the method may further include: when the electronic device acquires multiple first pulse trigger signals again, configuring corresponding preset delay parameters for each first pulse trigger signal to obtain multiple target pulse trigger signals; the electronic device determines the target sampling signal corresponding to each target pulse trigger signal based on the second acquisition clock; and the electronic device determines that each target sampling signal is synchronously stable when the number of intervals corresponding to each target sampling signal is the same.
[0088] The explanation of the second acquisition clock is similar to that of the first acquisition clock in step 102, and will not be elaborated here.
[0089] Optionally, the second acquisition clock can be the same as or different from the first acquisition clock; no specific limitation is made here.
[0090] Since the electronic device stores preset delay parameters corresponding to each first pulse trigger signal, and the acquisition of each first pulse trigger signal by the electronic device is relatively synchronous and stable under these preset delay parameters, after the electronic device acquires multiple first pulse trigger signals again, it can directly configure the corresponding preset delay parameters for each of these multiple first pulse trigger signals to obtain multiple target pulse trigger signals. Then, based on the second acquisition clock, the electronic device can determine that the target sampling signals corresponding to each target pulse trigger signal are synchronous and stable. This can shorten the time for adjusting the delay parameters for the first pulse trigger signals acquired again, thereby improving the efficiency of determining that the pulse trigger signals are synchronous and stable.
[0091] In some embodiments, after the electronic device determines that the various second sampling signals are not synchronously stable, the method may further include: the electronic device configuring corresponding new first delay parameters for each first pulse trigger signal to obtain a plurality of new second pulse trigger signals; the electronic device determining, based on a third acquisition clock, the new second sampling signals corresponding to each new second pulse trigger signal; and the electronic device determining that the various new second sampling signals are synchronously stable when the number of intervals corresponding to each new second sampling signal is the same.
[0092] The explanation for the third acquisition clock is similar to that for the second acquisition clock, and will not be elaborated further here.
[0093] Optionally, the third acquisition clock can be the same as or different from the second acquisition clock; no specific limitation is made here.
[0094] After determining that the various second sampling signals are not synchronously stable, the electronic device can reconfigure new first delay parameters for each first pulse trigger signal. In other words, the electronic device can readjust the delay parameters corresponding to the distribution of each first pulse trigger signal. This can effectively ensure that the subsequent electronic device can determine that the various first pulse trigger signals with adjusted delay parameters are synchronously stable, that is, determine that the new second sampling signals corresponding to each new second pulse trigger signal are synchronously stable.
[0095] For example, such as Figure 2bThe diagram shown illustrates a non-synchronously stable output of the various pulse trigger signals provided by this invention, which may include: a first acquisition clock, a first pulse trigger signal A1, a first sampling signal A1′ corresponding to the first pulse trigger signal A1, a first pulse trigger signal B1, and a first sampling signal B1′ corresponding to the first pulse trigger signal B1. Figure 2b As can be seen, the first sampled signal A1′ acquired by the electronic device is one clock cycle later than the first sampled signal B1′.
[0096] like Figure 2c The diagram shown illustrates the synchronous and stable output of the various pulse trigger signals provided by this invention. It may include: a first acquisition clock, a first pulse trigger signal A1, a second pulse trigger signal A2 obtained by configuring a first delay parameter a on the first pulse trigger signal A1, a second sampling signal A2′ corresponding to the second pulse trigger signal A2, a first pulse trigger signal B1, a second pulse trigger signal B2 obtained by configuring a first delay parameter b on the first pulse trigger signal B1, and a second sampling signal B2′ corresponding to the second pulse trigger signal B2. Figure 2c As can be seen from this, the second sampled signal A2′ acquired by the electronic device is synchronous and stable compared to the second sampled signal B2′.
[0097] The first delay parameter a is different from the first delay parameter b.
[0098] In this embodiment of the invention, multiple first pulse trigger signals are acquired; when the first sampling signals corresponding to each first pulse trigger signal are asynchronous based on a first acquisition clock, a corresponding first delay parameter is configured for each first pulse trigger signal to obtain multiple second pulse trigger signals; based on the first acquisition clock, the second sampling signal corresponding to each second pulse trigger signal is determined; and the synchronization stability of each second sampling signal is determined according to the number of intervals corresponding to each second sampling signal. This method addresses the deficiency in the prior art where the uncertainty in the phase relationship between the acquisition clock edge and the pulse trigger signal in each device of the quantum measurement and control system leads to the inability of each device to accurately determine the synchronous and stable output of each pulse trigger signal. It enables the configuration of corresponding delay parameters for each pulse trigger signal, thereby accurately determining the synchronous and stable output of each pulse trigger signal.
[0099] The signal synchronization device provided by the present invention is described below. The signal synchronization device described below and the signal synchronization method described above can be referred to in correspondence.
[0100] like Figure 3 The diagram shown is a structural schematic of the signal synchronization device provided by the present invention, which may include:
[0101] Acquisition module 301 is used to acquire multiple first pulse trigger signals;
[0102] The determining module 302 is used to configure a corresponding first delay parameter for each of the first pulse trigger signals to obtain a plurality of second pulse trigger signals when the first sampling signals corresponding to each of the first pulse trigger signals are asynchronous based on the first acquisition clock; determine the second sampling signals corresponding to each of the second pulse trigger signals based on the first acquisition clock; and determine the synchronization stability of each of the second sampling signals according to the number of intervals corresponding to each of the second sampling signals.
[0103] Optionally, the determining module 302 is specifically used to determine that each of the second sampled signals is synchronously stable when the number of intervals corresponding to each of the second sampled signals is the same; and to determine that each of the second sampled signals is not synchronously stable when the number of intervals corresponding to each of the second sampled signals is different.
[0104] Optionally, the determining module 302 is further configured to, when it is determined that each of the second sampling signals is synchronously stable for the first time, configure a corresponding second delay parameter for each of the second pulse trigger signals to obtain a plurality of third pulse trigger signals; and when it is determined that the third sampling signals corresponding to each of the third pulse trigger signals are synchronously stable, configure a corresponding third delay parameter for each of the third pulse trigger signals to obtain a plurality of fourth pulse trigger signals.
[0105] The acquisition module 301 is also used to acquire n-1 delay parameters, where n is an integer greater than or equal to 2, until it is determined that the nth sampled signal corresponding to each of the nth pulse trigger signals is not synchronously stable.
[0106] The determining module 302 is also used to determine the preset delay parameters corresponding to each of the nth pulse trigger signals based on the n-1 delay parameters.
[0107] Optionally, the determining module 302 is specifically used to determine the first average value corresponding to the n-1 delay parameters, and to determine the first average value as the preset delay parameter corresponding to each of the first pulse trigger signals; or,
[0108] Optionally, the determining module 302 is specifically used to determine the weighted average value corresponding to the n-1 delay parameters, and to determine the weighted average value as the preset delay parameter corresponding to each of the first pulse trigger signals; or,
[0109] Optionally, the determining module 302 is specifically used to determine the second average value corresponding to the first delay parameter and the (n-1)th delay parameter, and to determine the second average value as the preset delay parameter corresponding to each of the first pulse trigger signals.
[0110] Optionally, the determining module 302 is further configured to configure corresponding new first delay parameters for each of the first pulse trigger signals to obtain multiple new second pulse trigger signals; based on the third acquisition clock, determine the new second sampling signals corresponding to each of the new second pulse trigger signals; and determine that each of the new second sampling signals is synchronous and stable when the number of intervals corresponding to each of the new second sampling signals is the same.
[0111] Optionally, the signal synchronization device may also include: a storage module 303;
[0112] Storage module 303 is used to automatically store the preset delay parameter.
[0113] Optionally, the determining module 302 is specifically used to configure a corresponding preset delay parameter for each of the first pulse trigger signals when the acquiring module 303 acquires multiple first pulse trigger signals again, thereby obtaining multiple target pulse trigger signals; based on the second acquisition clock, determine the target sampling signal corresponding to each of the target pulse trigger signals; and determine that each of the target sampling signals is synchronous and stable when the number of intervals corresponding to each of the target sampling signals is the same.
[0114] like Figure 4 The diagram shows the structure of an electronic device provided by the present invention. This electronic device may include a processor 410, a communication interface 420, a memory 430, and a communication bus 440. The processor 410, communication interface 420, and memory 430 communicate with each other via the communication bus 440. The processor 410 can call logical instructions in the memory 430 to execute a signal synchronization method. This method includes: acquiring multiple first pulse trigger signals; configuring corresponding first delay parameters for each first pulse trigger signal to obtain multiple second pulse trigger signals when, based on a first acquisition clock, the first sampling signals corresponding to each of the first pulse trigger signals are asynchronous, based on the first acquisition clock; determining the second sampling signals corresponding to each of the second pulse trigger signals; and determining the synchronization stability of each of the second sampling signals according to the number of intervals corresponding to each of the second sampling signals.
[0115] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0116] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the signal synchronization method provided by the above methods. The method includes: acquiring a plurality of first pulse trigger signals; when it is determined, based on a first acquisition clock, that the first sampling signals corresponding to each of the first pulse trigger signals are not synchronized, configuring corresponding first delay parameters for each of the first pulse trigger signals to obtain a plurality of second pulse trigger signals; determining, based on the first acquisition clock, the second sampling signals corresponding to each of the second pulse trigger signals; and determining the synchronization stability of each of the second sampling signals according to the number of intervals corresponding to each of the second sampling signals.
[0117] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program implements a signal synchronization method provided by the above methods. The method includes: acquiring a plurality of first pulse trigger signals; when it is determined, based on a first acquisition clock, that the first sampling signals corresponding to each of the first pulse trigger signals are not synchronized, configuring corresponding first delay parameters for each of the first pulse trigger signals to obtain a plurality of second pulse trigger signals; determining, based on the first acquisition clock, the second sampling signals corresponding to each of the second pulse trigger signals; and determining the synchronization stability of each of the second sampling signals according to the number of intervals corresponding to each of the second sampling signals.
[0118] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0119] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0120] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A signal synchronization method, characterized by, The method comprises: acquiring a plurality of first pulse trigger signals; in a case where it is determined that each of the first pulse trigger signals corresponds to a first sampling signal that is not synchronized based on a first acquisition clock, configuring each of the first pulse trigger signals with a corresponding first delay parameter to obtain a plurality of second pulse trigger signals; determining a second sampling signal corresponding to each of the second pulse trigger signals based on the first acquisition clock; determining a synchronization stability of each of the second sampling signals according to a number of intervals corresponding to each of the second sampling signals; wherein the determining of the synchronization stability of each of the second sampling signals according to the number of intervals corresponding to each of the second sampling signals comprises: in a case where the number of intervals corresponding to each of the second sampling signals is the same, determining that each of the second sampling signals is synchronized and stable; and in a case where the number of intervals corresponding to each of the second sampling signals is not the same, determining that each of the second sampling signals is not synchronized and stable.
2. The method of claim 1, wherein, after the determination that each of the second sampling signals is synchronized and stable, the method further comprises: in a case where it is determined that each of the second sampling signals is synchronized and stable for the first time, configuring each of the second pulse trigger signals with a corresponding second delay parameter to obtain a plurality of third pulse trigger signals; in a case where it is determined that a third sampling signal corresponding to each of the third pulse trigger signals is synchronized and stable, configuring each of the third pulse trigger signals with a corresponding third delay parameter to obtain a plurality of fourth pulse trigger signals; until, in a case where it is determined that an n-th sampling signal corresponding to each of the n-th pulse trigger signals is not synchronized and stable, n-1 delay parameters are acquired, n being an integer greater than or equal to 2; determining a preset delay parameter corresponding to each of the first pulse trigger signals according to the n-1 delay parameters.
3. The method of claim 2, wherein, the determining of the preset delay parameter corresponding to each of the first pulse trigger signals according to the n-1 delay parameters comprises one of: determining a first average value corresponding to the n-1 delay parameters, and determining the first average value as the preset delay parameter corresponding to each of the first pulse trigger signals; determining a weighted average value corresponding to the n-1 delay parameters, and determining the weighted average value as the preset delay parameter corresponding to each of the first pulse trigger signals; and determining a second average value corresponding to the first delay parameter and the n-1 delay parameter, and determining the second average value as the preset delay parameter corresponding to each of the first pulse trigger signals. after the determination that each of the second sampling signals is not synchronized and stable, the method further comprises:
4. The method of claim 1, wherein, configuring each of the first pulse trigger signals with a corresponding new first delay parameter to obtain a plurality of new second pulse trigger signals; determining a new second sampling signal corresponding to each of the new second pulse trigger signals based on a third acquisition clock; in a case where the number of intervals corresponding to each of the new second sampling signals is the same, determining that each of the new second sampling signals is synchronized and stable. 5. The method according to claim 2 or 3, characterized in that, After the determination of the preset delay parameters corresponding to the respective nth pulse trigger signals, the method further comprises: automatically storing the preset delay parameters.
6. The method of claim 5, wherein, After the automatic storage of the preset delay parameters, the method further comprises: In the case of reacquiring a plurality of first pulse trigger signals, configuring a corresponding preset delay parameter for each of the first pulse trigger signals to obtain a plurality of target pulse trigger signals; determining target sampling signals corresponding to the respective target pulse trigger signals based on a second acquisition clock; in the case that the interval numbers corresponding to the respective target sampling signals are all the same, determining that the target sampling signals are synchronously stable.
7. A signal synchronization apparatus, characterized by comprising: comprises: an acquisition module configured to acquire a plurality of first pulse trigger signals; a determination module configured to, in the case that the first sampling signals corresponding to the respective first pulse trigger signals are not synchronous based on a first acquisition clock, configure a corresponding first delay parameter for each of the first pulse trigger signals to obtain a plurality of second pulse trigger signals; determine second sampling signals corresponding to the respective second pulse trigger signals based on the first acquisition clock; and determine the synchronous stability of the second sampling signals according to the interval numbers corresponding to the respective second sampling signals; the determination module is further configured to, in the case that the interval numbers corresponding to the respective second sampling signals are all the same, determine that the second sampling signals are synchronously stable; and in the case that the interval numbers corresponding to the respective second sampling signals are not all the same, determine that the second sampling signals are not synchronously stable. 8.A quantum measurement and control device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, The processor implements the signal synchronization method according to any one of claims 1 to 6 when executing the program. 9.A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program implements the signal synchronization method according to any one of claims 1 to 6 when executed by the processor.
Citation Information
Patent Citations
Synchronous start pulse signal regenerating unit
CN208384566U
Data processing system and method, sensor, mobile acquisition backpack, and device
WO2021204144A1