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

Uploaded CPython 3.13Windows x86-64

nsqdriver-0.0.241-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

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

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

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

Uploaded CPython 3.12Windows x86-64

nsqdriver-0.0.241-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.0.241-cp312-cp312-macosx_10_13_universal2.whl (2.5 MB view details)

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

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

Uploaded CPython 3.11Windows x86-64

nsqdriver-0.0.241-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.0.241-cp311-cp311-macosx_10_9_universal2.whl (2.6 MB view details)

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

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

Uploaded CPython 3.10Windows x86-64

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

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

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

Uploaded CPython 3.9Windows x86-64

nsqdriver-0.0.241-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

nsqdriver-0.0.241-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.0.241-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.241-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 241405cd4ac0e0056f285fdb1ca8f836d8f321edc808f0f438a7e7dccd7370ee
MD5 50c337057de1c22912e902706b778f0c
BLAKE2b-256 3728381983d6394baf43aa96dc1e2ece9c787625ea9f89b478761e71e22b560a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.241-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 017cfdbafe14e9544effeef664b839fb3498921e82f6848ead9721cd223cb718
MD5 5d9c43255d37636f28adeb736381ce01
BLAKE2b-256 d136d3e4ab38330bb244fdf83fefc8688cd06fd37a9c5f392dffad1c60309e3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.241-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 1743cd9c5295256b0dfd627ce4459d6c1ba28c1baf88b0060b8504cd7891cba5
MD5 efe6905f5d6828461967723e08c38fbf
BLAKE2b-256 51be11af984ce80c14ce21eba603fe3f746bfef3e325b1128e35cf19a3db515a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.241-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 87bd9bb72dee549147ecc10104f13c0d7d2840e879290588aae966f93912eb48
MD5 151f6baf1dcfdccbb42e8f29320588e8
BLAKE2b-256 ba784e3a7a41351e8c0f1aac6398c22b7faa47587738714b10a09c46a32ceb80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.241-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 e9cbb319717d3d4e6c6167652e642000dd5bd1879d37ff9f231417055f974e5c
MD5 22b3c1c414bb90871fdd3c56d44d657a
BLAKE2b-256 a23d089c1969aed3fb9b039bfa448121727e206a1cdde370c1386e18fa65e5f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.241-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 c93167f356dbfcd6b73a5cea57210b8cc37dec5e3b16953bf4e190efe94cb6a2
MD5 165c3470145b5ec78665d00c95cf44e3
BLAKE2b-256 2b1fb734696b7c301c0c5328b3238b37c03fe3acee4039697d847f7118915692

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.241-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 80f7e126baf2b66f973fc5133186adaf16e7e5f733015e88d382e23d3b14a8c5
MD5 36ffa013bdf5d615191e8e68621ce01b
BLAKE2b-256 1da78765316ccbe0aa508556f82ff746530330b2e7797b255fa1ba768daeae44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.241-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 cfc8a0a1d86a35e65a9f1c7295e9a6d78437386f84f60139c8ab684288ccb5c2
MD5 5d9ed0f668233164b9b8ffcb653343bc
BLAKE2b-256 e9614c9ae59e630f5e287d6e9077c6be5508ed32e4e85bc199a5941f47bbf410

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.241-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 88fd8225265a765b7fd8654992bb7345b92873eed89031f634bdfc97b22e8698
MD5 273a21b1c3e9b15666c13ff1c7a31da6
BLAKE2b-256 95b0fcb20848360746070cbd6433f2c6f01d21e72c69cf4a2c7add61a623008c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.241-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d9fe7014277e965caf95d178e310368858c56005e41304814995d9c97632bf62
MD5 3d30c0e7a40795aaa304f74a03f77e0a
BLAKE2b-256 c354523b53602d112d33a280d45d1b056a2fc0a3d2798138d0bfa60694cd104e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.241-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 97d05a9a576fb75fab7fb102f51d9a08fbbc6e11df75a358d55e628e629400bc
MD5 b756109a14d007db7ddc97d4efab2140
BLAKE2b-256 4291b61850bc21836b9421163ea4a069d8107e68552022742e91a9b773860fb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.241-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2817b0e6782eabf04dc20c7763e25b9f45c4abef6aac3204f0511037d9da162c
MD5 a506731dae0f8c32ef812e0572a2f318
BLAKE2b-256 05cfced0aa8d70d700e154a847414b8985af5903298761061304a70b95f4c71d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nsqdriver-0.0.241-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.0.241-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b634b306dd96ecd6f2c82797efe4275fd44d62703b1fc6f5f3b99445b85adad2
MD5 ee53c19766537ad638f3a25f00ffab6f
BLAKE2b-256 30b85301e28f39d92accd5bd37abd91cbaec8846330d8ab76fcf31be164473cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.241-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 534e884d9b4dd1e1f71487fefbc5de417167a7f7dc78c5a7d6675f88afb7db48
MD5 3fade4abbe1ecf02b907315f2761a4fa
BLAKE2b-256 cac7f2f7bd27651f29ed94e7e788ed6f2467beabe9884644f3e1c954afbc7433

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.241-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 19548183c027c30db405c6b031864c7db13807dae5b90268879fcbcbf63243b9
MD5 fd35e5d73d80f0e97626e14f8c5d1da1
BLAKE2b-256 83e6e342b89b835f866e9db751f5f6f8c855e0ddb61e3f9ada3cad00f26f67b7

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