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.104-cp314-cp314-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.14Windows x86-64

nsqdriver-0.0.104-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.7 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

nsqdriver-0.0.104-cp314-cp314-macosx_10_15_universal2.whl (2.7 MB view details)

Uploaded CPython 3.14macOS 10.15+ universal2 (ARM64, x86-64)

nsqdriver-0.0.104-cp313-cp313-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.13Windows x86-64

nsqdriver-0.0.104-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

nsqdriver-0.0.104-cp313-cp313-macosx_10_13_universal2.whl (2.7 MB view details)

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

nsqdriver-0.0.104-cp312-cp312-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.12Windows x86-64

nsqdriver-0.0.104-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

nsqdriver-0.0.104-cp312-cp312-macosx_10_13_universal2.whl (2.7 MB view details)

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

nsqdriver-0.0.104-cp311-cp311-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.11Windows x86-64

nsqdriver-0.0.104-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (9.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

nsqdriver-0.0.104-cp311-cp311-macosx_10_9_universal2.whl (2.7 MB view details)

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

nsqdriver-0.0.104-cp310-cp310-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.10Windows x86-64

nsqdriver-0.0.104-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

nsqdriver-0.0.104-cp310-cp310-macosx_10_9_universal2.whl (2.7 MB view details)

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

File details

Details for the file nsqdriver-0.0.104-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.104-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 9d712048e725ec8777a4bde008f101b907ce7812c44a23f6f9de5a76e676b584
MD5 7665760167d37c4a1966500dcbfda3a0
BLAKE2b-256 c2612b43ad17c16eb87c7b319c53c1ee29b81906fd0a1029c763c29664c1571e

See more details on using hashes here.

File details

Details for the file nsqdriver-0.0.104-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.104-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c39a51b046403c619df925ee125cc84f209f50515adacca62c783f26bd7c2b9c
MD5 e0632cc4470ae9dfc976638c8a94f92b
BLAKE2b-256 124aae23eacccdc8baca53145bb5fde92d01cee84ee8550da5a1b83c0740cb52

See more details on using hashes here.

File details

Details for the file nsqdriver-0.0.104-cp314-cp314-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.104-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 2bf0b8b7adda1c17f980d62fea240d45351454105ea6701f42a5bd9d74c0b48b
MD5 8671b0f49e00a31d0cdbe439fbabee9f
BLAKE2b-256 a832d4a6bc99b110b12adbefc61bcbdc12f21d12be97fb0f40d1e2b0aa2b8d91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.104-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e9de1f817710c053bee03aeb46c8218d731ac5b3ae9a6dd6480111e7f1efb289
MD5 c4e39a76b0d8dd4ee1184656baf0a8f7
BLAKE2b-256 a7771dbdb2b625d5e5ee2f539c033e4a26b33f52665974f97a8123b8c1d954fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.104-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 dd543993335d8753d27f2ebeb1890696c0cf53fd8d1007975bb777ea2df075fb
MD5 683aca12cd5f14972115d650a7409c9e
BLAKE2b-256 416cd28d0d5daf80bb63f611e60c70f8c62dab338491ea6db959fcf9007dbd03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.104-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 35ea2005f04ed7f9fe31ed1b11fc30e8b2fb64c230f3b7a4f9bc5621451a2d54
MD5 c4363c595286a107f00d372cf5c889d9
BLAKE2b-256 81bb36e34d27716c739ed75491224d4f30a0c25bbff672c84447e554f3403ab8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.104-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 269d7f610edfdab36cad67e695f677b2bbe7bfedb6c18ec05596da9283bae5de
MD5 b1577e2351338644d64fb4a20bbf464e
BLAKE2b-256 723e3b26ecdb8f72c711de6f583eb5be0cead0fed747da8938b520286674a3f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.104-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 3f941a5b87b9ad390e15eabdd4df974e7b028b33b68f9187f111ba0fc12ce65c
MD5 8b3ade78141aa88f7b5c7c244f380934
BLAKE2b-256 249b7801d06366150ab7f25b911688097d0bd3c3e386b86ab46a8df3ae74f786

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.104-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 259da16ec340afeea1c0a4150ea40a2973d0b79b2a41a51042619cae53551bce
MD5 470c2883e9c439c7924282b076b06d47
BLAKE2b-256 a7409c303ca902c20a0a04ddf15db4949e61a3a17ec8f79c3d2cdce81a5711b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.104-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 15727b06a2247b21c66a4a8a0676d636062cba9407c63f4475f20b29eab3ccec
MD5 f2afe89bb40245fe2701d6067feab428
BLAKE2b-256 92959ab7cf7288280fc4f43f5de872540481adb3bc356fef39288d4fc68aeaa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.104-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 45b1df6e2c7bea2b6c5ae5fc972c9cd3626ef0d3ac92ede497e7d380a9aaa759
MD5 235e0c05ed78a3d9316bf301ae601547
BLAKE2b-256 f62aef19d073d6bafb4feaf06ebf49bd7d24bf0e98fe611fdd6730b886018958

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.104-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1a5b613f53f4ba234624d14048dbababd9c7d53b577d9c22356440b7588729e2
MD5 2cbbef3fadd0a92ac5ef131cbe9f7a19
BLAKE2b-256 58c5f333a0021e5bc1b08e9bebd15c6f187942af40a3c7646690c28f9a9214f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.104-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f944eba1e8eae85b1043948dc0f8415e346760f34807e34cd25b0bb24bd1cf2d
MD5 b817afb2911fc01866b6abd1ee05f7fb
BLAKE2b-256 1b954b4ea0adaecf1b340b5eaf16d7de0d458ded8f78dbb7d6a51971cca3437a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.104-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 8ea6e7e0ab0d7d2a69d99e682b8376387030ec68b1ab0cffd232b8ca589d403e
MD5 b868bebd8b0c1648accfb8894f1c4d0d
BLAKE2b-256 8b661d2babb3b4a48fe0e36c5a73de57bc016c81c9bce2898f7ddcd958226f72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.104-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 047534b850ccfdd0372584d0b7099f57505fe21d1dc6aff80e573a9b302330ee
MD5 d1bf5d9862e96ee83828c40b49e1a63b
BLAKE2b-256 f9bc8a476b2339f587df2a4d68ae8211b2f1137e8b490e945a3404c759802378

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

0.0.404

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

This release

0.0.104 This release

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