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

Uploaded CPython 3.14Windows x86-64

nsqdriver-0.0.243-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

nsqdriver-0.0.243-cp314-cp314-macosx_10_15_universal2.whl (2.4 MB view details)

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

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

Uploaded CPython 3.13Windows x86-64

nsqdriver-0.0.243-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.0.243-cp313-cp313-macosx_10_13_universal2.whl (2.4 MB view details)

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

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

Uploaded CPython 3.12Windows x86-64

nsqdriver-0.0.243-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

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

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

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

Uploaded CPython 3.11Windows x86-64

nsqdriver-0.0.243-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

nsqdriver-0.0.243-cp311-cp311-macosx_10_9_universal2.whl (2.5 MB view details)

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

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

Uploaded CPython 3.10Windows x86-64

nsqdriver-0.0.243-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.0.243-cp310-cp310-macosx_10_9_universal2.whl (2.5 MB view details)

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

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.243-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5e684c9bb501ff04769ac168d08e8d7a2519af749a4c9780ba1b8c5f4f3818da
MD5 6292527d0d3aa1f8384734810e03b451
BLAKE2b-256 de20c6dc30af6ed9e5ffdb0b32ffb576f9712c2a1a23f661f6900dce5b58c0d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.243-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 59f767791fb64f01209a920c1775e62d0300cd68dc5489920500fcc0c7136bbf
MD5 81fcfd9bbf9b0ccf9196aadc916ccec9
BLAKE2b-256 44adb46f72a6383043b0c573d44d9561965d27fa7d68b5b7c0cb2e7000a9424f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.243-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 74501ad1a07b1dab7a0929d0d19d118b7abbfae38cf7c0c8eefa6fad5c1bd4c7
MD5 28b11ee9dee67b714b68f7010c100d09
BLAKE2b-256 de37018092f14ad70fa74048080d9f70db3da87f7db5f92aed7360d899aaa908

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.243-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 25701fbe733075b9a3ca6e70d2182e65ca17458c04515910695f39dc239716ac
MD5 6c3fd98309ab08cfce00c276bce48a3a
BLAKE2b-256 eab34c61410ed1d1613b52c1a0da50baae3baef79f5d1d9e898e245c5328246b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.243-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 28adc5a04ab324f67aed0b0d988e7a3d630118e61eab8df1587e00a628c43940
MD5 d4e66cfa7a4abdd7c9bbfa0b648afeef
BLAKE2b-256 9524b759c1a62bf4fc368b349427a9f63006088dcece8699d01486d616de46e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.243-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 67598c68b7144c627be3091fc40ae9e4d42903e8333a9e2114b20d943f5ce37f
MD5 851b773fd7cf6de9ebd68e2d788f8059
BLAKE2b-256 e6a03191a63b701a53dd5cde9774cc7b18d62adfe21a3f273bd84bcc1ce5ddbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.243-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b8ffadff3fb41200a236db51cd8f0a6a7d8717bc6090934345df38165ddd39ba
MD5 ca42ca7b88cc3b4a1ca3899ac1c01ab7
BLAKE2b-256 4be02b958b4ba148cefbd85ac243d7d1898492b8bfc6ca78009e75c683b951a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.243-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 8ecafea68b81579c78ece9919ca2f1f6ddc5cd075ae23f1727e43a7d9ffdabb9
MD5 6077655c9bf25d9ae97bab389dbca76a
BLAKE2b-256 d553ab2102edb515eb29665db28efc1d480b4ad998c0e1f919ef251f759cb243

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.243-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 5d04646f720cc2bff025087159fa14bd5cb4650f750cae8c050fa7985e03da65
MD5 937bbd6edc7921c524948d0d531f5f20
BLAKE2b-256 6405b42f4f82ba233a35cd3b22e41424b9a1eeaed896cd9e7bc125c00770b638

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.243-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 86831d762211d00966105d1d99a1a179c2160e88c087811166365d51a5758808
MD5 9458a527cf03bdf2c276a14afe17655d
BLAKE2b-256 923ce82459dd872003d108154b6fac6c79e264fa46c3e4144c0d7f51f1e02d35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.243-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 36bcfe4365d65c5971aee9cf16fd3e643ee17e65b45495760df3aa665131fe87
MD5 7a07ad850d51194bba0b6a500c14300d
BLAKE2b-256 f77b3dbbe3b581a55a0704dc42b38d1c8c77d9e66da919c0f5f6822451c69cc2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.243-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e485448dfa73c8d30745b1f0dd451d50121e1a3e78205e1bc052ccb5e62b2b44
MD5 b3a8266349cd8b571df3c384b6bd86d7
BLAKE2b-256 0929ecbec0a9a55294bd0979a57a099c764178430a2497b19c9a1cecb0b50900

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.243-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e42c9c449ece8dee0e5154833059275760277176d8af268ba9c9f5ea3556faaa
MD5 4d2717602c379789cffb81bb8ba83a18
BLAKE2b-256 a4ba5d1ac710590d4e7a11c01626c92118401ce19f06b1bfd27b6c0040837660

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.243-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 264c5ac72581c08e0c0f57fd71370194d31238439acb6c59f873b03f72f161f1
MD5 72828c592cdd67ca3627f720f2c8e994
BLAKE2b-256 19320d1a6a9154b8d2dc8994725518a7aee700f4163260f6ccab5b6a0a03e775

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.243-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 03aad799ef4053ea9e14197e1a30d42c3ee76ae33ec2413fc501393583c1f429
MD5 7e4bc614b93ecc54d0e8b6b80cd894ea
BLAKE2b-256 d4c5db37881376a5bd6d5b05fd6c3af2dd83eb24ee9fb9c9fff8599319b8988a

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