nsqdriver 0.6.0__cp310-cp310-win_amd64.whl → 0.7.0__cp310-cp310-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of nsqdriver might be problematic. Click here for more details.

nsqdriver/NS_MCI.py CHANGED
@@ -344,7 +344,10 @@ class Driver(BaseDriver):
344
344
 
345
345
  def _show_system_status(self):
346
346
  keys = ['device_type', 'backend_version', 'ad_num', 'da_num', 'cpu_temp', 'memory_use']
347
- status: dict = self.handle.get_all_status(False)
347
+ if self.backend_version >= (2, 1, 0):
348
+ status: dict = self.get("Status")
349
+ else:
350
+ status: dict = self.handle.get_all_status(False)
348
351
  _string = [f'*********设备{self.addr}开启成功*********']
349
352
  for key in keys:
350
353
  _string.append(f'{key}: {status.get(key, "nan")}')
nsqdriver/__init__.py CHANGED
@@ -4,7 +4,7 @@ from .NS_CST import Driver as CSTDriver
4
4
  from .compiler.ns_wave import InsChannel
5
5
  from .compiler.py_wave_asm import nsw_config, AssemblyError
6
6
 
7
- version_pack = (0, 6, 0)
7
+ version_pack = (0, 7, 0)
8
8
 
9
9
  __version__ = '.'.join(str(_) for _ in version_pack)
10
10
  __all__ = ['MCIDriver', 'QSYNCDriver', 'CSTDriver', 'InsChannel']
@@ -1,2 +1,3 @@
1
1
  from .kernel import *
2
2
  from ._functions import *
3
+ from ._asm import NSQCommand as NSQCommand
Binary file
nsqdriver/nswave/_asm.pyi CHANGED
@@ -71,6 +71,8 @@ class QInsNop(NSQCommand):
71
71
  class QInsJumpImmediate(NSQCommand):
72
72
  idx: Incomplete
73
73
  def __init__(self, idx: int) -> None: ...
74
+ @property
75
+ def overhead(self): ...
74
76
 
75
77
  class QInsCapture(NSQCommand):
76
78
  fre: Incomplete
@@ -2,7 +2,7 @@ import numpy as np
2
2
  from ._asm import NSQCommand, QInsEnvelope, QInsFrame
3
3
  from typing import Iterable, TypeVar
4
4
 
5
- __all__ = ['Frame', 'Envelope', 'Int', 'Var', 'wait_for_trigger', 'ins_envelope', 'ins_frame', 'evlp_gaussian', 'evlp_square', 'evlp_cospulse', 'inc_phase', 'inc_frequency', 'reset_frame', 'play_wave', 'wait']
5
+ __all__ = ['Frame', 'Envelope', 'Int', 'Var', 'wait_for_trigger', 'ins_envelope', 'ins_frame', 'evlp_gaussian', 'evlp_square', 'evlp_cospulse', 'inc_phase', 'inc_frequency', 'reset_frame', 'play_wave', 'wait', 'capture']
6
6
 
7
7
  Frame = TypeVar('Frame', bound=QInsFrame)
8
8
  Envelope = TypeVar('Envelope', bound=QInsEnvelope)
@@ -23,3 +23,4 @@ def inc_phase(frame_list: Iterable[Frame], phase: float) -> Placeholder: ...
23
23
  def inc_frequency(frame_list: Iterable[Frame], freq: float) -> Placeholder: ...
24
24
  def play_wave(envelope: QInsEnvelope, frame: QInsFrame, amp: int = 1, freq: int = 0, phase: int = 0) -> Placeholder: ...
25
25
  def wait(width) -> Placeholder: ...
26
+ def capture(freq_list, acq_width: float, delay_width: float, play_width: float, raw_data_store: bool, iq_data_store: bool, judge_data_store: bool, double_fre_mode: bool) -> Int: ...
Binary file
@@ -27,6 +27,7 @@ class Kernel(ast.NodeVisitor, metaclass=NSQCKernel):
27
27
  def clear(self) -> None: ...
28
28
  def parse(self): ...
29
29
  def show(self) -> None: ...
30
+ def __call__(self, *args, **kwargs): ...
30
31
  def visit_arg(self, node: ast.arg): ...
31
32
  def visit_Assign(self, node: ast.Assign): ...
32
33
  def visit_AugAssign(self, node: ast.AugAssign): ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nsqdriver
3
- Version: 0.6.0
3
+ Version: 0.7.0
4
4
  Summary: Q series measurement and control equipment driver interface
5
5
  Home-page: https://g2hoyqcmh4.feishu.cn/wiki/Jgt1wxlKniveYQkqCgbcJHsMnoe
6
6
  Classifier: Intended Audience :: Developers
@@ -16,6 +16,7 @@ Classifier: Programming Language :: Python :: 3.12
16
16
  Requires-Python: >=3.8
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: numpy >=1.18
19
+ Requires-Dist: astor >=0.8.1
19
20
  Provides-Extra: waveforms
20
21
  Requires-Dist: waveforms ; extra == 'waveforms'
21
22
 
@@ -29,7 +30,7 @@ Requires-Dist: waveforms ; extra == 'waveforms'
29
30
  ***
30
31
 
31
32
  ### 简介
32
- NSQDriver为一套耐数®量子测控系列设备的Python通用驱动接口。可使用Python作为编程语言,基于此驱动接口可以实现对本公司测控设备的控制,进而完成各种超导量子芯片的表征实验和高保真门操作。
33
+ NSQDriver为一套测控系列设备的Python通用驱动接口。可使用Python作为编程语言,基于此驱动接口可以实现对测控设备的控制,进而完成各种超导量子芯片的表征实验和高保真门操作。
33
34
 
34
35
  ```
35
36
  +------------------------+
@@ -0,0 +1,25 @@
1
+ nsqdriver/NS_CST.py,sha256=zA5YcM65v66EqwBnplDvA6HM0I-y8damDOerE2CKyZE,8137
2
+ nsqdriver/NS_MCI.py,sha256=qwcGJNA1z7erqexYuSBFQen1d7k8Sx964qhI4hWsZBA,21468
3
+ nsqdriver/NS_QSYNC.py,sha256=bdvl5tDKrqqWuHnCR7h88SyeZ4UA4ZNjH_6e4ZEGguE,27881
4
+ nsqdriver/__init__.py,sha256=yqrH3dgsYqbdzisH0lBhlfB3aW5zpVQi1xgmtb3HEF0,381
5
+ nsqdriver/common.py,sha256=5BRActb9TgNdVwWtfuZ_gki47H1WbABzYr5XbxLKlh4,519
6
+ nsqdriver/compiler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ nsqdriver/compiler/assembler.cp310-win_amd64.pyd,sha256=VKMZW4-2j2C1gC5XDLT9pXVgTAsl5jHwHxe6j42ciiY,360960
8
+ nsqdriver/compiler/ns_wave.cp310-win_amd64.pyd,sha256=csHP7oUBiEJLzMmQF9IgU8hRxTfrkGbieUIU8ueLuUs,238592
9
+ nsqdriver/compiler/ns_wave.pyi,sha256=axQaxrMaKRPx8k9sDVlRj3SjR03AmXUDzkVW4D_2RJw,3975
10
+ nsqdriver/compiler/py_wave_asm.cp310-win_amd64.pyd,sha256=fAEN6wlP7I5jt0Zp7W-b4ciV8mhrRVVwYe6uQMlx-ck,331264
11
+ nsqdriver/compiler/py_wave_asm.pyi,sha256=PqEZuNt83CCu_FJUczUjStowOz2TBgvfIytGanFPHuQ,685
12
+ nsqdriver/nswave/__init__.py,sha256=ChVDz0uYVnrNmmcKqPjPYd4FWHsB0m2tdAw82ZbkoQA,94
13
+ nsqdriver/nswave/_asm.cp310-win_amd64.pyd,sha256=0_E6Adi0Z4Qn6saOiKN8qePU3IyneYkDKEiflC4BBFY,229376
14
+ nsqdriver/nswave/_asm.pyi,sha256=PiCgsERDugyOrFIN3vO-lYzNQbKJiMqpJPr3lCHaQEU,2818
15
+ nsqdriver/nswave/_functions.cp310-win_amd64.pyd,sha256=y2It35GT6S2xOlxHo5QiOAQWUrn9Jf7JjgQoectlg7k,87552
16
+ nsqdriver/nswave/_functions.pyi,sha256=q0k-EWfz9gL6VOxERL5yQeE93NTVBCR4T-WgOpFF_9c,1591
17
+ nsqdriver/nswave/kernel.cp310-win_amd64.pyd,sha256=g3nvtTPG0W3CBcEXIdIGm-vZf5O3rdS0-c5aJ_AXesc,165888
18
+ nsqdriver/nswave/kernel.pyi,sha256=4V2Kb6zL599KSGEYqK_LZL9WOQ6dCLHNdnz5IYfdtik,1600
19
+ nsqdriver/wrapper/AWG_ADC.py,sha256=wLtkbJe39hDcnbWZ-8jyGZ78RQtn7iAZ7P7H0n-2IWU,19733
20
+ nsqdriver/wrapper/ND_NSMCI.py,sha256=e0j7BUdfrhfYb1GqBPlO4vSoZPXTKyictXy1nPvoMFE,6533
21
+ nsqdriver/wrapper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
+ nsqdriver-0.7.0.dist-info/METADATA,sha256=GwF4-tiEBe_-iswRx27vibavQ1MzJvgf7nbyKLx0Lxw,4386
23
+ nsqdriver-0.7.0.dist-info/WHEEL,sha256=0gq3cS3kt5IvHtHRCLfIAK18pLcWlTQYW_aRgYanUgo,101
24
+ nsqdriver-0.7.0.dist-info/top_level.txt,sha256=o7EbQoFO6BoaG3KGbS9Lg_aRheZSY5KYzoYuI9vx-AI,10
25
+ nsqdriver-0.7.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (70.1.1)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp310-cp310-win_amd64
5
5
 
@@ -1,2 +0,0 @@
1
- from .kernel import *
2
- from ._functions import *
@@ -1,26 +0,0 @@
1
- nsqdriver/NS_CST.py,sha256=zA5YcM65v66EqwBnplDvA6HM0I-y8damDOerE2CKyZE,8137
2
- nsqdriver/NS_MCI.py,sha256=CAOzRpRfpVMmGrY5_oko9yGXEe1PoUAVChIFXJTDcJo,21355
3
- nsqdriver/NS_QSYNC.py,sha256=bdvl5tDKrqqWuHnCR7h88SyeZ4UA4ZNjH_6e4ZEGguE,27881
4
- nsqdriver/__init__.py,sha256=ZBhSaFpzPavxzo-Gg2KoOIxH2pKF_KWal4NnBcR8DT8,381
5
- nsqdriver/common.py,sha256=5BRActb9TgNdVwWtfuZ_gki47H1WbABzYr5XbxLKlh4,519
6
- nsqdriver/compiler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- nsqdriver/compiler/assembler.cp310-win_amd64.pyd,sha256=dDuBDwlMqjtyLDqrhC_25CXQXYC1e3ibaCyXK4140uE,360448
8
- nsqdriver/compiler/ns_wave.cp310-win_amd64.pyd,sha256=TNgNsXqLZe78VmFeIFvmAEfgkaXTnH6W-oK5c2k8G5k,237568
9
- nsqdriver/compiler/ns_wave.pyi,sha256=axQaxrMaKRPx8k9sDVlRj3SjR03AmXUDzkVW4D_2RJw,3975
10
- nsqdriver/compiler/py_wave_asm.cp310-win_amd64.pyd,sha256=sQnYLDGRbHfCmqScEa0EJhNMzWlegEQC5SLL9yVQTR4,331264
11
- nsqdriver/compiler/py_wave_asm.pyi,sha256=PqEZuNt83CCu_FJUczUjStowOz2TBgvfIytGanFPHuQ,685
12
- nsqdriver/nswave/__init__.py,sha256=bRrHMAhfzPd9LWGUZ5JkNPq4ulT48bpZ8odtP51sr1w,50
13
- nsqdriver/nswave/__init__.pyi,sha256=bRrHMAhfzPd9LWGUZ5JkNPq4ulT48bpZ8odtP51sr1w,50
14
- nsqdriver/nswave/_asm.cp310-win_amd64.pyd,sha256=wXyTDiYFpIGVUcWtZ8bUXuzGn9fSvsVi3ke7ljHPafA,180736
15
- nsqdriver/nswave/_asm.pyi,sha256=UaKmCbD218hwi82l0YFzwfKSI4aiM97Kaw1qbL7XYng,2774
16
- nsqdriver/nswave/_functions.cp310-win_amd64.pyd,sha256=1SViNr1JG6Q8ZpckdOTvi75Q-1hb4WO_RbDxAZvy504,86016
17
- nsqdriver/nswave/_functions.pyi,sha256=l97-iaYqDTsXnOaPQK45scP1eimWAFu77QD4bS5XgPk,1397
18
- nsqdriver/nswave/kernel.cp310-win_amd64.pyd,sha256=ctFttptghyBiRtudNElGGxxLS436c29YZO1icSBqo38,163328
19
- nsqdriver/nswave/kernel.pyi,sha256=_eEB9tS8YXkScmY-2pU-oz6AnecDl52Ifs6kq2zVJTU,1554
20
- nsqdriver/wrapper/AWG_ADC.py,sha256=wLtkbJe39hDcnbWZ-8jyGZ78RQtn7iAZ7P7H0n-2IWU,19733
21
- nsqdriver/wrapper/ND_NSMCI.py,sha256=e0j7BUdfrhfYb1GqBPlO4vSoZPXTKyictXy1nPvoMFE,6533
22
- nsqdriver/wrapper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
- nsqdriver-0.6.0.dist-info/METADATA,sha256=bTrJeZMb34y_QwwDfpVLI_t5NPjSzFElKUJfKPY5lWo,4379
24
- nsqdriver-0.6.0.dist-info/WHEEL,sha256=lO6CqtLHCAi38X3Es1a4R1lAjZFvN010IMRCFo2S7Mc,102
25
- nsqdriver-0.6.0.dist-info/top_level.txt,sha256=o7EbQoFO6BoaG3KGbS9Lg_aRheZSY5KYzoYuI9vx-AI,10
26
- nsqdriver-0.6.0.dist-info/RECORD,,