Skip to main content
  _   _   ____     ___    ____           _                       
 | \ | | / ___|   / _ \  |  _ \   _ __  (_) __   __   ___   _ __ 
 |  \| | \___ \  | | | | | | | | | '__| | | \ \ / /  / _ \ | '__|
 | |\  |  ___) | | |_| | | |_| | | |    | |  \ V /  |  __/ | |   
 |_| \_| |____/   \__\_\ |____/  |_|    |_|   \_/    \___| |_|   

简介

NSQDriver为一套测控系列设备的Python通用驱动接口。可使用Python作为编程语言,基于此驱动接口可以实现对测控设备的控制,进而完成各种超导量子芯片的表征实验和高保真门操作。

                              +------------------------+
                              |          Python        |
                              |     +------------------+
                              |     |      NSQDriver   |
                              +------------------------+
                                     :     :         :
                           +----------     :         -----+
                           :               :              :
                           V               V              V
                     +-----------+   +-----------+   +-----------+   
                     |  Device A |   |  Device B |   |   QSYNC   |    
                     +-----------+   +-----------+   +-----------+   

NSQDriver接口可用于统一控制Q100/PQ系列测控仪器,可详细控制每台仪器每个OUT、IN通道的播放与采集行为,以及查看设备的运行状态等。在一个多台测控设备组成的多比特测控系统中,可以有效的在软件层面实现对系统中每台设备的详细控制。


快速开始

  • 驱动接口的通用流程如下
from nsqdriver import MCIDriver, QSYNCDriver

# 实例化设备驱动接口
driver = MCIDriver('127.0.0.1')
qsync = QSYNCDriver('127.0.0.1')

# 连接设备
qsync.open()
driver.open()

# 初始化系统
qsync.sync_system()


# 相关参数,参数细节相关参考 8.可用参数列表
driver.set('Shot', 1024)
  • NSWave语言
    • NSWave是一种对于Sequence序列发生技术的配套编程语言,属于python语法的子集,支持与python程序进行混编
    • Sequence序列发生模式将测控所需的各种门的编辑由主控计算机直接生成波形转化成了设备实时计算
    • 提供了一套直观的时序编辑接口
from nsqdriver import nswave as nw
from nsqdriver import MCIDriver
import numpy as np

@nw.kernel
def program(envelope: np.ndarray):
    srate: nw.Var = 8e9
    time_width: nw.Var = 6e-6
    freq: nw.Var = 4.1e9
    time_line: np.ndarray = np.linspace(0, 6e-6, int(time_width * srate + 1))
    wave: np.ndarray = np.cos(2 * np.pi * time_line * freq)
    frame_0: nw.Frame = nw.ins_frame(0e9, 0*np.pi)
    frame_1: nw.Frame = nw.ins_frame(4.3e9, 0*np.pi)
    envelope_0: nw.Envelope = nw.ins_envelope(wave)
    envelope_1: "nw.Envelope" = nw.evlp_gaussian(2e-6, srate)
    envelope_2: nw.Envelope = nw.ins_envelope(envelope)

    nw.wait_for_trigger()
    nw.reset_frame([frame_0, frame_1])
    nw.wait(3.2e-6)
    nw.play_wave(envelope_1, frame_1)
    nw.play_wave(envelope_0, frame_0)
    nw.inc_phase(frame_1, np.pi)
    nw.play_wave(envelope_2, frame_1)

    return nw.Kernel()

driver: MCIDriver
envelope = np.ones((10240, ))
driver.set("Program", program(envelope), 'S5-O1')

Metadata

Release files for nsqdriver 0.13.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for nsqdriver 0.13.1
File
nsqdriver-0.13.1-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
nsqdriver-0.13.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64 Details
nsqdriver-0.13.1-cp314-cp314-macosx_10_15_universal2.whl CPython 3.14 CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64) Details
nsqdriver-0.13.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
nsqdriver-0.13.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details
nsqdriver-0.13.1-cp313-cp313-macosx_10_13_universal2.whl CPython 3.13 CPython 3.13 macOS 10.13+ universal2 (ARM64, x86-64) Details
nsqdriver-0.13.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
nsqdriver-0.13.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
nsqdriver-0.13.1-cp312-cp312-macosx_10_13_universal2.whl CPython 3.12 CPython 3.12 macOS 10.13+ universal2 (ARM64, x86-64) Details
nsqdriver-0.13.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
nsqdriver-0.13.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
nsqdriver-0.13.1-cp311-cp311-macosx_10_9_universal2.whl CPython 3.11 CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) Details
nsqdriver-0.13.1-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
nsqdriver-0.13.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
nsqdriver-0.13.1-cp310-cp310-macosx_10_9_universal2.whl CPython 3.10 CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) Details

Total release size: 63.2 MB

Release files / nsqdriver-0.13.1-cp314-cp314-win_amd64.whl

Download URL nsqdriver-0.13.1-cp314-cp314-win_amd64.whl
Size 1.1 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
ceed99df46a5fe2765bec79bbd224d064d1c3ae6a2bd0720f72dc85feed26441
BLAKE2b-256 checksum
How to use checksums
8214253e24ff10baaa6b279bee8feb0570a25573b4aed264a60eb022c78d7e5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / nsqdriver-0.13.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL nsqdriver-0.13.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 8.7 MB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
262dd2b9450ae9f51327879391fc270baf943e037eb8d31c8c8bc821351f5624
BLAKE2b-256 checksum
How to use checksums
78bcc25307141c1c7854cf758af3ac9151d895dee434c7843996077a57c54b21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / nsqdriver-0.13.1-cp314-cp314-macosx_10_15_universal2.whl

Download URL nsqdriver-0.13.1-cp314-cp314-macosx_10_15_universal2.whl
Size 2.7 MB
Tags CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
a5f2c29def6529b32e87d4f0db6e887ff9c89d08bbd39044eff4d85ea3a31d51
BLAKE2b-256 checksum
How to use checksums
2976680b4bf6a9dd3a9114dc316b07fca688ddfaaa7e13dfcc4c20ecf43520b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / nsqdriver-0.13.1-cp313-cp313-win_amd64.whl

Download URL nsqdriver-0.13.1-cp313-cp313-win_amd64.whl
Size 1.1 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
cf92746c99c2fc50fd9089962fe590788c7df15032ea09a18513e9da3bf85eea
BLAKE2b-256 checksum
How to use checksums
8a00f5bb826cb9924526d93fe6b2c1c52e4e9bdfbc96faa4929a5061fe1d3510
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / nsqdriver-0.13.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL nsqdriver-0.13.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 8.8 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
c29ad2d0fbea35acddd01321ada2a2e165b1f0defa4b8c3a6f428bc577feebfd
BLAKE2b-256 checksum
How to use checksums
21ac8be5c2cda44804f68dd60bb348ae43be2700ceafd1084841111e4b083f72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / nsqdriver-0.13.1-cp313-cp313-macosx_10_13_universal2.whl

Download URL nsqdriver-0.13.1-cp313-cp313-macosx_10_13_universal2.whl
Size 2.7 MB
Tags CPython 3.13 macOS 10.13+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
807c7edf545c53e235f55705c4f16e8e8d78e48a0aaa5533ff9cacb905c2b088
BLAKE2b-256 checksum
How to use checksums
3f04cbb41306cb7b251a185acbcc59b62e21fe28acd9b9937c3930a6878b6b23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / nsqdriver-0.13.1-cp312-cp312-win_amd64.whl

Download URL nsqdriver-0.13.1-cp312-cp312-win_amd64.whl
Size 1.1 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
9865d31d378883754cc20388546d8860c46f327d4b5f0d6c19bd0a162fb04fb8
BLAKE2b-256 checksum
How to use checksums
71c1e8f337c5b8f0d0177208cc9d1dfe45d5cb8f049ad9440841606f996cdf41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / nsqdriver-0.13.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL nsqdriver-0.13.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 8.9 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
1e6a5b97fa42ec85b1db455d6573085bfc6cd4813ec42fe3ae71c95a7b3cded6
BLAKE2b-256 checksum
How to use checksums
fc7920b6a639f5ad87d1f66f91564ae5037e084b9362cd599025cd4b8f4e4a09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / nsqdriver-0.13.1-cp312-cp312-macosx_10_13_universal2.whl

Download URL nsqdriver-0.13.1-cp312-cp312-macosx_10_13_universal2.whl
Size 2.7 MB
Tags CPython 3.12 macOS 10.13+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
7905a20dfe07ede7ffab4023b18a71bc179ca3ff81b46c311cff80ff271c9578
BLAKE2b-256 checksum
How to use checksums
3866660728e89000e70ae4dde6476a846d1c3bc00e4a6ff481e57acb03f199fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / nsqdriver-0.13.1-cp311-cp311-win_amd64.whl

Download URL nsqdriver-0.13.1-cp311-cp311-win_amd64.whl
Size 1.2 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
ff9d65f02bbba99d403359fb4bcf2c047453085bbc23e5a80adadbdb81c2f7ab
BLAKE2b-256 checksum
How to use checksums
5a7cead48ab6343d828014aa675c3160ee8b3cbb9e5797762bf392cacbc74333
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / nsqdriver-0.13.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL nsqdriver-0.13.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 9.2 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
f064f92083b8e2f265ed28a6e69d7544431ad770b0399fdcb88856090d13fa6d
BLAKE2b-256 checksum
How to use checksums
8fd86bdb8b0d3e6243a6af45ebb7d0524429e501503932e80d07dab8ec9dd521
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / nsqdriver-0.13.1-cp311-cp311-macosx_10_9_universal2.whl

Download URL nsqdriver-0.13.1-cp311-cp311-macosx_10_9_universal2.whl
Size 2.7 MB
Tags CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
d43f1cdf1474d48c2fb223a93a6a6fd7b7ca3b15dc41615286d6db7165aab1d4
BLAKE2b-256 checksum
How to use checksums
0d1b0168886777ef72daf8a884620f359e70a5115d83b1624c9997eecc41b7d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / nsqdriver-0.13.1-cp310-cp310-win_amd64.whl

Download URL nsqdriver-0.13.1-cp310-cp310-win_amd64.whl
Size 1.2 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
6fca5d1844a59195e44605e15229f1e1156a222baad87aa499bc0c6463d49b64
BLAKE2b-256 checksum
How to use checksums
5c3d3d5b7260399335ddf9f872b52f9c801e1ed6683e0aac93682f08853d3f31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release files / nsqdriver-0.13.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL nsqdriver-0.13.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 8.7 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
dd62a425c118d0796fb4d698d199c0aa94e23c8999b1f314dea39c90cf4ae963
BLAKE2b-256 checksum
How to use checksums
8309c9f59f650bd8093c06d4789517e2775f6dcadd483d81c9aada162f2060d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.21

Release files / nsqdriver-0.13.1-cp310-cp310-macosx_10_9_universal2.whl

Download URL nsqdriver-0.13.1-cp310-cp310-macosx_10_9_universal2.whl
Size 2.7 MB
Tags CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
5516ba41ebac200d5c20740ce91b3e393038e91711e4c2d0610b250ab7fe4f29
BLAKE2b-256 checksum
How to use checksums
4acfd49a1526959ed56cf7aef511cb3c83b6c0b4e2ffc3a89220f3319f24e4db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release history Release notifications | RSS feed

This release

0.13.1 This release

15 release files

0.9.2

15 release files

0.7.5

15 release files

0.7.4

15 release files

0.7.0

15 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.0

2 release files

0.0.302

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page