Analysis code for High-Precision Tunable Capacitors for the TianQin Project
Description
Analysis code for “High-Precision Tunable Capacitors for the TianQin Project”. The package contains five Python and MATLAB source files for sinusoidal fitting and plotting, microstep plateau analysis, and spectral analysis with integration over the 1–10 mHz band. Input data are provided in the companion experimental-data record linked below. The README describes the programs, software dependencies and execution steps. The code is licensed under MIT. Copyright (c) 2026 Zewen Wan. This work was supported by the National Key R&D Program of China (Grant No. 2020YFC2200704).
Files
Steps to reproduce
Download and extract the experimental-data and analysis-code archives separately. Copy the code package’s sinusoidal/, microstep/ and noise/ folders into the matching data folders. Keep the root README and licence files with their respective packages. From sinusoidal/, run python analyze_and_plot.py. In MATLAB, open microstep/ and run Step_test; then open noise/ and run run_band_review. Outputs are saved in generated/ subfolders. The sinusoidal program fits amplitudes to the measured time series. The microstep program calculates plateau means, sample standard deviations and adjacent step sizes. The noise program estimates the power spectrum and integrates the 1–10 mHz band. Repeatability and long-term calculations are described in their data folder README files. Python dependencies are numpy, openpyxl, reportlab, pypdfium2, Pillow and pypdf. The MATLAB spectral analysis requires Signal Processing Toolbox. Software versions and font settings are listed in the code README.
Institutions
- Beijing Jiaotong UniversityBeijing, Beijing
- Tsinghua UniversityBeijing, Beijing