A continuous wave-pulse integrated readout system and method for solid-state spin sensors
By constructing a nested dual-closed-loop control mechanism using a single FPGA, seamless switching between continuous wave and pulse modes of a solid-state spin sensor is achieved. This solves the problems of cumbersome mode switching and data consistency in existing technologies, improves measurement rate and stability, and adapts to quantum sensing needs in multiple scenarios.
Patent Information
- Application Number
- CN202611070353.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-18
- Publication Date
- 2026-11-10
AI Technical Summary
Existing solid-state spin sensor measurement systems only support a single mode, making it difficult to achieve efficient coordination between continuous wave and pulse modes. This results in cumbersome, time-consuming, and labor-intensive operation, and the consistency of measurement data is difficult to guarantee, failing to meet the needs of various types of quantum sensing.
A nested dual-closed-loop control mechanism is constructed using a single FPGA. Through real-time frequency locking of the inner hardware PID and periodic correction loop of the outer pulse experiment, seamless switching and efficient collaborative operation of continuous wave-pulse mode are achieved. Functions such as phase-locked detection, waveform generation, and timing control are integrated into a single FPGA.
It achieves efficient switching between continuous wave and pulse modes, improves measurement rate and stability, reduces experimental costs and debugging difficulty, adapts to quantum sensing needs in multiple scenarios, and provides flexible experimental configuration and expansion capabilities.
Smart Images

Figure CN123066657A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of magnetic field measurement technology, specifically to a continuous wave-pulse integrated readout system and method for a solid-state spin sensor. Background Technology
[0002] Magnetic resonance is a physical process in which particles with non-zero spin magnetic moments within matter resonate with an electromagnetic field in a static magnetic field environment. Through this interaction mechanism, researchers can analyze the composition of materials without damaging the sample structure, and this technique is also applied to the sensing and detection of precise physical quantities.
[0003] Under the influence of an external magnetic field, electrons within matter exhibit Zeeman level splitting due to their inherent spin magnetic moment characteristics. This means a single energy level expands into multiple sublevels with different magnetic quantum numbers. When electrons transition between different energy levels, they must follow specific transition rules related to changes in the magnetic quantum number. This quantum selection rule directly determines the probability of spin state evolution of the particle.
[0004] With breakthroughs in quantum information technology, solid-state spin systems have become an important direction for the development of new sensors due to their unique physical properties. Solid-state quantum systems, represented by diamond nitrogen-vacancy (NV) color centers, exhibit significant advantages: their electron spin states not only maintain nanotesla-level magnetic field sensitivity at room temperature and pressure, but also possess excellent quantum coherence characteristics. Their free-induction decay coherence time T2... ﹡ Typically on the order of microseconds, the spin-echo coherence time T2 can be further improved to the order of milliseconds after optimization using dynamic decoupling techniques. The system's unique optical manipulation and signal readout capabilities make it the only natural quantum probe currently capable of achieving magnetic resonance detection at the microscale, demonstrating broad application prospects in materials science, biomedicine, and other fields. The structural stability and anti-interference capabilities of this type of solid-state system further enhance its practical value in complex environments.
[0005] Furthermore, in the field of magnetic measurement of ensemble NV centers, the measurement methods used for different types of signals can generally be divided into continuous wave methods and pulse methods. The continuous wave method involves continuously applying a microwave electromagnetic field of a specific frequency to induce resonant transitions in the electron spins of the NV centers; simultaneously monitoring changes in the fluorescence signal to achieve continuous measurement of the magnetic field. This method is simple to operate, has a fast response speed, and is suitable for detecting low-frequency magnetic fields. The pulse method, on the other hand, involves applying a series of precisely timed microwave pulse sequences to perform complex manipulation of the NV center spin states; it can more accurately obtain key quantum parameters such as spin relaxation time and coherence time, and has irreplaceable advantages in scenarios such as dynamic magnetic field detection and quantum state manipulation research.
[0006] However, most existing measurement systems only support a single mode. If two modes of measurement are required, different experimental devices often need to be changed. This is not only cumbersome and time-consuming, but also makes it difficult to guarantee the consistency of measurement data due to differences between devices. This seriously restricts the application efficiency and development of ensemble NV color core magnetometry technology.
[0007] Patent document 1, "A Magnetic Resonance Spectrometer and an FPGA-based Control Device for a Magnetic Resonance Spectrometer," only addresses traditional EPR spectrometers and lacks the quantum state manipulation design required for solid-state spin sensors, thus failing to cover various quantum sensing needs. Furthermore, traditional EPR spectrometers require manual replacement of the microwave bridge or RF channel when switching between continuous wave and pulse modes. This switching process is time-consuming, cumbersome, and inefficient, and can introduce uncontrollable system errors due to hardware connection differences, making it impossible to achieve automated and seamless switching between the two modes.
[0008] Patent document 2, "A Lock-in Amplifier with Combined Front-End Amplifier Circuit Structure," primarily targets weak analog signal detection. Its core function is to extract the amplitude information of the external input signal through lock-in demodulation. However, its lock-in circuit is only used to lock the carrier frequency of the external input signal and is not integrated with the pulse experiment control logic in the same hardware system, lacking quantum state manipulation capabilities for solid-state spin systems. Furthermore, its lock-in amplifier achieves frequency tracking and amplitude extraction of the external signal, and its lock-in feedback mechanism differs physically from that of this invention.
[0009] Patent document 3, “A signal generation and readout device and control method,” is still at the board-level integration level. It only achieves physical connection and data interaction through PCB traces, and is not a full-function deep integration within a single FPGA, resulting in a low degree of integration.
[0010] Therefore, this application aims to achieve efficient collaborative operation of continuous wave and pulse measurement modes through integrated hardware design and intelligent control logic, providing strong technical support for the widespread application of solid-state spin sensors in more fields and promoting the further development of magnetic resonance detection technology and quantum sensing technology. Summary of the Invention
[0011] The technical problem to be solved by the present invention is to overcome the shortcomings of the prior art and provide a continuous wave-pulse integrated readout system and method for solid-state spin sensors.
[0012] To solve the technical problem, the solution of the present invention is:
[0013] In a first aspect, embodiments of the present invention provide a continuous-wave-pulse integrated readout system for a solid-state spin sensor based on a single-chip FPGA. A photodetector converts the fluorescence signal generated by the experimental system into an electrical signal. The output fluorescence signal is divided into two parallel outputs, which are respectively fed into a continuous-wave-biased branch (referred to as the "continuous-wave branch") and a pulse-direct-connection branch (referred to as the "pulse branch") for preprocessing. The continuous-wave branch separates and amplifies the AC fluorescence signal and DC fluorescence background in continuous-wave mode, while the pulse branch amplifies the signal and directly sends it to the front-end signal acquisition module. The two input terminals of an external CMOS analog switch are connected to the output terminals of the two branches, respectively, and the output terminal is connected to a shared external ADC. Switching the analog switch allows for selection of the signal path between the two modes. The monolithic FPGA integrates an arbitrary waveform generation module, a sequence generation module, a front-end signal acquisition module, a phase-locked loop (PLL) detection module, a waveform playback management module, a transient waveform recorder module, a waveform data storage module, a clock management module, and a bus control module. The input of the front-end signal acquisition module is connected to an external ADC, and its outputs are connected to the PLL detection module and the transient waveform recorder module, respectively. The input of the waveform playback management module is connected to the waveform data storage module, and its outputs are connected to the arbitrary waveform generation module, the sequence generation module, and the front-end signal acquisition module, respectively. The output of the waveform data storage module is also connected to the arbitrary waveform generation module. The output of the PLL detection module is connected to the frequency control terminal of an external microwave local oscillator to achieve hardware closed-loop locking of the resonant frequency. The bus control module communicates with all internal modules of the monolithic FPGA and communicates with a host computer through an external interface.
[0014] The front-end signal acquisition module mainly comprises a mode switching control unit, an ADC control unit, and a data distribution unit connected in sequence. It selects between a continuous wave branch (continuous wave mode) and a pulse branch (pulse mode) by controlling a CMOS analog switch. Both branches share an external ADC, and the ADC configuration is completed via parameter commands from the bus control module. After acquisition, the signal is distributed and transmitted through internal data distribution logic. Specifically, the mode switching control unit receives mode commands (continuous wave / pulse) from the bus control module and generates precise GPIO control signals through FPGA internal logic to directly drive the external CMOS analog switch to switch between the continuous wave and pulse branches. The ADC control unit receives sampling parameter commands from the bus control module in real time via an SPI interface, and simultaneously receives acquisition enable signals from the waveform playback management module to control the start, stop, and sampling of the external ADC. The data distribution unit, based on the mode identifier (continuous wave / pulse) of the mode switching control unit, uses an internal multiplexer (e.g., 2-to-1) to distribute the acquired data, including: transmitting data to the phase-locked loop detection module in continuous wave mode and transmitting data to the transient waveform recorder module in pulse mode.
[0015] The waveform data storage module is used for batch real-time storage of square wave waveform data, arbitrary wave digital code data, and internal enable data, etc. Its storage media include FPGA internal storage resources and external high-speed memory (such as DDR3 memory).
[0016] The sequence generation module includes a sequence parsing unit and a high-speed parallel-to-serial conversion module connected in sequence. It is responsible for converting the sequence waveform data transmitted from the waveform playback management module into a square wave sequence with nanosecond-level time resolution via the high-speed parallel-to-serial conversion unit, which is used to control the timing of quantum state manipulation units such as lasers and microwaves. Specifically, the sequence parsing unit receives and decodes the sequence waveform data output from the waveform playback management module. The decoded data is input to the high-speed parallel-to-serial conversion module operating at a 1GHz clock, which outputs a square wave sequence with a time accuracy of 1ns.
[0017] The arbitrary waveform generation module includes an enable logic module, a FIFO buffer module, a high-speed parallel-to-serial conversion module, and a digital-to-analog conversion module connected in sequence. The enable logic module, after receiving the enable signal from the waveform playback management module, reads the digital code from the waveform data storage module, buffers it through the FIFO buffer module, and outputs it to the digital-to-analog conversion module through the high-speed parallel-to-serial conversion module to generate an analog signal (i.e., an arbitrary waveform) for precise manipulation of quantum states, etc.
[0018] The transient waveform recorder module includes a FIFO buffer module, a digital filter, and a mathematical processing module connected in sequence. It is responsible for high-speed storage and preprocessing of the signals transmitted from the front-end signal acquisition module in pulse mode. The FIFO buffer module receives and stores digital signals from the front-end signal acquisition module, the digital filter is used to eliminate noise outside the set frequency band, and the mathematical processing module performs weighted summation, demodulation, or FFT operations on the acquired data. The operation results are uploaded to the host computer by the bus control module.
[0019] The phase-locked detection module includes a reference signal generation module, a phase-sensitive detector, a low-pass filter, and a PID (proportional-integral-derivative) controller connected in sequence. It is responsible for phase-locked demodulation of the AC fluorescence signal transmitted from the front-end signal acquisition module in continuous wave mode, extracting weak signal components related to the measured physical quantity and suppressing noise. Simultaneously, it achieves automatic measurement and real-time tracking of the resonant frequency through the PID controller. The reference signal generation module is a direct digital frequency synthesizer, whose control terminal is connected to the bus control module to receive modulation frequency parameters from the host computer and generate a reference signal synchronized with the magnetic field modulation frequency. The input of the phase-sensitive detector is connected to the continuous wave signal output of both the reference signal generation module and the front-end signal acquisition module. It is used to perform correlation operations between the de-DC AC fluorescence signal and the reference signal to extract the target component with the same frequency as the reference frequency. The low-pass filter is connected to the output of the phase-sensitive detector to filter out the high-frequency and frequency components generated by mixing and output a low-frequency difference signal containing magnetic field information as the frequency deviation error signal output to the PID controller. The digital output of the PID controller is connected to the frequency control terminal of the microwave local oscillator through a frequency control interface, which includes an SPI interface and a DDS frequency word writing interface.
[0020] The waveform playback management module is responsible for reading waveform data from the waveform data storage module in real time during waveform playback, transmitting it to the sequence generation module and outputting the square wave sequence. At the same time, it reads the enable data of the arbitrary waveform generation module and the front-end signal acquisition module from the waveform data storage module, and then enables the arbitrary waveform generation module and the front-end signal acquisition module at a predetermined time.
[0021] The clock management module receives the input clock and generates the working clock required by each module inside the device, and the clocks between the modules are completely synchronized.
[0022] The bus control module is responsible for uniformly parsing the host computer's instructions, centrally transmitting data, and monitoring the system status, triggering warnings when abnormalities occur.
[0023] Secondly, embodiments of the present invention provide a method for reading out signals from a solid-state spin sensor that achieves continuous wave-pulse dual-mode switching based on the aforementioned system. This method employs a nested dual-closed-loop architecture of "inner hardware PID real-time frequency locking loop + outer pulse experimental periodic correction loop," thereby realizing an integrated continuous wave-pulse readout system for solid-state spin sensors. The specific steps are as follows:
[0024] (1) In continuous wave mode, automatic measurement and real-time locking of the NV color center resonant frequency are achieved through fully digital phase-locked detection and hardware PID closed-loop control;
[0025] (2) After receiving the pulse mode switching command from the host computer, it automatically switches to pulse mode and directly reuses the resonant frequency locked in step (1) as the microwave reference frequency for the pulse experiment.
[0026] (3) In pulse mode, a square wave manipulation sequence with a time accuracy of 1ns and an arbitrary waveform of nuclear spin manipulation are output synchronously to complete the synchronous acquisition and processing of fluorescence pulse signals and extract nuclear spin evolution information.
[0027] (4) During the pulse experiment, it is determined in real time whether the preset frequency correction period has been reached; if it has, the pulse experiment is automatically paused, and the continuous wave mode is switched back to execute step (1) to update the resonant frequency. Then, the pulse mode is automatically returned to continue the experiment, forming a nested double closed-loop working mechanism of "inner hardware PID real-time frequency locking closed loop + outer pulse experiment periodic correction closed loop". The continuous wave resonant frequency correction and pulse experiment cycle switching are completed autonomously by the hardware. The closed loop process does not require real-time intervention of the host computer software.
[0028] As a preferred embodiment of the present invention, step (1) specifically includes:
[0029] (1.1) The host computer sends the continuous wave mode start command, sampling configuration, modulation parameters and PID control parameters;
[0030] (1.2) A single FPGA drives an external CMOS analog switch to connect the continuous wave branch and complete the path switching;
[0031] (1.3) Start the external ADC for continuous sampling. The fluorescence signal output by the photodetector is sent to the external ADC to complete the analog-to-digital conversion after the DC background is removed by the continuous wave branch.
[0032] (1.4) The acquired signal is processed by phase-sensitive detection and low-pass filtering of the phase-locked loop detection module, and the deviation error signal between the microwave local oscillator and the NV color center resonance frequency is output.
[0033] (1.5) The PID controller performs negative feedback adjustment of the microwave local oscillator frequency based on the error signal, continuously collects the error signal N times and calculates its root mean square value until the root mean square value of the N consecutive error signals is less than the preset locking threshold, the system enters a stable locking state and saves the current locking frequency.
[0034] As a preferred embodiment of the present invention, step (2) specifically includes:
[0035] (2.1) The host computer sends pulse mode switching commands, control sequences and waveform code data;
[0036] (2.2) The single-chip FPGA automatically calls the locked resonant frequency stored in step (1) to complete the microwave reference frequency configuration for the pulse experiment;
[0037] (2.3) Drive the external CMOS analog switch to switch to the pulse branch to complete the pulse mode path switching.
[0038] As a preferred embodiment of the present invention, step (3) specifically includes:
[0039] (3.1) The waveform playback management module synchronously schedules the sequence generation module, the arbitrary waveform generation module, and the front-end signal acquisition module according to the preset timing sequence;
[0040] (3.2) The sequence generation module outputs a square wave manipulation sequence with a time accuracy of 1ns, and the arbitrary waveform generation module outputs an arbitrary waveform manipulated by nuclear spin.
[0041] (3.3) The front-end signal acquisition module synchronously completes the acquisition of fluorescence pulse signals within the preset acquisition window and transmits the data to the transient waveform recorder module;
[0042] (3.4) The transient waveform recorder module performs buffering and real-time calculation on the pulse signal, extracts nuclear spin evolution information and uploads it to the host computer.
[0043] As a preferred embodiment of the present invention, step (4) specifically includes:
[0044] (4.1) The frequency correction period adopts the experiment number configuration mode, and the configuration limit is 2. 32 -1 time; The number of experiments is counted in real time during the pulse experiment to determine whether the preset frequency correction period has been reached;
[0045] (4.2) If the correction period is reached, the pulse experiment is automatically paused, and the continuous wave mode is switched back to execute step (1) to relock the resonant frequency;
[0046] (4.3) After the relocking is completed, it automatically returns to pulse mode and continues to execute step (3) using the updated locking frequency;
[0047] (4.4) If a stop command is received from the host computer, all output signals will be turned off and the measurement process will end.
[0048] Compared with the prior art, the technical advantages of the present invention are:
[0049] 1. A single-chip FPGA dual-mode integrated architecture is adopted to construct a nested dual closed-loop control mechanism.
[0050] This invention integrates two core functions—continuous wave modulation and demodulation, and pulsed nuclear spin manipulation—into a single FPGA, realizing an integrated experimental process of "continuous wave resonance peak correction followed by pulsed quantum manipulation." Unlike traditional lock-in amplifiers that only lock the frequency of the external input signal, this invention directly locks the intrinsic resonant frequency of the NV color center in continuous wave mode, constructing a nested dual-closed-loop control system that serves seamless switching between modes: the inner layer uses hardware PID to correct temperature and magnetic drift in real time, while the outer layer automatically relocks according to the pulse experimental cycle, providing a continuously accurate frequency reference for pulsed quantum manipulation. This design significantly improves the measurement rate compared to software frequency sweeping, meeting the requirements for long-term high-stability quantum control. Compared to traditional multi-chip splicing solutions, the single-FPGA integrated design significantly improves system integration, reduces signal transmission delay and synchronization errors between multiple modules, and provides underlying timing guarantees for quantum control stability.
[0051] 2. Based on a highly reusable and highly reliable architecture, experimental costs can be significantly reduced.
[0052] This invention simplifies hardware implementation and reduces system power consumption and debugging difficulty through cross-mode FPGA resource reuse and full-module clock synchronization design; with the bus control module as the central hub, it unifies instruction parsing, centralizes data transmission, and monitors module status in real time, thereby improving system reliability; the single-chip FPGA integrated design eliminates the need for complex multi-device linkage configuration, significantly shortening experimental preparation time, and is particularly suitable for the core requirements of ease of use and stability in the field of quantum sensing.
[0053] 3. It has flexible adaptation and expansion capabilities, covering quantum sensing needs in multiple scenarios.
[0054] This invention's system supports both continuous wave and pulsed dual-mode operation. At the hardware level, a CMOS analog switch switches the signal branch to complete the core processes of resonance peak correction and nuclear spin manipulation. At the software level, parameters such as the phase-locked reference frequency and transient acquisition window can be flexibly adjusted to adapt to different experimental needs. The system is compatible with mainstream solid-state spin sensors such as NV centers and can be expanded through parameter configuration or module upgrades, enabling a single system to cover basic dual-mode experiments and common sensing requirements.
[0055] 4. It can solve the technical defects of existing technologies.
[0056] For example, compared to Patent Document 1, this invention achieves all-electronic hardware mode switching through an external CMOS analog switch and FPGA internal logic. Compared to Patent Document 2, the phase-locked detection module of this invention, as a core component of the nested dual-closed-loop architecture of "inner-layer hardware PID real-time frequency locking + outer-layer pulse experimental periodic correction", locks the intrinsic resonant frequency of the NV color center. Its core purpose is to serve the dual-mode switching and provide a stable microwave reference frequency for subsequent pulse nucleus spin manipulation experiments, rather than simply detecting signals. Compared to Patent Document 3, this invention deeply integrates waveform generation, timing control, phase-locked demodulation, PID frequency locking, and transient acquisition and processing into a single FPGA. A single set of hardware can complete the entire experiment of NV color center continuous wave spectroscopy and pulse quantum manipulation, rather than just board-level splicing integration with low integration, significantly improving timing synchronization accuracy and reducing hardware complexity and debugging costs. Attached Figure Description
[0057] Figure 1 This is a schematic diagram of a solid-state spin sensor continuous wave-pulse integrated readout system provided in an embodiment of the present invention.
[0058] Figure 2 This is a schematic diagram of a front-end signal acquisition module provided in an embodiment of the present invention.
[0059] Figure 3 This is a schematic diagram of a sequence generation module structure provided in an embodiment of the present invention.
[0060] Figure 4 The diagram shows the output of several pulse signals with a step size of 1ns provided by a sequence generation module in an embodiment of the present invention.
[0061] Figure 5 This is a schematic diagram of an arbitrary waveform generation module provided in an embodiment of the present invention.
[0062] Figure 6 This is a schematic diagram of a transient waveform recorder module provided in an embodiment of the present invention.
[0063] Figure 7 The image shows a zero-field spin continuous spectrum obtained by a transient waveform recorder according to an embodiment of the present invention.
[0064] Figure 8 This is a schematic diagram of a phase-locked detection module provided in an embodiment of the present invention.
[0065] Figure 9 This is a schematic diagram of a dual-mode switching cyclic architecture for a continuous wave-pulse integrated readout system provided in an embodiment of the present invention.
[0066] Figure 10A flowchart of a continuous wave-pulse integrated readout system provided for an embodiment of the present invention. Detailed Implementation
[0067] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0068] The purpose of this invention is to propose a continuous-wave-pulse integrated readout system and method for solid-state spin sensors based on a single-chip FPGA. By constructing a nested dual-closed-loop architecture of "inner-layer hardware PID real-time frequency locking + outer-layer pulse experimental periodic correction", an integrated experimental process is achieved: "first, the resonant frequency is automatically corrected and locked at the millisecond level in continuous-wave mode, and then switched to pulse mode to carry out high-precision nuclear spin manipulation". This improves the resonant frequency correction rate from the second-level scale of traditional software frequency sweeping to the millisecond-level scale of hardware PID locking, providing core technical support for the long-term high-stability quantum control of solid-state spin sensors. In addition, the system functions are implemented in a single-chip FPGA, which maximizes the integration of the system while providing a high-performance magnetic resonance detection device, effectively reducing power consumption and cost, reducing system debugging difficulty, and improving experimental efficiency.
[0069] Part 1: System Architecture Description of the Invention
[0070] See Figure 1This figure is a schematic diagram of a solid-state spin sensor continuous wave-pulse integrated readout system provided by an embodiment of the present invention. The photodetector converts the optical signal generated by the experimental system into an electrical signal. The output fluorescence signal is divided into two paths, which are respectively fed into the continuous wave branch and the pulse branch for preprocessing. In one feasible implementation, the continuous wave branch includes a high-pass filter, a variable gain amplifier, and a DC bias cancellation circuit, used to separate and amplify the AC fluorescence signal and the DC fluorescence background in continuous wave mode. The pulse branch includes a broadband low-noise amplifier, used to directly send the amplified signal to the front-end signal acquisition module. The two input terminals of an external CMOS analog switch (including but not limited to ADG1419) are respectively connected to the output terminals of the two branches, and the output terminal is connected to a common ADC. The signal path selection for the two modes is achieved by switching the analog switch. This embodiment uses a Xilinx Kintex-7XC7K160T FPGA as the core controller. The internal design of the FPGA includes: a front-end signal acquisition module, a sequence generation module, an arbitrary waveform generation module, a waveform data storage module, a waveform playback management module, a transient waveform recorder module, a phase-locked loop detection module, a clock management module, and a bus control module.
[0071] The front-end signal acquisition module selects the continuous wave branch or the pulse branch by controlling the CMOS analog switch. The two branches share the ADC, and the ADC configuration is completed by the parameter instructions issued by the bus control module. After the acquisition is completed, the signal is distributed and transmitted through the internal data distribution logic.
[0072] In one feasible implementation, the front-end signal acquisition module includes a mode switching control unit, an ADC control unit, and a data distribution unit, such as... Figure 2 As shown, each unit coordinates the response mode commands via internal timing links and external enable signals to achieve accurate signal acquisition and distribution in both continuous wave and pulse modes.
[0073] The mode switching control unit receives mode commands (continuous wave / pulse) from the bus control module and generates precise GPIO control signals through the internal logic of the FPGA. These signals directly drive the external CMOS analog switch to switch between the continuous wave branch and the pulse branch. In continuous wave mode, a high level is output to connect the switch to the continuous wave branch, ensuring that the signal is filtered by a high-pass filter to remove the DC background. In pulse mode, a low level is output to switch to the pulse branch.
[0074] The ADC (including but not limited to LTC2182) control unit receives sampling parameter commands such as sampling rate, sampling depth, and gain from the bus control module in real time via the SPI interface, and simultaneously receives the acquisition enable signal from the waveform playback management module. Before switching paths, the ADC control unit first outputs a disable signal to shut down the ADC, delays for 50ns until the analog switch stabilizes, and then re-enables the ADC to prevent voltage spikes generated during path switching from damaging the ADC and to avoid abnormal data entering subsequent processing modules. After the link stabilizes, in continuous wave mode, an enable signal of a specific duration is generated based on the sampling depth; in pulse mode, the enable signal from the waveform playback management module is synchronously transmitted to the ADC control unit. In both cases, ADC acquisition is initiated when the enable signal is valid.
[0075] The data distribution unit distributes the acquired data in a directional manner according to the mode identifier (continuous wave / pulse) of the mode switching control unit through an internal 2-to-1 multiplexer: in continuous wave mode, the data is transmitted to the phase-locked loop detection module for demodulation, and in pulse mode, the data is transmitted to the transient waveform recorder module for transient analysis.
[0076] The waveform data storage module is used for batch real-time storage of square wave waveform data, arbitrary wave digital code data, and internal enable data, etc. Its storage media include FPGA internal storage resources and external high-speed memory; wherein the FPGA internal storage resources include but are not limited to BlockRAM, and the external high-speed memory includes but is not limited to DDR3 DRAM.
[0077] The waveform playback management module is responsible for reading waveform data from the waveform data storage module in real time during waveform playback, transmitting it to the sequence generation module and outputting the square wave sequence. At the same time, it reads the enable data of the arbitrary waveform generation module and the front-end signal acquisition module from the waveform data storage module, and then enables the arbitrary waveform generation module and the front-end signal acquisition module at a predetermined time.
[0078] The sequence generation module is responsible for converting the sequence waveform data transmitted from the waveform playback management module into a high-time-resolution square wave sequence through a high-speed parallel-to-serial conversion unit (including but not limited to OSERDESE2). For example, see... Figure 3 The waveform data transmitted from the waveform playback management module is first decoded by the sequence parsing unit. Then, the sequence parsing unit generates an 8-bit waveform signal per cycle at a 125MHz clock. In this 8-bit signal, "0" represents a low level for one output clock cycle (1GHz), and "1" represents a high level for one output clock cycle. This 8-bit waveform data is then converted into a sequence output with a time accuracy of 1ns by a high-speed parallel-to-serial converter operating at 1GHz. Therefore, the square wave sequence generated by the final sequence generation module has a time accuracy of 1ns.
[0079] The measured output results of the sequence generation module designed in this embodiment are as follows: Figure 4 As shown, the sequence generation module outputs several pulse signals with a step size of 1ns by sending instructions and data from the host computer.
[0080] The arbitrary waveform generation module is used to take the waveform digital code sent by the host computer and output it to a high sampling rate digital-to-analog converter (including but not limited to DAC8830) through high-speed parallel-to-serial conversion technology to generate a specific analog signal, i.e., an arbitrary waveform required by the user, which can be used for precise manipulation of quantum states, etc. For example, see... Figure 5 During waveform playback, after receiving the enable signal from the waveform playback management module, the module reads a segment of arbitrary waveform digital code of a specific length from the waveform data storage module, and then buffers it through a first-level FIFO. Whether the buffered waveform data is played is controlled by the enable logic. The enable logic can send the corresponding waveform data to the subsequent logic for playback when the internal trigger signal arrives.
[0081] The transient waveform recorder module is mainly used for acquiring and processing fluorescence pulse signals in pulse mode, and can precisely set the acquisition time window according to timing requirements to extract nuclear spin information. For example, see... Figure 6 The fluorescence signal has been acquired into a digital signal by the front-end signal acquisition module. Therefore, the transient waveform recorder module mainly includes a FIFO, a digital filter, and a mathematical processing module. The FIFO is used to store the acquired signal. The acquired data entering the subsequent processing flow first undergoes digital filtering (including but not limited to an FIR low-pass filter) to eliminate noise outside the frequency band of interest. Then, it enters the mathematical processing module to perform real-time mathematical operations, including weighting, summation, demodulation, and FFT operations. Finally, the output data is transmitted to the host computer for processing.
[0082] The transient waveform recorder module designed in this embodiment provides the following experimental results for acquiring the spin continuous spectrum: Figure 7 As shown, under stress without an external magnetic field, the characteristic peak at 2.87 GHz exhibits a significant splitting phenomenon.
[0083] The phase-locked detection module is used to extract the modulated magnetic field information in continuous wave mode and demodulates weak AC signals through a fully digital processing link.
[0084] In one feasible implementation, the phase-locked loop (PLL) detection module includes a phase-sensitive detector, a low-pass filter, a reference signal generation module, and a proportional-integral-derivative (PID) controller, such as... Figure 8 As shown.
[0085] The signal under test (SUT) is a digital signal acquired by the front-end signal acquisition module (in continuous wave mode, the DC component has been removed by a bias converter, retaining only the AC fluorescence signal). The reference signal is generated by a direct digital frequency synthesizer (DDS) and used for mixing and demodulating the input signal. A phase-sensitive detector is used to perform correlation operations between the SUT and the reference signal to extract information with the same frequency as the reference frequency; phase-sensitive detection is usually implemented based on a multiplier. A low-pass filter (including but not limited to IIR and FIR) performs an integral operation to filter out the high-frequency and sum-frequency components generated by mixing, retaining only the low-frequency difference-frequency signal containing magnetic field information to improve the signal-to-noise ratio. These two components work together to achieve accurate extraction of the desired signal and effective elimination of background noise by the lock-in amplifier.
[0086] Furthermore, to achieve automatic measurement of the resonant frequency and avoid the speed reduction issue caused by switching microwave frequencies at the software level, thereby improving system response speed and measurement continuity, the phase-locked loop (PLL) detection module introduces a PID controller to construct a closed-loop locking mechanism. In closed-loop operation, the output signal of the LPL amplifier serves as an error signal reflecting the deviation between the microwave local oscillator frequency and the NV color center resonant frequency, and is directly input to the PID controller. When the external magnetic field changes, the microwave local oscillator frequency will deviate from the NV color center resonant frequency. At this time, the PID controller will generate a control signal based on the error signal output by the LPL amplifier, thereby performing negative feedback adjustment on the microwave local oscillator frequency, driving it to follow the NV color center resonant frequency, and ultimately automatically locking the microwave local oscillator frequency at the NV color center resonant frequency. Compared to traditional software-based microwave frequency switching, which requires rescanning, identifying, and locating the resonance peak (measured to take seconds per cycle, and this process must be repeated for each switch, resulting in significant redundancy), this system uses PID automatic resonance peak locking at the hardware level. This significantly reduces the time spent on frequency switching and retesting, while also eliminating the latency caused by frequent communication between the host computer and the FPGA. The time scale is directly shortened to the millisecond level, effectively avoiding the speed reduction problem at the software level and significantly improving the system response speed and measurement continuity.
[0087] The clock management module receives the input clock and generates the working clock required by each module inside the device, ensuring complete synchronization between the clocks of each module.
[0088] The bus control module, acting as the system's central hub, coordinates communication and collaboration between the host computer and various functional modules. The module receives commands from the host computer via an external interface, including mode switching, parameter configuration, and data reading. After parsing, these commands are distributed to the corresponding functional modules, controlling each module to operate according to a preset process. Regarding data transmission, the module aggregates measurement data output from each functional module, processes and caches the data before uploading it to the host computer, ensuring data integrity and efficiency. Simultaneously, the module monitors the operational status of each module in real time, collecting status information and feeding it back to the host computer. When an anomaly is detected, an alarm mechanism is triggered to ensure reliable system operation.
[0089] Part Two: Instructions for Using the System of the Invention
[0090] See Figure 9 and Figure 10 The continuous wave-pulse integrated readout system described in the above embodiments employs, as follows: Figure 9 The nested dual-closed-loop architecture shown (inner hardware PID real-time frequency locking loop + outer pulse experimental periodic correction loop) realizes continuous wave-pulse dual-mode switching, and the workflow is as follows: Figure 10 As shown, the method flow specifically includes the following steps:
[0091] (1) Initial state: The system enters this state after power-on or reset. The FPGA loads the configuration file, initializes the DDR3 memory, SPI interface and GPIO port. All modules are in low power standby mode, all output ports are set low, and the system enters standby state. The bus control module continuously listens for instructions from the host computer. If a valid instruction is received, it enters step (2), otherwise it remains in the initial state.
[0092] (2) Mode judgment: The host computer sends a command through the USB bus. The bus control module parses the host computer command. If the command format or parameters are invalid, it returns to step (1); if it is a continuous wave mode start command, it enters step (3); if it is a pulse mode start command, it enters step (7).
[0093] (3) Continuous wave mode path and parameter preparation: The host computer configures the sampling rate, sampling depth and other parameters to the front-end signal acquisition module via USB. The front-end signal acquisition module drives the GPIO port to output a high level, controls the ADG1419 to connect the continuous wave branch, delays for 50ns until the link is stable, starts the LTC2182 for continuous sampling, and sends the acquired data to the phase-locked loop detection module. Continue to receive instructions from the host computer and enter the operation judgment. If the instruction is wrong, return to step (1); if it is determined to be a modulation parameter configuration instruction, enter step (4); if it is determined to be a phase-locked loop start instruction, enter step (5); if it is determined to be a PID data acquisition instruction, enter step (6).
[0094] (4) Microwave modulation parameter configuration: Receive the microwave center frequency, modulation frequency, modulation amplitude and other parameters sent by the host computer, and complete the initial configuration of the phase-locked detection module and microwave source; after the configuration is completed, return to step (3).
[0095] (5) Phase-locked detection and error signal generation: The front-end signal acquisition module starts the ADC to continuously acquire data, and the acquired data is distributed to the phase-locked detection module. After phase-sensitive detection and low-pass filtering, weak signal extraction and noise suppression are completed, and the deviation error signal between the microwave local oscillator and the NV color center resonance frequency is output; then proceed to step (6) to start PID real-time frequency locking.
[0096] (6) PID real-time frequency locking loop
[0097] 6.1 The host computer configures PID parameters and lockout thresholds via USB. The digital frequency control output of the PID controller is written to the DDS chip of the microwave local oscillator through the SPI interface, thereby adjusting the output frequency of the microwave source and completing a frequency correction.
[0098] 6.2 The locked frequency value is simultaneously written to the BlockRAM of the waveform data storage module inside the FPGA and asynchronously uploaded to the host computer for display and recording;
[0099] 6.3 Execute lock status judgment: continuously collect error signals 10 times and calculate their root mean square value. If the root mean square value is still greater than the preset lock threshold, return to step 6.1 to continue the loop correction; if the root mean square value is less than the threshold, the system enters a stable lock state and sends a "frequency lock successful" signal to the host computer.
[0100] 6.4 Under stable locked conditions, this cycle continues to run automatically, compensating for minute temperature drifts and magnetic field fluctuations in real time;
[0101] 6.5 If a pulse mode switching instruction is received from the host computer, exit the inner loop, save the current locked frequency to the internal register, and proceed to step (7); if a continuous wave mode stop instruction is received, return to the initial state of step (1); if the locking threshold is not reached after 30 consecutive corrections, it is determined that the frequency locking has failed, the error is reported to the host computer, and the process returns to step (1).
[0102] (7) Pulse mode path and parameter preparation: The front-end signal acquisition module drives the GPIO port to output a low level, controls the ADG1419 to switch to the pulse branch, and delays for 50ns until the link is stable; automatically calls the locked resonant frequency stored in the FPGA and configures the microwave source output frequency; continues to receive instructions from the host computer and enters the operation judgment. If the instruction is wrong, it returns to step (1); if it is determined to be a waveform data or enable data writing operation, it enters step (8); if it is determined to be a waveform playback start instruction, it enters step (9); if it is determined to be a pulse data acquisition instruction, it enters step (10).
[0103] (8) Pulse experimental data writing: Receive pulse control sequence (such as Ramsey sequence), arbitrary waveform code and acquisition window parameters from the host computer and write them into the waveform data storage module inside the FPGA; after writing, perform data verification. If the verification is successful, return a confirmation signal to the host computer and return to step (7). If the verification fails, request retransmission.
[0104] (9) Pulse control and synchronous acquisition: The waveform playback management module synchronously schedules the sequence generation module, the arbitrary waveform generation module and the front-end signal acquisition module according to the preset timing sequence; the sequence generation module outputs a square wave control sequence with a time accuracy of 1ns to control the laser, microwave and radio frequency switch; the arbitrary waveform generation module outputs nuclear spin control arbitrary waveform; the front-end signal acquisition module synchronously completes the acquisition of fluorescent pulse signals within the preset acquisition window; after the acquisition is completed, proceed to step (10).
[0105] (10) Pulse data processing and periodic correction judgment:
[0106] The 10.1 transient waveform recorder module performs FIFO buffering, 64th-order FIR low-pass filtering, and cumulative averaging on the acquired data before uploading it to the host computer.
[0107] 10.2 Execution Frequency Correction Period Judgment: The frequency correction period adopts the experiment number configuration mode, with a configuration limit of 2. 32 -1 time; In this embodiment, the frequency is corrected once every 100 pulse experiments; If the preset correction period is not reached, return to step (7) to continue the next round of pulse experiments;
[0108] 10.3 After every 100 experiments are completed, the pulse experiment is automatically paused, and the process is switched back to the continuous wave mode in step (3) and the PID frequency locking process is re-executed.
[0109] 10.4 After the relocking is completed, automatically return to step (7) and continue the pulse experiment using the updated locking frequency;
[0110] 10.5 If the host computer receives the experiment stop command, all output signals will be turned off, the ADC will stop sampling, and the bus control module will upload all the data of this experiment to the host computer for final processing via the USB bus. After the host computer receives the data, it will return a confirmation signal. The system will clear the data from the temporary storage area and return to the initial state of step (1) to wait for the next round of experiments.
[0111] The above description is merely one specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
[0112] Part Three: Definitions of Abbreviations and Key Terms
[0113] NV: Nitrogen-Vacancy
[0114] FPGA: Field-Programmable Gate Arrays
[0115] DDR3 SDRAM: Double-Data-Rate Three Synchronous Dynamic Random Access Memory
[0116] ADC: Analog-to-Digital Converter
[0117] DAC: Digital-to-Analog Converter
[0118] CMOS: Complementary Metal Oxide Semiconductor
[0119] PID: Proportional-Integral-Derivative (controller)
[0120] DDS: Direct Digital Synthesizer
[0121] FIR: Finite Impulse Response Filter
[0122] IIR: Infinite Impulse Response Filter
[0123] SPI: Serial Peripheral Interface
[0124] GPIO: General-Purpose Input / Output
[0125] OSERDESE2: Output Serializer / Deserializer 2 (Xilinx FPGA-specific high-speed serialization primitive)
[0126] FIFO: First In First Out memory
[0127] EPR: Electron Paramagnetic Resonance
[0128] USB: Universal Serial Bus.
Claims
1. A solid-state spin sensor continuous wave-pulse integrated readout system, characterized in that, This includes photodetectors, external CMOS analog switches, external ADCs, and a single-chip FPGA; The photodetector has a continuous wave branch and a pulse branch with parallel outputs. Both are connected to an external CMOS analog switch. The former is used to separate and amplify the AC fluorescence signal and DC fluorescence background in continuous wave mode, while the latter is used to directly output the amplified signal. The output of the external CMOS analog switch is connected to a single FPGA via an external ADC. The monolithic FPGA integrates an arbitrary waveform generation module, a sequence generation module, a front-end signal acquisition module, a phase-locked loop (PLL) detection module, a waveform playback management module, a transient waveform recorder module, a waveform data storage module, a clock management module, and a bus control module. The input of the front-end signal acquisition module is connected to an external ADC, and its output is connected to both the PLL detection module and the transient waveform recorder module. The input of the waveform playback management module is connected to the waveform data storage module, and its output is connected to the arbitrary waveform generation module, the sequence generation module, and the front-end signal acquisition module. The output of the waveform data storage module is also connected to the arbitrary waveform generation module. The output of the PLL detection module is connected to the frequency control terminal of an external microwave local oscillator to achieve hardware closed-loop locking of the resonant frequency. The bus control module communicates with all internal modules of the monolithic FPGA and communicates with a host computer via an external interface.
2. The system according to claim 1, characterized in that, The front-end signal acquisition module includes a mode switching control unit, an ADC control unit, and a data distribution unit connected in sequence; wherein... The mode switching control unit receives the mode command from the bus control module, generates GPIO control signals to drive the external CMOS analog switch, and realizes the switching between the continuous wave branch and the pulse branch. The ADC control unit receives sampling parameter instructions from the bus control module via the SPI interface and receives acquisition enable signals from the waveform playback management module to control the start, stop, and sampling of the external ADC. The data distribution unit distributes the acquired data in a directional manner through an internal multiplexer based on the mode identifier of the mode switching control unit; in continuous wave mode, the data is transmitted to the phase-locked loop detection module, and in pulse mode, the data is transmitted to the transient waveform recorder module.
3. The system according to claim 1, characterized in that, The sequence generation module includes a sequence parsing unit and a high-speed parallel-to-serial conversion module connected in sequence; wherein, the sequence parsing unit receives the sequence waveform data output by the waveform playback management module and decodes it, and the decoded data is input to the high-speed parallel-to-serial conversion module operating at a 1GHz clock, the latter outputs a square wave sequence with a time accuracy of 1ns.
4. The system according to claim 1, wherein the arbitrary waveform generation module comprises an enable logic module, a FIFO buffer module, a high-speed parallel-to-serial conversion module, and a digital-to-analog conversion module connected in sequence; wherein, After receiving the enable signal from the waveform playback management module, the enable logic module reads the arbitrary waveform digital code from the waveform data storage module, buffers it through the FIFO buffer module, and then outputs it to the digital-to-analog converter module through the high-speed parallel-to-serial conversion module to generate an analog signal.
5. The system according to claim 1, characterized in that, The transient waveform recorder module includes a FIFO buffer module, a digital filter, and a mathematical processing module connected in sequence. The FIFO buffer module receives and stores digital signals from the front-end signal acquisition module. The digital filter is used to eliminate noise outside the set frequency band. The mathematical processing module performs weighted summation, demodulation, or FFT operations on the acquired data. The operation results are uploaded to the host computer by the bus control module.
6. The system according to claim 1, characterized in that, The phase-locked loop detection module includes a reference signal generation module, a phase-sensitive detector, a low-pass filter, and a PID controller connected in sequence; wherein... The reference signal generation module is a direct digital frequency synthesizer. Its control terminal is connected to the bus control module to receive the modulation frequency parameters sent by the host computer and generate a reference signal that is synchronized with the magnetic field modulation frequency. The input of the phase-sensitive detector is connected to the continuous wave signal output of both the reference signal generation module and the front-end signal acquisition module. It is used to perform correlation calculations between the de-DC AC fluorescent signal and the reference signal to extract the target component with the same frequency as the reference frequency. The low-pass filter is connected to the output of the phase-sensitive detector to filter out the high-frequency and low-frequency components generated by mixing, and outputs a low-frequency difference signal containing magnetic field information as the frequency deviation error signal output to the PID controller. The digital output of the PID controller is connected to the frequency control terminal of the microwave local oscillator through a frequency control interface, which includes an SPI interface and a DDS frequency word writing interface.
7. A method for reading out signals from a solid-state spin sensor with continuous wave-pulse dual-mode switching using the system described in any one of claims 1 to 6, characterized in that, Specifically, it includes: (1) In continuous wave mode, automatic measurement and real-time locking of the NV color center resonant frequency are achieved through fully digital phase-locked detection and hardware PID closed-loop control; (2) After receiving the pulse mode switching command from the host computer, it automatically switches to pulse mode and directly reuses the resonant frequency locked in step (1) as the microwave reference frequency for the pulse experiment. (3) In pulse mode, a square wave manipulation sequence with a time accuracy of 1ns and an arbitrary waveform of nuclear spin manipulation are output synchronously to complete the synchronous acquisition and processing of fluorescence pulse signals and extract nuclear spin evolution information. (4) During the pulse experiment, it is determined in real time whether the preset frequency correction period has been reached; if it has, the pulse experiment is automatically paused, and the continuous wave mode is switched back to execute step (1) to update the resonant frequency. Then, the pulse mode is automatically returned to continue the experiment, forming a nested double closed-loop working mechanism of "inner hardware PID real-time frequency locking closed loop + outer pulse experiment periodic correction closed loop". The continuous wave resonant frequency correction and pulse experiment cycle switching are completed autonomously by the hardware. The closed loop process does not require real-time intervention of the host computer software.
8. The method according to claim 7, characterized in that, Step (1) specifically includes: (1.1) The host computer sends the continuous wave mode start command, sampling configuration, modulation parameters and PID control parameters; (1.2) A single FPGA drives an external CMOS analog switch to connect the continuous wave branch and complete the path switching; (1.3) Start the external ADC for continuous sampling. The fluorescence signal output by the photodetector is sent to the external ADC to complete the analog-to-digital conversion after the DC background is removed by the continuous wave branch. (1.4) The acquired signal is processed by phase-sensitive detection and low-pass filtering of the phase-locked loop detection module, and the deviation error signal between the microwave local oscillator and the NV color center resonance frequency is output. (1.5) The PID controller performs negative feedback adjustment of the microwave local oscillator frequency based on the error signal, continuously collects the error signal N times and calculates its root mean square value until the root mean square value of the N consecutive error signals is less than the preset locking threshold, the system enters a stable locking state and saves the current locking frequency.
9. The method according to claim 7, characterized in that, Step (2) specifically includes: (2.1) The host computer sends pulse mode switching commands, control sequences and waveform code data; (2.2) The single-chip FPGA automatically calls the locked resonant frequency stored in step (1) to complete the microwave reference frequency configuration for the pulse experiment; (2.3) Drive the external CMOS analog switch to switch to the pulse branch to complete the pulse mode path switching.
10. The method according to claim 7, characterized in that, Step (3) specifically includes: (3.1) The waveform playback management module synchronously schedules the sequence generation module, the arbitrary waveform generation module, and the front-end signal acquisition module according to the preset timing sequence; (3.2) The sequence generation module outputs a square wave manipulation sequence with a time accuracy of 1ns, and the arbitrary waveform generation module outputs an arbitrary waveform manipulated by nuclear spin. (3.3) The front-end signal acquisition module synchronously completes the acquisition of fluorescence pulse signals within the preset acquisition window and transmits the data to the transient waveform recorder module; (3.4) The transient waveform recorder module performs buffering and real-time calculation on the pulse signal, extracts nuclear spin evolution information and uploads it to the host computer.
11. The method according to claim 7, characterized in that, Step (4) specifically includes: (4.1) The frequency correction period adopts the experiment number configuration mode, and the configuration limit is 2. 32 -1 time; The number of experiments is counted in real time during the pulse experiment to determine whether the preset frequency correction period has been reached; (4.2) If the correction period is reached, the pulse experiment is automatically paused, and the continuous wave mode is switched back to execute step (1) to relock the resonant frequency; (4.3) After the relocking is completed, it automatically returns to pulse mode and continues to execute step (3) using the updated locking frequency; (4.4) If a stop command is received from the host computer, all output signals will be turned off and the measurement process will end.
