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.403-cp313-cp313-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.13Windows x86-64

nsqdriver-0.0.403-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.403-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.403-cp312-cp312-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.12Windows x86-64

nsqdriver-0.0.403-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.403-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.403-cp311-cp311-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.11Windows x86-64

nsqdriver-0.0.403-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.403-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.403-cp310-cp310-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.10Windows x86-64

nsqdriver-0.0.403-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.403-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.403-cp39-cp39-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.9Windows x86-64

nsqdriver-0.0.403-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.403-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.403-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.403-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 871aef6cdbd32a2ce4b8794b01adf96fcfc857702290b1ef4f2244fba7fc3316
MD5 c9a379c331edb4e9b0f68b485ccbdf67
BLAKE2b-256 c726ea467d3e7daa95c54c36ae2f4dbd07644587282ce3ef577397d19e88b7a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.403-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 858f4b3401ac16c9b543a21cc129ce8b29e455e99e280f988aac526a986a61ec
MD5 21bd6a46b1f04a7ab50fd064e10b8f74
BLAKE2b-256 60fa8cb7848a0665c70eef5eb1a5bdd5b7234b06a039d9f95398a96cef88830a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.403-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 1298a0fde0c9f719a9cdf1dc6ea91922d160be7fecbb08b0737881019e1b1ef0
MD5 5a56d32411c51b616cea0848d6aec78c
BLAKE2b-256 4da7bd1e5a2de7c46e5fb4b5f480fd3131015b811db586a07736ff8e1a317384

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.403-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 10ebc6f28490277b7db8001032b0cf5c90b21a5ea0f80dc428c21b7d917111bb
MD5 59e80661941acdb7e7acb89fd38326d0
BLAKE2b-256 0885e65be66515f69e1efa5640926b4afa6ac67ee164b4e68a4c25e8d99d3884

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.403-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 5dfba639d167c244dd44ddcf891d7848bfae0cf0df586f0e46a96df9f2a239f5
MD5 957a70cf981d1d3569cf19057ed3742a
BLAKE2b-256 8224d50cc972205c5a7d65c251aaca3217fee68ea4e0ce5be06f57278fbf3617

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.403-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 d9abd47494c910ac1b7756955b1e2051f43cc3af94028fbe1635f0b493af6c8f
MD5 e1eddf3d38ec0fa0e6ae90724db84ad5
BLAKE2b-256 7c8928b1e5c04ab9abb74633d0f55a00d19ccd54de1317eaac44dfb8824f15fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.403-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 373a483f08e3d2e17fb7f5dc927f7695b8521f7695f750c74a0e4389989d1fc8
MD5 4229c336db87c853734806fd3dc418e0
BLAKE2b-256 49fa8776ac539e6961c4e6145737adcc7ec9f4312058aeb06ade6e399cd3f696

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.403-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2bbffbd3310f9b19efc2a928775a7c72ddd7c1c76080f95fd158ef8d5d5c2606
MD5 ace484787ecccc28b731fa531fe2830b
BLAKE2b-256 3a799677fcaee7f75ad1893de4943b9c27915eee2d589f14b2d2c125cdd146e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.403-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5dca8a3cf86a6ef4bc8705e14a0b96ad63497a2be7a65ba3bee7d965fb67cd2d
MD5 1a1d5da52ab8703cc596285d52e96396
BLAKE2b-256 0354d2bbbb4a5f793272ae55903abc09ba5d402d622e11351c13f0f5d9ce26a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.403-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 83d2f99087ab6ddacdd37bec4902ad08775b213c5cc66682e8af51d2d6dfa6b0
MD5 b79b321e20c870bebdabfb07c571c979
BLAKE2b-256 df9d2aa72a5ebfb211811d001c642e4264018cf5750f0d7014c313038bf8727d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.403-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 57a606912e5f7925a03d579db1bf7851daa0166ad3f97ff72c4efc63a63937b7
MD5 c7d602138672475ba36e502f08537d66
BLAKE2b-256 672faf8ce3346cf2870b0e72228f893d2e60f24dc28f0f7811a902b25465d1a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.403-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c95403893e004b2b0fe796040f98b92dded2657754a678b2ece5e62c81825105
MD5 7eeb6c41607532865ba37776c434a576
BLAKE2b-256 70690aa8061d15efec65d4e9d2d8dc6004b4cf7c13398c44bbb0869e6f721e20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nsqdriver-0.0.403-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.403-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bc19c5e51c325520ffa0bb6096b7908d0073600b3e02e1682821fea65926b391
MD5 836441a126b9b6127155412acca0da15
BLAKE2b-256 8e23139a952a83f8f2d125021f4d184a6b17cfd5eb0f0963352eaf710ad431ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.403-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 52b673cf2cf7023779ab5e11192298e8dd9bb8ff1d108bdb1017b867bd6e8c1c
MD5 76ca5452a92347eca2f15acb066947a6
BLAKE2b-256 9135ac19beb272606dd1033e061a19171e6efde14b72c5576e7cb55013d5eb4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.403-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 385cee4fa094887a301eb371db19bbb1ebce44573baa7b1ff2cca8b16bf3ea38
MD5 16c5b88d01a7cdba4e9fd5c954bef648
BLAKE2b-256 f060a2985cae00abc95f22beb3b87e522ebc86b25da79a8a75d4cb1392586373

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

This release

0.0.403 This release

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