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

Uploaded CPython 3.14Windows x86-64

nsqdriver-0.0.401-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

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

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

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

Uploaded CPython 3.13Windows x86-64

nsqdriver-0.0.401-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.12Windows x86-64

nsqdriver-0.0.401-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

nsqdriver-0.0.401-cp312-cp312-macosx_10_13_universal2.whl (2.6 MB view details)

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

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

Uploaded CPython 3.11Windows x86-64

nsqdriver-0.0.401-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

nsqdriver-0.0.401-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.401-cp310-cp310-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.10Windows x86-64

nsqdriver-0.0.401-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (8.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

nsqdriver-0.0.401-cp310-cp310-macosx_10_9_universal2.whl (2.6 MB view details)

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

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.401-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 a4edf3636c30fe6f801b1726b8b76f0e61d13ab39438fd6b52dffd34677339fe
MD5 28ebdb8074ba6cb40410174b874f68fc
BLAKE2b-256 073520e0fae40acf481132f9c14f4c1046c6b83ef7f404226831d82045f28f13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.401-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 7c080c2f6c4c571dc2547fbe3d76038371ce672f077c739d98ca5d637911fe80
MD5 2171d5f434b08b67a095024043a6c48f
BLAKE2b-256 60d5f4dbdbdb560d44a63f9b84c2110bbc5ef9629cb9c55b4daf3afca21692fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.401-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 4b97052e7a412b2e989601ff0790ae01abde34ea18f20ca6037ef2ace04c7327
MD5 bb8a27cbcb32888b3dbe24745ae83e5a
BLAKE2b-256 5dc6e930834b95d03b35ac08d1d7475bc914f5cda73746b991d227ba893076ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.401-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ced9bdfe02a5b24bc02a84e80847f77f50980c337e4d8cface5a9bd391efe99f
MD5 c5a10c548570a97d20042f9f5c300c6a
BLAKE2b-256 e19b544b71aef7ddab949574ac3be28c78956dbd387cd105a7449e29a0702113

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.401-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 ace7d7f4bab6ee4326e9992090d603245c06767288c5f6c17edf17fc271c055d
MD5 3d8fe2e6d1fee3becdf31c348e1b8466
BLAKE2b-256 c98c77557095bd15275da10d6490095fa725edea8851ab1b0420cb598d46c396

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.401-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 319316a7491fba435a05836e97e634cb862447c576febb829827646da94feb74
MD5 13525bae46f5489b7330af17286f7f32
BLAKE2b-256 cd8fb6854ae0a91e4596d55cdf69ddfb315fc3022a78f60bfa53749d1abe10b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.401-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e4966cf032283eea3ccee7501e91a812ff0b666ec3847565ce50e5ba89e108b9
MD5 a0054ed6031cfef720b9f81f6375394b
BLAKE2b-256 389ed46681fcd86dbea9679ae689906ebf91e70167e4c43fec146ea981061840

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.401-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 aab42adf13dff5897a780c205d4ce991e5abdaf81ece9f3bac89c5f07d613b51
MD5 1090756ada6c7c35786d5dcc8460f9fa
BLAKE2b-256 38f3b831189fdd14a2222e1650192d15cbcea139bb29663ff11662fd21d28598

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.401-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 156cec79e1ea14f66b84c1dc13ae5cd6d2824336798c5ca7c464b7bbc635b2fb
MD5 16cacb9fc723c16aa28446ec8352e987
BLAKE2b-256 5b3d0cbd042f161cfdd0ee8e5e819c83a0e58d98242e63ea98e07f8c6c48843c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.401-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7f133f8485063a0f996ef6b8a92b01a449186cd5a12c155578dbc00d8d41e996
MD5 60d62e0821ae42bb0f45e1a95ab6df77
BLAKE2b-256 a09e15b068d427a1d6934d674bb0499d1c60007f1cbd4024f61e8767fabdd7a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.401-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 ffd396b276d945a95c2e830a10a5e20721d3f109edd405fbf116132ec6d4c3d0
MD5 b964f9d3ab5371d3bd9778c86cfa68f7
BLAKE2b-256 b20a968aff555661f1f9cf5e10b33e1b7a5b45ab16dd22f6f227f08340567a30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.401-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 b3de992d7cb93b0ae6e93dadce0177f98e53a918808faf81b3c5f451f2a66d83
MD5 e27225f875cd393c880b413495ff42ad
BLAKE2b-256 2b9442f81efd6918b8d3894f9b7bfff79c676de8055ccadb38cf74863606daa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.401-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f44777cf354de55ba22ebf6c2ed3c167957853eec4116a666004ba85a115c419
MD5 7754da01dd5a38fa8b933fd2d207f729
BLAKE2b-256 aab1572e71e4bda9783bc11d1730e56c274c4634f10904aa27a8a877a24e0119

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.401-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 8fc2e827729ad7248229da3d6b8f79cdb15d0f816b830fc97cca484505827fba
MD5 1d3bda7282b45b6110b1bde9e300e05c
BLAKE2b-256 e3b3a897c565623fa6799f1f9b00350d993c25e9a4ce3f49e30abfcc42988cac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nsqdriver-0.0.401-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 80a80fdd2ad871f3ac1f36cad369fca244829984c31e5fbf6d146d60885e1de2
MD5 79e3f01d5e278b8755e9cebef37ea6c1
BLAKE2b-256 7d6dfa6b75edc46270a77dc3ca06f40e535b37a00f1358456cb8a4907533d622

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