laboneq_applications 2.6.0__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 (88) hide show
  1. laboneq_applications-2.6.0/LICENSE +201 -0
  2. laboneq_applications-2.6.0/PKG-INFO +109 -0
  3. laboneq_applications-2.6.0/README.md +70 -0
  4. laboneq_applications-2.6.0/pyproject.toml +233 -0
  5. laboneq_applications-2.6.0/setup.cfg +4 -0
  6. laboneq_applications-2.6.0/src/laboneq_applications/__init__.py +6 -0
  7. laboneq_applications-2.6.0/src/laboneq_applications/analysis/__init__.py +4 -0
  8. laboneq_applications-2.6.0/src/laboneq_applications/analysis/amplitude_fine.py +487 -0
  9. laboneq_applications-2.6.0/src/laboneq_applications/analysis/amplitude_rabi.py +424 -0
  10. laboneq_applications-2.6.0/src/laboneq_applications/analysis/calibration_traces_rotation.py +583 -0
  11. laboneq_applications-2.6.0/src/laboneq_applications/analysis/dispersive_shift.py +371 -0
  12. laboneq_applications-2.6.0/src/laboneq_applications/analysis/drag_q_scaling.py +489 -0
  13. laboneq_applications-2.6.0/src/laboneq_applications/analysis/echo.py +467 -0
  14. laboneq_applications-2.6.0/src/laboneq_applications/analysis/fitting_helpers.py +472 -0
  15. laboneq_applications-2.6.0/src/laboneq_applications/analysis/iq_blobs.py +481 -0
  16. laboneq_applications-2.6.0/src/laboneq_applications/analysis/lifetime_measurement.py +376 -0
  17. laboneq_applications-2.6.0/src/laboneq_applications/analysis/options.py +181 -0
  18. laboneq_applications-2.6.0/src/laboneq_applications/analysis/plotting_helpers.py +790 -0
  19. laboneq_applications-2.6.0/src/laboneq_applications/analysis/qubit_spectroscopy.py +581 -0
  20. laboneq_applications-2.6.0/src/laboneq_applications/analysis/ramsey.py +487 -0
  21. laboneq_applications-2.6.0/src/laboneq_applications/analysis/resonator_spectroscopy.py +539 -0
  22. laboneq_applications-2.6.0/src/laboneq_applications/analysis/resonator_spectroscopy_dc_bias.py +737 -0
  23. laboneq_applications-2.6.0/src/laboneq_applications/analysis/spectroscopy_two_dimensional_plotting.py +143 -0
  24. laboneq_applications-2.6.0/src/laboneq_applications/analysis/time_traces.py +774 -0
  25. laboneq_applications-2.6.0/src/laboneq_applications/contrib/__init__.py +4 -0
  26. laboneq_applications-2.6.0/src/laboneq_applications/contrib/analysis/__init__.py +4 -0
  27. laboneq_applications-2.6.0/src/laboneq_applications/contrib/analysis/amplitude_rabi_chevron.py +304 -0
  28. laboneq_applications-2.6.0/src/laboneq_applications/contrib/analysis/calibrate_cancellation.py +234 -0
  29. laboneq_applications-2.6.0/src/laboneq_applications/contrib/analysis/measure_gain_curve.py +296 -0
  30. laboneq_applications-2.6.0/src/laboneq_applications/contrib/analysis/measurement_qndness.py +154 -0
  31. laboneq_applications-2.6.0/src/laboneq_applications/contrib/analysis/scan_pump_parameters.py +424 -0
  32. laboneq_applications-2.6.0/src/laboneq_applications/contrib/analysis/signal_propagation_delay.py +260 -0
  33. laboneq_applications-2.6.0/src/laboneq_applications/contrib/analysis/single_qubit_randomized_benchmarking.py +413 -0
  34. laboneq_applications-2.6.0/src/laboneq_applications/contrib/analysis/time_rabi.py +339 -0
  35. laboneq_applications-2.6.0/src/laboneq_applications/contrib/analysis/time_rabi_chevron.py +193 -0
  36. laboneq_applications-2.6.0/src/laboneq_applications/contrib/experiments/__init__.py +4 -0
  37. laboneq_applications-2.6.0/src/laboneq_applications/contrib/experiments/amplitude_rabi_chevron.py +230 -0
  38. laboneq_applications-2.6.0/src/laboneq_applications/contrib/experiments/calibrate_cancellation.py +261 -0
  39. laboneq_applications-2.6.0/src/laboneq_applications/contrib/experiments/measure_gain_curve.py +261 -0
  40. laboneq_applications-2.6.0/src/laboneq_applications/contrib/experiments/measurement_qndness.py +220 -0
  41. laboneq_applications-2.6.0/src/laboneq_applications/contrib/experiments/scan_pump_parameters.py +327 -0
  42. laboneq_applications-2.6.0/src/laboneq_applications/contrib/experiments/signal_propagation_delay.py +191 -0
  43. laboneq_applications-2.6.0/src/laboneq_applications/contrib/experiments/single_qubit_randomized_benchmarking.py +339 -0
  44. laboneq_applications-2.6.0/src/laboneq_applications/contrib/experiments/spin_locking.py +306 -0
  45. laboneq_applications-2.6.0/src/laboneq_applications/contrib/experiments/time_rabi.py +213 -0
  46. laboneq_applications-2.6.0/src/laboneq_applications/contrib/experiments/time_rabi_chevron.py +230 -0
  47. laboneq_applications-2.6.0/src/laboneq_applications/contrib/experiments/twpa_spectroscopy.py +189 -0
  48. laboneq_applications-2.6.0/src/laboneq_applications/core/__init__.py +4 -0
  49. laboneq_applications-2.6.0/src/laboneq_applications/core/validation.py +295 -0
  50. laboneq_applications-2.6.0/src/laboneq_applications/experiments/__init__.py +4 -0
  51. laboneq_applications-2.6.0/src/laboneq_applications/experiments/amplitude_fine.py +497 -0
  52. laboneq_applications-2.6.0/src/laboneq_applications/experiments/amplitude_rabi.py +275 -0
  53. laboneq_applications-2.6.0/src/laboneq_applications/experiments/dispersive_shift.py +247 -0
  54. laboneq_applications-2.6.0/src/laboneq_applications/experiments/drag_q_scaling.py +307 -0
  55. laboneq_applications-2.6.0/src/laboneq_applications/experiments/echo.py +279 -0
  56. laboneq_applications-2.6.0/src/laboneq_applications/experiments/iq_blobs.py +215 -0
  57. laboneq_applications-2.6.0/src/laboneq_applications/experiments/lifetime_measurement.py +268 -0
  58. laboneq_applications-2.6.0/src/laboneq_applications/experiments/options.py +297 -0
  59. laboneq_applications-2.6.0/src/laboneq_applications/experiments/qubit_spectroscopy.py +217 -0
  60. laboneq_applications-2.6.0/src/laboneq_applications/experiments/qubit_spectroscopy_amplitude.py +237 -0
  61. laboneq_applications-2.6.0/src/laboneq_applications/experiments/ramsey.py +305 -0
  62. laboneq_applications-2.6.0/src/laboneq_applications/experiments/resonator_spectroscopy.py +211 -0
  63. laboneq_applications-2.6.0/src/laboneq_applications/experiments/resonator_spectroscopy_amplitude.py +233 -0
  64. laboneq_applications-2.6.0/src/laboneq_applications/experiments/time_traces.py +231 -0
  65. laboneq_applications-2.6.0/src/laboneq_applications/qpu_types/__init__.py +7 -0
  66. laboneq_applications-2.6.0/src/laboneq_applications/qpu_types/tunable_transmon/__init__.py +15 -0
  67. laboneq_applications-2.6.0/src/laboneq_applications/qpu_types/tunable_transmon/demo_qpus.py +223 -0
  68. laboneq_applications-2.6.0/src/laboneq_applications/qpu_types/tunable_transmon/operations.py +1140 -0
  69. laboneq_applications-2.6.0/src/laboneq_applications/qpu_types/tunable_transmon/qubit_types.py +480 -0
  70. laboneq_applications-2.6.0/src/laboneq_applications/qpu_types/twpa/__init__.py +15 -0
  71. laboneq_applications-2.6.0/src/laboneq_applications/qpu_types/twpa/demo_qpus.py +179 -0
  72. laboneq_applications-2.6.0/src/laboneq_applications/qpu_types/twpa/operations.py +372 -0
  73. laboneq_applications-2.6.0/src/laboneq_applications/qpu_types/twpa/twpa_types.py +167 -0
  74. laboneq_applications-2.6.0/src/laboneq_applications/serializers/__init__.py +8 -0
  75. laboneq_applications-2.6.0/src/laboneq_applications/serializers/uncertainties.py +53 -0
  76. laboneq_applications-2.6.0/src/laboneq_applications/tasks/__init__.py +14 -0
  77. laboneq_applications-2.6.0/src/laboneq_applications/tasks/parameter_updating.py +111 -0
  78. laboneq_applications-2.6.0/src/laboneq_applications/testing/__init__.py +8 -0
  79. laboneq_applications-2.6.0/src/laboneq_applications/testing/experiment_verifier.py +327 -0
  80. laboneq_applications-2.6.0/src/laboneq_applications/typing.py +52 -0
  81. laboneq_applications-2.6.0/src/laboneq_applications.egg-info/PKG-INFO +109 -0
  82. laboneq_applications-2.6.0/src/laboneq_applications.egg-info/SOURCES.txt +86 -0
  83. laboneq_applications-2.6.0/src/laboneq_applications.egg-info/dependency_links.txt +1 -0
  84. laboneq_applications-2.6.0/src/laboneq_applications.egg-info/not-zip-safe +1 -0
  85. laboneq_applications-2.6.0/src/laboneq_applications.egg-info/requires.txt +10 -0
  86. laboneq_applications-2.6.0/src/laboneq_applications.egg-info/top_level.txt +1 -0
  87. laboneq_applications-2.6.0/tests/test_pkg.py +10 -0
  88. laboneq_applications-2.6.0/tests/test_typing.py +12 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,109 @@
1
+ Metadata-Version: 2.4
2
+ Name: laboneq_applications
3
+ Version: 2.6.0
4
+ Summary: Library of LabOne Q experiments, analysis functions, and more.
5
+ Author-email: Zurich Instruments Development Team <info@zhinst.com>
6
+ License: Apache 2.0
7
+ Project-URL: Changelog, https://docs.zhinst.com/labone_q_user_manual/release_notes/
8
+ Project-URL: Documentation, https://docs.zhinst.com/labone_q_user_manual/applications_library/
9
+ Project-URL: GitHub, https://github.com/zhinst/laboneq-applications
10
+ Keywords: quantum,sdk,zhinst
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: License :: OSI Approved :: Apache Software License
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Operating System :: Microsoft :: Windows
18
+ Classifier: Operating System :: POSIX :: Linux
19
+ Classifier: Programming Language :: Python :: 3.9
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Topic :: Scientific/Engineering
25
+ Requires-Python: >=3.9
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ Requires-Dist: typing_extensions
29
+ Requires-Dist: uncertainties==3.2.2
30
+ Requires-Dist: laboneq~=2.52.0
31
+ Requires-Dist: numpy>=1.26
32
+ Requires-Dist: scipy
33
+ Requires-Dist: matplotlib
34
+ Requires-Dist: lmfit
35
+ Requires-Dist: scikit-learn~=1.5.2
36
+ Requires-Dist: qiskit
37
+ Requires-Dist: qiskit_experiments
38
+ Dynamic: license-file
39
+
40
+ # LabOne Q Applications Library (laboneq-applications)
41
+
42
+ The LabOne Q Applications Library is a library of experiments and analyses for various quantum computing applications, implemented using the
43
+ Zurich Instruments [LabOne Q](https://github.com/zhinst/laboneq) software framework.
44
+
45
+ ---
46
+ **Documentation**: [Documentation](https://docs.zhinst.com/labone_q_user_manual/index.html)
47
+
48
+ ---
49
+
50
+ ## Contents of the Applications Library
51
+
52
+ The Applications Library currently contains the following:
53
+
54
+ ### Quantum Elements
55
+
56
+ - Tunable Transmon qubits
57
+ - Travelling-Wave Parametric Amplifiers (TWPAs)
58
+
59
+ ### Quantum Operations
60
+
61
+ - common operations for Tunable Transmon Qubits, such as `measure`, `acquire`, `rx`, `ry`, `rz`, etc.
62
+ - common operations for TWPAs: `twpa_measure`, `twpa_acquire`, `set_pump_power`, `set_pump_cancellation`, etc.
63
+
64
+ ### Pre-Built Experiments and Analyses
65
+
66
+ Single-qubit gate calibration for transmons:
67
+
68
+ - Resonator Spectroscopy
69
+ - Qubit Spectroscopy
70
+ - Amplitude Rabi
71
+ - Ramsey Interferometry
72
+ - DRAG Quadrature-Scaling calibration
73
+ - Lifetime measurement
74
+ - Hahn echo
75
+ - Amplitude Fine
76
+
77
+ Read-out calibration for transmons:
78
+
79
+ - Dispersive Shift
80
+ - Single-Short Read-Out Characterization (IQ Blobs)
81
+ - Raw Time Traces for Optimal Readout Weights
82
+
83
+ Basic TWPA calibration using the Zurich Instruments SHF-PPC:
84
+
85
+ - TWPA-Pump Cancellation Tone Calibration
86
+ - Gain Curve Measurement
87
+ - TWPA Spectroscopy Measurement
88
+
89
+ ## How to Install and Use
90
+
91
+ The LabOne Q Applications Library depends on the Zurich Instruments' [LabOne Q](https://github.com/zhinst/laboneq) software framework.
92
+
93
+ You can install it using:
94
+
95
+ ```
96
+ pip install laboneq-applications
97
+ ```
98
+
99
+ ## How to contribute
100
+
101
+ You can either clone or fork the `laboneq-applications` repository and use it as the working directory for your quantum experiments.
102
+
103
+ ```
104
+ git clone https://github.com/zhinst/laboneq-applications.git
105
+ cd laboneq-applications
106
+ pip install -e .
107
+ ```
108
+
109
+ See the [contributions guidelines](CONTRIBUTING.md) for more information.
@@ -0,0 +1,70 @@
1
+ # LabOne Q Applications Library (laboneq-applications)
2
+
3
+ The LabOne Q Applications Library is a library of experiments and analyses for various quantum computing applications, implemented using the
4
+ Zurich Instruments [LabOne Q](https://github.com/zhinst/laboneq) software framework.
5
+
6
+ ---
7
+ **Documentation**: [Documentation](https://docs.zhinst.com/labone_q_user_manual/index.html)
8
+
9
+ ---
10
+
11
+ ## Contents of the Applications Library
12
+
13
+ The Applications Library currently contains the following:
14
+
15
+ ### Quantum Elements
16
+
17
+ - Tunable Transmon qubits
18
+ - Travelling-Wave Parametric Amplifiers (TWPAs)
19
+
20
+ ### Quantum Operations
21
+
22
+ - common operations for Tunable Transmon Qubits, such as `measure`, `acquire`, `rx`, `ry`, `rz`, etc.
23
+ - common operations for TWPAs: `twpa_measure`, `twpa_acquire`, `set_pump_power`, `set_pump_cancellation`, etc.
24
+
25
+ ### Pre-Built Experiments and Analyses
26
+
27
+ Single-qubit gate calibration for transmons:
28
+
29
+ - Resonator Spectroscopy
30
+ - Qubit Spectroscopy
31
+ - Amplitude Rabi
32
+ - Ramsey Interferometry
33
+ - DRAG Quadrature-Scaling calibration
34
+ - Lifetime measurement
35
+ - Hahn echo
36
+ - Amplitude Fine
37
+
38
+ Read-out calibration for transmons:
39
+
40
+ - Dispersive Shift
41
+ - Single-Short Read-Out Characterization (IQ Blobs)
42
+ - Raw Time Traces for Optimal Readout Weights
43
+
44
+ Basic TWPA calibration using the Zurich Instruments SHF-PPC:
45
+
46
+ - TWPA-Pump Cancellation Tone Calibration
47
+ - Gain Curve Measurement
48
+ - TWPA Spectroscopy Measurement
49
+
50
+ ## How to Install and Use
51
+
52
+ The LabOne Q Applications Library depends on the Zurich Instruments' [LabOne Q](https://github.com/zhinst/laboneq) software framework.
53
+
54
+ You can install it using:
55
+
56
+ ```
57
+ pip install laboneq-applications
58
+ ```
59
+
60
+ ## How to contribute
61
+
62
+ You can either clone or fork the `laboneq-applications` repository and use it as the working directory for your quantum experiments.
63
+
64
+ ```
65
+ git clone https://github.com/zhinst/laboneq-applications.git
66
+ cd laboneq-applications
67
+ pip install -e .
68
+ ```
69
+
70
+ See the [contributions guidelines](CONTRIBUTING.md) for more information.
@@ -0,0 +1,233 @@
1
+ [build-system]
2
+ requires = ["setuptools>=65.0.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "laboneq_applications"
7
+ description = "Library of LabOne Q experiments, analysis functions, and more."
8
+ version = "2.6.0"
9
+ license = { text = "Apache 2.0" }
10
+ requires-python = ">=3.9"
11
+ readme = "README.md"
12
+ authors = [
13
+ { name = "Zurich Instruments Development Team", email = "info@zhinst.com" },
14
+ ]
15
+ keywords = ["quantum", "sdk", "zhinst"]
16
+ classifiers = [
17
+ "Development Status :: 3 - Alpha",
18
+ "Environment :: Console",
19
+ "Intended Audience :: Developers",
20
+ "Intended Audience :: Science/Research",
21
+ "License :: OSI Approved :: Apache Software License",
22
+ "Operating System :: MacOS",
23
+ "Operating System :: Microsoft :: Windows",
24
+ "Operating System :: POSIX :: Linux",
25
+ "Programming Language :: Python :: 3.9",
26
+ "Programming Language :: Python :: 3.10",
27
+ "Programming Language :: Python :: 3.11",
28
+ "Programming Language :: Python :: 3.12",
29
+ "Programming Language :: Python :: 3.13",
30
+ "Topic :: Scientific/Engineering",
31
+ ]
32
+ dependencies = [
33
+ "typing_extensions",
34
+ "uncertainties==3.2.2",
35
+ "laboneq~=2.52.0",
36
+ "numpy>=1.26",
37
+ "scipy",
38
+ "matplotlib",
39
+ "lmfit",
40
+ "scikit-learn~=1.5.2",
41
+ "qiskit",
42
+ "qiskit_experiments",
43
+ ]
44
+
45
+ [project.urls]
46
+ Changelog = "https://docs.zhinst.com/labone_q_user_manual/release_notes/"
47
+ Documentation = "https://docs.zhinst.com/labone_q_user_manual/applications_library/"
48
+ GitHub = "https://github.com/zhinst/laboneq-applications"
49
+
50
+
51
+ [dependency-groups]
52
+ # Libraries used during development.
53
+ dev = [
54
+ "filelock",
55
+ "freezegun",
56
+ "ipython",
57
+ "nbmake",
58
+ "pytest",
59
+ "pytest-cov",
60
+ "pytest-xdist",
61
+ "tbump",
62
+ ]
63
+ # Packages providing executables used during development.
64
+ tools = [
65
+ "nbqa",
66
+ "jupytext",
67
+ "ruff==0.7.1", # must match the version used in .pre-commit-config.yaml
68
+ ]
69
+
70
+ # Dependencies of example notebooks
71
+ notebooks = [
72
+ "qcodes>=0.46.0",
73
+ "qiskit>=2.0.0",
74
+ "qiskit-experiments>=0.10.0",
75
+ "scikit-optimize>=0.10.2",
76
+ ]
77
+
78
+ [tool.uv]
79
+ default-groups = ["dev", "tools", "notebooks"]
80
+
81
+ [tool.setuptools.packages.find]
82
+ where = ["src"]
83
+ include = ["laboneq_applications*"]
84
+ namespaces = false
85
+
86
+ [tool.setuptools]
87
+ zip-safe = false
88
+
89
+ [tool.pytest.ini_options]
90
+ testpaths = ["tests"]
91
+ asyncio_default_fixture_loop_scope = "function"
92
+
93
+ [tool.ruff]
94
+ include = ["pyproject.toml", "src/**/*.py", "tests/**/*.py", "ci/**/*.py"]
95
+ target-version = "py39"
96
+
97
+ lint.select = ["ALL"]
98
+ lint.ignore = [
99
+ # Type annotation for self
100
+ "ANN101",
101
+ # Missing trailing comma (interferes with ruff format)
102
+ "COM812",
103
+ # Implicitly concatenate strings on same line (interferes with ruff format)
104
+ "ISC001",
105
+ # Missing docstring in `__init__`
106
+ "D107",
107
+ # Missing type annotation for `cls` in classmethod
108
+ "ANN102",
109
+ # Missing docstring in magic method
110
+ "D105",
111
+ # Missing type annotation for `*args`
112
+ "ANN002",
113
+ # Missing type annotation for `**kwargs`
114
+ "ANN003",
115
+ # Too many return statements
116
+ "PLR0911",
117
+ # Missing return type annotation for special method
118
+ "ANN204",
119
+ # Boolean positional parameters in call
120
+ "FBT003",
121
+ # Line contains TODO, consider resolving the issue
122
+ "FIX",
123
+ # TODO comments
124
+ "TD",
125
+ # Unused function arguments (function signatures are sometimes a fixed API)
126
+ "ARG001",
127
+ # Multiple with statements (in the LabOne Q DSL, with statements specify
128
+ # program structure)
129
+ "SIM117",
130
+ # Static join to f-string (f-strings don't provide a nice way to write
131
+ # multiline strings)
132
+ "FLY002",
133
+ # Strings in exception class instantiation
134
+ "EM101",
135
+ "EM102",
136
+ "TRY003",
137
+ # Private class member access (rule raises false positives)
138
+ "SLF001",
139
+ # Pandas .values (rule raises false positivies even when pandas is not used)
140
+ "PD011",
141
+ # Use of built-in open (pathlib is not more readable in this case)
142
+ "PTH123",
143
+ # Use of return inside try (there is no consistent rule that fits all uses here)
144
+ "TRY300",
145
+ ]
146
+
147
+ [tool.ruff.lint.per-file-ignores]
148
+ # Testing checks
149
+ "tests/*" = [
150
+ # Magic values
151
+ "PLR2004",
152
+ # Assertions
153
+ "S101",
154
+ # Annotations
155
+ "ANN",
156
+ # Docstrings
157
+ "D",
158
+ # Pytest raises Exception
159
+ "PT011",
160
+ # part of an implicit namespace package
161
+ "INP001",
162
+ ]
163
+ # CI tool checks
164
+ "ci/*" = [
165
+ # part of an implicit namespace package
166
+ "INP001",
167
+ ]
168
+ # Documentation notebooks conftest
169
+ "docs/conftest.py" = [
170
+ # Missing __init__.py (notebooks don't have packages)
171
+ "INP001",
172
+ ]
173
+ # Documentation notebooks (nbqa converts notebooks to .py)
174
+ "docs/sources/**/*.py" = [
175
+ # Annotations
176
+ "ANN",
177
+ # Missing __init__.py (notebooks don't have packages)
178
+ "INP001",
179
+ # Allow undocumented modules
180
+ "D100",
181
+ # Allow undocumented classes
182
+ "D101",
183
+ # Allow undocumented functions
184
+ "D103",
185
+ # Allow module-level imports that aren't at the top of the file
186
+ "E402",
187
+ # Allow commented out code which is often useful for explaining
188
+ "ERA001",
189
+ # Allow star imports
190
+ "F403",
191
+ # Allow undefined names because star imports are allowed
192
+ "F405",
193
+ # Allow redefining values
194
+ "F811",
195
+ # Pointless comparisons can display values in notebooks
196
+ "B015",
197
+ # Useless attribute access can display values in notebooks
198
+ "B018",
199
+ # Allow boolean positional parameters with defaults.
200
+ "FBT002",
201
+ # Magic values are sometimes fine in examples
202
+ "PLR2004",
203
+ # Print statements can be useful in notebooks
204
+ "T201",
205
+ # Ignore line length
206
+ "E501",
207
+ # Ignore forced list comprehension
208
+ "PERF401",
209
+ # Ignore CamelCase acronym import error
210
+ "N817",
211
+ # Ignore legacy randint
212
+ "NPY002",
213
+ # Ignore logging f-string error
214
+ "G004",
215
+ # Allow unnecessary assignment before return
216
+ "RET504",
217
+ # Allow unnecessary else after return
218
+ "RET505",
219
+ # Allow more than 10 arguments in function definition
220
+ "PLR0913",
221
+ # Allow unnecessary list comprehension
222
+ "C416",
223
+ ]
224
+
225
+ [tool.ruff.lint.isort]
226
+ known-first-party = ["laboneq_applications"]
227
+ forced-separate = ["tests"]
228
+
229
+ [tool.ruff.lint.pydocstyle]
230
+ convention = "google"
231
+
232
+ [tool.ruff.lint.pylint]
233
+ max-args = 10
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,6 @@
1
+ # Copyright 2024 Zurich Instruments AG
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ """LabOne Q Applications Library."""
5
+
6
+ __version__ = "2.6.0"
@@ -0,0 +1,4 @@
1
+ # Copyright 2024 Zurich Instruments AG
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ """A collection of analyses for transmon-qubit experiments."""