Skip to main content

Q series measurement and control equipment driver interface

Project description

  _   _   ____     ___    ____           _                       
 | \ | | / ___|   / _ \  |  _ \   _ __  (_) __   __   ___   _ __ 
 |  \| | \___ \  | | | | | | | | | '__| | | \ \ / /  / _ \ | '__|
 | |\  |  ___) | | |_| | | |_| | | |    | |  \ 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')

Project details


Release history Release notifications | RSS feed

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

Uploaded CPython 3.13Windows x86-64

nsqdriver-0.12.17-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

nsqdriver-0.12.17-cp313-cp313-macosx_10_13_universal2.whl (2.4 MB view details)

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

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

Uploaded CPython 3.12Windows x86-64

nsqdriver-0.12.17-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

nsqdriver-0.12.17-cp312-cp312-macosx_10_13_universal2.whl (2.4 MB view details)

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

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

Uploaded CPython 3.11Windows x86-64

nsqdriver-0.12.17-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

nsqdriver-0.12.17-cp311-cp311-macosx_10_9_universal2.whl (2.4 MB view details)

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

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

Uploaded CPython 3.10Windows x86-64

nsqdriver-0.12.17-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

nsqdriver-0.12.17-cp310-cp310-macosx_10_9_universal2.whl (2.5 MB view details)

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

nsqdriver-0.12.17-cp39-cp39-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.9Windows x86-64

nsqdriver-0.12.17-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (7.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

nsqdriver-0.12.17-cp39-cp39-macosx_10_9_universal2.whl (2.5 MB view details)

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

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.17-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 44554d3d576902382ae35f70bf463ed7d5c42d48433abf9956d2f2bb060adbd2
MD5 a4d0b9ce435356c2f4040f7be3130c10
BLAKE2b-256 87d30b0c861f3ff24e0591548b848d9e13874ca110323211c768c09b7344cdf7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.17-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 1a4fc5c507eb36bf78dfa5b57357307318daf8d35774b0086ac84c3a02a36f9b
MD5 fc9129aec3614b19be593b863e9ebbad
BLAKE2b-256 46e6d018b4e959da385d7010e24b554764669551b41659082fdf16732928c169

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.17-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 71fbd22ec45153454da3352003afe7918e7627fcd3bf42bef4eab2662e449c9e
MD5 c34cd1dfae0c2523e84826ed53c1f7fd
BLAKE2b-256 f74a259dbeec827067d5923aa9de90335a78bb85bb01f4a1ec30f2dd837bb02f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.17-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 77002a07a4135c1b6622d6760bd0d8b4c61bc5798463c5f41ac23b44514d84dd
MD5 d9c6e0960bd47731cab2fdd8024fb563
BLAKE2b-256 bcb49c2514c582688ea4599cb0573200bc3ffda75633ce43475b172dfc578c66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.17-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 ab27571ea3a310eaa2fed9b2502a733baef43e23414413b888382327446c7eb6
MD5 5fb6c4d845a97f9cede54133a388fe71
BLAKE2b-256 e0f644fac4d43627453f7fee67abd3e2f8e86252e37101a0391dd149e8696612

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.17-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 838fd2252e16450d508addf02bbb154328b3aac44d1a79d049d420de24f5f6e8
MD5 7ce14c6060741e50334652cc63063b27
BLAKE2b-256 3eaf0b568c552040e55d6d5d044209757f846ec5b2510b038850ed100a463f97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.17-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 669abbb08402e74317d6169b539d1c6b92801a07971e56703f031592de01455e
MD5 f8751812d0372e38a7682fa6f566b506
BLAKE2b-256 396fd9f4f3edfbf3011cbec25b6ad527f1093e94748ad97d19262bbbaf56ef09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.17-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 3d2599af908c840bf236e0798ebd1876012c733da601042fa12bb32a78648b59
MD5 01d35dfae63f4dd00e7c467c18320621
BLAKE2b-256 f5e22991218f5417ddb2db198a1ccda64f1c1090ee7c37e422383de5cc885eb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.17-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f12dc30708d387824f4416dafaa9aaf9b86ff55384594ec75a48d9b020171b63
MD5 df9278035e59843dccba592a51c121b1
BLAKE2b-256 74657a7132be4a2464e6ecea2e695d245db01e856cf4523ae8f5a70ac9008d3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.17-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 81b27a18222276d9ab29ef924253cc28981db9d138b94e6578733c821c6e0ca0
MD5 023c9927b3c8150d3e8f510e8a889db3
BLAKE2b-256 51d51219012c1646d93d26209018abfdeb94ab25fe7be8aa7ebec0282d31bd09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.17-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 77a7bdc564c7d80f3c3bd72e0f0cc882425e8188e01fec7e84e56a87ff3f5903
MD5 3c3cbd80f8c10cf006ead12a5c27fed1
BLAKE2b-256 6b52c9262c19bff3fb2f33cd6949dee658739c1226195fa4b1fbaaa63538aa41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.17-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2fdc5df5d3b0f0f764343a8e2b83da2360bf634e0d0d80be3217381fae1f5b2d
MD5 65e7695b53543df581c722ebe62ccc94
BLAKE2b-256 404e2e4fbdd1d515983486ff7363e58c7855370dcd594465813ecfc05c3a2fd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nsqdriver-0.12.17-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.2 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.12.17-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 239faa78fe7e22b15091491d3987f580f5434fc03a5275a94dfc36d521e7a025
MD5 762bd3fe932535a92f8d9900f9282cde
BLAKE2b-256 4314217004e95d577e455d4ddfa75da1fb88a3e371df869ddf1f2e88eaf89a44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.17-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 3075658c37634c8af78073bf1947e8e72a47d4c24c3e48166388bde4f605df54
MD5 d09b44ff6c601b20ad4ad426357c6e6d
BLAKE2b-256 77db7d815efd5b3d10865f79a04b256d86bb8b80b801dee305cb9d4a67fcad28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.17-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6a158ce9d0e70a6f2fb80c228327d81359cf8e76b5721de442ba2fde90d36fb8
MD5 157db3809ef5617bb6ff504758c170c6
BLAKE2b-256 240cdf0bbcfaba2920e612f1d8edf2118538b91580372e4d4121c875c3ff89bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page