_ _ ____ ___ ____ _
| \ | | / ___| / _ \ | _ \ _ __ (_) __ __ ___ _ __
| \| | \___ \ | | | | | | | | | '__| | | \ \ / / / _ \ | '__|
| |\ | ___) | | |_| | | |_| | | | | | \ V / | __/ | |
|_| \_| |____/ \__\_\ |____/ |_| |_| \_/ \___| |_|
简介
NSQDriver为一套耐数®量子测控系列设备的Python通用驱动接口。可使用Python作为编程语言,基于此驱动接口可以实现对本公司测控设备的控制,进而完成各种超导量子芯片的表征实验和高保真门操作。
+------------------------+
| Python |
| +------------------+
| | NSQDriver |
+------------------------+
: : :
+---------- : -----+
: : :
V V V
+-----------+ +-----------+ +-----------+
| Device A | | Device B | | QSYNC |
+-----------+ +-----------+ +-----------+
NSQDriver接口可用于统一控制耐数®生产的Q100、MC、QSYNC等一系列量子测控仪器,可详细控制每台仪器每个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序列发生技术的控制接口,Sequence序列发生模式将量子测控所需的各种门的编辑由主控计算机直接生成波形转化成了设备实时计算
- 提供了一套直观的时序编辑接口
- 如下示例展示了使用nswave控制设备重复播放一段波形200次
from nsqdriver import InsChannel
import numpy as np
ch = InsChannel() # 生成参数化波形通道实例
frame_65e9 = ch.ins_frame(6.5e9) # 生成一个frame
frame_67e9 = ch.ins_frame(6.7e9) # 生成一个frame
gaussian = ch.evlp_gaussian(4500e-9) # 生成一个高斯包络
square = ch.evlp_square(2500e-9) # 生成一个方波包络
wave1 = gaussian * frame_67e9 # 生成一段高斯包络的波形
wave2 = square * frame_65e9 # 生成一段方波包络的波形
ch.ins_reset_frame('phase', frame_65e9)
ch.ins_reset_frame('phase', frame_67e9)
ch.wait_for_trigger() # 等待触发到来
# 循环播放200次 3μs延迟+ 7μs波形
with ch.ins_loop(times=200) as _loop:
_loop.play_zero(3000e-9)
_loop.inc_phase(frame_65e9, np.pi / 2)
_loop.play_wave(wave2)
_loop.play_wave(wave1)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nsqdriver-0.13.0-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: nsqdriver-0.13.0-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 234.5 kB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5102c8608f072e37e2fcf54ad903ecf885a09dbe28391d8ed6c637590a798116
|
|
| MD5 |
cbff869d1f199f516541483ae690cba8
|
|
| BLAKE2b-256 |
fafd4b13b1df7dfc7b8b92eddc105be0663911b03df2bbf57356dbfdc4b28232
|
File details
Details for the file nsqdriver-0.13.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.
File metadata
- Download URL: nsqdriver-0.13.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.14, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2bc968ab7b82ead814840eeabff1dcc44e965d2d435dfdc18c41c68b5c501b9
|
|
| MD5 |
2cc3499e360f5ae2652e002bcf42da33
|
|
| BLAKE2b-256 |
a6fe25934871946078fe16f72ad293438838428ac339a10353bc3025af8a6abc
|
File details
Details for the file nsqdriver-0.13.0-cp314-cp314-macosx_10_15_universal2.whl.
File metadata
- Download URL: nsqdriver-0.13.0-cp314-cp314-macosx_10_15_universal2.whl
- Upload date:
- Size: 529.7 kB
- Tags: CPython 3.14, macOS 10.15+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
233b43bfe1661377fe8982b1182901ff5004c11d2d09324224e3cc71a45d79a7
|
|
| MD5 |
3dfd137f6e125017a7ab820d4f8fe435
|
|
| BLAKE2b-256 |
612e98f36303df4219bb219ff92b0677e921c8b7885bae447889d3e2366eed38
|
File details
Details for the file nsqdriver-0.13.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: nsqdriver-0.13.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 228.8 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a2267f1dfe1aec830fbded6429ad7d7e80f15a69e8e0f8736f4a1a87614bc4f
|
|
| MD5 |
770b8e43510a033bbeaa5c714556eb1f
|
|
| BLAKE2b-256 |
3f19c16615cd3f74bf036180b1668ce5ce128556f1eaf3d5b20a42958b7fb155
|
File details
Details for the file nsqdriver-0.13.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.
File metadata
- Download URL: nsqdriver-0.13.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11350e4ee6fa0d4f5cf687af402477197bf32491cb85ba05c0b75d0da2379d73
|
|
| MD5 |
ee6959b21e2cbb9ff39a4d9f50da3ae5
|
|
| BLAKE2b-256 |
9549315a9cc7ad8dd5058a348ae1e7a8d7b6e693ed84fd09a180df4b726daf60
|
File details
Details for the file nsqdriver-0.13.0-cp313-cp313-macosx_10_13_universal2.whl.
File metadata
- Download URL: nsqdriver-0.13.0-cp313-cp313-macosx_10_13_universal2.whl
- Upload date:
- Size: 526.1 kB
- Tags: CPython 3.13, macOS 10.13+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6821f9fe766da21942f93ae5c782a8139b415df002f33392eeabac39705e72cb
|
|
| MD5 |
60f346a5d8cab0990282b0a6efdf022f
|
|
| BLAKE2b-256 |
8192d22b7f4498acab93c8347beebf72d1ba2d02d4183e3fe45aef45440956b9
|
File details
Details for the file nsqdriver-0.13.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: nsqdriver-0.13.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 229.5 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0bd5cf0c82922a21f9c2df2f9ba1f548268b88ba889e86b65055e668f2c86ee
|
|
| MD5 |
48a55f91641b3288b6bcc59ccb19ff3c
|
|
| BLAKE2b-256 |
4353d2d4113fc6e332403532f0cb844661f65d328b8b79c8e02faa2c5f03fec5
|
File details
Details for the file nsqdriver-0.13.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.
File metadata
- Download URL: nsqdriver-0.13.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfa25d25fe8b086f2eaff2506c01f52000c800148cce0ca65a1ef27697ec4438
|
|
| MD5 |
c4661c9c2100910ac05adc962bd4fbcb
|
|
| BLAKE2b-256 |
3c110f6fbced3e3234d6fb1c277600ddeeda06c84e06a755d2692149a50e8ce5
|
File details
Details for the file nsqdriver-0.13.0-cp312-cp312-macosx_10_13_universal2.whl.
File metadata
- Download URL: nsqdriver-0.13.0-cp312-cp312-macosx_10_13_universal2.whl
- Upload date:
- Size: 530.4 kB
- Tags: CPython 3.12, macOS 10.13+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c93726785ce2191968c51bf5383b15d361788e5536f9bcb811ddf7ace3dabfb5
|
|
| MD5 |
024ba7800103d61d2ad6da7638584439
|
|
| BLAKE2b-256 |
6bee6204cb2bc77f9e714d35b5434f7d55d744e7330ce5ea2b94566f07784d6f
|
File details
Details for the file nsqdriver-0.13.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: nsqdriver-0.13.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 244.4 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
740df62901683782839ff7f381bd91ec5e73855c40aad3eeaf1b715fd3a78f86
|
|
| MD5 |
5555457cf1cab364f13b9f76e81b4ec0
|
|
| BLAKE2b-256 |
3bc8c18ceb4c0a0bfc7f544b702372175343340e4bc08a3fbe2e1a4c76b58325
|
File details
Details for the file nsqdriver-0.13.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.
File metadata
- Download URL: nsqdriver-0.13.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfbac36b22bc97940442f5ea92d17b2d9febf82902eb4112d1eb11dbab228ff3
|
|
| MD5 |
fba17ce231e0da69bb3bc0fdae8d5f52
|
|
| BLAKE2b-256 |
41272375f3ff14e2ec77d70831d2f5944ab281ab9ead8f76fc5128f3f8c09ca1
|
File details
Details for the file nsqdriver-0.13.0-cp311-cp311-macosx_10_9_universal2.whl.
File metadata
- Download URL: nsqdriver-0.13.0-cp311-cp311-macosx_10_9_universal2.whl
- Upload date:
- Size: 530.3 kB
- Tags: CPython 3.11, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d44dc417e4a6420a6033704d97d43d4b306e311928de2fd43cc3555949875c2c
|
|
| MD5 |
0833275920890a83e968c1700564a2f9
|
|
| BLAKE2b-256 |
4233e73749419a8ee6f444b808e396ae8139dd687481e705669a01415c75435a
|
File details
Details for the file nsqdriver-0.13.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: nsqdriver-0.13.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 245.1 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c387886466b55b78ddc96fff090875964244053f8497f22bf3421c589bd3186f
|
|
| MD5 |
5d7d82f5d378c361cdd59c3f9fbbcd1b
|
|
| BLAKE2b-256 |
210c3fee1d60ef4abee0449bf543d4130ca10b4daa863eefd25ec18fa2529646
|
File details
Details for the file nsqdriver-0.13.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.
File metadata
- Download URL: nsqdriver-0.13.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.10.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2a510c989bf46c6d7a39867e78282ce3258d98ce6107cdfc3fc800ce8ca1100
|
|
| MD5 |
ebdf5e53f493121fb2c286d25aebcb7d
|
|
| BLAKE2b-256 |
b2b3d45f8e4e815f7c5495478f689e77c5b58758267fb6b3fb6387552cabfceb
|
File details
Details for the file nsqdriver-0.13.0-cp310-cp310-macosx_10_9_universal2.whl.
File metadata
- Download URL: nsqdriver-0.13.0-cp310-cp310-macosx_10_9_universal2.whl
- Upload date:
- Size: 536.6 kB
- Tags: CPython 3.10, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47327daaee6c1b469b2e1b023f5ac7a4733024af232c6171d67d344665afd976
|
|
| MD5 |
b41e38bc9f71490aa50af33faf53bbad
|
|
| BLAKE2b-256 |
bb1d7aeea6c9c40bc9ae0b26ee0325cb64b21fd3a92e91f27e52652f390c57b4
|