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

Uploaded CPython 3.14Windows x86-64

nsqdriver-0.0.103-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.103-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.103-cp313-cp313-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.13Windows x86-64

nsqdriver-0.0.103-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.103-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.103-cp312-cp312-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.12Windows x86-64

nsqdriver-0.0.103-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.103-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.103-cp311-cp311-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.11Windows x86-64

nsqdriver-0.0.103-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.103-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.103-cp310-cp310-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.10Windows x86-64

nsqdriver-0.0.103-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.103-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.103-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.103-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 c83b7fc357661739b89f10610e1b301f640b86d3a0e61ad4c9bb32e5ed185ae8
MD5 3c3564d67827f208157efb35e82654ab
BLAKE2b-256 2ee0a47c57519d5bc763a2fd472828c53c7885c6fd2da5ebe230db4cd8701f43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.103-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2e7e7ee8ce102cbfe59c6949a664d9678b8070c5a0b24b7061d5a08a0e066b78
MD5 9778699a0dd18938f8391c6aa8ab1c0c
BLAKE2b-256 cd22b89d76a61b2d8a78748703e98ee12c174ccb2638640650fa908d08da4b3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.103-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 4fdbfd6629f0391204a2d18314b91797d9f4bdf807090f40d4d4ddff69eddfb3
MD5 20ba9c2bc46d4ffa36c97f56dbdcf756
BLAKE2b-256 029dce42417ea957a9973b3c1d56fcc5b84e3ee72447541c74c8b4821d12a249

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.103-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 413de9b0e5a4981a5b1760ca76b60cd2a01ff93394ecfc907e81fe1fb2355f62
MD5 7d5f6861275f7f83c1ba16fecd25da87
BLAKE2b-256 739637b8e4363db24f90aae543f7fcb77c2c99715380a5fa5fd8b9aa1cc056be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.103-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 32d12546bdfd6c7f48ecf831845434b52db04461381910806eb8c84f9ee39e01
MD5 d2151ca11d1ff6c0099d7a0e7c9a665c
BLAKE2b-256 3754b48e322bdad5b8a4781ab6d7cd895ac9ffc6d893caf153564ce9562150dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.103-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 98a78e36cbf6f6acf28e2beb9a52230ef1459203bcd0f913601ec058173935b5
MD5 4a81d11277da92cd97e540393e000d2e
BLAKE2b-256 c591cdfc2695e7c40919e3e01ba4723cd103559f84bd2d519adf369ac9046045

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.103-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 624bf7c08744a686c85a1a14c946a0090ec01c499aa5741aac27ce8b9766964c
MD5 a82380a30eee91a17a07f64bbf993d20
BLAKE2b-256 5b23ea3401e591aba2928c188ed2f492f537fbb59a984808ddc318e1bb48566b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.103-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 329e54608de30a1e176a2f1920214299851886cf957c9c1b3eb1b04ae06523ca
MD5 0aec4d81294092db9e61581a60f9034d
BLAKE2b-256 e4f11ba466bc39ab00e5ee7b8d2345b7a74ba56f3f5d0c2a1bd711697bf5d28e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.103-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 29e39836b0f7ef80819a2c2cf5cb1fcdfd966aae87061dd12c1e2eb684ea506a
MD5 6c4c14118e106abaf8ce605188f70a84
BLAKE2b-256 97298bcb2bfda3c013f2683ad842688a701bb270c4fbe63372e813eab97b638d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.103-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2ff7da11d2a7825e11514f23d75e2990de4ea90607ca16e6cd0490e061d86436
MD5 6804ea5a187f8641f66dd516ac10038a
BLAKE2b-256 20498d297ede7ea0b3e5217de00acd54250fe59a4853397e4bc7c848806b6b89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.103-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 d1770c1d2cc59b362cb6da6be36732b47d63d5a3793b4a3206af004917d41be8
MD5 9fa87b47df531725b0a2b3bd736b2139
BLAKE2b-256 7e3d86d9b5dba7b3bb08f1254485bdaa4cf17444edb658dbe2af24e986ef1ec3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.103-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0dbaf584f75fc0f2d567030589a927a579efbb0662628ebfd52df585ae7fdd8e
MD5 57f984859d10adaa50db1d787d7e6f91
BLAKE2b-256 9ee09bf6a3713239dd3f6e183b53f4afb98a749149c36c63ec1645870c1c63b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.103-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dcdd3b5c8c9b9afd92727a49292b26d34ac4a6cb000d2670772b46e293ff131d
MD5 0fa5eb2f6ac0ad638b00e8622c66c621
BLAKE2b-256 db936900accc5872160c6fe7734b653a4b69749c089b5fe94beec667b3a72735

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.103-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 b44e73a977c1e26d86d5a48643df94d2760e5bdf18f2487af6f9e304609808b7
MD5 4c5655164df433bab1b3626974732096
BLAKE2b-256 02191a4f66376f28ffdd5179a8546c86d9c5318c755fea177ea9ea9ce3195577

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.103-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 b85c5a9d9d9b8a7ddffb3fc0fbc7486c80f12741c588b6ce76d1af77ae4e7d6c
MD5 edd938e402f7905e530e0b0033ddeb73
BLAKE2b-256 9c562e3ec75fee7230b6744d5190f35831d3a787751e458a01215ab2d0c5ab1a

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

0.0.104

15 files

This release

0.0.103 This release

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