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')

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

nsqdriver-0.0.404-cp313-cp313-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.13Windows x86-64

nsqdriver-0.0.404-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (10.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

nsqdriver-0.0.404-cp313-cp313-macosx_10_13_universal2.whl (3.1 MB view details)

Uploaded CPython 3.13macOS 10.13+ universal2 (ARM64, x86-64)

nsqdriver-0.0.404-cp312-cp312-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.12Windows x86-64

nsqdriver-0.0.404-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (10.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

nsqdriver-0.0.404-cp312-cp312-macosx_10_13_universal2.whl (3.1 MB view details)

Uploaded CPython 3.12macOS 10.13+ universal2 (ARM64, x86-64)

nsqdriver-0.0.404-cp311-cp311-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.11Windows x86-64

nsqdriver-0.0.404-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (10.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

nsqdriver-0.0.404-cp311-cp311-macosx_10_9_universal2.whl (3.1 MB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

nsqdriver-0.0.404-cp310-cp310-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.10Windows x86-64

nsqdriver-0.0.404-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (10.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

nsqdriver-0.0.404-cp310-cp310-macosx_10_9_universal2.whl (3.1 MB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)

nsqdriver-0.0.404-cp39-cp39-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.9Windows x86-64

nsqdriver-0.0.404-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (9.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

nsqdriver-0.0.404-cp39-cp39-macosx_10_9_universal2.whl (3.1 MB view details)

Uploaded CPython 3.9macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file nsqdriver-0.0.404-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.404-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 073e2146fc222c9ee3e94b07b143b8472d675914c3e8434954b081f55b0f96d9
MD5 a7d5e75a11edadd9ba9aca9f1a723338
BLAKE2b-256 388ccacf8ddcd63666f13849998b85fe262f06e50b0de10608d909bee8fbd086

See more details on using hashes here.

File details

Details for the file nsqdriver-0.0.404-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.404-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 3f3d3bd93d576c322052b02d4ba180c7acbbc2344799f16f88683c4c4620e393
MD5 3e25bd32c18e384c091cda8dac298b6e
BLAKE2b-256 30917813ce3032d4ff2fad8d8cbac8fd2fe8d5ac4b189d7c73e744384b7e5118

See more details on using hashes here.

File details

Details for the file nsqdriver-0.0.404-cp313-cp313-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.404-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 f58a8015190a7f91917ce623463c0372a19d3f2f8dabd3f5cd6355df6f67c149
MD5 4c5f9a4109856d3b38b08fe0440eea4d
BLAKE2b-256 59e6c8f0e44e828aee0a5556b2488c51f94997c3063534ce9c278c7690fb7adf

See more details on using hashes here.

File details

Details for the file nsqdriver-0.0.404-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.404-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8839f7ea780c41dc1ab46199bda7626a0b6960a4fb0c809e272640987c462815
MD5 bbcf9c253ce8fc24047b9095c043f39b
BLAKE2b-256 e14adac40caacdf25b94d8a7599b25b6455e29c5fff709d0d74e7c0d0e2a8822

See more details on using hashes here.

File details

Details for the file nsqdriver-0.0.404-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.404-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 8671c461d379fc0cae09932f3f9a9aaebc4eead40e34ba127181a78f74631961
MD5 a91a1380b3c7d5e1dd2bdef378ebe548
BLAKE2b-256 fa4cd2e01c4d3789873d9fb05b4abf87e7167541638893ea05d12a612731d15b

See more details on using hashes here.

File details

Details for the file nsqdriver-0.0.404-cp312-cp312-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.404-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 729f5d92366ccefab3fe1f78c9c926af9a72119c1fcdda919e3e0eb6ccb3371b
MD5 fb550aaaf4d5be66bb0d3038e28b8f85
BLAKE2b-256 2d167b9cbfde147f94693d607a1394811eaa77df0160b370e5a19de25c9050ae

See more details on using hashes here.

File details

Details for the file nsqdriver-0.0.404-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.404-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7fda97eb0282d34b8161bfe8ce61df9e4d9d75ecec978bd67563a76271b7e6f1
MD5 2c627c6e17655af723321297901d42fa
BLAKE2b-256 0cd6714de5a1059814d23fb7198306737fe33bb04d55a067f14a5051cc4cb020

See more details on using hashes here.

File details

Details for the file nsqdriver-0.0.404-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.404-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 b86b10e12175ab74ad43258380ce960847b8044511ea5f0612da00837639374b
MD5 120bbca7a0ff0c74eccb0c8f62c80cdd
BLAKE2b-256 0cc90afd7bd2008ef24bb1e60805092eadea703e68697aa8e3401c47ea619aaa

See more details on using hashes here.

File details

Details for the file nsqdriver-0.0.404-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.404-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 b34505769239b379c8532864c69d5f0308fe0865450476f14c33043b97e29ac0
MD5 75473a95032a533f42983d150439421f
BLAKE2b-256 628a4a30db06c116e7db27f8ee74cec3f97933cf3867f7b43637ca5a910acb3e

See more details on using hashes here.

File details

Details for the file nsqdriver-0.0.404-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.404-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3660f7d41eb6837bfc1859ad363ecf2d40aa6bae051b515da00829e850cd4071
MD5 380428a926ea9e3c1406bacdf4ba9a9d
BLAKE2b-256 7049c0519246e3f7a68dc46c1fe2cb5fe93b7c63c048d70276f6224dcdd3699b

See more details on using hashes here.

File details

Details for the file nsqdriver-0.0.404-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.404-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 3b9991047ccf9fc23adeb780bfd7bcd1162e58a34ac43b845c639090c60020ee
MD5 f02f5049bf43e54367c6e563ddd80c20
BLAKE2b-256 d337d0db62840daf28a0221514f50d513b1179b0ec9d5755cc463a2b025aae81

See more details on using hashes here.

File details

Details for the file nsqdriver-0.0.404-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.404-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0cd10313b81c3b3b125edd90e0073bd287ee2d724911b7354cd292ecffdbb4e7
MD5 a09869d465995a2945b2ed990e964ad7
BLAKE2b-256 db56ec86635e2a6ed83ccede8d3d5ccf2eb9e3d9ab256c442fd49818db6ef6d0

See more details on using hashes here.

File details

Details for the file nsqdriver-0.0.404-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: nsqdriver-0.0.404-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.13

File hashes

Hashes for nsqdriver-0.0.404-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0d5152b5fcf4cba710c63fa0a7471499f0e83d517227b17538c8703e0773032a
MD5 59595fef1f8ec542f4131f6a74457681
BLAKE2b-256 476d15743a158eb145aac0bfacb1a4f2db6ef8cb97ceb69ad80af32c24f9c443

See more details on using hashes here.

File details

Details for the file nsqdriver-0.0.404-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.404-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 7cffd3bc1769665ba84d664ac7af9628d233b4e43e64ee2b32c4e5d63344b2f6
MD5 b248eac6f5b2291b25155320a86ef535
BLAKE2b-256 2a8fee1b5b59d7d4a9a527d6bd0afe5b42aeb5380726acdbcd7abc61fa647ca0

See more details on using hashes here.

File details

Details for the file nsqdriver-0.0.404-cp39-cp39-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.404-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2cd66eea46f60bd13f716ab2f5c9b8f2c07a62832b6299776713efb4e293d905
MD5 95789cddc7682486537a66647b7b32a7
BLAKE2b-256 c6edcdd6ba2cfc162aa47293ef79c35862d18252a7b85c7f267f1ed1b0e19781

See more details on using hashes here.

Release history Release notifications | RSS feed

0.13.0

15 files

0.12.61

15 files

0.12.20

15 files

0.12.19

15 files

0.12.18

15 files

0.12.17

15 files

0.12.16

12 files

0.12.15

15 files

0.12.14

15 files

0.12.13

15 files

0.12.12

15 files

0.12.11

17 files

0.12.10

15 files

0.12.9

15 files

0.12.8

15 files

0.12.7

15 files

0.12.6

15 files

0.12.5

15 files

0.12.4

15 files

0.12.3

15 files

0.12.2

15 files

0.12.1

15 files

0.12.0

15 files

0.11.0

15 files

0.10.4

15 files

0.10.3

15 files

0.10.2

15 files

0.10.1

15 files

0.10.0

15 files

0.9.2

15 files

0.9.1

15 files

0.9.0

15 files

0.8.1

15 files

0.8.0

15 files

0.7.7

15 files

0.7.6

15 files

0.7.5

15 files

0.7.4

15 files

0.7.3

15 files

0.7.2

15 files

0.7.1

15 files

0.7.0

15 files

0.6.1

15 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.1.0

2 files

This release

0.0.404 This release

15 files

0.0.403

15 files

0.0.402

15 files

0.0.401

15 files

0.0.400

15 files

0.0.310

15 files

0.0.302

1 file

0.0.301

9 files

0.0.300

9 files

0.0.243

15 files

0.0.242

15 files

0.0.241

15 files

0.0.240

15 files

0.0.239

15 files

0.0.238

12 files

0.0.237

13 files

0.0.236

16 files

0.0.235

15 files

0.0.234

15 files

0.0.233

16 files

0.0.232

16 files

0.0.231

15 files

0.0.230

17 files

0.0.221

15 files

0.0.220

15 files

0.0.219

16 files

0.0.218

16 files

0.0.217

16 files

0.0.216

15 files

0.0.214

16 files

0.0.203

13 files

0.0.202

12 files

0.0.201

15 files

0.0.104

15 files

0.0.103

15 files

0.0.102

15 files

0.0.101

15 files

0.0.100

15 files

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