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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.12Windows x86-64

nsqdriver-0.12.18-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.18-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.18-cp311-cp311-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.10Windows x86-64

nsqdriver-0.12.18-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.18-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.18-cp39-cp39-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.9Windows x86-64

nsqdriver-0.12.18-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.18-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.18-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.12.18-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a535baa5378ec5c5f5fbe8a9d1d8599ccc2c6648cf87c32e248ee71d8643ecab
MD5 e83efaa065d7af09e42e6a1600cac254
BLAKE2b-256 1016203c851487aa5b8fceb59f76d045ae1e6fbae8bd13131ae59dcfc34cac2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.18-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 23dabea07f06923d7487041a2df4efd1a09235b100d81ee6ca541ab100b29e66
MD5 a3109ea15c60f86839fb411af6d96594
BLAKE2b-256 84b060c90221f0a06a0ae1de16df221e9973180595838c98dce8e8633d039cae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.18-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 e3bef47699669db19786d8703b5d1a8b07a0f5b306676e4766e6003fdbf6cdf6
MD5 780d75343c26f31b3d18b27913cf9f3e
BLAKE2b-256 1d12832666f448d69c6de2116547ad3bf919e638a3c999d57796525ed1db6e8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.18-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8bda77041c1e138bbdad797bec41248710b0a84adf9ea9bf57d472f974bf1e76
MD5 836976a0e792d86a978bbc8c80ffe0ff
BLAKE2b-256 2a0559bf5420f9e282974e0d74bcfb1137934a273308721040ec0b0706f0c5d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.18-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 6d2422d6107b85214d3ea14620e01da02487a34a2c1df9482810b2dd3baee17f
MD5 e299eec380bc9b4077aed3dfdba30053
BLAKE2b-256 18f40830319e2a19666403217af75ce4125bce113f4775571dd69c327de60f70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.18-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 de29de5382be73026a52aaac8f857593aba81cff12217e0da2f7f5dbc58ddcec
MD5 c60e153f646c9166ffc82eec81a0d200
BLAKE2b-256 4259cad1056ab4a7e77446ca45ae5e3b9c1bd859cf04a425ab73694a14cd071d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.18-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 191adc223dbf1989339354128c915099ee6e0872f5193ba762f46f66e0f74a2b
MD5 c7a88b72046368ec8113615e4384accd
BLAKE2b-256 e4f2c300baa8f1e5124b9ffbe1eafdfb833946e56693503d00842721c18b1cae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.18-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 4b93c49407616a6b129d259b939f52de526ef4b6661f278f641995ef3f98b142
MD5 82e16ad3bdcfb0bd834299179e566e7e
BLAKE2b-256 d33d0773842ccd3f810e7f984f96cbdce0d971fd586dd949b6fe74a7d61ba57d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.18-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 26e3e2734c664b79acc5a5a5e5a0582ac4a2b52d1d48d18264ad280863124221
MD5 1f84f53df88c1e1d3ca585bddf1a8c22
BLAKE2b-256 a848f81ad7e9f76099e3840c5463048e23e1a263462f08d6f8fae84e5d0e43c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.18-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 49e8a6eb7df9a7a966f32aff624a1e4d0ad9dd1bfff4638f955fb9efcd38ef32
MD5 84228de4addaac80915f9a44d6180efd
BLAKE2b-256 deb8d2444e9af0e7c54e2a03bb34be427b5b91da97ec59338df647f61746aac4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.18-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 b4074dba71a2fe3d17eb681ba880318e2d341120f91251f8d32813c9f4d4d570
MD5 b251877cb1b8d4ecb1f833224bddbe6b
BLAKE2b-256 419953e9884ba1013de8b09a7ea21f2b4deabf0fe5e149ac5c7f6185bdbf98a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.18-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a082d538b6288600f70725af1ae1b3bc195cc77dd9c0a44dd4b826cdb22d52ce
MD5 3e88443e0e62211704cd4eea0cfb277b
BLAKE2b-256 7b3a5dd5ebd2c7b8ca491bf9619dd13b90784670ee49c226cca6c1b084530432

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nsqdriver-0.12.18-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.18-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9ae4788491c6b139e30cd8186bc14294cd785a1f730dc904fefa8226d5d7227d
MD5 879b8b27810289bbe67e9b2e62116f71
BLAKE2b-256 c38e32e1b3834cca9eeebb7ef7761a5bdb9240e4ea52881a9bdf0a5b8f38306a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.18-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0aa416aa7a005502b7f4b53b237578788d741ff57bcf489040e1d0a02b04ff0d
MD5 9bfa25c7ecb0688b036d0ed2825c3eb9
BLAKE2b-256 e4ee5ef511046905f4a8e6b392a5208c650dc1e1cb741fabf24d3437039d48dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.18-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0648da621bc705d7c11add68b2c6c7897f080a3f29e91128367e0393e9d5d7f9
MD5 c9250b4e7d93b7ae873be783e37431c9
BLAKE2b-256 f1f89ac07b94610261b1506704867890558b6dff7065e63225ec9159ed4e4ecd

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