qickodes 0.2.0__tar.gz → 0.2.1__tar.gz

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.
Files changed (56) hide show
  1. {qickodes-0.2.0/src/qickodes.egg-info → qickodes-0.2.1}/PKG-INFO +3 -3
  2. {qickodes-0.2.0 → qickodes-0.2.1}/README.md +1 -1
  3. {qickodes-0.2.0 → qickodes-0.2.1}/pyproject.toml +2 -2
  4. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/channels.py +0 -2
  5. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/instrument_v2.py +15 -17
  6. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/readout_window_v2.py +4 -1
  7. {qickodes-0.2.0 → qickodes-0.2.1/src/qickodes.egg-info}/PKG-INFO +3 -3
  8. {qickodes-0.2.0 → qickodes-0.2.1}/LICENSE +0 -0
  9. {qickodes-0.2.0 → qickodes-0.2.1}/setup.cfg +0 -0
  10. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/__init__.py +0 -0
  11. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/channels_v2.py +0 -0
  12. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/envelope_base_v2.py +0 -0
  13. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/envelopes_v2/__init__.py +0 -0
  14. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/envelopes_v2/gaussian.py +0 -0
  15. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/envelopes_v2/gaussian_drag.py +0 -0
  16. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/geometric_median.py +0 -0
  17. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/instruction_base.py +0 -0
  18. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/instructions/__init__.py +0 -0
  19. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/instructions/constant_pulse.py +0 -0
  20. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/instructions/delay.py +0 -0
  21. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/instructions/gaussian_pulse.py +0 -0
  22. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/instructions/iq_constant_pulse.py +0 -0
  23. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/instructions/readout.py +0 -0
  24. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/instructions/set_phase.py +0 -0
  25. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/instruments.py +0 -0
  26. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/macro_base_v2.py +0 -0
  27. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/macros_v2/__init__.py +0 -0
  28. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/macros_v2/config_readout.py +0 -0
  29. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/macros_v2/delay.py +0 -0
  30. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/macros_v2/delay_auto.py +0 -0
  31. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/macros_v2/play_pulse.py +0 -0
  32. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/macros_v2/trigger.py +0 -0
  33. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/macros_v2/unconfig_readout.py +0 -0
  34. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/parameters.py +0 -0
  35. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/parameters_v2.py +0 -0
  36. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/programs_v2.py +0 -0
  37. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/protocol_base.py +0 -0
  38. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/protocols/__init__.py +0 -0
  39. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/protocols/hahn_echo.py +0 -0
  40. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/protocols/pulse_probe.py +0 -0
  41. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/protocols/ramsey.py +0 -0
  42. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/protocols/s21.py +0 -0
  43. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/pulse_base_v2.py +0 -0
  44. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/pulses_v2/__init__.py +0 -0
  45. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/pulses_v2/arbitrary_pulse.py +0 -0
  46. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/pulses_v2/constant_pulse.py +0 -0
  47. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/pulses_v2/corrected_constant_pulse.py +0 -0
  48. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/pulses_v2/flattop_pulse.py +0 -0
  49. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes/pulses_v2/muxed_constant_pulse.py +0 -0
  50. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes.egg-info/SOURCES.txt +0 -0
  51. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes.egg-info/dependency_links.txt +0 -0
  52. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes.egg-info/requires.txt +0 -0
  53. {qickodes-0.2.0 → qickodes-0.2.1}/src/qickodes.egg-info/top_level.txt +0 -0
  54. {qickodes-0.2.0 → qickodes-0.2.1}/tests/test_import_all_modules.py +0 -0
  55. {qickodes-0.2.0 → qickodes-0.2.1}/tests/test_sweeps.py +0 -0
  56. {qickodes-0.2.0 → qickodes-0.2.1}/tests/test_sweeps_v2.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qickodes
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: QCoDeS driver for QICK
5
5
  Author-email: Yoshiki Sunada <ysunada@stanford.edu>, Jonatan Albanese <jonatan.albanese@aalto.fi>, Ashish Panigrahi <ashish.panigrahi@aalto.fi>, Mikko Möttönen <mikko.mottonen@aalto.fi>
6
6
  Maintainer-email: Ashish Panigrahi <ashish.panigrahi@aalto.fi>
@@ -8,7 +8,7 @@ License-Expression: MIT
8
8
  Project-URL: Homepage, https://github.com/aalto-qcd/qickodes
9
9
  Project-URL: Repository, https://github.com/aalto-qcd/qickodes
10
10
  Project-URL: Issues, https://github.com/aalto-qcd/qickodes/issues
11
- Requires-Python: >=3.10
11
+ Requires-Python: >=3.11
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
14
  Requires-Dist: geom-median
@@ -26,7 +26,7 @@ Dynamic: license-file
26
26
 
27
27
  A [QCoDeS](https://github.com/microsoft/qcodes) driver for [QICK](https://github.com/openquantumhardware/qick). Usable but still under active development. Pull requests are welcome!
28
28
 
29
- Supports Python 3.10+
29
+ Supports Python 3.11+
30
30
 
31
31
  ## Development goals
32
32
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  A [QCoDeS](https://github.com/microsoft/qcodes) driver for [QICK](https://github.com/openquantumhardware/qick). Usable but still under active development. Pull requests are welcome!
7
7
 
8
- Supports Python 3.10+
8
+ Supports Python 3.11+
9
9
 
10
10
  ## Development goals
11
11
 
@@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "qickodes"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "QCoDeS driver for QICK"
9
9
  readme = "README.md"
10
- requires-python = ">=3.10"
10
+ requires-python = ">=3.11"
11
11
  license = "MIT"
12
12
  license-files = ["LICENSE"]
13
13
  authors = [
@@ -57,8 +57,6 @@ class DacChannel(InstrumentChannel):
57
57
  def hz2reg(self, hz: float) -> int:
58
58
  """Convert a DAC frequency from Hz to the register value (int)."""
59
59
  adc_channel = self.matching_adc.get()
60
- if adc_channel == -1:
61
- adc_channel = None
62
60
  return self.parent.soccfg.freq2reg(hz / 1e6, self.channel_num, adc_channel)
63
61
 
64
62
  def reg2deg(self, reg: int) -> float:
@@ -5,7 +5,7 @@ import logging
5
5
  from collections.abc import Callable, Sequence
6
6
  from contextlib import contextmanager
7
7
  from pathlib import Path
8
- from typing import TYPE_CHECKING, Literal
8
+ from typing import TYPE_CHECKING, Literal, get_args
9
9
 
10
10
  import numpy as np
11
11
  import qick
@@ -32,6 +32,15 @@ from qickodes.programs_v2 import AveragerProgram
32
32
  if TYPE_CHECKING:
33
33
  from qcodes.dataset.measurements import DataSaver
34
34
 
35
+ AcquisitionMode = Literal[
36
+ "accumulated",
37
+ "accumulated geometric median",
38
+ "accumulated shots",
39
+ "ddr4",
40
+ "decimated",
41
+ "state population",
42
+ ]
43
+
35
44
 
36
45
  @contextmanager
37
46
  def _silence_paramtype_warning():
@@ -220,18 +229,14 @@ class QickInstrument(Instrument):
220
229
  meas: Measurement,
221
230
  software_sweeps: Sequence[SoftwareSweep] = (),
222
231
  hardware_loop_counts: dict[str, int] | None = None,
223
- acquisition_mode: Literal[
224
- "accumulated",
225
- "accumulated geometric median",
226
- "accumulated shots",
227
- "ddr4",
228
- "decimated",
229
- "state population",
230
- ] = "accumulated",
232
+ acquisition_mode: AcquisitionMode = "accumulated",
231
233
  num_states: int = 0,
232
234
  state_classifier: Callable[[np.ndarray], np.ndarray] | None = None,
233
235
  save_shots_as_npy: bool = False,
234
236
  ) -> int:
237
+ if acquisition_mode not in get_args(AcquisitionMode):
238
+ msg = f"Unknown acquisition_mode {acquisition_mode!r}. Valid modes: {', '.join(map(repr, get_args(AcquisitionMode)))}."
239
+ raise ValueError(msg)
235
240
  if len(self.macro_list) == 0:
236
241
  msg = (
237
242
  "`macro_list` is empty. Please define the sequence with"
@@ -404,14 +409,7 @@ class QickInstrument(Instrument):
404
409
  hardware_sweep_parameters: Sequence[SweepableParameter],
405
410
  time_parameter: Parameter | None,
406
411
  result_parameters: Sequence[Parameter],
407
- acquisition_mode: Literal[
408
- "accumulated",
409
- "accumulated geometric median",
410
- "accumulated shots",
411
- "ddr4",
412
- "decimated",
413
- "state population",
414
- ],
412
+ acquisition_mode: AcquisitionMode,
415
413
  num_states: int,
416
414
  state_classifier: Callable[[np.ndarray], np.ndarray] | None,
417
415
  save_shots_as_npy: bool,
@@ -50,12 +50,15 @@ class ReadoutWindow(InstrumentModule):
50
50
  program : qick.asm_v2.QickProgramV2
51
51
  The program which uses this readout window.
52
52
  """
53
+ kwargs = {}
54
+ if self.parent.matching_dac.get() is not None:
55
+ kwargs["gen_ch"] = self.parent.matching_dac.get()
53
56
  program.add_readoutconfig(
54
57
  ch=self.parent.channel_num,
55
58
  name=self.short_name,
56
59
  freq=self.freq.qick_param / 1e6,
57
60
  phase=0,
58
- gen_ch=self.parent.matching_dac.get(),
61
+ **kwargs,
59
62
  )
60
63
 
61
64
  def copy(self, name: str, parent: AdcChannel | None = None) -> ReadoutWindow:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qickodes
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: QCoDeS driver for QICK
5
5
  Author-email: Yoshiki Sunada <ysunada@stanford.edu>, Jonatan Albanese <jonatan.albanese@aalto.fi>, Ashish Panigrahi <ashish.panigrahi@aalto.fi>, Mikko Möttönen <mikko.mottonen@aalto.fi>
6
6
  Maintainer-email: Ashish Panigrahi <ashish.panigrahi@aalto.fi>
@@ -8,7 +8,7 @@ License-Expression: MIT
8
8
  Project-URL: Homepage, https://github.com/aalto-qcd/qickodes
9
9
  Project-URL: Repository, https://github.com/aalto-qcd/qickodes
10
10
  Project-URL: Issues, https://github.com/aalto-qcd/qickodes/issues
11
- Requires-Python: >=3.10
11
+ Requires-Python: >=3.11
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
14
  Requires-Dist: geom-median
@@ -26,7 +26,7 @@ Dynamic: license-file
26
26
 
27
27
  A [QCoDeS](https://github.com/microsoft/qcodes) driver for [QICK](https://github.com/openquantumhardware/qick). Usable but still under active development. Pull requests are welcome!
28
28
 
29
- Supports Python 3.10+
29
+ Supports Python 3.11+
30
30
 
31
31
  ## Development goals
32
32
 
File without changes
File without changes
File without changes