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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.11Windows x86-64

nsqdriver-0.0.310-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.0.310-cp311-cp311-macosx_10_9_universal2.whl (2.4 MB view details)

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

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.9Windows x86-64

nsqdriver-0.0.310-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.0.310-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.310-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for nsqdriver-0.0.310-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 93e65714b1e4851555f56b908807ba348ce6fa9cfcf30404aa20cc4b6fe5d146
MD5 fe8af1fffb621a9cfc4f16d966a6e57b
BLAKE2b-256 8e9cae7b2be73fd94eee33510f02454dffa7a176c3223402ae42a4c042c59b6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.310-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c9b82f8fb0f79b582d73cb0069b34ba8405a94c133eb5998d84e1878f80d6192
MD5 607e171994b49f46d9fdf229d5f94a91
BLAKE2b-256 0a93a9817a3ad86d2e90b8504b77600d5b9ddc77b38a844e357b8e715620d85b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.310-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 96a771071069818994ef237da9379288c69b4d709954b64588bd36a2c5d79522
MD5 1e803338699d38b499a18683d6f85e57
BLAKE2b-256 fea6cdfc6a7b311a9564d75b46818adb94909b60d905e0bf5570899056cde777

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.310-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5e9a3bb98a50cbc167cb8b9039882f3dc3d7248c0bce02858fa687bb76d06b4b
MD5 a0b018b0456f6dad39d905e1ea3dbc77
BLAKE2b-256 18d173159db36f7741b84264f5bd3838998ffbcab1e6d59f0b34fe2429e85548

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.310-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 3d64c2c9adf5029f9173f3716b9d00ed071443e301a0080b156067bb6ae35918
MD5 d9c9058dd327ad3de47a741a5816236b
BLAKE2b-256 fde0446776f4c925bff469e68f4adea2e9868700f596f7d8514fa1cc892d7caa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.310-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 98b9b1fdbd4f43b3caf14c315c15fa2ecd9a0ad2b9c14e7d533dafd6085cdd56
MD5 3cc84dfbf6d4212ead258dadaa34354c
BLAKE2b-256 c77129916e87deab259cd4122f2966dd09e882ac24404132532794bc373ea862

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.310-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a194604954956c0fe64a9df0105333d9f77b96126e48fb3af9ddd7046569ef15
MD5 a781a2e1023a9c4f0a59a88ba90fb3d9
BLAKE2b-256 941b7a72e58fa43aad88d7add88fb602b7633e9014a8e06b4bb8891ab79e762a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.310-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 5d8b2152aa0c8e3ab415bb4b68e936739ae1848b293cfff6037bbb000df31db8
MD5 6cfdba3ff82a1adb1686a766433a1a27
BLAKE2b-256 b2a5d272f42c6653f0c6c67d555efbe67aab9f58a41102d25f447cc79e1a3e7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.310-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 83dd4cc908046b17623a4136eaee132d423374db556a56129b0bc375d2b0ff0e
MD5 724a0caebc961ff156a49d4a7b851c75
BLAKE2b-256 b093a09f21e6be4d727ff27551f59e4d6ec3285b3cd8939f0aa592d66883b903

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.310-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 82e839a4021c20c130d50f9076c349e9822db818d9672b53a40c5d7dee52c29f
MD5 8838e4b6854cb1e26bcba2a4a319c218
BLAKE2b-256 55e30904122f449a103a1dd97d375dba5f7143e42b9d2234ce29fda3396e3386

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.310-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 500790906555f9730dbb48a489deca5c8c78676f9103f639dd0e8066f2279609
MD5 bf22ca69bbd0c93f6b3cd70274a6dfef
BLAKE2b-256 883da76c55bb2cb4b4d116c4829d2ba468f558bddd42b0140a42cc19ff678fde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.310-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 af93708c10875fd38b486ec14869b5a6f97a06ec42f03c0cc4c66742ef9f804e
MD5 a2f070a3deb64f871a45035b2320ad7b
BLAKE2b-256 650fd9a5dd51988eaa74e7785f9112e573be3e68908e79fd6e7c52f954fec8e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nsqdriver-0.0.310-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.310-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 10d42a1e31f09488f826aa0628f240039457753a1ca94514ae646accd4aa5cb2
MD5 025ae0dfe0a42e9f50e8a659e0a1a686
BLAKE2b-256 e084c85ce8e44aed6117887cc8665b6fc92dca2d1520346292d28e3329a8be07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.310-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 8a335d014608db3e4d9e2d0231f7be846ef4bbb7da6a10150a1f80a3f728d7d2
MD5 14cffd3eb19be921b54c50ff2acdc550
BLAKE2b-256 46f9fce6a0a517aabde5a2538d2b64287c2cd43f3e1ac68c790a90cbbf46c6f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.310-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8883350667cf6b8e4008e3b2faf9f67b9d594a1212ef368df383e922e9f21f6e
MD5 40e807fcefcd57b998850a657d7eb9b4
BLAKE2b-256 fd8620a3afb5df31dcc1249d63d61cd4e18ac283de10fc8332cda6f585715f44

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