qubitlab 1.0.0__py3-none-any.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.
Files changed (135) hide show
  1. qubitlab/__init__.py +10 -0
  2. qubitlab/api.py +1005 -0
  3. qubitlab/architectures.py +94 -0
  4. qubitlab/cache.py +63 -0
  5. qubitlab/checks/__init__.py +10 -0
  6. qubitlab/checks/base.py +88 -0
  7. qubitlab/checks/cat_checks.py +180 -0
  8. qubitlab/checks/gate_checks.py +96 -0
  9. qubitlab/checks/qec_checks.py +67 -0
  10. qubitlab/checks/qubit_checks.py +178 -0
  11. qubitlab/checks/readout_checks.py +105 -0
  12. qubitlab/checks/transmon_checks.py +78 -0
  13. qubitlab/cli.py +47 -0
  14. qubitlab/data/architectures/dissipative_cat.toml +85 -0
  15. qubitlab/data/architectures/fluxonium.toml +90 -0
  16. qubitlab/data/architectures/kerr_cat.toml +87 -0
  17. qubitlab/data/architectures/tantalum_transmon.toml +98 -0
  18. qubitlab/data/architectures/tunable_coupler.toml +89 -0
  19. qubitlab/data/architectures/xmon.toml +113 -0
  20. qubitlab/data/checks.json +1039 -0
  21. qubitlab/data/presets.json +1174 -0
  22. qubitlab/data/references.bib +439 -0
  23. qubitlab/data/solves.json +911 -0
  24. qubitlab/explorer/assets/Architectures-DcTfzxdJ.js +1 -0
  25. qubitlab/explorer/assets/BlochSphere-CJsYSeis.js +1 -0
  26. qubitlab/explorer/assets/CatVsTransmon-BcKRlrLa.js +1 -0
  27. qubitlab/explorer/assets/Checks-DKPHk09b.js +1 -0
  28. qubitlab/explorer/assets/ErrorCorrection-Bc38WEhM.js +1 -0
  29. qubitlab/explorer/assets/FlipRates-vg0k9NKO.js +1 -0
  30. qubitlab/explorer/assets/Gates-DKxGRoII.js +1 -0
  31. qubitlab/explorer/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  32. qubitlab/explorer/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  33. qubitlab/explorer/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  34. qubitlab/explorer/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  35. qubitlab/explorer/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  36. qubitlab/explorer/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  37. qubitlab/explorer/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  38. qubitlab/explorer/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  39. qubitlab/explorer/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  40. qubitlab/explorer/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  41. qubitlab/explorer/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  42. qubitlab/explorer/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  43. qubitlab/explorer/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  44. qubitlab/explorer/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  45. qubitlab/explorer/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  46. qubitlab/explorer/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  47. qubitlab/explorer/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  48. qubitlab/explorer/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  49. qubitlab/explorer/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  50. qubitlab/explorer/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  51. qubitlab/explorer/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  52. qubitlab/explorer/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  53. qubitlab/explorer/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  54. qubitlab/explorer/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  55. qubitlab/explorer/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  56. qubitlab/explorer/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  57. qubitlab/explorer/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  58. qubitlab/explorer/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  59. qubitlab/explorer/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  60. qubitlab/explorer/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  61. qubitlab/explorer/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  62. qubitlab/explorer/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  63. qubitlab/explorer/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  64. qubitlab/explorer/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  65. qubitlab/explorer/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  66. qubitlab/explorer/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  67. qubitlab/explorer/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  68. qubitlab/explorer/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  69. qubitlab/explorer/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  70. qubitlab/explorer/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  71. qubitlab/explorer/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  72. qubitlab/explorer/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  73. qubitlab/explorer/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  74. qubitlab/explorer/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  75. qubitlab/explorer/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  76. qubitlab/explorer/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  77. qubitlab/explorer/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  78. qubitlab/explorer/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  79. qubitlab/explorer/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  80. qubitlab/explorer/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  81. qubitlab/explorer/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  82. qubitlab/explorer/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  83. qubitlab/explorer/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  84. qubitlab/explorer/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  85. qubitlab/explorer/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  86. qubitlab/explorer/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  87. qubitlab/explorer/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  88. qubitlab/explorer/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  89. qubitlab/explorer/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  90. qubitlab/explorer/assets/LabeledCanvas-GXQjA2d7.js +4231 -0
  91. qubitlab/explorer/assets/Line-C5drPxLz.js +409 -0
  92. qubitlab/explorer/assets/OrbitControls-6-M7L_Zr.js +1 -0
  93. qubitlab/explorer/assets/PhaseSpace-B_F05iw6.js +1 -0
  94. qubitlab/explorer/assets/Playground-fZbCkQcl.js +1 -0
  95. qubitlab/explorer/assets/Plot-kSaY_hzv.js +10 -0
  96. qubitlab/explorer/assets/PulseOptimizer-D4obO0PU.js +1 -0
  97. qubitlab/explorer/assets/Qubit-CdjcnjuF.js +1 -0
  98. qubitlab/explorer/assets/Readout-Dgp6RzZa.js +1 -0
  99. qubitlab/explorer/assets/Transmon-FnjHYyIh.js +1 -0
  100. qubitlab/explorer/assets/WignerSurface-DY9LOgVz.js +1 -0
  101. qubitlab/explorer/assets/index-C1xbob1O.js +267 -0
  102. qubitlab/explorer/assets/index-H2PQOnBm.css +1 -0
  103. qubitlab/explorer/assets/useDebounced-DL0FhXFg.js +1 -0
  104. qubitlab/explorer/favicon.svg +1 -0
  105. qubitlab/explorer/index.html +15 -0
  106. qubitlab/facts.py +147 -0
  107. qubitlab/provenance.py +60 -0
  108. qubitlab/py.typed +0 -0
  109. qubitlab/serve.py +42 -0
  110. qubitlab/sim/__init__.py +1 -0
  111. qubitlab/sim/cat.py +260 -0
  112. qubitlab/sim/custom.py +262 -0
  113. qubitlab/sim/pulse_optimizer.py +129 -0
  114. qubitlab/sim/qec.py +230 -0
  115. qubitlab/sim/readout.py +119 -0
  116. qubitlab/sim/spectra.py +65 -0
  117. qubitlab/sim/transmon.py +63 -0
  118. qubitlab/sim/transmon_dynamics.py +304 -0
  119. qubitlab/sim/two_qubit.py +118 -0
  120. qubitlab/snapshot.py +43 -0
  121. qubitlab/snippets.py +195 -0
  122. qubitlab/theory/__init__.py +10 -0
  123. qubitlab/theory/cat.py +256 -0
  124. qubitlab/theory/gates.py +88 -0
  125. qubitlab/theory/qec.py +92 -0
  126. qubitlab/theory/qubit.py +156 -0
  127. qubitlab/theory/readout.py +136 -0
  128. qubitlab/theory/registry.py +77 -0
  129. qubitlab/theory/transmon.py +97 -0
  130. qubitlab/warm.py +140 -0
  131. qubitlab-1.0.0.dist-info/METADATA +110 -0
  132. qubitlab-1.0.0.dist-info/RECORD +135 -0
  133. qubitlab-1.0.0.dist-info/WHEEL +4 -0
  134. qubitlab-1.0.0.dist-info/entry_points.txt +3 -0
  135. qubitlab-1.0.0.dist-info/licenses/LICENSE +201 -0
qubitlab/__init__.py ADDED
@@ -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