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

Uploaded CPython 3.14Windows x86-64

nsqdriver-0.12.19-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

nsqdriver-0.12.19-cp314-cp314-macosx_10_15_universal2.whl (2.5 MB view details)

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

nsqdriver-0.12.19-cp313-cp313-win_amd64.whl (1.0 MB view details)

Uploaded CPython 3.13Windows x86-64

nsqdriver-0.12.19-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

nsqdriver-0.12.19-cp313-cp313-macosx_10_13_universal2.whl (2.5 MB view details)

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

nsqdriver-0.12.19-cp312-cp312-win_amd64.whl (1.0 MB view details)

Uploaded CPython 3.12Windows x86-64

nsqdriver-0.12.19-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

nsqdriver-0.12.19-cp312-cp312-macosx_10_13_universal2.whl (2.5 MB view details)

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

nsqdriver-0.12.19-cp311-cp311-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.11Windows x86-64

nsqdriver-0.12.19-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

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

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

nsqdriver-0.12.19-cp310-cp310-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.10Windows x86-64

nsqdriver-0.12.19-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

nsqdriver-0.12.19-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.12.19-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.12.19-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 fe6a7709e19354c6f5fafab98dde8ddacc113d745a6c8721fc9ce35f0e5bdf6c
MD5 b6cc9495eded685cb64be7bae9033feb
BLAKE2b-256 7775f967bc7d0e2bf82e98f420cfff0a4de15b93647553f9fc5c2e8d4945a2b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.19-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 dc987ba6e6f2c4aeef6d81753b64b2a97912eb4c063276fbc615ee5385d0ef97
MD5 1873490d07beec065986002ae1df8b63
BLAKE2b-256 f6d32de0820ac57856fa0f1fc59628d1478516749229b6f52f9a1900e4514116

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.19-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 63a1e2595b1c33e2a2b75684efee7e7abe58e9013f3bcee84b28a50feffad143
MD5 969c6dfb21b7add144ed2d3ebba6c339
BLAKE2b-256 8c64358b9a7cd8534a1d2c711d981e15c26fcd0d4723a71eb95b00fc25edb719

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.19-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4e569b85d5299ac1e2fe440027b67bd2961327feb3bcd6e92e34b955e8a80cf8
MD5 2011d6214e3303ca73b662ed67bd875a
BLAKE2b-256 4f89864f33fc62b640e35821068d9b8bbd3fc80217f603428c8633401952313e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.19-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 90ac800f45f7c048363501fd4ebdad0295c5eee9c3b7a0ab2f0b1927e7c506b3
MD5 369c6611a9a31b755cf32a05b286fd37
BLAKE2b-256 5247812a4e7249aca1ed1d252ea361d868db534179196a8c68e3694929d58a9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.19-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 e416421d1bdc80fb0072aba45113d26c39ef5091286a6a80c0e3f370f6cf74f3
MD5 045cd8b4ed2655627c0c362833b02fdc
BLAKE2b-256 c479e690b01334b6403fd32c6c50593168bdab5b793f1efb0ae8e29ef4a9a59d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.19-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1654879f8fb69795f4bdc69f4ada9e23647cf8b4e7c787ab054f10393ca3b894
MD5 05b2857d49f918ef92331396349eb32d
BLAKE2b-256 435178a688df4fc7c7780ef0d2f99d2975c8c1832b985daa1e1e3c47de494507

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.19-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 d6d8923d8d2dab6365f1e15444c12dd5c38fa219fbd4c5aaeae1bfd4a39b4f2b
MD5 2310c44703c89512d6fe3b7abd170f28
BLAKE2b-256 5f67b38391762504e81e1c582f702db20204abd14b669fdabc512c9c5fb2186b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.19-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 36f64c731eba6ad4bb0ad2c9c369fdb2e778a2d6233e5118c6425e36e74003c5
MD5 d8c91b747acc47d22f355032c41b270c
BLAKE2b-256 86dbcab5b9937d03448e271cdf4ed55f686bf8b58a1d6a9710901be0c27f676c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.19-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d7301d7a492a0614c8fb373e78fa0f2eac154f7ad9b0340a93c52ed3e34742d9
MD5 83bf9b31416ec558a54e68671054c4e4
BLAKE2b-256 c2f587d3e5a2f203dd72c9842c320cba6beb8d0975c13140e71441884d1e6b5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.19-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 460aafb04b6f52c7206d29587c6572cadf00c5f75db79bdf6cc0930e15b0e4b3
MD5 bae942d6711d991f7b1f52f0f3d97269
BLAKE2b-256 9b5de56745bc774c0221114e6975e35a17cfab15b2852c5f2f872d2491ffed33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.19-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 122ea3dc817ae8fd54da327c8897c31e23ba84ec5d5b553fbb58c81bf92bfb28
MD5 711e6dedf7acb338b856309939ff76ab
BLAKE2b-256 b30191b41b3c4d8dadb1082357317704ad5e8b9200accbaebd81a285c2ce1dcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.19-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c6624b44de3f369ecca0187b17a269a67bb69539f90e0e3b922237738b29d7ce
MD5 feb708959ae5b7e037e8cc3f9cb2d688
BLAKE2b-256 5dcec314c004502d41e8dfee26482c76535305b062895c2c3ecc22e24b047c82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.19-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 156d361b756799616fca730dc1a1105d30745cdc164be93c6795b76a4a58516f
MD5 38f45374869d53cef5f2e1411d47b14a
BLAKE2b-256 b79c143a490ba4ea67efba439c8ccfad279072a377453523d215293b00b3ef12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.12.19-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 dc0e2ee60ffae0dc72afbc7cfa3f5adb525d888f7aeed48e1573971c14811895
MD5 96ae52858d636aea1b468d2284c5ec9b
BLAKE2b-256 e3d8343110fdad120556dd5b179a29f981170e51f87b4f2aa6ae25be80b1930a

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