CN115456186A - Sine and cosine signal generator and quantum computer control system - Google Patents

Sine and cosine signal generator and quantum computer control system Download PDF

Info

Publication number
CN115456186A
CN115456186A CN202210105741.0A CN202210105741A CN115456186A CN 115456186 A CN115456186 A CN 115456186A CN 202210105741 A CN202210105741 A CN 202210105741A CN 115456186 A CN115456186 A CN 115456186A
Authority
CN
China
Prior art keywords
sine
value
cosine
frequency
address
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.)
Granted
Application number
CN202210105741.0A
Other languages
Chinese (zh)
Other versions
CN115456186B (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.)
Origin Quantum Computing Technology Co Ltd
Original Assignee
Origin Quantum Computing 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 Origin Quantum Computing Technology Co Ltd filed Critical Origin Quantum Computing Technology Co Ltd
Priority to CN202210105741.0A priority Critical patent/CN115456186B/en
Publication of CN115456186A publication Critical patent/CN115456186A/en
Priority to PCT/CN2023/073345 priority patent/WO2023143447A1/en
Application granted granted Critical
Publication of CN115456186B publication Critical patent/CN115456186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N10/00Quantum computing, i.e. information processing based on quantum-mechanical phenomena
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/02Digital function generators
    • G06F1/03Digital function generators working, at least partly, by table look-up
    • G06F1/0321Waveform generators, i.e. devices for generating periodical functions of time, e.g. direct digital synthesizers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2101/00Indexing scheme relating to the type of digital function generated
    • G06F2101/04Trigonometric functions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Mathematics (AREA)
  • Condensed Matter Physics & Semiconductors (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)
  • Complex Calculations (AREA)

Abstract

The invention discloses a sine and cosine signal generator and a quantum computer control system. The sine and cosine signal generator comprises an address acquisition module and a second number of memories which store trigonometric function values of at least one quarter period, wherein the number of the trigonometric function values of one period is a first number; the address acquisition module is used for sequentially acquiring a plurality of paths of table lookup addresses under the action of a working clock and respectively sending the table lookup addresses into a second number of memories, the table lookup addresses of two adjacent paths at the same moment differ by a preset phase increment, and the two table lookup addresses of the same path differ by a second number multiple of the preset phase increment; the memory is configured to output a current sine value and a current cosine value to respectively form a sine signal and a cosine signal with preset frequency when sending a table look-up address; and the preset phase increment is determined according to the preset frequency, the first quantity, the second quantity and the frequency of the working clock. The invention can generate sine and cosine signals with higher frequency in the FPGA, and can reduce resource consumption and cost.

Description

Sine and cosine signal generator and quantum computer control system
Technical Field
The invention relates to the field of quantum computing, in particular to a sine and cosine signal generator and a quantum computer control system.
Background
The quantum computer control system mainly functions to control a quantum computer, and more particularly, to control quantum bits. The essence of controlling the qubits is to apply various control signals to the qubits, which are mostly generated from the underlying sine and cosine signals. Because the frequency of the qubit is relatively high, the control signal needs to have a relatively high frequency, and the corresponding sine and cosine signal also needs to have a relatively high frequency.
However, the sine and cosine signals are generally generated by NCO (numerically controlled oscillator), which can be implemented in FPGA or other devices. The higher the frequency of sine and cosine signals is, the higher the sampling rate is required, but the maximum working frequency of most FPGAs is limited, so the frequency of the generated sine and cosine signals is lower. In order to increase the frequency of sine and cosine signals, the conventional method is to generate low-frequency sine and cosine signals in parallel through a plurality of FPGAs, and then synthesize the frequencies of the sine and cosine signals. But this requires multiple FPGAs, which significantly increases resource consumption and cost.
Disclosure of Invention
The invention aims to provide a sine and cosine signal generator, a memory and a quantum computer control system, which are used for solving the problem of low frequency of sine and cosine signals generated in an FPGA (field programmable gate array) in the prior art and can generate sine and cosine signals with high frequency in the FPGA.
In order to solve the technical problem, the invention provides a sine and cosine signal generator, which is used for an FPGA (field programmable gate array), and comprises an address acquisition module and a memory, wherein the memory stores at least one quarter of period of trigonometric function values, the number of the trigonometric function values in one period is a first number, and the number of the memory is a second number;
the address acquisition module is used for sequentially acquiring a plurality of paths of table lookup addresses under the action of a working clock and respectively sending the table lookup addresses into a second number of memories, wherein the table lookup addresses of two adjacent paths at the same moment differ by a preset phase increment, and the two adjacent table lookup addresses of the same path differ by a second number multiple of the preset phase increment;
the memory is configured to output a current sine value and a current cosine value to respectively form a sine signal and a cosine signal of a preset frequency when a table look-up address is sent in each time;
wherein the preset phase increment is determined according to the preset frequency, the first number, the second number and the frequency of the working clock.
Preferably, the memory stores trigonometric values that are at least a quarter cycle sine value, at least a quarter cycle cosine value or at least a quarter cycle sine value and cosine value.
Preferably, the memory is configured to check whether a corresponding sine value or cosine value is stored in a current lookup address every time a lookup address is sent in, output a stored current sine value and a stored current cosine value when the corresponding sine value or cosine value is stored, respectively form a sine signal and a cosine signal of a preset frequency, and calculate a corresponding sine value or cosine value according to the periodicity of the sine value or cosine value when the corresponding sine value or cosine value is not stored, output the calculated current sine value and current cosine value, and respectively form a sine signal and a cosine signal of a preset frequency.
Preferably, the memory provides a lookup table, the lookup table stores a sine value of a quarter cycle, and the lookup address bit number of the lookup table is a first bit number a, wherein 2 A Equal to the first number.
Preferably, the preset phase increment is as follows:
Figure BDA0003491320620000021
wherein N represents the first number, c represents the second number, f out Representing said predetermined frequency, f S Representing the frequency of the operating clock, round () representing a rounding function.
Preferably, the sinusoidal signal is:
Figure BDA0003491320620000022
the cosine signal is:
Figure BDA0003491320620000023
where n × PINC represents the value of the lookup address sent to the memory, and n has a value in the range of [0, 2% A -1]And a represents the amplitude value, a represents,
Figure BDA0003491320620000024
indicates the initial phase, and b indicates the offset.
Preferably, the current sine value output by the memory is:
Figure BDA0003491320620000025
the current cosine value output by the memory is:
Figure BDA0003491320620000026
wherein m represents the value of the lookup address of the lookup table, and the value range is [0,2 ] A -1]。
Preferably, the amplitudes, initial phases and offset distances of the sine signal and the cosine signal are the same.
Preferably, the address acquisition module comprises a frequency word unit and a phase accumulator corresponding to the second number of memories one to one;
the frequency word unit is used for acquiring multiple paths of frequency words, and respectively sending the frequency words to a second number of phase accumulators, wherein the frequency words are second number multiples of a preset phase increment;
and the phase accumulators are used for continuously accumulating by taking the frequency words as steps under the action of the working clock to obtain a table look-up address and sending the table look-up address to corresponding memories, wherein the table look-up addresses obtained by two adjacent phase accumulators at the same moment are different by a preset phase increment.
In order to solve the above technical problem, the present invention further provides a quantum computer control system, including any one of the above sine and cosine signal generators.
Different from the situation of the prior art, the sine and cosine signal generator provided by the invention is provided with a second number of memories, each memory stores a trigonometric function value of at least one quarter period, the memories are configured to output a current sine value and a current cosine value to respectively form a sine signal and a cosine signal of preset frequency when each lookup address is sent, the difference between two adjacent lookup addresses at the same time is a preset phase increment, the difference between two adjacent lookup addresses at the same time is a second number multiple of the preset phase increment, and as the product of the frequency of the working clock and the second number is equivalent to a sampling frequency, the preset frequency can reach half of the sampling frequency theoretically according to a nyquist sampling law, so that a sine and cosine signal of higher frequency can be generated in an FPGA, and the resource consumption and the cost can be reduced.
The quantum computer control system provided by the invention and the sine and cosine signal generator belong to the same inventive concept, so that the quantum computer control system has the same beneficial effects, and is not repeated herein.
Drawings
Fig. 1 is a schematic structural diagram of a sine and cosine signal generator according to a first embodiment of the present invention.
Fig. 2 is a schematic diagram of a data structure of a lookup table provided in a memory of the sine and cosine signal generator in the first embodiment.
Fig. 3 is a schematic structural diagram of an address obtaining module of a sine and cosine signal generator according to a second embodiment of the present invention.
Detailed Description
The following describes in more detail embodiments of the present invention with reference to the schematic drawings. Advantages and features of the present invention will become apparent from the following description and claims. It is to be noted that the drawings are in a very simplified form and are not to precise scale, which is merely for the purpose of facilitating and distinctly claiming the embodiments of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "upper", "lower", "left", "right", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the device or element referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless explicitly specified otherwise.
Referring to fig. 1, a first embodiment of the present invention provides a sine and cosine signal generator for an FPGA, which is capable of generating a sine and cosine signal with a higher frequency in the FPGA. The sine and cosine signal generator comprises an address acquisition module 10 and a memory 20 which stores at least one-quarter period of trigonometric function values, wherein the number of the trigonometric function values in one period is a first number, and the number of the memory 20 is a second number.
The address obtaining module 10 is configured to sequentially obtain multiple paths of table lookup addresses under the action of a working clock, and send the multiple paths of table lookup addresses to the memories 20 of the second number respectively, where the table lookup addresses of two adjacent paths at the same time differ by a preset phase increment, and two adjacent table lookup addresses of the same path differ by a second number multiple of the preset phase increment. If the preset phase increment is represented by PINC, the second quantity is represented by c, the two adjacent lookup table addresses at the same time have the difference of PINC, the smallest of the first acquired lookup table addresses is preferably 0, and the lookup table addresses of other paths sequentially have the difference of 1 PinC, 2 PinC, 3 PinC, 4 PINC, 823082308230, the two adjacent lookup table addresses at the same path have the difference of c PINC, for example, the lookup table addresses of the first path sequentially have the difference of 0, c PINC, 2c PINC, 3c PINC, 8230, 8230.
The memory 20 is configured to output a current sine value and a current cosine value to form a sine signal and a cosine signal of a preset frequency, respectively, every time a lookup address is input. The preset phase increment is determined according to the preset frequency, the first quantity, the second quantity and the frequency of the working clock.
The lookup table address corresponding to each trigonometric function value stored in the memory 20 is incremented by the PINC from 0. For one memory 20, for example, the memory 20 corresponding to the first path lookup address receives the lookup addresses of 0, c-PINC, 2 c-PINC, 3 c-PINC, \ 8230 \ the phases of the finally output sine signal and cosine signal are increased by c-PINC, and the phases of the sine signal and cosine signal output by two adjacent memories 20 are different by PINC.
The preset frequency, the first number, the second number and the frequency of the working clock are set according to actual needs. The first number is the total number of trigonometric values for one period and the memory 20 needs to store at least the first quarter of the first number of trigonometric values. The frequency of the operating clock should not exceed the maximum operating frequency of the FPGA. The frequency of the operating clock and the value of the second number are related to the sampling rate, the product of which is equivalent to the sampling rate, e.g. the frequency of the operating clock is set to 200MHz at a sampling rate of 1.6GHz, then the second number is 8, i.e. 8 memories 20 are required. The sampling rate is determined by the control requirements of the qubit. According to the nyquist sampling law, the ratio of the preset frequency to the sampling frequency is at most 1:2, namely, the preset frequency can reach 800MHz theoretically, so that sine and cosine signals with higher frequency are realized in the FPGA.
Since the trigonometric function has periodicity, the trigonometric function value of the last three-quarter period can be calculated according to the periodicity as long as the trigonometric function value of the first one-quarter period is known. In the present embodiment, the memory 20 stores trigonometric values that are at least a quarter-cycle sine value, at least a quarter-cycle cosine value, or at least a quarter-cycle sine value and cosine value.
Further, the memory 20 is configured to check whether the current lookup address stores a corresponding sine value or cosine value every time a lookup address is sent, output the stored current sine value and current cosine value when the corresponding sine value or cosine value is stored, respectively form a sine signal and a cosine signal of a preset frequency, and when the corresponding sine value or cosine value is not stored, calculate the corresponding sine value or cosine value according to the periodicity of the sine value or cosine value, output the calculated current sine value and current cosine value, respectively form a sine signal and a cosine signal of a preset frequency.
If the memory 20 stores the sine value of one cycle and the cosine value of one cycle, and the numbers of the sine value and the cosine value are both the first number, then each table lookup address stores the corresponding sine value or cosine value, and the stored current sine value and current cosine value can be directly output. If the memory 20 stores only the sine value of less than one cycle and/or the cosine value of less than one cycle, there is a case that some table lookup addresses do not have the corresponding sine value or cosine value, and then the sine value and the cosine value corresponding to the table lookup addresses can be calculated according to the periodicity of the sine value or the cosine value and the stored sine value and/or cosine value.
Referring to fig. 2, the memory 20 provides a lookup table LUT, in which the sine value of a quarter cycle is stored, and the number of bits of the lookup address of the lookup table LUT is a first number of bits a, where 2 A Equal to the first number. Only the front 2 A And/4, storing sine values in data bits corresponding to the table lookup addresses respectively, and leaving the data bits corresponding to the rest table lookup addresses empty.
In this embodiment, the preset phase increment is:
Figure BDA0003491320620000061
wherein N represents a first number, c represents a second number, f out Representing a predetermined frequency, f S Representing the frequency of the operating clock and Round () representing the rounding function.
Further, the sinusoidal signal is:
Figure BDA0003491320620000062
the cosine signal is:
Figure BDA0003491320620000063
wherein n-PINC represents the value of the lookup table address,the value range of n is [0,2 ] A -1]And a represents the amplitude value, a represents,
Figure BDA0003491320620000064
indicates the initial phase, and b indicates the offset.
The current sine value output by the memory 20 is:
Figure BDA0003491320620000065
the current cosine value output by memory 20 is:
Figure BDA0003491320620000066
wherein m represents the value of the lookup address of the lookup table, and the value range is [0,2 ] A -1]。
In order to facilitate signal processing, in this embodiment, the amplitudes, initial phases, and offsets of the sine signal and the cosine signal are the same. For the sake of easy understanding, a is taken to be 1,
Figure BDA0003491320620000067
and b is taken to be 0.
As can be seen from fig. 2, the look-up table LUT front 2 A The/4 data bits store sine values of, sin (0 x 2 pi/N), sin (1 x 2 pi/N), sin (2 x 2 pi/N), sin (3 x 2 pi/N), \ 8230; \ 8230;, and,
Figure BDA0003491320620000068
The remaining data bits store data NULL, indicating NULL. It can be seen that each stored sine value in the look-up table LUT is related to the look-up address of the look-up table, and if the look-up address is m, the sine value is sin (m × 2 pi/N).
Then, through the periodicity of the sine function, the sine values corresponding to the other search addresses can be calculated to be
Figure BDA0003491320620000071
……、sin[(N-2)*2π/N]、sin[(N-1)*2π/N]。
Likewise, the cosine value may also be calculated from the periodicity of the sine value.
Assuming that the second number is 8, the process of generating the sinusoidal signal is as follows:
the look-up table addresses sent to 1 st memory 20 are 0 PINC, 8 PINC, 16 PINC, 8230, and the look-up table LUT is 0 PINC, 8 PINC, 16 PINC, 8230, and the same look-up table addresses are 0 PINC, 8 PINC, 16 PINC, 8230, and the sine signals output from 1 st memory 20 are sin (0 pi 2 PINC/N), sin (8 pi 2 PINC/N), sin (16 pi 2 PINC/N), 8230, and 8230;
the lookup table address sent to the 2 nd memory 20 is 1 Pinc, 9 Pinc, 17 Pinc, 8230, the lookup table LUT is 1 Pinc, 9 Pinc, 17 Pinc, 8230, the same lookup table address is 1 Pinc, 9 Pinc, 17 Pinc, 8230, the sine signal output from the 2 nd memory 20 is sin (1 pi 2 pi PINc/N), sin (9 pi 2 pi PINc/N), sin (17 pi 2 pi PINc/N), 8230, the sine signal output from the 2 nd memory 20 is sin (1 pi 2 pi PINc/N);
the lookup table address sent to the 3 rd memory 20 is 2-PINC, 10-PINC, 18-PINC, 8230, the lookup table LUT is 2-PINC, 10-PINC, 18-PINC, 8230, the same lookup table address is 2-PINC, 10-PINC, 18-PINC, 8230, the sine signal output from the 3 rd memory 20 is sin (2-2 pi-PINC/N), sin (10-2 pi-PINC/N), sin (18-2 pi-PINC/N), 8230, the sine signal output from the 3 rd memory 20 is sin (2-2 pi-PINC/N);
by analogy, the look-up table addresses sent to 8 th memory 20 are 7 th PINC, 15 th PINC, 23 th PINC, \8230, 8230, the look-up table LUT is 7 th PINC, 15 th PINC, 23 th PINC, \8230, 8230, the same look-up table addresses are 7 th PINC, 15 th PINC, 23 th PINC, 8230, the sine signals output by 8 th memory 20 are sin (7 th 2 pi PINC/N), sin (15 th 2 pi PINC/N), sin (23 th 2 pi PINC/N), 8230, and 8230.
It can be seen that the phase of the sinusoidal signal output by each of the 8 memories 20 is incremented by PINC, and the phase of the sinusoidal signal output by the same memory 20 is incremented by 8 x PINC.
It should be noted that, if the table lookup address sent into the memory 20 exceeds the maximum value of the table lookup addresses of the lookup table, the table lookup address addressed in the lookup table LUT by the memory 20 is the result of the complementation of the table lookup address sent into the memory 20 and the first number N.
Likewise, 8 memories 20 output cosine signals according to the above process. Cosine signals output by the 1 st memory 20 are cos (0 x 2 pi) PINC/N), cos (8 x 2 pi PINC/N), cos (16 x 2 pi PINC/N), \ 8230; the cosine signal output by the 2 nd memory 20 is cos (1 x 2 pi) PINC/N), cos (9 x 2 pi PINC/N), cos (17 x 2 pi PINC/N), \8230; cosine signals output by the 3 rd memory 20 are cos (2 x 2 pi) PINC/N), cos (10 x 2 pi PINC/N), cos (18 x 2 pi PINC/N), \8230; \8230; the cosine signals output from the 8 th memory 20 are cos (7 × 2 π × PINC/N), cos (15 × 2 π × PINC/N), cos (23 × 2 π × PINC/N), \ 8230; \ 8230;.
Referring to fig. 3, a second embodiment of the present invention provides a sine and cosine signal generator, which includes all the technical features of the first embodiment, and on the basis of the first embodiment, the address obtaining module 10 includes a frequency word unit 11 and a phase accumulator 12 corresponding to a second number of memories 20.
The frequency word unit 11 is configured to obtain multiple frequency words, and send the multiple frequency words to the second number of phase accumulators 12, where the frequency words are multiples of the second number of preset phase increments. The frequency word may be input externally, or may be stored in advance or generated automatically by the frequency word unit 11.
The phase accumulators 12 are configured to continuously accumulate the lookup addresses by taking the frequency words as steps under the action of the working clock to obtain lookup addresses, and send the lookup addresses to the corresponding memories 20, where the lookup addresses obtained by two adjacent phase accumulators 12 at the same time differ by a preset phase increment. Wherein, assuming the preset phase increment is PINC, the second number is 8, taking the first phase accumulator 12 as an example, when the phase accumulator 12 receives the first frequency word, it outputs a table lookup address 0 PinC, then accumulates 0 PinC with the frequency word to obtain a second table lookup address 8 PinC, and continues to accumulate 8 PinC with the frequency word to obtain a third table lookup address 16 PinC. That is, each time the phase accumulator 12 outputs a lookup address, the lookup address is accumulated with the frequency word as the next lookup address to be output.
Through the mode, the sine and cosine signal generator provided by the embodiment of the invention is provided with the second number of memories, each memory stores a trigonometric function value of at least one quarter period, the memory is configured to output the current sine value and the current cosine value when a lookup address is sent in, sine signals and cosine signals with preset frequencies are respectively formed, adjacent two paths of lookup addresses at the same time have a difference of a preset phase increment, two adjacent lookup addresses at the same time have a difference of a second number multiple of the preset phase increment, and the product of the frequency of the working clock and the second number is equivalent to the sampling frequency.
The embodiment of the invention also provides a quantum computer control system which comprises the sine and cosine signal generator of the first embodiment or the second embodiment.
It should be noted that, besides being applied to a quantum computer control system, the sine and cosine generator provided in the foregoing embodiments is also applicable to any other application scenario with sine and cosine signal generation requirements, and the present invention is not limited to this.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example" or "a specific example" or the like are intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. And the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments. Furthermore, various embodiments or examples described in this specification can be combined and combined by those skilled in the art.
The above description is only a preferred embodiment of the present invention, and does not limit the present invention in any way. Any person skilled in the art can make any equivalent substitutions or modifications on the technical solutions and technical contents disclosed in the present invention without departing from the scope of the technical solutions of the present invention, and still fall within the protection scope of the present invention without departing from the technical solutions of the present invention.

Claims (10)

1. A sine and cosine signal generator is used for FPGA and is characterized by comprising an address acquisition module and a memory for storing trigonometric function values of at least one quarter period, wherein the number of the trigonometric function values of one period is a first number, and the number of the memory is a second number;
the address acquisition module is used for sequentially acquiring a plurality of paths of table lookup addresses under the action of a working clock and respectively sending the table lookup addresses into a second number of memories, wherein the table lookup addresses of two adjacent paths at the same moment differ by a preset phase increment, and the two adjacent table lookup addresses of the same path differ by a second number multiple of the preset phase increment;
the memory is configured to output a current sine value and a current cosine value to respectively form a sine signal and a cosine signal of a preset frequency when a table look-up address is sent in each time;
wherein the preset phase increment is determined according to the preset frequency, the first number, the second number and the frequency of the working clock.
2. The sine-cosine signal generator of claim 1, wherein the memory stores trigonometric values that are at least a quarter period sine value, at least a quarter period cosine value, or at least a quarter period sine value and cosine value.
3. The sine-cosine signal generator of claim 2, wherein the memory is configured to check whether a corresponding sine value or cosine value is stored in a current lookup address every time a lookup address is sent, output the stored current sine value and current cosine value when the corresponding sine value or cosine value is stored, respectively form a sine signal and a cosine signal of a preset frequency, and when the corresponding sine value or cosine value is not stored, calculate the corresponding sine value or cosine value according to the periodicity of the sine value or cosine value, output the calculated current sine value and current cosine value, respectively form a sine signal and a cosine signal of a preset frequency.
4. The sine-cosine signal generator of claim 3, wherein the memory provides a look-up table storing a quarter-cycle sine value, the look-up table having a first number A of look-up address bits, of which 2 is A Equal to the first number.
5. The sine-cosine signal generator of claim 4, wherein the predetermined phase increment is:
Figure FDA0003491320610000011
wherein N represents the first number, c represents the second number, f out Representing said predetermined frequency, f S Representing the frequency of the operating clock, round () representing a rounding function.
6. The sine-cosine signal generator of claim 5, wherein the sine signal is:
Figure FDA0003491320610000021
the cosine signal is:
Figure FDA0003491320610000022
wherein n × PINC represents the value of the lookup address sent to the memory, and the value range of n is [0, 2% A -1]And a represents the amplitude value, a represents,
Figure FDA0003491320610000023
indicates the initial phase, and b indicates the offset.
7. The sine-cosine signal generator of claim 6, wherein the current sine value of the memory output is:
Figure FDA0003491320610000024
the current cosine value output by the memory is:
Figure FDA0003491320610000025
wherein m represents the value of the lookup address of the lookup table, and the value range is [0,2 ] A -1]。
8. The sine-cosine signal generator of claim 7, wherein the amplitude, initial phase and offset of the sine signal and the cosine signal are the same.
9. The sine-cosine signal generator of claim 1, wherein said address acquisition module comprises a frequency word unit and a phase accumulator in one-to-one correspondence with a second number of memories;
the frequency word unit is used for acquiring multiple paths of frequency words, and respectively sending the frequency words to a second number of phase accumulators, wherein the frequency words are second number multiples of a preset phase increment;
and the phase accumulators are used for continuously accumulating by taking the frequency words as steps under the action of the working clock to obtain a table look-up address and sending the table look-up address to corresponding memories, wherein the table look-up addresses obtained by two adjacent phase accumulators at the same moment are different by a preset phase increment.
10. A quantum computer control system comprising the sine-cosine signal generator of any one of claims 1 to 9.
CN202210105741.0A 2022-01-27 2022-01-27 Sine and cosine signal generator and quantum computer control system Active CN115456186B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210105741.0A CN115456186B (en) 2022-01-27 2022-01-27 Sine and cosine signal generator and quantum computer control system
PCT/CN2023/073345 WO2023143447A1 (en) 2022-01-27 2023-01-20 Device for generating qubit control signal and quantum computer control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210105741.0A CN115456186B (en) 2022-01-27 2022-01-27 Sine and cosine signal generator and quantum computer control system

Publications (2)

Publication Number Publication Date
CN115456186A true CN115456186A (en) 2022-12-09
CN115456186B CN115456186B (en) 2024-06-14

Family

ID=84295981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210105741.0A Active CN115456186B (en) 2022-01-27 2022-01-27 Sine and cosine signal generator and quantum computer control system

Country Status (1)

Country Link
CN (1) CN115456186B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023143447A1 (en) * 2022-01-27 2023-08-03 本源量子计算科技(合肥)股份有限公司 Device for generating qubit control signal and quantum computer control system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997018623A1 (en) * 1995-11-15 1997-05-22 Samsung Electronics Co., Ltd. System, method and program product for generating a sine or cosine waveform utilizing combined look-up tables
US5954787A (en) * 1996-12-26 1999-09-21 Daewoo Electronics Co., Ltd. Method of generating sine/cosine function and apparatus using the same for use in digital signal processor
CN101017383A (en) * 2006-11-01 2007-08-15 王文华 High speed arbitrary waveform generator based on FPGA
CN101335509A (en) * 2007-06-29 2008-12-31 大唐移动通信设备有限公司 Method and digital control oscillator for sinusoidal and cosine signal generator
CN101339446A (en) * 2008-07-18 2009-01-07 电子科技大学 Double channel synchronous DDS device capable of modulating phase and amplitude
CN102983839A (en) * 2012-12-05 2013-03-20 天津光电通信技术有限公司 Method for realizing GMSK (Guassian Minimum Shift Keying) signal generator based on FPGA (Field Programmable Gate Array)
CN103117731A (en) * 2013-01-22 2013-05-22 上海航天测控通信研究所 Sinusoidal signal generator implementation method based on field programmable gate array (FPGA) and sinusoidal signal generator implementation device
WO2017107327A1 (en) * 2015-12-25 2017-06-29 北京遥测技术研究所 Cpm modulation digitization implementation method based on table lookup method, and digital cpm modulation module
CN112236785A (en) * 2018-09-10 2021-01-15 谷歌有限责任公司 Qubit control electronic circuit

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997018623A1 (en) * 1995-11-15 1997-05-22 Samsung Electronics Co., Ltd. System, method and program product for generating a sine or cosine waveform utilizing combined look-up tables
US5954787A (en) * 1996-12-26 1999-09-21 Daewoo Electronics Co., Ltd. Method of generating sine/cosine function and apparatus using the same for use in digital signal processor
CN101017383A (en) * 2006-11-01 2007-08-15 王文华 High speed arbitrary waveform generator based on FPGA
CN101335509A (en) * 2007-06-29 2008-12-31 大唐移动通信设备有限公司 Method and digital control oscillator for sinusoidal and cosine signal generator
CN101339446A (en) * 2008-07-18 2009-01-07 电子科技大学 Double channel synchronous DDS device capable of modulating phase and amplitude
CN102983839A (en) * 2012-12-05 2013-03-20 天津光电通信技术有限公司 Method for realizing GMSK (Guassian Minimum Shift Keying) signal generator based on FPGA (Field Programmable Gate Array)
CN103117731A (en) * 2013-01-22 2013-05-22 上海航天测控通信研究所 Sinusoidal signal generator implementation method based on field programmable gate array (FPGA) and sinusoidal signal generator implementation device
WO2017107327A1 (en) * 2015-12-25 2017-06-29 北京遥测技术研究所 Cpm modulation digitization implementation method based on table lookup method, and digital cpm modulation module
CN112236785A (en) * 2018-09-10 2021-01-15 谷歌有限责任公司 Qubit control electronic circuit

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
岳国盛;: "基于动态相位分割的四通道信号发生器设计", 仪表技术与传感器, no. 02, 15 February 2009 (2009-02-15) *
黄聚永;袁慧梅;吴向阳;崔国亮;高琴;: "基于查找表和Newton插值算法的正余弦函数的FPGA实现", 继电器, no. 16, 16 August 2007 (2007-08-16) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023143447A1 (en) * 2022-01-27 2023-08-03 本源量子计算科技(合肥)股份有限公司 Device for generating qubit control signal and quantum computer control system

Also Published As

Publication number Publication date
CN115456186B (en) 2024-06-14

Similar Documents

Publication Publication Date Title
EP1873612A1 (en) Phase-coherent signal generator
US7920413B2 (en) Apparatus and method for writing data to phase-change memory by using power calculation and data inversion
US8115519B2 (en) Phase accumulator generating reference phase for phase coherent direct digital synthesis outputs
CN1716760A (en) Numerically controlled oscillator and method of operation
CN115456186A (en) Sine and cosine signal generator and quantum computer control system
WO1989006838A1 (en) High resolution phase to sine amplitude conversion
US9124244B2 (en) Method and device for generating a filter coefficient in real time
CN115456182B (en) Device for generating qubit control signal and quantum computer control system
US20140222882A1 (en) Phase-to-Amplitude Converter for Direct Digital Synthesizer (DDS) with Reduced AND and Reconstructed ADD Logic Arrays
CN115469711B (en) Sine and cosine signal generator, memory and quantum computer control system
CN206498391U (en) Multipath DDS (Direct Digital Synthesis) signals generator
CN106774629B (en) Direct Digital Frequency Synthesizers and its frequency combining method, modulated transmitting device
KR20090065335A (en) Numerically-controlled oscillator and operating method for generating cosine and sine signal using only cosine look-up table
CN102082571A (en) Direct digital frequency synthesizer
CN105871337A (en) Improved signal generator capable of modulating in segmentable mode
CN110633447B (en) Spherical distance fixed-point calculation method based on FPGA and calculation device thereof
CN105653238B (en) A kind of clocking method and device
CN105005240B (en) Arbitrary Waveform Generator based on off-line calculation
CN116400775A (en) Signal generator
CN102497205A (en) Improved DDS signal generator and signal generating method
Bales et al. FPGA architecture for real-time wideband waveform synthesis
WO2023143447A1 (en) Device for generating qubit control signal and quantum computer control system
CN103580690A (en) Non-integral power of 2 digital sine and cosine frequency synthesizer and non-integral power of 2 digital sine and cosine frequency synthesis method
CN107066030B (en) Signal source and multi-frequency output compensation method and system thereof
CN104753530A (en) Phase correction and nonuniform phase amplitude conversion method and device in DDS

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 230088 6th floor, E2 building, phase II, innovation industrial park, 2800 innovation Avenue, high tech Zone, Hefei City, Anhui Province

Applicant after: Benyuan Quantum Computing Technology (Hefei) Co.,Ltd.

Address before: 230088 6th floor, E2 building, phase II, innovation industrial park, 2800 innovation Avenue, high tech Zone, Hefei City, Anhui Province

Applicant before: ORIGIN QUANTUM COMPUTING COMPANY, LIMITED, HEFEI

GR01 Patent grant