qubitlab 1.0.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.
- qubitlab-1.0.0/LICENSE +201 -0
- qubitlab-1.0.0/PKG-INFO +110 -0
- qubitlab-1.0.0/README.md +78 -0
- qubitlab-1.0.0/pyproject.toml +103 -0
- qubitlab-1.0.0/pyproject.toml.orig +81 -0
- qubitlab-1.0.0/src/qubitlab/__init__.py +10 -0
- qubitlab-1.0.0/src/qubitlab/api.py +1005 -0
- qubitlab-1.0.0/src/qubitlab/architectures.py +94 -0
- qubitlab-1.0.0/src/qubitlab/cache.py +63 -0
- qubitlab-1.0.0/src/qubitlab/checks/__init__.py +10 -0
- qubitlab-1.0.0/src/qubitlab/checks/base.py +88 -0
- qubitlab-1.0.0/src/qubitlab/checks/cat_checks.py +180 -0
- qubitlab-1.0.0/src/qubitlab/checks/gate_checks.py +96 -0
- qubitlab-1.0.0/src/qubitlab/checks/qec_checks.py +67 -0
- qubitlab-1.0.0/src/qubitlab/checks/qubit_checks.py +178 -0
- qubitlab-1.0.0/src/qubitlab/checks/readout_checks.py +105 -0
- qubitlab-1.0.0/src/qubitlab/checks/transmon_checks.py +78 -0
- qubitlab-1.0.0/src/qubitlab/cli.py +47 -0
- qubitlab-1.0.0/src/qubitlab/data/architectures/dissipative_cat.toml +85 -0
- qubitlab-1.0.0/src/qubitlab/data/architectures/fluxonium.toml +90 -0
- qubitlab-1.0.0/src/qubitlab/data/architectures/kerr_cat.toml +87 -0
- qubitlab-1.0.0/src/qubitlab/data/architectures/tantalum_transmon.toml +98 -0
- qubitlab-1.0.0/src/qubitlab/data/architectures/tunable_coupler.toml +89 -0
- qubitlab-1.0.0/src/qubitlab/data/architectures/xmon.toml +113 -0
- qubitlab-1.0.0/src/qubitlab/data/checks.json +1039 -0
- qubitlab-1.0.0/src/qubitlab/data/presets.json +1174 -0
- qubitlab-1.0.0/src/qubitlab/data/references.bib +439 -0
- qubitlab-1.0.0/src/qubitlab/data/solves.json +911 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/Architectures-DcTfzxdJ.js +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/BlochSphere-CJsYSeis.js +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/CatVsTransmon-BcKRlrLa.js +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/Checks-DKPHk09b.js +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/ErrorCorrection-Bc38WEhM.js +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/FlipRates-vg0k9NKO.js +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/Gates-DKxGRoII.js +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/LabeledCanvas-GXQjA2d7.js +4231 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/Line-C5drPxLz.js +409 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/OrbitControls-6-M7L_Zr.js +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/PhaseSpace-B_F05iw6.js +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/Playground-fZbCkQcl.js +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/Plot-kSaY_hzv.js +10 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/PulseOptimizer-D4obO0PU.js +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/Qubit-CdjcnjuF.js +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/Readout-Dgp6RzZa.js +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/Transmon-FnjHYyIh.js +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/WignerSurface-DY9LOgVz.js +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/index-C1xbob1O.js +267 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/index-H2PQOnBm.css +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/assets/useDebounced-DL0FhXFg.js +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/favicon.svg +1 -0
- qubitlab-1.0.0/src/qubitlab/explorer/index.html +15 -0
- qubitlab-1.0.0/src/qubitlab/facts.py +147 -0
- qubitlab-1.0.0/src/qubitlab/provenance.py +60 -0
- qubitlab-1.0.0/src/qubitlab/py.typed +0 -0
- qubitlab-1.0.0/src/qubitlab/serve.py +42 -0
- qubitlab-1.0.0/src/qubitlab/sim/__init__.py +1 -0
- qubitlab-1.0.0/src/qubitlab/sim/cat.py +260 -0
- qubitlab-1.0.0/src/qubitlab/sim/custom.py +262 -0
- qubitlab-1.0.0/src/qubitlab/sim/pulse_optimizer.py +129 -0
- qubitlab-1.0.0/src/qubitlab/sim/qec.py +230 -0
- qubitlab-1.0.0/src/qubitlab/sim/readout.py +119 -0
- qubitlab-1.0.0/src/qubitlab/sim/spectra.py +65 -0
- qubitlab-1.0.0/src/qubitlab/sim/transmon.py +63 -0
- qubitlab-1.0.0/src/qubitlab/sim/transmon_dynamics.py +304 -0
- qubitlab-1.0.0/src/qubitlab/sim/two_qubit.py +118 -0
- qubitlab-1.0.0/src/qubitlab/snapshot.py +43 -0
- qubitlab-1.0.0/src/qubitlab/snippets.py +195 -0
- qubitlab-1.0.0/src/qubitlab/theory/__init__.py +10 -0
- qubitlab-1.0.0/src/qubitlab/theory/cat.py +256 -0
- qubitlab-1.0.0/src/qubitlab/theory/gates.py +88 -0
- qubitlab-1.0.0/src/qubitlab/theory/qec.py +92 -0
- qubitlab-1.0.0/src/qubitlab/theory/qubit.py +156 -0
- qubitlab-1.0.0/src/qubitlab/theory/readout.py +136 -0
- qubitlab-1.0.0/src/qubitlab/theory/registry.py +77 -0
- qubitlab-1.0.0/src/qubitlab/theory/transmon.py +97 -0
- qubitlab-1.0.0/src/qubitlab/warm.py +140 -0
qubitlab-1.0.0/LICENSE
ADDED
|
@@ -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.
|
qubitlab-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: qubitlab
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: An open-source simulator for learning superconducting qubits: cited theory, checked against Dynamiqs, scqubits and Stim, in a 3D explorer
|
|
5
|
+
Keywords: superconducting qubits,cat qubit,transmon,quantum error correction,education
|
|
6
|
+
Author: Pranav Reddy
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
+
Classifier: Intended Audience :: Education
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
14
|
+
Requires-Dist: dynamiqs>=0.3.7
|
|
15
|
+
Requires-Dist: fastapi>=0.160.0
|
|
16
|
+
Requires-Dist: numpy>=2.5.4
|
|
17
|
+
Requires-Dist: optax>=0.2.8
|
|
18
|
+
Requires-Dist: pydantic>=2.14.1
|
|
19
|
+
Requires-Dist: pymatching>=2.4.0
|
|
20
|
+
Requires-Dist: scipy>=1.18.1
|
|
21
|
+
Requires-Dist: scqubits>=4.1.0
|
|
22
|
+
Requires-Dist: slowapi>=0.1.10
|
|
23
|
+
Requires-Dist: starlette>=1.5.0
|
|
24
|
+
Requires-Dist: stim>=1.16.0
|
|
25
|
+
Requires-Dist: sympy>=1.14.0
|
|
26
|
+
Requires-Dist: uvicorn>=0.54.0
|
|
27
|
+
Requires-Python: >=3.12
|
|
28
|
+
Project-URL: Homepage, https://github.com/pkarakala/qubit-lab
|
|
29
|
+
Project-URL: Changelog, https://github.com/pkarakala/qubit-lab/blob/main/CHANGELOG.md
|
|
30
|
+
Project-URL: Course, https://github.com/pkarakala/qubit-lab/tree/main/docs/learn
|
|
31
|
+
Description-Content-Type: text/markdown
|
|
32
|
+
|
|
33
|
+
# Qubit Lab
|
|
34
|
+
|
|
35
|
+
An open source simulator for learning superconducting qubits, from the equations in the papers to full open system simulation, in an interactive 3D explorer. For students, engineers and researchers.
|
|
36
|
+
|
|
37
|
+
Every equation carries its paper and equation number, and is checked against a simulation built on maintained open source solvers: Dynamiqs, scqubits, Stim, PyMatching and JAX.
|
|
38
|
+
|
|
39
|
+

|
|
40
|
+
|
|
41
|
+
| | |
|
|
42
|
+
| --- | --- |
|
|
43
|
+
|  |  |
|
|
44
|
+
|  |  |
|
|
45
|
+
|  |  |
|
|
46
|
+
|  |  |
|
|
47
|
+
|  |  |
|
|
48
|
+
|  | |
|
|
49
|
+
|
|
50
|
+
## What you can do
|
|
51
|
+
|
|
52
|
+
| View | Try this |
|
|
53
|
+
| --- | --- |
|
|
54
|
+
| Phase space | Grow a cat qubit from vacuum, then watch photon loss wash out its fringes, with the ideal cat from theory as a wireframe. |
|
|
55
|
+
| Flip rates | Drag the cat size and watch bit-flips fall exponentially while phase-flips rise linearly. |
|
|
56
|
+
| Transmon | Drag E_J/E_C and watch the charge bands flatten in 3D, next to the closed forms of Koch et al. |
|
|
57
|
+
| Qubit control | Run Rabi, π pulse, DRAG, T1, Ramsey and echo on a 4-level transmon and follow the Bloch vector. |
|
|
58
|
+
| Readout | Watch a qubit pull its resonator by ±χ, and compare χ from the exact spectrum with three textbook formulas. |
|
|
59
|
+
| Pulse optimizer | Let gradient descent through the simulation design a fast gate, and compare it with DRAG. |
|
|
60
|
+
| Noise bias | Compare bit-flip and phase-flip chances for cats and transmons at measured, cited hardware numbers. |
|
|
61
|
+
| Error correction | Run surface and repetition codes with Stim, decode with PyMatching, and see errors in space-time. |
|
|
62
|
+
| Two-qubit gates | Run a transmon CZ through the 11-20 crossing and a bias-preserving cat CNOT, next to the papers' error formulas. |
|
|
63
|
+
| Architectures | Explode six qubit designs, from the Xmon to the Kerr cat, into their layers, with every size cited or marked schematic. |
|
|
64
|
+
| Playground | Type your own Hamiltonian and losses, watch the Wigner function evolve, and copy the run as Python. |
|
|
65
|
+
|
|
66
|
+
Every view has **Share**, a link that restores its inputs, and **Copy as Python**, a script that reruns the view's simulation next to its theory. CI runs every script, so they stay in step with the code.
|
|
67
|
+
|
|
68
|
+
## How we know it's right
|
|
69
|
+
|
|
70
|
+
Each formula is compared with a simulation in a regime where it should hold and one where it should not, with the verdict written down before the run. A formula that misses where it should hold is reported, never hidden. The *Checks* view and [docs/reference/checks.md](https://github.com/pkarakala/qubit-lab/blob/main/docs/reference/checks.md) list every comparison; `qubitlab checks` runs them in the terminal.
|
|
71
|
+
|
|
72
|
+
## Run
|
|
73
|
+
|
|
74
|
+
Once a release is on PyPI, one command, no Node needed:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
pipx run qubitlab serve # or: pip install qubitlab && qubitlab serve
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
It opens the explorer at http://127.0.0.1:8000. `qubitlab checks` prints every formula vs the simulation in the terminal.
|
|
81
|
+
|
|
82
|
+
From a clone, to change the code:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
uv sync --all-groups
|
|
86
|
+
cd web && npm install && cd ..
|
|
87
|
+
./scripts/dev.sh # API on :8000, explorer on :5173, both reload on save
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
To try the packaged build from a clone: `cd web && npm run build:package`, then `uv run qubitlab serve`.
|
|
91
|
+
|
|
92
|
+
## How it is built
|
|
93
|
+
|
|
94
|
+
Three layers, kept apart by a test:
|
|
95
|
+
|
|
96
|
+
- **Theory** (`src/qubitlab/theory/`): each equation is a SymPy expression with its paper and equation number, compiled to JAX.
|
|
97
|
+
- **Simulation** (`src/qubitlab/sim/`): Dynamiqs for the cat's and the driven transmon's Lindblad equations, scqubits for the transmon's spectrum, Stim and PyMatching for error correction, optax for pulse optimization.
|
|
98
|
+
- **Checks** (`src/qubitlab/checks/`): theory vs simulation, with the verdict predicted before running.
|
|
99
|
+
|
|
100
|
+
## Learn
|
|
101
|
+
|
|
102
|
+
Start with [docs/learn/](https://github.com/pkarakala/qubit-lab/tree/main/docs/learn): a short course in five parts, from states and noise to qubit designs, control, gates and error correction. Every equation is listed with its source in [docs/reference/formulas.md](https://github.com/pkarakala/qubit-lab/blob/main/docs/reference/formulas.md), and every comparison in [docs/reference/checks.md](https://github.com/pkarakala/qubit-lab/blob/main/docs/reference/checks.md).
|
|
103
|
+
|
|
104
|
+
## Limits
|
|
105
|
+
|
|
106
|
+
The cat model is the standard effective one: a single mode with two-photon dissipation, no buffer mode. Chip geometry is schematic or taken from papers; computing it from a layout with Palace is next (see [ROADMAP.md](https://github.com/pkarakala/qubit-lab/blob/main/ROADMAP.md)). Rates are in units of κ₂, not hertz. Measured hardware numbers are cited to their papers and shown beside the simulation, never fitted to it. Not affiliated with any company or lab whose work is cited.
|
|
107
|
+
|
|
108
|
+
Parts of this repo were written with AI coding assistants, directed and reviewed by me. Agent rules are in [AGENTS.md](https://github.com/pkarakala/qubit-lab/blob/main/AGENTS.md).
|
|
109
|
+
|
|
110
|
+
Apache-2.0 · Pranav Reddy
|
qubitlab-1.0.0/README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Qubit Lab
|
|
2
|
+
|
|
3
|
+
An open source simulator for learning superconducting qubits, from the equations in the papers to full open system simulation, in an interactive 3D explorer. For students, engineers and researchers.
|
|
4
|
+
|
|
5
|
+
Every equation carries its paper and equation number, and is checked against a simulation built on maintained open source solvers: Dynamiqs, scqubits, Stim, PyMatching and JAX.
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
| | |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
|  |  |
|
|
12
|
+
|  |  |
|
|
13
|
+
|  |  |
|
|
14
|
+
|  |  |
|
|
15
|
+
|  |  |
|
|
16
|
+
|  | |
|
|
17
|
+
|
|
18
|
+
## What you can do
|
|
19
|
+
|
|
20
|
+
| View | Try this |
|
|
21
|
+
| --- | --- |
|
|
22
|
+
| Phase space | Grow a cat qubit from vacuum, then watch photon loss wash out its fringes, with the ideal cat from theory as a wireframe. |
|
|
23
|
+
| Flip rates | Drag the cat size and watch bit-flips fall exponentially while phase-flips rise linearly. |
|
|
24
|
+
| Transmon | Drag E_J/E_C and watch the charge bands flatten in 3D, next to the closed forms of Koch et al. |
|
|
25
|
+
| Qubit control | Run Rabi, π pulse, DRAG, T1, Ramsey and echo on a 4-level transmon and follow the Bloch vector. |
|
|
26
|
+
| Readout | Watch a qubit pull its resonator by ±χ, and compare χ from the exact spectrum with three textbook formulas. |
|
|
27
|
+
| Pulse optimizer | Let gradient descent through the simulation design a fast gate, and compare it with DRAG. |
|
|
28
|
+
| Noise bias | Compare bit-flip and phase-flip chances for cats and transmons at measured, cited hardware numbers. |
|
|
29
|
+
| Error correction | Run surface and repetition codes with Stim, decode with PyMatching, and see errors in space-time. |
|
|
30
|
+
| Two-qubit gates | Run a transmon CZ through the 11-20 crossing and a bias-preserving cat CNOT, next to the papers' error formulas. |
|
|
31
|
+
| Architectures | Explode six qubit designs, from the Xmon to the Kerr cat, into their layers, with every size cited or marked schematic. |
|
|
32
|
+
| Playground | Type your own Hamiltonian and losses, watch the Wigner function evolve, and copy the run as Python. |
|
|
33
|
+
|
|
34
|
+
Every view has **Share**, a link that restores its inputs, and **Copy as Python**, a script that reruns the view's simulation next to its theory. CI runs every script, so they stay in step with the code.
|
|
35
|
+
|
|
36
|
+
## How we know it's right
|
|
37
|
+
|
|
38
|
+
Each formula is compared with a simulation in a regime where it should hold and one where it should not, with the verdict written down before the run. A formula that misses where it should hold is reported, never hidden. The *Checks* view and [docs/reference/checks.md](https://github.com/pkarakala/qubit-lab/blob/main/docs/reference/checks.md) list every comparison; `qubitlab checks` runs them in the terminal.
|
|
39
|
+
|
|
40
|
+
## Run
|
|
41
|
+
|
|
42
|
+
Once a release is on PyPI, one command, no Node needed:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
pipx run qubitlab serve # or: pip install qubitlab && qubitlab serve
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
It opens the explorer at http://127.0.0.1:8000. `qubitlab checks` prints every formula vs the simulation in the terminal.
|
|
49
|
+
|
|
50
|
+
From a clone, to change the code:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
uv sync --all-groups
|
|
54
|
+
cd web && npm install && cd ..
|
|
55
|
+
./scripts/dev.sh # API on :8000, explorer on :5173, both reload on save
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
To try the packaged build from a clone: `cd web && npm run build:package`, then `uv run qubitlab serve`.
|
|
59
|
+
|
|
60
|
+
## How it is built
|
|
61
|
+
|
|
62
|
+
Three layers, kept apart by a test:
|
|
63
|
+
|
|
64
|
+
- **Theory** (`src/qubitlab/theory/`): each equation is a SymPy expression with its paper and equation number, compiled to JAX.
|
|
65
|
+
- **Simulation** (`src/qubitlab/sim/`): Dynamiqs for the cat's and the driven transmon's Lindblad equations, scqubits for the transmon's spectrum, Stim and PyMatching for error correction, optax for pulse optimization.
|
|
66
|
+
- **Checks** (`src/qubitlab/checks/`): theory vs simulation, with the verdict predicted before running.
|
|
67
|
+
|
|
68
|
+
## Learn
|
|
69
|
+
|
|
70
|
+
Start with [docs/learn/](https://github.com/pkarakala/qubit-lab/tree/main/docs/learn): a short course in five parts, from states and noise to qubit designs, control, gates and error correction. Every equation is listed with its source in [docs/reference/formulas.md](https://github.com/pkarakala/qubit-lab/blob/main/docs/reference/formulas.md), and every comparison in [docs/reference/checks.md](https://github.com/pkarakala/qubit-lab/blob/main/docs/reference/checks.md).
|
|
71
|
+
|
|
72
|
+
## Limits
|
|
73
|
+
|
|
74
|
+
The cat model is the standard effective one: a single mode with two-photon dissipation, no buffer mode. Chip geometry is schematic or taken from papers; computing it from a layout with Palace is next (see [ROADMAP.md](https://github.com/pkarakala/qubit-lab/blob/main/ROADMAP.md)). Rates are in units of κ₂, not hertz. Measured hardware numbers are cited to their papers and shown beside the simulation, never fitted to it. Not affiliated with any company or lab whose work is cited.
|
|
75
|
+
|
|
76
|
+
Parts of this repo were written with AI coding assistants, directed and reviewed by me. Agent rules are in [AGENTS.md](https://github.com/pkarakala/qubit-lab/blob/main/AGENTS.md).
|
|
77
|
+
|
|
78
|
+
Apache-2.0 · Pranav Reddy
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "qubitlab"
|
|
3
|
+
version = "1.0.0"
|
|
4
|
+
description = "An open-source simulator for learning superconducting qubits: cited theory, checked against Dynamiqs, scqubits and Stim, in a 3D explorer"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "Apache-2.0"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
requires-python = ">=3.12"
|
|
9
|
+
keywords = [
|
|
10
|
+
"superconducting qubits",
|
|
11
|
+
"cat qubit",
|
|
12
|
+
"transmon",
|
|
13
|
+
"quantum error correction",
|
|
14
|
+
"education",
|
|
15
|
+
]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 5 - Production/Stable",
|
|
18
|
+
"Intended Audience :: Education",
|
|
19
|
+
"Intended Audience :: Science/Research",
|
|
20
|
+
"Programming Language :: Python :: 3.12",
|
|
21
|
+
"Topic :: Scientific/Engineering :: Physics",
|
|
22
|
+
]
|
|
23
|
+
dependencies = [
|
|
24
|
+
"dynamiqs>=0.3.7",
|
|
25
|
+
"fastapi>=0.160.0",
|
|
26
|
+
"numpy>=2.5.4",
|
|
27
|
+
"optax>=0.2.8",
|
|
28
|
+
"pydantic>=2.14.1",
|
|
29
|
+
"pymatching>=2.4.0",
|
|
30
|
+
"scipy>=1.18.1",
|
|
31
|
+
"scqubits>=4.1.0",
|
|
32
|
+
"slowapi>=0.1.10",
|
|
33
|
+
"starlette>=1.5.0",
|
|
34
|
+
"stim>=1.16.0",
|
|
35
|
+
"sympy>=1.14.0",
|
|
36
|
+
"uvicorn>=0.54.0",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
[[project.authors]]
|
|
40
|
+
name = "Pranav Reddy"
|
|
41
|
+
|
|
42
|
+
[project.urls]
|
|
43
|
+
Homepage = "https://github.com/pkarakala/qubit-lab"
|
|
44
|
+
Changelog = "https://github.com/pkarakala/qubit-lab/blob/main/CHANGELOG.md"
|
|
45
|
+
Course = "https://github.com/pkarakala/qubit-lab/tree/main/docs/learn"
|
|
46
|
+
|
|
47
|
+
[project.scripts]
|
|
48
|
+
qubitlab = "qubitlab.cli:main"
|
|
49
|
+
|
|
50
|
+
[build-system]
|
|
51
|
+
requires = ["uv_build>=0.11.32,<0.12.0"]
|
|
52
|
+
build-backend = "uv_build"
|
|
53
|
+
|
|
54
|
+
[dependency-groups]
|
|
55
|
+
dev = [
|
|
56
|
+
"httpx>=0.28.1",
|
|
57
|
+
"hypothesis>=6.170.5",
|
|
58
|
+
"matplotlib>=3.11.2",
|
|
59
|
+
"mypy>=2.4.0",
|
|
60
|
+
"pytest>=9.1.1",
|
|
61
|
+
"ruff>=0.17.1",
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
[tool.ruff]
|
|
65
|
+
line-length = 100
|
|
66
|
+
|
|
67
|
+
[tool.ruff.lint]
|
|
68
|
+
select = [
|
|
69
|
+
"E",
|
|
70
|
+
"F",
|
|
71
|
+
"I",
|
|
72
|
+
"B",
|
|
73
|
+
"UP",
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
[tool.mypy]
|
|
77
|
+
strict = true
|
|
78
|
+
plugins = ["pydantic.mypy"]
|
|
79
|
+
files = ["src/qubitlab"]
|
|
80
|
+
|
|
81
|
+
[[tool.mypy.overrides]]
|
|
82
|
+
module = [
|
|
83
|
+
"dynamiqs.*",
|
|
84
|
+
"sympy.*",
|
|
85
|
+
"jax.*",
|
|
86
|
+
"scipy.*",
|
|
87
|
+
]
|
|
88
|
+
ignore_missing_imports = true
|
|
89
|
+
|
|
90
|
+
[[tool.mypy.overrides]]
|
|
91
|
+
module = [
|
|
92
|
+
"scqubits",
|
|
93
|
+
"scqubits.*",
|
|
94
|
+
"stim",
|
|
95
|
+
"pymatching",
|
|
96
|
+
"optax",
|
|
97
|
+
]
|
|
98
|
+
follow_imports = "skip"
|
|
99
|
+
ignore_missing_imports = true
|
|
100
|
+
|
|
101
|
+
[tool.pytest.ini_options]
|
|
102
|
+
addopts = "-p no:cacheprovider"
|
|
103
|
+
markers = ["slow: Liouvillian spectra and long solves"]
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "qubitlab"
|
|
3
|
+
version = "1.0.0"
|
|
4
|
+
description = "An open-source simulator for learning superconducting qubits: cited theory, checked against Dynamiqs, scqubits and Stim, in a 3D explorer"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
authors = [
|
|
7
|
+
{ name = "Pranav Reddy" }
|
|
8
|
+
]
|
|
9
|
+
license = "Apache-2.0"
|
|
10
|
+
license-files = ["LICENSE"]
|
|
11
|
+
requires-python = ">=3.12"
|
|
12
|
+
keywords = ["superconducting qubits", "cat qubit", "transmon", "quantum error correction", "education"]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Development Status :: 5 - Production/Stable",
|
|
15
|
+
"Intended Audience :: Education",
|
|
16
|
+
"Intended Audience :: Science/Research",
|
|
17
|
+
"Programming Language :: Python :: 3.12",
|
|
18
|
+
"Topic :: Scientific/Engineering :: Physics",
|
|
19
|
+
]
|
|
20
|
+
dependencies = [
|
|
21
|
+
"dynamiqs>=0.3.7",
|
|
22
|
+
"fastapi>=0.160.0",
|
|
23
|
+
"numpy>=2.5.4",
|
|
24
|
+
"optax>=0.2.8",
|
|
25
|
+
"pydantic>=2.14.1",
|
|
26
|
+
"pymatching>=2.4.0",
|
|
27
|
+
"scipy>=1.18.1",
|
|
28
|
+
"scqubits>=4.1.0",
|
|
29
|
+
"slowapi>=0.1.10",
|
|
30
|
+
"starlette>=1.5.0",
|
|
31
|
+
"stim>=1.16.0",
|
|
32
|
+
"sympy>=1.14.0",
|
|
33
|
+
"uvicorn>=0.54.0",
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
[project.urls]
|
|
37
|
+
Homepage = "https://github.com/pkarakala/qubit-lab"
|
|
38
|
+
Changelog = "https://github.com/pkarakala/qubit-lab/blob/main/CHANGELOG.md"
|
|
39
|
+
Course = "https://github.com/pkarakala/qubit-lab/tree/main/docs/learn"
|
|
40
|
+
|
|
41
|
+
[project.scripts]
|
|
42
|
+
qubitlab = "qubitlab.cli:main"
|
|
43
|
+
|
|
44
|
+
[build-system]
|
|
45
|
+
requires = ["uv_build>=0.11.32,<0.12.0"]
|
|
46
|
+
build-backend = "uv_build"
|
|
47
|
+
|
|
48
|
+
[dependency-groups]
|
|
49
|
+
dev = [
|
|
50
|
+
"httpx>=0.28.1",
|
|
51
|
+
"hypothesis>=6.170.5",
|
|
52
|
+
"matplotlib>=3.11.2",
|
|
53
|
+
"mypy>=2.4.0",
|
|
54
|
+
"pytest>=9.1.1",
|
|
55
|
+
"ruff>=0.17.1",
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
[tool.ruff]
|
|
59
|
+
line-length = 100
|
|
60
|
+
|
|
61
|
+
[tool.ruff.lint]
|
|
62
|
+
select = ["E", "F", "I", "B", "UP"]
|
|
63
|
+
|
|
64
|
+
[tool.mypy]
|
|
65
|
+
strict = true
|
|
66
|
+
plugins = ["pydantic.mypy"]
|
|
67
|
+
files = ["src/qubitlab"]
|
|
68
|
+
|
|
69
|
+
[[tool.mypy.overrides]]
|
|
70
|
+
module = ["dynamiqs.*", "sympy.*", "jax.*", "scipy.*"]
|
|
71
|
+
ignore_missing_imports = true
|
|
72
|
+
|
|
73
|
+
[tool.pytest.ini_options]
|
|
74
|
+
addopts = "-p no:cacheprovider"
|
|
75
|
+
markers = ["slow: Liouvillian spectra and long solves"]
|
|
76
|
+
|
|
77
|
+
[[tool.mypy.overrides]]
|
|
78
|
+
# No type stubs: scqubits does not declare its public names; Stim and PyMatching are compiled extensions; optax ships no stubs.
|
|
79
|
+
module = ["scqubits", "scqubits.*", "stim", "pymatching", "optax"]
|
|
80
|
+
follow_imports = "skip"
|
|
81
|
+
ignore_missing_imports = true
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""qubitlab: cat qubit and transmon physics, theory vs simulation."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import version
|
|
4
|
+
|
|
5
|
+
import jax
|
|
6
|
+
|
|
7
|
+
# Physics checks compare numbers to 1e-6 and below, so everything runs in double precision.
|
|
8
|
+
jax.config.update("jax_enable_x64", True) # type: ignore[no-untyped-call]
|
|
9
|
+
|
|
10
|
+
__version__ = version("qubitlab") # single source: pyproject.toml
|