quantcore-circuits 0.0.1__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 (272) hide show
  1. quantcore_circuits/__init__.py +57 -0
  2. quantcore_circuits/analysis/__init__.py +12 -0
  3. quantcore_circuits/analysis/_metal.py +70 -0
  4. quantcore_circuits/analysis/amplifiers.py +263 -0
  5. quantcore_circuits/analysis/circuits.py +117 -0
  6. quantcore_circuits/analysis/epr.py +231 -0
  7. quantcore_circuits/analysis/epr_lumped.py +372 -0
  8. quantcore_circuits/analysis/extract.py +119 -0
  9. quantcore_circuits/analysis/lom.py +80 -0
  10. quantcore_circuits/analysis/results.py +549 -0
  11. quantcore_circuits/analysis/store.py +81 -0
  12. quantcore_circuits/analysis/synthesis.py +118 -0
  13. quantcore_circuits/analysis/transmon.py +126 -0
  14. quantcore_circuits/assembly/__init__.py +17 -0
  15. quantcore_circuits/assembly/builder.py +127 -0
  16. quantcore_circuits/assembly/drc.py +683 -0
  17. quantcore_circuits/assembly/last_good.py +137 -0
  18. quantcore_circuits/assembly/netlist.py +174 -0
  19. quantcore_circuits/assembly/plan.py +605 -0
  20. quantcore_circuits/assembly/sidecar.py +270 -0
  21. quantcore_circuits/autotrack.py +605 -0
  22. quantcore_circuits/cards.py +878 -0
  23. quantcore_circuits/circuit/__init__.py +14 -0
  24. quantcore_circuits/circuit/adapters.py +305 -0
  25. quantcore_circuits/circuit/bridges.py +353 -0
  26. quantcore_circuits/circuit/consensus.py +158 -0
  27. quantcore_circuits/circuit/derive.py +28 -0
  28. quantcore_circuits/circuit/draw.py +198 -0
  29. quantcore_circuits/circuit/fill.py +828 -0
  30. quantcore_circuits/circuit/hamiltonian.py +193 -0
  31. quantcore_circuits/circuit/kinetic.py +102 -0
  32. quantcore_circuits/circuit/schema.py +139 -0
  33. quantcore_circuits/cli.py +1085 -0
  34. quantcore_circuits/codesign.py +1038 -0
  35. quantcore_circuits/data/selftest_q1_r1.json +44 -0
  36. quantcore_circuits/design/__init__.py +44 -0
  37. quantcore_circuits/design/io.py +98 -0
  38. quantcore_circuits/design/pyscript.py +395 -0
  39. quantcore_circuits/design/schema.py +398 -0
  40. quantcore_circuits/designer.py +625 -0
  41. quantcore_circuits/guiflow.py +991 -0
  42. quantcore_circuits/kqc_files.py +208 -0
  43. quantcore_circuits/layouts/__init__.py +118 -0
  44. quantcore_circuits/layouts/catalog.py +520 -0
  45. quantcore_circuits/layouts/chips/__init__.py +0 -0
  46. quantcore_circuits/layouts/chips/design_chip.py +325 -0
  47. quantcore_circuits/layouts/chips/frame.py +235 -0
  48. quantcore_circuits/layouts/junctions/__init__.py +0 -0
  49. quantcore_circuits/layouts/junctions/jj_fingers.py +99 -0
  50. quantcore_circuits/layouts/junctions/legacy_junctions.py +237 -0
  51. quantcore_circuits/layouts/junctions/sim_gap.py +48 -0
  52. quantcore_circuits/layouts/junctions/trilayer.py +541 -0
  53. quantcore_circuits/layouts/metal/__init__.py +105 -0
  54. quantcore_circuits/layouts/metal/component.py +332 -0
  55. quantcore_circuits/layouts/metal/geometry.py +462 -0
  56. quantcore_circuits/layouts/others/__init__.py +0 -0
  57. quantcore_circuits/layouts/others/amplifiers.py +1139 -0
  58. quantcore_circuits/layouts/others/bond_pad.py +119 -0
  59. quantcore_circuits/layouts/others/connector_pads.py +190 -0
  60. quantcore_circuits/layouts/others/couplers.py +21 -0
  61. quantcore_circuits/layouts/others/cpw_segment.py +131 -0
  62. quantcore_circuits/layouts/others/cpwe.py +661 -0
  63. quantcore_circuits/layouts/others/keepout.py +66 -0
  64. quantcore_circuits/layouts/others/legacy_resonators.py +645 -0
  65. quantcore_circuits/layouts/others/markers.py +201 -0
  66. quantcore_circuits/layouts/others/qpdk_cells.py +263 -0
  67. quantcore_circuits/layouts/others/shapes.py +114 -0
  68. quantcore_circuits/layouts/others/spirals.py +140 -0
  69. quantcore_circuits/layouts/others/sqdmetal_cells.py +90 -0
  70. quantcore_circuits/layouts/others/test_pads.py +461 -0
  71. quantcore_circuits/layouts/ports.py +119 -0
  72. quantcore_circuits/layouts/qubits/__init__.py +0 -0
  73. quantcore_circuits/layouts/qubits/legacy_transmon.py +124 -0
  74. quantcore_circuits/layouts/qubits/qpdk_cells.py +374 -0
  75. quantcore_circuits/layouts/qubits/sqdmetal_cells.py +376 -0
  76. quantcore_circuits/layouts/qubits/trilayer_concentric.py +65 -0
  77. quantcore_circuits/layouts/qubits/xmon.py +375 -0
  78. quantcore_circuits/layouts/registry.py +418 -0
  79. quantcore_circuits/layouts/wafers/__init__.py +0 -0
  80. quantcore_circuits/layouts/wafers/fab_export.py +454 -0
  81. quantcore_circuits/layouts/wafers/legacy_wafer.py +111 -0
  82. quantcore_circuits/layouts/wafers/wafer.py +469 -0
  83. quantcore_circuits/live/__init__.py +6 -0
  84. quantcore_circuits/live/klayout.py +225 -0
  85. quantcore_circuits/live/klive.py +61 -0
  86. quantcore_circuits/live/snapshot.py +185 -0
  87. quantcore_circuits/live/watch.py +93 -0
  88. quantcore_circuits/lom/__init__.py +15 -0
  89. quantcore_circuits/lom/builder.py +932 -0
  90. quantcore_circuits/lom/calibration.py +82 -0
  91. quantcore_circuits/lom/estimates.py +235 -0
  92. quantcore_circuits/lom/fragment.py +421 -0
  93. quantcore_circuits/lom/kqc_models.py +734 -0
  94. quantcore_circuits/lom/metal_models.py +917 -0
  95. quantcore_circuits/lom/quantcore_models.py +784 -0
  96. quantcore_circuits/lom/simulate.py +636 -0
  97. quantcore_circuits/lom/synthesize.py +189 -0
  98. quantcore_circuits/loop.py +610 -0
  99. quantcore_circuits/optimise.py +423 -0
  100. quantcore_circuits/pdk/__init__.py +451 -0
  101. quantcore_circuits/plots.py +876 -0
  102. quantcore_circuits/plugins.py +69 -0
  103. quantcore_circuits/review/__init__.py +57 -0
  104. quantcore_circuits/review/server.py +251 -0
  105. quantcore_circuits/review/static/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  106. quantcore_circuits/review/static/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  107. quantcore_circuits/review/static/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  108. quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  109. quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  110. quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  111. quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  112. quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  113. quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  114. quantcore_circuits/review/static/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  115. quantcore_circuits/review/static/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  116. quantcore_circuits/review/static/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  117. quantcore_circuits/review/static/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  118. quantcore_circuits/review/static/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  119. quantcore_circuits/review/static/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  120. quantcore_circuits/review/static/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  121. quantcore_circuits/review/static/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  122. quantcore_circuits/review/static/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  123. quantcore_circuits/review/static/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  124. quantcore_circuits/review/static/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  125. quantcore_circuits/review/static/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  126. quantcore_circuits/review/static/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  127. quantcore_circuits/review/static/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  128. quantcore_circuits/review/static/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  129. quantcore_circuits/review/static/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  130. quantcore_circuits/review/static/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  131. quantcore_circuits/review/static/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  132. quantcore_circuits/review/static/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  133. quantcore_circuits/review/static/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  134. quantcore_circuits/review/static/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  135. quantcore_circuits/review/static/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  136. quantcore_circuits/review/static/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  137. quantcore_circuits/review/static/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  138. quantcore_circuits/review/static/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  139. quantcore_circuits/review/static/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  140. quantcore_circuits/review/static/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  141. quantcore_circuits/review/static/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  142. quantcore_circuits/review/static/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  143. quantcore_circuits/review/static/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  144. quantcore_circuits/review/static/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  145. quantcore_circuits/review/static/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  146. quantcore_circuits/review/static/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  147. quantcore_circuits/review/static/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  148. quantcore_circuits/review/static/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  149. quantcore_circuits/review/static/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  150. quantcore_circuits/review/static/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  151. quantcore_circuits/review/static/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  152. quantcore_circuits/review/static/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  153. quantcore_circuits/review/static/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  154. quantcore_circuits/review/static/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  155. quantcore_circuits/review/static/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  156. quantcore_circuits/review/static/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  157. quantcore_circuits/review/static/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  158. quantcore_circuits/review/static/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  159. quantcore_circuits/review/static/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  160. quantcore_circuits/review/static/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  161. quantcore_circuits/review/static/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  162. quantcore_circuits/review/static/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  163. quantcore_circuits/review/static/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  164. quantcore_circuits/review/static/assets/index-CDHdrFyA.css +1 -0
  165. quantcore_circuits/review/static/assets/index-CSx05Og4.js +409 -0
  166. quantcore_circuits/review/static/assets/inter-cyrillic-400-normal-HOLc17fK.woff +0 -0
  167. quantcore_circuits/review/static/assets/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
  168. quantcore_circuits/review/static/assets/inter-cyrillic-500-normal-BasfLYem.woff2 +0 -0
  169. quantcore_circuits/review/static/assets/inter-cyrillic-500-normal-CxZf_p3X.woff +0 -0
  170. quantcore_circuits/review/static/assets/inter-cyrillic-600-normal-4D_pXhcN.woff +0 -0
  171. quantcore_circuits/review/static/assets/inter-cyrillic-600-normal-CWCymEST.woff2 +0 -0
  172. quantcore_circuits/review/static/assets/inter-cyrillic-700-normal-CjBOestx.woff2 +0 -0
  173. quantcore_circuits/review/static/assets/inter-cyrillic-700-normal-DrXBdSj3.woff +0 -0
  174. quantcore_circuits/review/static/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
  175. quantcore_circuits/review/static/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff +0 -0
  176. quantcore_circuits/review/static/assets/inter-cyrillic-ext-500-normal-B0yAr1jD.woff2 +0 -0
  177. quantcore_circuits/review/static/assets/inter-cyrillic-ext-500-normal-BmqWE9Dz.woff +0 -0
  178. quantcore_circuits/review/static/assets/inter-cyrillic-ext-600-normal-Bcila6Z-.woff +0 -0
  179. quantcore_circuits/review/static/assets/inter-cyrillic-ext-600-normal-Dfes3d0z.woff2 +0 -0
  180. quantcore_circuits/review/static/assets/inter-cyrillic-ext-700-normal-BjwYoWNd.woff2 +0 -0
  181. quantcore_circuits/review/static/assets/inter-cyrillic-ext-700-normal-LO58E6JB.woff +0 -0
  182. quantcore_circuits/review/static/assets/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
  183. quantcore_circuits/review/static/assets/inter-greek-400-normal-q2sYcFCs.woff +0 -0
  184. quantcore_circuits/review/static/assets/inter-greek-500-normal-BIZE56-Y.woff2 +0 -0
  185. quantcore_circuits/review/static/assets/inter-greek-500-normal-Xzm54t5V.woff +0 -0
  186. quantcore_circuits/review/static/assets/inter-greek-600-normal-BZpKdvQh.woff +0 -0
  187. quantcore_circuits/review/static/assets/inter-greek-600-normal-plRanbMR.woff2 +0 -0
  188. quantcore_circuits/review/static/assets/inter-greek-700-normal-BUv2fZ6O.woff +0 -0
  189. quantcore_circuits/review/static/assets/inter-greek-700-normal-C3JjAnD8.woff2 +0 -0
  190. quantcore_circuits/review/static/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
  191. quantcore_circuits/review/static/assets/inter-greek-ext-400-normal-KugGGMne.woff +0 -0
  192. quantcore_circuits/review/static/assets/inter-greek-ext-500-normal-2j5mBUwD.woff +0 -0
  193. quantcore_circuits/review/static/assets/inter-greek-ext-500-normal-C4iEst2y.woff2 +0 -0
  194. quantcore_circuits/review/static/assets/inter-greek-ext-600-normal-B8X0CLgF.woff +0 -0
  195. quantcore_circuits/review/static/assets/inter-greek-ext-600-normal-DRtmH8MT.woff2 +0 -0
  196. quantcore_circuits/review/static/assets/inter-greek-ext-700-normal-BoQ6DsYi.woff +0 -0
  197. quantcore_circuits/review/static/assets/inter-greek-ext-700-normal-qfdV9bQt.woff2 +0 -0
  198. quantcore_circuits/review/static/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
  199. quantcore_circuits/review/static/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
  200. quantcore_circuits/review/static/assets/inter-latin-500-normal-BL9OpVg8.woff +0 -0
  201. quantcore_circuits/review/static/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
  202. quantcore_circuits/review/static/assets/inter-latin-600-normal-CiBQ2DWP.woff +0 -0
  203. quantcore_circuits/review/static/assets/inter-latin-600-normal-LgqL8muc.woff2 +0 -0
  204. quantcore_circuits/review/static/assets/inter-latin-700-normal-BLAVimhd.woff +0 -0
  205. quantcore_circuits/review/static/assets/inter-latin-700-normal-Yt3aPRUw.woff2 +0 -0
  206. quantcore_circuits/review/static/assets/inter-latin-ext-400-normal-77YHD8bZ.woff +0 -0
  207. quantcore_circuits/review/static/assets/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
  208. quantcore_circuits/review/static/assets/inter-latin-ext-500-normal-BxGbmqWO.woff +0 -0
  209. quantcore_circuits/review/static/assets/inter-latin-ext-500-normal-CV4jyFjo.woff2 +0 -0
  210. quantcore_circuits/review/static/assets/inter-latin-ext-600-normal-CIVaiw4L.woff +0 -0
  211. quantcore_circuits/review/static/assets/inter-latin-ext-600-normal-D2bJ5OIk.woff2 +0 -0
  212. quantcore_circuits/review/static/assets/inter-latin-ext-700-normal-Ca8adRJv.woff2 +0 -0
  213. quantcore_circuits/review/static/assets/inter-latin-ext-700-normal-TidjK2hL.woff +0 -0
  214. quantcore_circuits/review/static/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff +0 -0
  215. quantcore_circuits/review/static/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
  216. quantcore_circuits/review/static/assets/inter-vietnamese-500-normal-DOriooB6.woff2 +0 -0
  217. quantcore_circuits/review/static/assets/inter-vietnamese-500-normal-mJboJaSs.woff +0 -0
  218. quantcore_circuits/review/static/assets/inter-vietnamese-600-normal-BuLX-rYi.woff +0 -0
  219. quantcore_circuits/review/static/assets/inter-vietnamese-600-normal-Cc8MFFhd.woff2 +0 -0
  220. quantcore_circuits/review/static/assets/inter-vietnamese-700-normal-BZaoP0fm.woff +0 -0
  221. quantcore_circuits/review/static/assets/inter-vietnamese-700-normal-DlLaEgI2.woff2 +0 -0
  222. quantcore_circuits/review/static/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
  223. quantcore_circuits/review/static/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
  224. quantcore_circuits/review/static/assets/jetbrains-mono-cyrillic-500-normal-DJqRU3vO.woff +0 -0
  225. quantcore_circuits/review/static/assets/jetbrains-mono-cyrillic-500-normal-DmUKJPL_.woff2 +0 -0
  226. quantcore_circuits/review/static/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
  227. quantcore_circuits/review/static/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
  228. quantcore_circuits/review/static/assets/jetbrains-mono-greek-500-normal-D7SFKleX.woff +0 -0
  229. quantcore_circuits/review/static/assets/jetbrains-mono-greek-500-normal-JpySY46c.woff2 +0 -0
  230. quantcore_circuits/review/static/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
  231. quantcore_circuits/review/static/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  232. quantcore_circuits/review/static/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
  233. quantcore_circuits/review/static/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff +0 -0
  234. quantcore_circuits/review/static/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
  235. quantcore_circuits/review/static/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
  236. quantcore_circuits/review/static/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
  237. quantcore_circuits/review/static/assets/jetbrains-mono-latin-ext-500-normal-ckzbgY84.woff +0 -0
  238. quantcore_circuits/review/static/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
  239. quantcore_circuits/review/static/assets/jetbrains-mono-vietnamese-500-normal-DNRqzVM1.woff +0 -0
  240. quantcore_circuits/review/static/index.html +14 -0
  241. quantcore_circuits/review/static/logo-quantcore-black.png +0 -0
  242. quantcore_circuits/review/static/logo-quantcore-white.png +0 -0
  243. quantcore_circuits/review/static/sample/chip.png +0 -0
  244. quantcore_circuits/review/static/sample/chip_rev1.png +0 -0
  245. quantcore_circuits/review/static/sample/q1.png +0 -0
  246. quantcore_circuits/review/static/sample/q2.png +0 -0
  247. quantcore_circuits/review/static/sample-state.json +3747 -0
  248. quantcore_circuits/route/__init__.py +5 -0
  249. quantcore_circuits/route/router.py +694 -0
  250. quantcore_circuits/route/waveguide.py +187 -0
  251. quantcore_circuits/selftest.py +224 -0
  252. quantcore_circuits/sim_tools/__init__.py +6 -0
  253. quantcore_circuits/sim_tools/aedt_attach.py +66 -0
  254. quantcore_circuits/sim_tools/aedt_progress.py +224 -0
  255. quantcore_circuits/sim_tools/aedt_project.py +302 -0
  256. quantcore_circuits/sim_tools/aedt_scripts.py +397 -0
  257. quantcore_circuits/sim_tools/aedt_session.py +275 -0
  258. quantcore_circuits/sim_tools/ansys.py +90 -0
  259. quantcore_circuits/sim_tools/builder.py +1690 -0
  260. quantcore_circuits/sim_tools/export.py +470 -0
  261. quantcore_circuits/sim_tools/geometry_check.py +342 -0
  262. quantcore_circuits/sim_tools/hfss.py +583 -0
  263. quantcore_circuits/sim_tools/palace.py +197 -0
  264. quantcore_circuits/sim_tools/runner.py +179 -0
  265. quantcore_circuits/sim_tools/subset.py +364 -0
  266. quantcore_circuits/track.py +671 -0
  267. quantcore_circuits-0.0.1.dist-info/METADATA +204 -0
  268. quantcore_circuits-0.0.1.dist-info/RECORD +272 -0
  269. quantcore_circuits-0.0.1.dist-info/WHEEL +5 -0
  270. quantcore_circuits-0.0.1.dist-info/entry_points.txt +2 -0
  271. quantcore_circuits-0.0.1.dist-info/licenses/LICENSE +674 -0
  272. quantcore_circuits-0.0.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,237 @@
1
+ """Earlier generations of the QWri trilayer junctions and SQUIDs, as KQC junctions (usable as ``junction_type``).
2
+
3
+ * :class:`TrilayerJunctionHSQ` / :class:`TrilayerSquidHSQ`: the first HSQ generation, legacy
4
+ ``junction_creator_HSQ.create_junction`` / ``squid_creator_HSQ.create_squid`` (chips 05, 06, 08 and the 11f JJ
5
+ placer). Compared with :class:`~.trilayer.TrilayerJunction` (``xjc_*_TL_mod``) the bent finger sits 0.5 µm lower
6
+ in an unshifted window, the HSQ boxes are 0.1 µm (not 0.2 µm) longer than the finger and the SQUID's straight
7
+ leads keep the 3 µm finger-pad height.
8
+ * :class:`SquidV0`: the pre-HSQ SQUID of ``junction_creator_sq.create_junction_squid`` (and the stand-alone
9
+ ``junction_pad.py``, whose bent window is 16 µm high instead of 18 µm): straight fingers at their 0.2 µm default
10
+ width, bent fingers ``0.2·js + 0.06`` µm wide, bent window shifted up by 1 µm, no HSQ.
11
+
12
+ Same layers and frame as :mod:`.trilayer`: straight finger → ``SIS_junction`` (legacy 2/0), bent finger →
13
+ ``SIS_junction_2`` (4/0), HSQ → qcc ``hsq`` (PDK v2 50/0; legacy 500/0), spacer gradient on 51–53/0 (on by default,
14
+ :func:`~.trilayer.spacer_gradient_levels`), sizing by ``lj_nH`` / KQC ``junction_width`` and the optional CLEARER as
15
+ in :mod:`.trilayer`; ``origin_squid`` at the ground-side window edge,
16
+ ``port_common`` on the island side; geometry computed with the legacy pya calls, so it XORs clean against them.
17
+ The legacy scripts take ``js`` (finger width in units of 0.1 µm, 0.2 µm for :class:`SquidV0`) and ``secondFinger``
18
+ (bent-finger width in µm, 0 = same): here they are ``finger_width`` and ``second_finger_width`` in µm.
19
+
20
+ The scripts set the finger parameters with ``change_pcell_parameters``, so KLayout runs the legacy
21
+ ``coerce_parameters_impl`` of ``JJ_finger Top/Bottom`` first (e.g. a 0.6 µm bent finger widens its 1 µm lead to
22
+ 1.26 µm); :func:`coerce_straight` / :func:`coerce_bent` apply the same rules here.
23
+ """
24
+
25
+ from kqcircuits.pya_resolver import pya
26
+ from kqcircuits.util.parameters import Param, pdt
27
+
28
+ from quantcore_circuits.layouts.junctions.trilayer import ( # noqa: F401 (coerce_* re-exported for jj_fingers)
29
+ TrilayerJunction,
30
+ TrilayerSquid,
31
+ _TrilayerBase,
32
+ bent_finger,
33
+ coerce_bent,
34
+ coerce_straight,
35
+ coerced_bent_finger,
36
+ coerced_straight_finger,
37
+ straight_finger,
38
+ )
39
+
40
+
41
+ class TrilayerJunctionHSQ(TrilayerJunction):
42
+ """Single trilayer junction, first HSQ generation (legacy ``junction_creator_HSQ.create_junction``)."""
43
+
44
+ qcc_category = "junction"
45
+
46
+ bent_finger_y = Param(pdt.TypeDouble, "Bent finger offset (legacy y)", -2.0, unit="μm")
47
+ bent_shift = Param(pdt.TypeDouble, "Bent finger cell shift in y", 0.0, unit="μm")
48
+ hsq_extra = Param(pdt.TypeDouble, "HSQ box extra length", 0.1, unit="μm")
49
+
50
+ def build(self):
51
+ dbu = self.layout.dbu
52
+ fw, sfw, pad_width = self._widths()
53
+ w, h = self.window_width, self.window_height
54
+ straight = coerced_straight_finger(
55
+ dbu, pad_width, 3, fw, self.straight_finger_length, w, h, 0, self.straight_finger_y
56
+ )
57
+ straight.transform(pya.Trans(0, True, 0, 0)) # legacy inserts the straight finger mirrored
58
+ bent = coerced_bent_finger(
59
+ dbu,
60
+ self.bent_pad_width,
61
+ sfw,
62
+ self.bent_finger_length,
63
+ self.bent_conn_height,
64
+ w,
65
+ h - 1,
66
+ self.bent_finger_x,
67
+ self.bent_finger_y,
68
+ False,
69
+ )
70
+ bent.transform(pya.Trans(0, False, 0 / dbu, self.bent_shift / dbu))
71
+ hsq = pya.Region()
72
+ y_off = 2 * self.bent_finger_length / 3 + self.bent_conn_height + self.bent_finger_y + 1
73
+ for box in self._hsq_boxes(dbu, fw, sfw, y_off, self.hsq_overlap, self.hsq_width, self.hsq_extra):
74
+ hsq.insert(box)
75
+ centre = pya.DPoint(0, y_off / 2 + h / 2)
76
+ self._insert_layers(straight, bent, hsq, [centre])
77
+ self.refpoints["junction_1"] = centre
78
+
79
+
80
+ class TrilayerSquidHSQ(TrilayerSquid):
81
+ """Two trilayer junctions forming a SQUID, first HSQ generation (legacy ``squid_creator_HSQ.create_squid``)."""
82
+
83
+ qcc_category = "junction"
84
+
85
+ bent_finger_y = Param(pdt.TypeDouble, "Bent finger offset (legacy y)", -2.0, unit="μm")
86
+ bent_shift = Param(pdt.TypeDouble, "Bent finger cell shift in y", 0.0, unit="μm")
87
+ hsq_extra = Param(pdt.TypeDouble, "HSQ box extra length", 0.1, unit="μm")
88
+ straight_pad_height = Param(pdt.TypeDouble, "Straight finger pad (lead) height", 3.0, unit="μm")
89
+ bent_conn_height = Param(pdt.TypeDouble, "Bent finger connection height", 1.0, unit="μm")
90
+
91
+ def build(self):
92
+ dbu = self.layout.dbu
93
+ fw, sfw, pad_width = self._widths(2)
94
+ w, h, xs = self.window_width, self.window_height, self.junction_spacing
95
+ sph, ch = self.straight_pad_height, self.bent_conn_height
96
+ mirror = pya.Trans(0, True, 0, 0)
97
+ sargs = (dbu, pad_width, sph, fw, self.straight_finger_length, w, h)
98
+ s1 = coerced_straight_finger(*sargs, xs, self.straight_finger_y)
99
+ s2 = coerced_straight_finger(*sargs, -xs, self.straight_finger_y)
100
+ straight = s1.transformed(mirror) & s2.transformed(mirror) # legacy intersects the two negative windows
101
+ shift = pya.Trans(0, False, 0, self.bent_shift / dbu)
102
+ args = (dbu, self.bent_pad_width, sfw, self.bent_finger_length, ch, w, h - 1)
103
+ b1 = coerced_bent_finger(*args, xs, self.bent_finger_y, False)
104
+ b2 = coerced_bent_finger(*args, -xs, self.bent_finger_y, True)
105
+ bent = b1.transformed(shift) & b2.transformed(shift)
106
+ hsq = pya.Region()
107
+ y_off = 2 * self.bent_finger_length / 3 + ch + self.bent_finger_y + 1
108
+ for box in self._hsq_boxes(dbu, fw, sfw, y_off, self.hsq_overlap, self.hsq_width, self.hsq_extra):
109
+ hsq.insert(box.transformed(pya.Trans(0, False, xs / dbu, 0)))
110
+ hsq.insert(box.transformed(pya.Trans(0, False, -xs / dbu, 0)))
111
+ centres = [pya.DPoint(xs, y_off / 2 + h / 2), pya.DPoint(-xs, y_off / 2 + h / 2)]
112
+ self._insert_layers(straight, bent, hsq, centres)
113
+ self.refpoints["junction_1"], self.refpoints["junction_2"] = centres
114
+
115
+
116
+ class SquidV0(_TrilayerBase):
117
+ """Pre-HSQ SQUID (legacy ``junction_creator_sq.create_junction_squid``; ``junction_pad.py`` with
118
+ ``bent_window_height=16``)."""
119
+
120
+ qcc_category = "junction"
121
+
122
+ finger_width = Param(pdt.TypeDouble, "Straight finger width", 0.2, unit="μm")
123
+ second_finger_width = Param(pdt.TypeDouble, "Bent finger width (junction size)", 0.26, unit="μm")
124
+ window_height = Param(pdt.TypeDouble, "Straight finger window height", 18.0, unit="μm")
125
+ bent_window_height = Param(pdt.TypeDouble, "Bent finger window height", 18.0, unit="μm")
126
+ straight_finger_length = Param(pdt.TypeDouble, "Straight finger length", 2.0, unit="μm")
127
+ straight_finger_y = Param(pdt.TypeDouble, "Straight finger offset (legacy y)", -2.0, unit="μm")
128
+ straight_pad_width = Param(pdt.TypeDouble, "Straight finger lead width", 0.5, unit="μm")
129
+ bent_finger_length = Param(pdt.TypeDouble, "Bent finger length", 2.0, unit="μm")
130
+ bent_finger_y = Param(pdt.TypeDouble, "Bent finger offset (legacy y)", -2.5, unit="μm")
131
+ bent_pad_width = Param(pdt.TypeDouble, "Bent finger lead width", 0.5, unit="μm")
132
+ bent_conn_height = Param(pdt.TypeDouble, "Bent finger connection height", 0.5, unit="μm")
133
+ bent_shift = Param(pdt.TypeDouble, "Bent finger cell shift in y", 1.0, unit="μm")
134
+ junction_spacing = Param(pdt.TypeDouble, "Distance of each junction from the axis", 8.0, unit="μm")
135
+ with_hsq = Param(pdt.TypeBoolean, "Draw HSQ sidewall boxes (none in this generation)", False, hidden=True)
136
+
137
+ def build(self):
138
+ dbu = self.layout.dbu
139
+ w, h, xs = self.window_width, self.window_height, self.junction_spacing
140
+ mirror = pya.Trans(0, True, 0, 0)
141
+ fw, sfw = self._fingers(2)
142
+ sargs = (dbu, self.straight_pad_width, 3, fw, self.straight_finger_length, w, h)
143
+ s1 = coerced_straight_finger(*sargs, xs, self.straight_finger_y)
144
+ s2 = coerced_straight_finger(*sargs, -xs, self.straight_finger_y)
145
+ straight = s1.transformed(mirror) & s2.transformed(mirror)
146
+ bh = self.bent_window_height
147
+ args = (dbu, self.bent_pad_width, sfw, self.bent_finger_length, self.bent_conn_height, w, bh)
148
+ b1 = coerced_bent_finger(*args, xs, self.bent_finger_y, False)
149
+ b2 = coerced_bent_finger(*args, -xs, self.bent_finger_y, True)
150
+ shift = pya.Trans(0, False, 0, self.bent_shift / dbu)
151
+ bent = b1.transformed(shift) & b2.transformed(shift)
152
+ self._insert_layers(straight, bent, pya.Region())
153
+
154
+
155
+ class TrilayerJunctionCompact(_TrilayerBase):
156
+ """Compact single trilayer junction for dense junction test arrays (legacy ``chip_11m_TestJJ16x_pads.py``
157
+ ``create_testPad``, cell ``JX_500``, placed many times by ``chip_11f_JJplacer.py``).
158
+
159
+ A 12 × 12 µm window (legacy ``junction_width + 1``) holding a straight finger (1.2 µm lead) and a bent finger
160
+ (1.6 µm lead), HSQ boxes 0.1 µm below / 0.2 µm above the finger, and a triangular notch (``tip_width`` wide,
161
+ from ``tip_depth`` to the window edge) cut from each finger window where its lead meets the edge. The legacy
162
+ script fails with ``secondFinger=0`` (undefined ``js``); here ``second_finger_width=0`` means "same as the
163
+ straight finger". The pads of the legacy script are commented out there; they are not drawn here either.
164
+ """
165
+
166
+ qcc_category = "junction"
167
+
168
+ finger_width = Param(pdt.TypeDouble, "Straight finger width (legacy 0.2·size)", 0.2, unit="μm")
169
+ second_finger_width = Param(pdt.TypeDouble, "Bent finger width (legacy secondFinger)", 0.6, unit="μm")
170
+ window_width = Param(pdt.TypeDouble, "Exposure window width", 12.0, unit="μm")
171
+ window_height = Param(pdt.TypeDouble, "Exposure window height", 12.0, unit="μm")
172
+ straight_finger_length = Param(pdt.TypeDouble, "Straight finger length", 3.0, unit="μm")
173
+ straight_finger_y = Param(pdt.TypeDouble, "Straight finger offset (legacy y)", -2.4, unit="μm")
174
+ straight_pad_width = Param(pdt.TypeDouble, "Straight finger lead width", 1.2, unit="μm")
175
+ straight_pad_height = Param(pdt.TypeDouble, "Straight finger pad height", 3.0, unit="μm")
176
+ bent_finger_length = Param(pdt.TypeDouble, "Bent finger length", 3.0, unit="μm")
177
+ bent_finger_y = Param(pdt.TypeDouble, "Bent finger offset (legacy y)", -3.4, unit="μm")
178
+ bent_finger_x = Param(pdt.TypeDouble, "Bent finger offset (legacy x)", 0.2, unit="μm")
179
+ bent_pad_width = Param(pdt.TypeDouble, "Bent finger lead width", 1.6, unit="μm")
180
+ bent_conn_height = Param(pdt.TypeDouble, "Bent finger connection height (coerced ≥ length / 3)", 0.5, unit="μm")
181
+ bent_shift = Param(pdt.TypeDouble, "Unused here", 0.0, unit="μm", hidden=True)
182
+ hsq_overlap = Param(pdt.TypeDouble, "HSQ overlap onto the finger", 0.045, unit="μm")
183
+ hsq_y = Param(pdt.TypeDouble, "HSQ box offset (legacy y_off)", -0.85, unit="μm")
184
+ hsq_extra = Param(pdt.TypeDouble, "HSQ box extra length below", 0.1, unit="μm")
185
+ hsq_extra_top = Param(pdt.TypeDouble, "HSQ box extra length above", 0.2, unit="μm")
186
+ tip_cut = Param(pdt.TypeBoolean, "Cut the triangular notches at the lead ends", True)
187
+ tip_width = Param(pdt.TypeDouble, "Notch width at the window edge", 5.0, unit="μm")
188
+ tip_depth = Param(pdt.TypeDouble, "Notch apex distance from the centre (legacy finger_origin)", 4.5, unit="μm")
189
+
190
+ def build(self):
191
+ dbu = self.layout.dbu
192
+ fw, sfw = self._fingers(1)
193
+ w, h = self.window_width, self.window_height
194
+ straight = coerced_straight_finger(
195
+ dbu,
196
+ self.straight_pad_width,
197
+ self.straight_pad_height,
198
+ fw,
199
+ self.straight_finger_length,
200
+ w,
201
+ h,
202
+ 0,
203
+ self.straight_finger_y,
204
+ )
205
+ straight.transform(pya.Trans(0, True, 0, 0)) # legacy inserts the straight finger mirrored
206
+ bent = coerced_bent_finger(
207
+ dbu,
208
+ self.bent_pad_width,
209
+ sfw,
210
+ self.bent_finger_length,
211
+ self.bent_conn_height,
212
+ w,
213
+ h,
214
+ self.bent_finger_x,
215
+ self.bent_finger_y,
216
+ False,
217
+ )
218
+ if self.tip_cut:
219
+ top = pya.Polygon(
220
+ [
221
+ pya.Point(-self.tip_width / dbu / 2, (h / 2) / dbu),
222
+ pya.Point(self.tip_width / dbu / 2, (h / 2) / dbu),
223
+ pya.Point(0 / dbu, self.tip_depth / dbu),
224
+ ]
225
+ )
226
+ straight -= pya.Region(top)
227
+ bent -= pya.Region(top.transformed(pya.Trans(0, True, 0, 0)))
228
+ lx = -fw / 2 - self.hsq_width + self.hsq_overlap
229
+ rx = fw / 2 - self.hsq_overlap
230
+ y0 = (-sfw + self.hsq_y - self.hsq_extra) / dbu / 2
231
+ y1 = (sfw + self.hsq_y + self.hsq_extra_top) / dbu / 2
232
+ hsq = pya.Region()
233
+ hsq.insert(pya.Box(lx / dbu, y0, (lx + self.hsq_width) / dbu, y1))
234
+ hsq.insert(pya.Box(rx / dbu, y0, (rx + self.hsq_width) / dbu, y1))
235
+ centre = pya.DPoint(0, self.hsq_y / 2 + h / 2)
236
+ self._insert_layers(straight, bent, hsq, [centre])
237
+ self.refpoints["junction_1"] = centre
@@ -0,0 +1,48 @@
1
+ """KQC ``"Sim"`` junction across a plain etched gap (the simulation stand-in of a drawn junction).
2
+
3
+ Simulation builds set ``junction_type = "Sim"``: KQC's :class:`~kqcircuits.junctions.sim.Sim` draws two 8 µm wide
4
+ metal pads, the lower one ``junction_lower_pad_length`` up from its origin and the upper one
5
+ ``junction_upper_pad_length`` down from ``junction_total_length``; the junction port is the gap between them
6
+ (``port_squid_b`` = top of the lower pad, ``port_squid_a`` = bottom of the upper pad).
7
+
8
+ A qubit whose junction bridges a gap between two metal edges (Flipmon disc ↔ ring, TransmonTaperedInsets taper tips)
9
+ used to place it with ``junction_total_length = gap`` and KQC's default 12 + 13 µm pads. Two failures followed:
10
+
11
+ * a gap below 25 µm (both cells' defaults: 20 µm) makes the pads overlap — the islands are one conductor, the port
12
+ points lie inside metal (KQC: ``Unable to create polygon for port``) and the C-matrix loses an island;
13
+ * the pads end exactly on the island edges: on a curved edge (the Flipmon disc) the pad touches the island at a single
14
+ polygon vertex. KQC counts that as connected (``Region.interacting``), Q3D does not: ``AutoIdentifyNets`` splits
15
+ the net and Q3D stops with ``Object '…signal_1_2' in Net 'Net1' and object '…signal_1_3' … are touching``.
16
+
17
+ :func:`sim_junction_in_gap` gives the pads :data:`SIM_PAD_OVERLAP_UM` of overlap into the metal on both sides
18
+ (merged with the island, so a straight edge looks the same as before) and keeps KQC's 12 / 13 µm in the gap while
19
+ that leaves at least KQC's own 8 µm port; a narrower gap gets a ``min(8, gap / 2)`` µm port in the middle. Only the
20
+ ``"Sim"`` junction changes: fab junctions (and so every chip build) are untouched.
21
+ """
22
+
23
+ from __future__ import annotations
24
+
25
+ SIM_PAD_OVERLAP_UM = 2.0 # how far the Sim pads reach into the metal on each side of the gap
26
+ SIM_PORT_UM = 8.0 # KQC's default Sim port length (33 − 13 − 12 µm)
27
+ KQC_LOWER_PAD_UM, KQC_UPPER_PAD_UM = 12.0, 13.0 # KQC Sim defaults
28
+
29
+
30
+ def sim_junction_in_gap(gap: float, overlap: float = SIM_PAD_OVERLAP_UM) -> tuple[float, dict]:
31
+ """``(shift, params)`` of a KQC ``Sim`` junction across a ``gap`` µm wide etched gap.
32
+
33
+ ``params`` go to ``produce_squid``; place the junction ``shift`` µm back into the metal on the origin side, i.e.
34
+ ``trans * pya.DCplxTrans(1, 0, False, 0, -shift)`` where ``trans`` puts the origin on that gap edge with +y across
35
+ the gap. ``include_background_gap`` is off: the cell has already etched the gap (KQC's 18 µm background box would
36
+ notch both islands where the pads now enter them)."""
37
+ gap = float(gap)
38
+ if gap - KQC_LOWER_PAD_UM - KQC_UPPER_PAD_UM >= SIM_PORT_UM:
39
+ lower, upper = KQC_LOWER_PAD_UM, KQC_UPPER_PAD_UM
40
+ else:
41
+ port = min(SIM_PORT_UM, gap / 2)
42
+ lower = upper = (gap - port) / 2
43
+ return overlap, {
44
+ "junction_total_length": gap + 2 * overlap,
45
+ "junction_lower_pad_length": lower + overlap,
46
+ "junction_upper_pad_length": upper + overlap,
47
+ "include_background_gap": False,
48
+ }