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.
- quantcore_circuits/__init__.py +57 -0
- quantcore_circuits/analysis/__init__.py +12 -0
- quantcore_circuits/analysis/_metal.py +70 -0
- quantcore_circuits/analysis/amplifiers.py +263 -0
- quantcore_circuits/analysis/circuits.py +117 -0
- quantcore_circuits/analysis/epr.py +231 -0
- quantcore_circuits/analysis/epr_lumped.py +372 -0
- quantcore_circuits/analysis/extract.py +119 -0
- quantcore_circuits/analysis/lom.py +80 -0
- quantcore_circuits/analysis/results.py +549 -0
- quantcore_circuits/analysis/store.py +81 -0
- quantcore_circuits/analysis/synthesis.py +118 -0
- quantcore_circuits/analysis/transmon.py +126 -0
- quantcore_circuits/assembly/__init__.py +17 -0
- quantcore_circuits/assembly/builder.py +127 -0
- quantcore_circuits/assembly/drc.py +683 -0
- quantcore_circuits/assembly/last_good.py +137 -0
- quantcore_circuits/assembly/netlist.py +174 -0
- quantcore_circuits/assembly/plan.py +605 -0
- quantcore_circuits/assembly/sidecar.py +270 -0
- quantcore_circuits/autotrack.py +605 -0
- quantcore_circuits/cards.py +878 -0
- quantcore_circuits/circuit/__init__.py +14 -0
- quantcore_circuits/circuit/adapters.py +305 -0
- quantcore_circuits/circuit/bridges.py +353 -0
- quantcore_circuits/circuit/consensus.py +158 -0
- quantcore_circuits/circuit/derive.py +28 -0
- quantcore_circuits/circuit/draw.py +198 -0
- quantcore_circuits/circuit/fill.py +828 -0
- quantcore_circuits/circuit/hamiltonian.py +193 -0
- quantcore_circuits/circuit/kinetic.py +102 -0
- quantcore_circuits/circuit/schema.py +139 -0
- quantcore_circuits/cli.py +1085 -0
- quantcore_circuits/codesign.py +1038 -0
- quantcore_circuits/data/selftest_q1_r1.json +44 -0
- quantcore_circuits/design/__init__.py +44 -0
- quantcore_circuits/design/io.py +98 -0
- quantcore_circuits/design/pyscript.py +395 -0
- quantcore_circuits/design/schema.py +398 -0
- quantcore_circuits/designer.py +625 -0
- quantcore_circuits/guiflow.py +991 -0
- quantcore_circuits/kqc_files.py +208 -0
- quantcore_circuits/layouts/__init__.py +118 -0
- quantcore_circuits/layouts/catalog.py +520 -0
- quantcore_circuits/layouts/chips/__init__.py +0 -0
- quantcore_circuits/layouts/chips/design_chip.py +325 -0
- quantcore_circuits/layouts/chips/frame.py +235 -0
- quantcore_circuits/layouts/junctions/__init__.py +0 -0
- quantcore_circuits/layouts/junctions/jj_fingers.py +99 -0
- quantcore_circuits/layouts/junctions/legacy_junctions.py +237 -0
- quantcore_circuits/layouts/junctions/sim_gap.py +48 -0
- quantcore_circuits/layouts/junctions/trilayer.py +541 -0
- quantcore_circuits/layouts/metal/__init__.py +105 -0
- quantcore_circuits/layouts/metal/component.py +332 -0
- quantcore_circuits/layouts/metal/geometry.py +462 -0
- quantcore_circuits/layouts/others/__init__.py +0 -0
- quantcore_circuits/layouts/others/amplifiers.py +1139 -0
- quantcore_circuits/layouts/others/bond_pad.py +119 -0
- quantcore_circuits/layouts/others/connector_pads.py +190 -0
- quantcore_circuits/layouts/others/couplers.py +21 -0
- quantcore_circuits/layouts/others/cpw_segment.py +131 -0
- quantcore_circuits/layouts/others/cpwe.py +661 -0
- quantcore_circuits/layouts/others/keepout.py +66 -0
- quantcore_circuits/layouts/others/legacy_resonators.py +645 -0
- quantcore_circuits/layouts/others/markers.py +201 -0
- quantcore_circuits/layouts/others/qpdk_cells.py +263 -0
- quantcore_circuits/layouts/others/shapes.py +114 -0
- quantcore_circuits/layouts/others/spirals.py +140 -0
- quantcore_circuits/layouts/others/sqdmetal_cells.py +90 -0
- quantcore_circuits/layouts/others/test_pads.py +461 -0
- quantcore_circuits/layouts/ports.py +119 -0
- quantcore_circuits/layouts/qubits/__init__.py +0 -0
- quantcore_circuits/layouts/qubits/legacy_transmon.py +124 -0
- quantcore_circuits/layouts/qubits/qpdk_cells.py +374 -0
- quantcore_circuits/layouts/qubits/sqdmetal_cells.py +376 -0
- quantcore_circuits/layouts/qubits/trilayer_concentric.py +65 -0
- quantcore_circuits/layouts/qubits/xmon.py +375 -0
- quantcore_circuits/layouts/registry.py +418 -0
- quantcore_circuits/layouts/wafers/__init__.py +0 -0
- quantcore_circuits/layouts/wafers/fab_export.py +454 -0
- quantcore_circuits/layouts/wafers/legacy_wafer.py +111 -0
- quantcore_circuits/layouts/wafers/wafer.py +469 -0
- quantcore_circuits/live/__init__.py +6 -0
- quantcore_circuits/live/klayout.py +225 -0
- quantcore_circuits/live/klive.py +61 -0
- quantcore_circuits/live/snapshot.py +185 -0
- quantcore_circuits/live/watch.py +93 -0
- quantcore_circuits/lom/__init__.py +15 -0
- quantcore_circuits/lom/builder.py +932 -0
- quantcore_circuits/lom/calibration.py +82 -0
- quantcore_circuits/lom/estimates.py +235 -0
- quantcore_circuits/lom/fragment.py +421 -0
- quantcore_circuits/lom/kqc_models.py +734 -0
- quantcore_circuits/lom/metal_models.py +917 -0
- quantcore_circuits/lom/quantcore_models.py +784 -0
- quantcore_circuits/lom/simulate.py +636 -0
- quantcore_circuits/lom/synthesize.py +189 -0
- quantcore_circuits/loop.py +610 -0
- quantcore_circuits/optimise.py +423 -0
- quantcore_circuits/pdk/__init__.py +451 -0
- quantcore_circuits/plots.py +876 -0
- quantcore_circuits/plugins.py +69 -0
- quantcore_circuits/review/__init__.py +57 -0
- quantcore_circuits/review/server.py +251 -0
- quantcore_circuits/review/static/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- quantcore_circuits/review/static/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- quantcore_circuits/review/static/assets/index-CDHdrFyA.css +1 -0
- quantcore_circuits/review/static/assets/index-CSx05Og4.js +409 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-400-normal-HOLc17fK.woff +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-500-normal-BasfLYem.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-500-normal-CxZf_p3X.woff +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-600-normal-4D_pXhcN.woff +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-600-normal-CWCymEST.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-700-normal-CjBOestx.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-700-normal-DrXBdSj3.woff +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-ext-500-normal-B0yAr1jD.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-ext-500-normal-BmqWE9Dz.woff +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-ext-600-normal-Bcila6Z-.woff +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-ext-600-normal-Dfes3d0z.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-ext-700-normal-BjwYoWNd.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-cyrillic-ext-700-normal-LO58E6JB.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-greek-400-normal-q2sYcFCs.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-500-normal-BIZE56-Y.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-greek-500-normal-Xzm54t5V.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-600-normal-BZpKdvQh.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-600-normal-plRanbMR.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-greek-700-normal-BUv2fZ6O.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-700-normal-C3JjAnD8.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-greek-ext-400-normal-KugGGMne.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-ext-500-normal-2j5mBUwD.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-ext-500-normal-C4iEst2y.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-greek-ext-600-normal-B8X0CLgF.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-ext-600-normal-DRtmH8MT.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-greek-ext-700-normal-BoQ6DsYi.woff +0 -0
- quantcore_circuits/review/static/assets/inter-greek-ext-700-normal-qfdV9bQt.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
- quantcore_circuits/review/static/assets/inter-latin-500-normal-BL9OpVg8.woff +0 -0
- quantcore_circuits/review/static/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-600-normal-CiBQ2DWP.woff +0 -0
- quantcore_circuits/review/static/assets/inter-latin-600-normal-LgqL8muc.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-700-normal-BLAVimhd.woff +0 -0
- quantcore_circuits/review/static/assets/inter-latin-700-normal-Yt3aPRUw.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-ext-400-normal-77YHD8bZ.woff +0 -0
- quantcore_circuits/review/static/assets/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-ext-500-normal-BxGbmqWO.woff +0 -0
- quantcore_circuits/review/static/assets/inter-latin-ext-500-normal-CV4jyFjo.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-ext-600-normal-CIVaiw4L.woff +0 -0
- quantcore_circuits/review/static/assets/inter-latin-ext-600-normal-D2bJ5OIk.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-ext-700-normal-Ca8adRJv.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-latin-ext-700-normal-TidjK2hL.woff +0 -0
- quantcore_circuits/review/static/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff +0 -0
- quantcore_circuits/review/static/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-vietnamese-500-normal-DOriooB6.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-vietnamese-500-normal-mJboJaSs.woff +0 -0
- quantcore_circuits/review/static/assets/inter-vietnamese-600-normal-BuLX-rYi.woff +0 -0
- quantcore_circuits/review/static/assets/inter-vietnamese-600-normal-Cc8MFFhd.woff2 +0 -0
- quantcore_circuits/review/static/assets/inter-vietnamese-700-normal-BZaoP0fm.woff +0 -0
- quantcore_circuits/review/static/assets/inter-vietnamese-700-normal-DlLaEgI2.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-cyrillic-500-normal-DJqRU3vO.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-cyrillic-500-normal-DmUKJPL_.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-greek-500-normal-D7SFKleX.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-greek-500-normal-JpySY46c.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-latin-ext-500-normal-ckzbgY84.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
- quantcore_circuits/review/static/assets/jetbrains-mono-vietnamese-500-normal-DNRqzVM1.woff +0 -0
- quantcore_circuits/review/static/index.html +14 -0
- quantcore_circuits/review/static/logo-quantcore-black.png +0 -0
- quantcore_circuits/review/static/logo-quantcore-white.png +0 -0
- quantcore_circuits/review/static/sample/chip.png +0 -0
- quantcore_circuits/review/static/sample/chip_rev1.png +0 -0
- quantcore_circuits/review/static/sample/q1.png +0 -0
- quantcore_circuits/review/static/sample/q2.png +0 -0
- quantcore_circuits/review/static/sample-state.json +3747 -0
- quantcore_circuits/route/__init__.py +5 -0
- quantcore_circuits/route/router.py +694 -0
- quantcore_circuits/route/waveguide.py +187 -0
- quantcore_circuits/selftest.py +224 -0
- quantcore_circuits/sim_tools/__init__.py +6 -0
- quantcore_circuits/sim_tools/aedt_attach.py +66 -0
- quantcore_circuits/sim_tools/aedt_progress.py +224 -0
- quantcore_circuits/sim_tools/aedt_project.py +302 -0
- quantcore_circuits/sim_tools/aedt_scripts.py +397 -0
- quantcore_circuits/sim_tools/aedt_session.py +275 -0
- quantcore_circuits/sim_tools/ansys.py +90 -0
- quantcore_circuits/sim_tools/builder.py +1690 -0
- quantcore_circuits/sim_tools/export.py +470 -0
- quantcore_circuits/sim_tools/geometry_check.py +342 -0
- quantcore_circuits/sim_tools/hfss.py +583 -0
- quantcore_circuits/sim_tools/palace.py +197 -0
- quantcore_circuits/sim_tools/runner.py +179 -0
- quantcore_circuits/sim_tools/subset.py +364 -0
- quantcore_circuits/track.py +671 -0
- quantcore_circuits-0.0.1.dist-info/METADATA +204 -0
- quantcore_circuits-0.0.1.dist-info/RECORD +272 -0
- quantcore_circuits-0.0.1.dist-info/WHEEL +5 -0
- quantcore_circuits-0.0.1.dist-info/entry_points.txt +2 -0
- quantcore_circuits-0.0.1.dist-info/licenses/LICENSE +674 -0
- quantcore_circuits-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"""Spiral lines ported from the QWri drawing library ``components/python/draw.py::spiral`` (kinetic-inductance /
|
|
2
|
+
TWPA spiral inductors; request #7).
|
|
3
|
+
|
|
4
|
+
The legacy function draws a ``pya.Path`` of width ``w`` through ``npoints`` points of a spiral given by angle,
|
|
5
|
+
``φ = linspace(start_ang, end_ang, npoints)``:
|
|
6
|
+
|
|
7
|
+
* ``archimedean`` (legacy type 0): r = spiral_r · φ;
|
|
8
|
+
* ``fermat`` (type 1): r = √(spiral_r² · φ) = spiral_r · √φ;
|
|
9
|
+
* ``double_fermat`` (type 2, "double Fermat in/out"): the Fermat arm and its point reflection (−x, −y) joined at the
|
|
10
|
+
centre, so both ends lie outside — a two-terminal spiral inductor. The legacy code has a typo here (it computes
|
|
11
|
+
``y_bls`` and then uses an undefined ``y1s``, so type 2 raises ``NameError``); the port implements the evident
|
|
12
|
+
intent (``y1s = r sin φ``), which the golden test checks against the legacy function with that one name fixed.
|
|
13
|
+
|
|
14
|
+
Coordinates are the legacy ones (same numpy and pya calls, so the geometry XORs clean), with ``spiral_r`` and
|
|
15
|
+
``width`` in µm (legacy: database units) and the angles in radians. The path is metal on ``base_metal_addition``
|
|
16
|
+
(``metal``, default) — place it on a pocket (e.g. ``metal:Rectangle`` with ``subtract: true``, or ``pocket_margin``)
|
|
17
|
+
— or etched on ``base_metal_gap_wo_grid`` (``metal=False``, where the legacy chips draw 1/0).
|
|
18
|
+
|
|
19
|
+
Ports ``a`` (path start) and ``b`` (path end), facing outward along the path tangent (not Manhattan in general),
|
|
20
|
+
a = ``width``, b = the element ``b``. ``pocket_margin`` > 0 etches a square pocket that far beyond the spiral's
|
|
21
|
+
bounding box; the ports stay at the path ends inside it. LOM: one conductor ``a`` → ``b``, a line of the drawn
|
|
22
|
+
centre-line length (:meth:`SpiralLine.qcc_length`) with the mean turn spacing as its gap
|
|
23
|
+
(:meth:`SpiralLine.qcc_turn_gap`; :mod:`quantcore_circuits.lom.quantcore_models`).
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
from __future__ import annotations
|
|
27
|
+
|
|
28
|
+
import math
|
|
29
|
+
|
|
30
|
+
import numpy as np
|
|
31
|
+
from kqcircuits.elements.element import Element
|
|
32
|
+
from kqcircuits.pya_resolver import pya
|
|
33
|
+
from kqcircuits.util.parameters import Param, pdt
|
|
34
|
+
|
|
35
|
+
SPIRAL_TYPES = {"archimedean": 0, "fermat": 1, "double_fermat": 2}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def draw_spiral_points(dbu, start_angle, end_angle, spiral_r, spiral_type, npoints) -> list:
|
|
39
|
+
"""Legacy ``draw.spiral`` centre line (``spiral_r`` in µm, angles in rad), points in dbu (``pya.Point``)."""
|
|
40
|
+
kind = SPIRAL_TYPES.get(spiral_type, spiral_type)
|
|
41
|
+
spiral_r = spiral_r / dbu
|
|
42
|
+
phi = np.linspace(start_angle, end_angle, int(npoints))
|
|
43
|
+
if kind == 0:
|
|
44
|
+
r = spiral_r * phi
|
|
45
|
+
xs = r * np.cos(phi)
|
|
46
|
+
ys = r * np.sin(phi)
|
|
47
|
+
elif kind == 1:
|
|
48
|
+
r = np.sqrt((spiral_r**2) * phi)
|
|
49
|
+
xs = r * np.cos(phi)
|
|
50
|
+
ys = r * np.sin(phi)
|
|
51
|
+
else:
|
|
52
|
+
r = np.sqrt((spiral_r**2) * phi)
|
|
53
|
+
x1s = r * np.cos(phi)
|
|
54
|
+
y1s = r * np.sin(phi)
|
|
55
|
+
x2s = -r * np.cos(phi)
|
|
56
|
+
y2s = -r * np.sin(phi)
|
|
57
|
+
xs = x2s[::-1].tolist() + x1s.tolist()
|
|
58
|
+
ys = y2s[::-1].tolist() + y1s.tolist()
|
|
59
|
+
return [pya.Point(xs[i], ys[i]) for i in range(len(xs))]
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def _end(pts, at_start: bool, dbu: float) -> tuple[pya.DPoint, pya.DVector]:
|
|
63
|
+
seq = pts if at_start else pts[::-1]
|
|
64
|
+
end = seq[0]
|
|
65
|
+
for p in seq[1:]:
|
|
66
|
+
if p != end:
|
|
67
|
+
v = pya.DVector((end.x - p.x) * dbu, (end.y - p.y) * dbu)
|
|
68
|
+
return pya.DPoint(end.x * dbu, end.y * dbu), v / v.length()
|
|
69
|
+
return pya.DPoint(end.x * dbu, end.y * dbu), pya.DVector(1, 0)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class SpiralLine(Element):
|
|
73
|
+
"""Spiral line by angle (legacy ``draw.spiral``): Archimedean, Fermat or double Fermat; ports ``a`` / ``b``."""
|
|
74
|
+
|
|
75
|
+
spiral_type = Param(pdt.TypeString, "Spiral", "double_fermat", choices=list(SPIRAL_TYPES))
|
|
76
|
+
spiral_r = Param(
|
|
77
|
+
pdt.TypeDouble, "Spiral scale (Archimedean: r = spiral_r·φ; Fermat: r = spiral_r·√φ)", 10, unit="μm"
|
|
78
|
+
)
|
|
79
|
+
start_angle = Param(pdt.TypeDouble, "Start angle", 0.0, unit="rad")
|
|
80
|
+
end_angle = Param(pdt.TypeDouble, "End angle (6 turns = 12π)", 12 * math.pi, unit="rad")
|
|
81
|
+
points = Param(pdt.TypeInt, "Points (legacy npoints; per arm for the double Fermat)", 1000)
|
|
82
|
+
width = Param(pdt.TypeDouble, "Line width (legacy w)", 2, unit="μm")
|
|
83
|
+
metal = Param(pdt.TypeBoolean, "Metal line (base_metal_addition); False: etched (legacy 1/0)", True)
|
|
84
|
+
pocket_margin = Param(pdt.TypeDouble, "Own square pocket beyond the spiral (0 = none)", 0, unit="μm")
|
|
85
|
+
|
|
86
|
+
qcc_category = "resonator"
|
|
87
|
+
|
|
88
|
+
@classmethod
|
|
89
|
+
def qcc_points(cls, params: dict, dbu: float = 0.001) -> list:
|
|
90
|
+
p = {k: v.default for k, v in cls.get_schema().items()} | dict(params or {})
|
|
91
|
+
return draw_spiral_points(
|
|
92
|
+
dbu, float(p["start_angle"]), float(p["end_angle"]), float(p["spiral_r"]), p["spiral_type"], p["points"]
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
@classmethod
|
|
96
|
+
def qcc_length(cls, params: dict) -> float:
|
|
97
|
+
"""Drawn centre-line length (µm)."""
|
|
98
|
+
pts = cls.qcc_points(params)
|
|
99
|
+
return sum(pts[i].distance(pts[i + 1]) for i in range(len(pts) - 1)) * 0.001
|
|
100
|
+
|
|
101
|
+
@classmethod
|
|
102
|
+
def qcc_turn_gap(cls, params: dict) -> float:
|
|
103
|
+
"""Mean spacing between neighbouring turns (µm): radial span / turns − width (double Fermat: the two arms
|
|
104
|
+
interleave, half that pitch)."""
|
|
105
|
+
p = {k: v.default for k, v in cls.get_schema().items()} | dict(params or {})
|
|
106
|
+
pts = cls.qcc_points(p)
|
|
107
|
+
radii = [math.hypot(q.x, q.y) * 0.001 for q in pts]
|
|
108
|
+
turns = abs(float(p["end_angle"]) - float(p["start_angle"])) / (2 * math.pi)
|
|
109
|
+
pitch = (max(radii) - min(radii)) / max(turns, 1e-9)
|
|
110
|
+
if SPIRAL_TYPES.get(p["spiral_type"], p["spiral_type"]) == 2:
|
|
111
|
+
pitch /= 2
|
|
112
|
+
return max(pitch - float(p["width"]), 0.1)
|
|
113
|
+
|
|
114
|
+
@classmethod
|
|
115
|
+
def qcc_port_widths(cls, params: dict) -> dict:
|
|
116
|
+
"""Ports: a = the line ``width``, b = the element ``b`` (a route continues as a CPW of that gap)."""
|
|
117
|
+
w, b = float(params.get("width", 2)), float(params.get("b", 6))
|
|
118
|
+
return {"a": (w, b), "b": (w, b)}
|
|
119
|
+
|
|
120
|
+
def build(self):
|
|
121
|
+
if self.spiral_type not in SPIRAL_TYPES:
|
|
122
|
+
self.raise_error_on_cell(f"spiral_type must be one of {list(SPIRAL_TYPES)}")
|
|
123
|
+
dbu = self.layout.dbu
|
|
124
|
+
pts = draw_spiral_points(dbu, self.start_angle, self.end_angle, self.spiral_r, self.spiral_type, self.points)
|
|
125
|
+
if len(pts) < 2:
|
|
126
|
+
self.raise_error_on_cell("a spiral needs at least two points")
|
|
127
|
+
path = pya.Region(pya.Path(pts, self.width / dbu))
|
|
128
|
+
if self.metal:
|
|
129
|
+
self.cell.shapes(self.get_layer("base_metal_addition")).insert(path)
|
|
130
|
+
if self.pocket_margin > 0:
|
|
131
|
+
m = round(self.pocket_margin / dbu)
|
|
132
|
+
pocket = pya.Region(path.bbox().enlarged(m, m)) - path
|
|
133
|
+
self.cell.shapes(self.get_layer("base_metal_gap_wo_grid")).insert(pocket)
|
|
134
|
+
else:
|
|
135
|
+
self.cell.shapes(self.get_layer("base_metal_gap_wo_grid")).insert(path)
|
|
136
|
+
self.add_protection(pya.Region(path.bbox()).sized(round((self.margin + self.pocket_margin) / dbu)))
|
|
137
|
+
for name, at_start in (("a", True), ("b", False)):
|
|
138
|
+
pos, d = _end(pts, at_start, dbu)
|
|
139
|
+
self.add_port(name, pos, d)
|
|
140
|
+
self.refpoints["center"] = pya.DPoint(0, 0)
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"""Cells re-implemented from sqdlab/SQDMetal (Apache-2.0, © Prasanna Pakkiam and the SQDMetal authors): the
|
|
2
|
+
geometry is re-drawn here as KQC Elements in µm with pya (SQDMetal was read, never imported or run).
|
|
3
|
+
|
|
4
|
+
* :class:`SmoothCapacitorSemicircle` — ``SQDMetal/Comps/Capacitors.py::Smooth_Capacitor_Semicircle`` (the
|
|
5
|
+
2_transmons_wRes_comp notebook imports it from the older ``Comps/Test_capacitor.py``): a rectangular pad with a
|
|
6
|
+
semicircular bite that wraps a qubit pad end, placed on a qubit pin.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
from kqcircuits.elements.element import Element
|
|
12
|
+
from kqcircuits.pya_resolver import pya
|
|
13
|
+
from kqcircuits.util.parameters import Param, pdt
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class SmoothCapacitorSemicircle(Element):
|
|
17
|
+
"""Coupling pad with a semicircular bite, placed on a qubit pin (SQDMetal ``Smooth_Capacitor_Semicircle``).
|
|
18
|
+
|
|
19
|
+
Re-implemented from sqdlab/SQDMetal ``SQDMetal/Comps/Capacitors.py`` (Apache-2.0), same option names in µm.
|
|
20
|
+
Frame: the origin is the target pin (SQDMetal ``pin_inputs.start_pin``) and port ``target`` there faces −x —
|
|
21
|
+
snap it to the qubit pin (``snap="target", to="Q1.top_right_pin"``) to get SQDMetal's placement: the cell is
|
|
22
|
+
turned by the pin normal, and ``orientation`` turns the drawing about the pin on top of that (SQDMetal applies
|
|
23
|
+
both). Unrotated, the ``rect_length`` × ``rect_width`` pad lies along +x with its back edge at
|
|
24
|
+
``100 − rect_length − circle_offset`` µm and a circle of ``semi_radius`` cut out at x = 100 (SQDMetal shifts the
|
|
25
|
+
drawing so the bite's centre is 100 µm from the pin); the pad and the ``gap_back`` / ``gap_side`` /
|
|
26
|
+
``gap_front`` clearance box are filleted with ``fillet_radius``. The pad is metal on ``base_metal_addition``
|
|
27
|
+
(it sits inside a qubit's pocket), the clearance box minus the pad is etched.
|
|
28
|
+
|
|
29
|
+
SQDMetal's pin ``a`` sits inside the pad (x = ``gap_front`` + the shift) with its normal towards the bite; its
|
|
30
|
+
``ResonatorMeanderPinPin`` leaves the pad from the back. Here port ``a`` is on the pad's back edge facing away
|
|
31
|
+
from the bite, ``lead_length`` further with a ``trace_width`` CPW lead (metal + ``b`` gaps), so a route starts
|
|
32
|
+
on the pad; set ``lead_length`` to reach the pocket edge when the pad sits in a pocket.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
rect_width = Param(pdt.TypeDouble, "Pad width (across)", 190, unit="μm")
|
|
36
|
+
rect_length = Param(pdt.TypeDouble, "Pad length (towards the bite)", 170, unit="μm")
|
|
37
|
+
semi_radius = Param(pdt.TypeDouble, "Semicircle radius", 61, unit="μm")
|
|
38
|
+
circle_offset = Param(pdt.TypeDouble, "Semicircle centre beyond the pad front", -10, unit="μm")
|
|
39
|
+
gap_side = Param(pdt.TypeDouble, "Clearance at the sides", 25, unit="μm")
|
|
40
|
+
gap_front = Param(pdt.TypeDouble, "Clearance towards the bite", 25, unit="μm")
|
|
41
|
+
gap_back = Param(pdt.TypeDouble, "Clearance behind the pad", 25, unit="μm")
|
|
42
|
+
trace_width = Param(pdt.TypeDouble, "Width of the trace at port a", 10, unit="μm")
|
|
43
|
+
orientation = Param(pdt.TypeDouble, "Rotation of the drawing about the target pin", 0, unit="°")
|
|
44
|
+
fillet_radius = Param(pdt.TypeDouble, "Corner fillet radius (0 = sharp)", 10, unit="μm")
|
|
45
|
+
fillet_resolution = Param(pdt.TypeInt, "Fillet points per quarter circle", 16)
|
|
46
|
+
lead_length = Param(pdt.TypeDouble, "CPW lead from the pad's back edge to port a", 0, unit="μm")
|
|
47
|
+
|
|
48
|
+
qcc_category = "capacitor"
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def qcc_port_widths(cls, params: dict) -> dict:
|
|
52
|
+
"""Port ``a``: the lead (``trace_width``, element ``b``); ``target``: a placement reference, not a CPW."""
|
|
53
|
+
tw, b = float(params.get("trace_width", 10)), float(params.get("b", 6))
|
|
54
|
+
return {"a": (tw, b), "target": (tw, b)}
|
|
55
|
+
|
|
56
|
+
def build(self):
|
|
57
|
+
dbu = self.layout.dbu
|
|
58
|
+
length, width, r = self.rect_length, self.rect_width, self.semi_radius
|
|
59
|
+
if min(length, width) <= 0 or r < 0:
|
|
60
|
+
self.raise_error_on_cell("SmoothCapacitorSemicircle: rect_length/rect_width must be positive")
|
|
61
|
+
shift = 100.0 - (length + self.circle_offset) # SQDMetal: translate by -(rect_length + circle_offset - 0.1 mm)
|
|
62
|
+
n = 4 * max(int(self.fillet_resolution), 1)
|
|
63
|
+
pad = pya.DPolygon(pya.DBox(0, -width / 2, length, width / 2))
|
|
64
|
+
gap = pya.DPolygon(
|
|
65
|
+
pya.DBox(-self.gap_back, -width / 2 - self.gap_side, length + self.gap_front, width / 2 + self.gap_side)
|
|
66
|
+
)
|
|
67
|
+
circle = pya.DPolygon.ellipse(
|
|
68
|
+
pya.DBox(length + self.circle_offset - r, -r, length + self.circle_offset + r, r), 128
|
|
69
|
+
)
|
|
70
|
+
pad_region = pya.Region(pad.to_itype(dbu)) - pya.Region(circle.to_itype(dbu))
|
|
71
|
+
gap_region = pya.Region(gap.to_itype(dbu))
|
|
72
|
+
if self.fillet_radius > 0:
|
|
73
|
+
fr = self.fillet_radius / dbu
|
|
74
|
+
pad_region = pad_region.rounded_corners(fr, fr, n)
|
|
75
|
+
gap_region = gap_region.rounded_corners(fr, fr, n)
|
|
76
|
+
tw, b = self.trace_width, self.b
|
|
77
|
+
lead_metal = pya.Region(pya.DBox(-self.lead_length, -tw / 2, 0, tw / 2).to_itype(dbu))
|
|
78
|
+
lead_gaps = pya.Region(pya.DBox(-self.lead_length, -tw / 2 - b, 0, tw / 2 + b).to_itype(dbu)) - lead_metal
|
|
79
|
+
to_cell = pya.DCplxTrans(1, self.orientation, False, 0, 0) * pya.DCplxTrans(shift, 0)
|
|
80
|
+
itrans = to_cell.to_itrans(dbu)
|
|
81
|
+
metal = (pad_region + (lead_metal if self.lead_length > 0 else pya.Region())).transformed(itrans).merged()
|
|
82
|
+
gaps = (gap_region + (lead_gaps if self.lead_length > 0 else pya.Region())).transformed(itrans) - metal
|
|
83
|
+
self.cell.shapes(self.get_layer("base_metal_addition")).insert(metal)
|
|
84
|
+
self.cell.shapes(self.get_layer("base_metal_gap_wo_grid")).insert(gaps.merged())
|
|
85
|
+
self.add_protection((pya.Region(gaps.bbox()) + pya.Region(metal.bbox())).sized(self.margin / dbu))
|
|
86
|
+
rot = pya.DCplxTrans(1, self.orientation, False, 0, 0)
|
|
87
|
+
self.add_port("a", to_cell * pya.DPoint(-self.lead_length, 0), rot * pya.DVector(-1, 0))
|
|
88
|
+
self.add_port("target", pya.DPoint(0, 0), pya.DVector(-1, 0))
|
|
89
|
+
self.refpoints["semicircle_center"] = to_cell * pya.DPoint(length + self.circle_offset, 0)
|
|
90
|
+
self.refpoints["pad_center"] = to_cell * pya.DPoint(length / 2, 0)
|