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,332 @@
|
|
|
1
|
+
"""``MetalComponent``: any Quantum Metal ``qlibrary`` QComponent as a KQC element with ports.
|
|
2
|
+
|
|
3
|
+
The PCell has two parameters of its own: ``metal_class`` (qlibrary class name, e.g. ``TransmonPocket``, or a dotted
|
|
4
|
+
path to a user QComponent) and ``options`` (the Metal options as JSON). Building it instantiates the component in a
|
|
5
|
+
shared headless Metal design (see :mod:`.geometry`, cached per class + options) and renders, in µm:
|
|
6
|
+
|
|
7
|
+
* ``base_metal_gap_wo_grid`` = union(subtract shapes) − union(metal shapes); paths are buffered by width / 2 with
|
|
8
|
+
flat ends, path and polygon fillets are honoured; plus ``ground_grid_avoidance`` (the drawn shapes grown by
|
|
9
|
+
``margin``), as other KQC elements do;
|
|
10
|
+
* metal outside the component's own pockets → ``base_metal_addition`` (metal wins over other gaps, as in Metal);
|
|
11
|
+
for junction components (``jj_manhattan``, ``jj_dolan``, ``SQUID_LOOP``, ``SNAIL``, ``BridgeFreeJunction``) the
|
|
12
|
+
metal goes to ``SIS_junction`` instead;
|
|
13
|
+
* every junction-table line → its footprint (line × width) on ``SIS_junction``, and refpoints ``port_squid_a`` (line
|
|
14
|
+
start; the island side of Metal's grounded qubits) / ``port_squid_b`` (line end) for the first junction
|
|
15
|
+
(``junction_<k>_a/b`` for all of them), which the simulation builder uses for the junction port;
|
|
16
|
+
* **trilayer junctions** (design decisions #6 / #21): ``junction_type`` = ``"Quantcore Junction"`` /
|
|
17
|
+
``"Quantcore Squid"`` (or any trilayer cell of the Junction Library, e.g. ``"Trilayer Junction"``) replaces each
|
|
18
|
+
junction line's footprint by that cell (CLEARER on), its window spanning the gap the line crosses (the etched span
|
|
19
|
+
along the line through its middle; window width ≤ 32 µm, 1 µm inside the gap's lateral extent on each side),
|
|
20
|
+
``origin_squid`` on the ``port_squid_b`` side and ``port_common`` on the ``port_squid_a`` side;
|
|
21
|
+
``junction_params`` (JSON dict, e.g. ``{"lj_nH": 6.7}``) is passed to the cell (sizing by the PDK junction rule).
|
|
22
|
+
``"Metal"`` (default) and ``"Sim"`` (what simulation builds set) keep Metal's footprint; ``"No Squid"`` draws no
|
|
23
|
+
junction (refpoints stay);
|
|
24
|
+
* every Metal pin → a port named like the pin at the pin middle, facing the pin normal (outward), with the pin
|
|
25
|
+
width/gap as the port's CPW ``a``/``b`` (``qcc_port_widths``);
|
|
26
|
+
* **pin ends**: some components' own etch continues past a pin (TransmonCross claws: the claw etcher is the claw
|
|
27
|
+
buffered by ``claw_gap``, so it runs ``claw_gap`` beyond the pin over the full claw width). Metal's GDS renderer
|
|
28
|
+
draws every non-subtract shape on top of the etch, so there the route's trace (which starts at the pin) fills it.
|
|
29
|
+
A qcc route only etches its gaps, so the wrapper does what the renderer does: the etch beyond each pin within the
|
|
30
|
+
pin width (the part touching the pin line, up to where it ends) is removed at every pin that ends one of the
|
|
31
|
+
component's conductors (not at LaunchpadWirebondDriven's inward ``in`` pin). The pin then ends on metal, as every
|
|
32
|
+
KQC port does: connect a route, or terminate it (``metal:OpenToGround``). ``open_pins`` (comma-separated pin
|
|
33
|
+
names) keeps Metal's etch at those pins, as Metal draws a pin with no route (an open end);
|
|
34
|
+
* launch pads (``LaunchpadWirebond``, ``...Driven``, ``...Coupled``) → refpoints ``lumped_signal`` / ``lumped_ground``
|
|
35
|
+
across the pad's side gap at the pad centre (the simulation builder's 50 Ω port, as for ``BondPad``).
|
|
36
|
+
|
|
37
|
+
The element's ``a``/``b`` set Metal's ``cpw_width``/``cpw_gap`` design variables.
|
|
38
|
+
|
|
39
|
+
In ``design.json`` and ``Designer.add`` use ``cell: "metal:<Class>"`` with the Metal options as flat ``params``
|
|
40
|
+
(nested dicts allowed). :func:`metal_cell` makes the per-class subclass whose ``qcc_params`` turns those options into
|
|
41
|
+
the two PCell parameters; :mod:`quantcore_circuits.assembly.plan` calls it before creating the cell.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
from __future__ import annotations
|
|
45
|
+
|
|
46
|
+
import json
|
|
47
|
+
|
|
48
|
+
from kqcircuits.elements.element import Element
|
|
49
|
+
from kqcircuits.pya_resolver import pya
|
|
50
|
+
from kqcircuits.util.parameters import Param, pdt
|
|
51
|
+
|
|
52
|
+
from quantcore_circuits.layouts.junctions.trilayer import ( # noqa: F401 (re-exported)
|
|
53
|
+
MAX_WINDOW_WIDTH,
|
|
54
|
+
_json_dict,
|
|
55
|
+
place_trilayer,
|
|
56
|
+
trilayer_on_line,
|
|
57
|
+
)
|
|
58
|
+
from quantcore_circuits.layouts.metal.geometry import (
|
|
59
|
+
canonical_class_name,
|
|
60
|
+
find_class_info,
|
|
61
|
+
metal_geometry,
|
|
62
|
+
normalise_options,
|
|
63
|
+
parse_um,
|
|
64
|
+
template_options,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
JUNCTION_CLASSES = ("jj_manhattan", "jj_dolan", "SQUID_LOOP", "SNAIL", "BridgeFreeJunction")
|
|
68
|
+
# junction_type values: Metal's own footprint ("Metal"; "Sim" = the same, set by simulation builds), none, or a
|
|
69
|
+
# trilayer cell of the Junction Library placed on each junction line
|
|
70
|
+
JUNCTION_TYPES = (
|
|
71
|
+
"Metal",
|
|
72
|
+
"Quantcore Junction",
|
|
73
|
+
"Quantcore Squid",
|
|
74
|
+
"Trilayer Junction",
|
|
75
|
+
"Trilayer Squid",
|
|
76
|
+
"Sim",
|
|
77
|
+
"No Squid",
|
|
78
|
+
)
|
|
79
|
+
FOOTPRINT_TYPES = ("Metal", "Sim", "")
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def _launchpad_lumped(o, um):
|
|
83
|
+
"""LaunchpadWirebond(Driven): pad from x = -taper_height to -(taper_height + pad_height), half-width
|
|
84
|
+
pad_width / 2, pocket side pad_gap beyond it (qlibrary/terminations/launchpad_wb.py)."""
|
|
85
|
+
x = -(um(o["taper_height"]) + um(o["pad_height"]) / 2)
|
|
86
|
+
y = um(o["pad_width"]) / 2
|
|
87
|
+
return (x, y), (x, y + um(o["pad_gap"]))
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def _launchpad_coupled_lumped(o, um):
|
|
91
|
+
"""LaunchpadWirebondCoupled: fixed pad from x = -202 to -122 µm, half-width trace_width / 2 + 35 µm, pocket
|
|
92
|
+
side at trace_width / 2 + trace_gap + 87 µm (qlibrary/terminations/launchpad_wb_coupled.py)."""
|
|
93
|
+
tw, tg = um(o["trace_width"]), um(o["trace_gap"])
|
|
94
|
+
return (-162.0, tw / 2 + 35.0), (-162.0, tw / 2 + tg + 87.0)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
# Metal launch pads → lumped-port terminals across the pad's side gap at the pad centre (refpoints ``lumped_signal``
|
|
98
|
+
# / ``lumped_ground``, as BondPad): the simulation builder's 50 Ω port for a pad that terminates a sim group
|
|
99
|
+
LUMPED_PORTS = {
|
|
100
|
+
"LaunchpadWirebond": _launchpad_lumped,
|
|
101
|
+
"LaunchpadWirebondDriven": _launchpad_lumped,
|
|
102
|
+
"LaunchpadWirebondCoupled": _launchpad_coupled_lumped,
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def _region(polys, dbu: float) -> pya.Region:
|
|
107
|
+
region = pya.Region()
|
|
108
|
+
for p in polys:
|
|
109
|
+
region.insert(p.to_itype(dbu))
|
|
110
|
+
region.merge()
|
|
111
|
+
return region
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
def _pin_names(text) -> set[str]:
|
|
115
|
+
return {t.strip() for t in str(text or "").replace(";", ",").split(",") if t.strip()}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
def pin_end_strip(pin, length: float) -> pya.DPolygon:
|
|
119
|
+
"""The pin-width strip from the pin line ``length`` µm outward (along the pin normal)."""
|
|
120
|
+
(mx, my), (nx, ny) = pin.middle, pin.normal
|
|
121
|
+
tx, ty, h = -ny, nx, pin.width / 2
|
|
122
|
+
pts = [(mx - tx * h, my - ty * h), (mx + tx * h, my + ty * h)]
|
|
123
|
+
pts += [(x + nx * length, y + ny * length) for x, y in reversed(pts)]
|
|
124
|
+
return pya.DPolygon([pya.DPoint(x, y) for x, y in pts])
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
def _trim_pin_ends(gap: pya.Region, metal: pya.Region, pins: dict, keep_open: set[str], dbu: float) -> pya.Region:
|
|
128
|
+
"""Remove the etch beyond each pin within the pin width (Metal: the route's trace is drawn over it).
|
|
129
|
+
|
|
130
|
+
Only pins that end one of the component's own conductors are trimmed (its metal touches the pin line from
|
|
131
|
+
behind), and only etch that does not reach the component's metal again further out: a pin facing into the
|
|
132
|
+
component, such as LaunchpadWirebondDriven's ``in`` (a lumped-port terminal across the pad gap), is left as is.
|
|
133
|
+
"""
|
|
134
|
+
if gap.is_empty() or metal.is_empty():
|
|
135
|
+
return gap
|
|
136
|
+
box = gap.bbox()
|
|
137
|
+
corners = [(box.left, box.bottom), (box.left, box.top), (box.right, box.bottom), (box.right, box.top)]
|
|
138
|
+
for name, pin in pins.items():
|
|
139
|
+
if name in keep_open or pin.width <= 0:
|
|
140
|
+
continue
|
|
141
|
+
(mx, my), (nx, ny) = pin.middle, pin.normal
|
|
142
|
+
length = max((x * dbu - mx) * nx + (y * dbu - my) * ny for x, y in corners) + 1.0
|
|
143
|
+
if length <= 0:
|
|
144
|
+
continue
|
|
145
|
+
band = pya.Region(pin_end_strip(pin, 4 * dbu).moved(-2 * nx * dbu, -2 * ny * dbu).to_itype(dbu))
|
|
146
|
+
behind = pya.Region(pin_end_strip(pin, 0.5).moved(-0.5 * nx, -0.5 * ny).to_itype(dbu))
|
|
147
|
+
if (metal & behind).is_empty():
|
|
148
|
+
continue # no conductor of the component ends at this pin
|
|
149
|
+
strip = pya.Region(pin_end_strip(pin, length).to_itype(dbu))
|
|
150
|
+
cut = (gap & strip).interacting(band)
|
|
151
|
+
far = metal & pya.Region(pin_end_strip(pin, length).moved(0.05 * nx, 0.05 * ny).to_itype(dbu))
|
|
152
|
+
if cut.is_empty() or not cut.interacting(far).is_empty():
|
|
153
|
+
continue
|
|
154
|
+
gap = (gap - cut).merged()
|
|
155
|
+
return gap
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
class MetalComponent(Element):
|
|
159
|
+
"""Any Quantum Metal ``qlibrary`` QComponent rendered as a KQC element (Metal pins → ports)."""
|
|
160
|
+
|
|
161
|
+
metal_class = Param(
|
|
162
|
+
pdt.TypeString, "Quantum Metal component (qlibrary class name or dotted path)", "TransmonPocket"
|
|
163
|
+
)
|
|
164
|
+
options = Param(pdt.TypeString, "Metal options as JSON (bare numbers on length options are µm)", "{}")
|
|
165
|
+
open_pins = Param(
|
|
166
|
+
pdt.TypeString,
|
|
167
|
+
"Pins left open (comma-separated): keep Metal's etch beyond them, as drawn with no route attached",
|
|
168
|
+
"",
|
|
169
|
+
)
|
|
170
|
+
junction_type = Param(
|
|
171
|
+
pdt.TypeString,
|
|
172
|
+
"Junction as fabricated: Metal footprint, or a trilayer cell placed on each junction line",
|
|
173
|
+
"Metal",
|
|
174
|
+
choices=list(JUNCTION_TYPES),
|
|
175
|
+
)
|
|
176
|
+
junction_params = Param(pdt.TypeString, "Trilayer junction cell parameters (JSON dict, e.g. lj_nH)", "{}")
|
|
177
|
+
|
|
178
|
+
qcc_category = "other"
|
|
179
|
+
qcc_metal_class: str | None = None # set on the per-class subclasses made by metal_cell()
|
|
180
|
+
|
|
181
|
+
# ---- design.json params → PCell params ---------------------------------------------------------------------
|
|
182
|
+
@classmethod
|
|
183
|
+
def qcc_params(cls, params: dict) -> dict:
|
|
184
|
+
"""Metal options as typed in ``design.json`` → the PCell parameters (``metal_class``, ``options`` JSON, plus
|
|
185
|
+
any KQC element parameters such as ``margin``). Raises ``ValueError`` for unknown or placement options.
|
|
186
|
+
|
|
187
|
+
Names shared by a Metal option and a KQC element parameter (``n``, ``r``, ``a``, ``b``, ``margin``, ...):
|
|
188
|
+
|
|
189
|
+
* design.json form (no ``options``, or ``options`` as a dict): the Metal option wins (``n`` of
|
|
190
|
+
``ResonatorCoilRect`` = turns);
|
|
191
|
+
* PCell form (``options`` already a JSON string, as in a plan, merged with the chip's inherited element
|
|
192
|
+
parameters such as ``n`` = 64 circle points): every schema parameter stays an element parameter and the
|
|
193
|
+
Metal options come from ``options`` only, so an inherited ``n`` never overrides the Metal ``n``.
|
|
194
|
+
"""
|
|
195
|
+
params = dict(params)
|
|
196
|
+
schema = cls.get_schema()
|
|
197
|
+
name = params.pop("metal_class", None) or cls.qcc_metal_class
|
|
198
|
+
if not name:
|
|
199
|
+
raise ValueError("MetalComponent needs metal_class (or use cell 'metal:<Class>')")
|
|
200
|
+
name = canonical_class_name(str(name))
|
|
201
|
+
options = params.pop("options", None) or {}
|
|
202
|
+
pcell_form = isinstance(options, str)
|
|
203
|
+
if pcell_form:
|
|
204
|
+
options = json.loads(options or "{}")
|
|
205
|
+
options = dict(options)
|
|
206
|
+
defaults = template_options(name)
|
|
207
|
+
element = {}
|
|
208
|
+
for key, value in params.items():
|
|
209
|
+
if key in schema and (pcell_form or key not in defaults):
|
|
210
|
+
element[key] = value
|
|
211
|
+
else:
|
|
212
|
+
options[key] = value
|
|
213
|
+
options = normalise_options(name, options)
|
|
214
|
+
jp = element.get("junction_params")
|
|
215
|
+
if isinstance(jp, dict):
|
|
216
|
+
element["junction_params"] = json.dumps(jp, sort_keys=True)
|
|
217
|
+
elif isinstance(jp, str):
|
|
218
|
+
_json_dict(jp) # validate
|
|
219
|
+
jt = element.get("junction_type")
|
|
220
|
+
if jt is not None and jt not in FOOTPRINT_TYPES + ("No Squid",):
|
|
221
|
+
from quantcore_circuits.layouts.junctions.trilayer import trilayer_classes # pylint: disable=C0415
|
|
222
|
+
|
|
223
|
+
if jt not in trilayer_classes():
|
|
224
|
+
raise ValueError(
|
|
225
|
+
f"metal:{name}: junction_type {jt!r} is not a trilayer junction cell; use one of {JUNCTION_TYPES}"
|
|
226
|
+
)
|
|
227
|
+
return {**element, "metal_class": name, "options": json.dumps(options, sort_keys=True)}
|
|
228
|
+
|
|
229
|
+
@classmethod
|
|
230
|
+
def create(cls, layout, library=None, **parameters) -> pya.Cell:
|
|
231
|
+
"""Create the cell; accepts raw Metal options too (converted with :meth:`qcc_params`)."""
|
|
232
|
+
schema = cls.get_schema()
|
|
233
|
+
if (
|
|
234
|
+
cls.qcc_metal_class
|
|
235
|
+
or isinstance(parameters.get("options"), dict)
|
|
236
|
+
or any(k not in schema for k in parameters)
|
|
237
|
+
):
|
|
238
|
+
parameters = cls.qcc_params(parameters)
|
|
239
|
+
# every subclass builds the one registered "Metal Component" PCell
|
|
240
|
+
return Element.create.__func__(MetalComponent, layout, library, **parameters)
|
|
241
|
+
|
|
242
|
+
# ---- geometry ----------------------------------------------------------------------------------------------
|
|
243
|
+
@classmethod
|
|
244
|
+
def qcc_geometry(cls, params: dict):
|
|
245
|
+
"""The cached :class:`~.geometry.MetalGeometry` for PCell parameters (or raw Metal options)."""
|
|
246
|
+
schema = cls.get_schema()
|
|
247
|
+
if any(k not in schema for k in params) or not isinstance(params.get("options", ""), str):
|
|
248
|
+
params = {**params, **cls.qcc_params(params)}
|
|
249
|
+
name = canonical_class_name(str(params.get("metal_class") or cls.qcc_metal_class or cls.metal_class))
|
|
250
|
+
options = normalise_options(name, json.loads(params.get("options") or "{}"))
|
|
251
|
+
a, b = float(params.get("a", 10.0)), float(params.get("b", 6.0))
|
|
252
|
+
return metal_geometry(name, json.dumps(options, sort_keys=True), a, b)
|
|
253
|
+
|
|
254
|
+
@classmethod
|
|
255
|
+
def qcc_port_widths(cls, params: dict) -> dict:
|
|
256
|
+
"""Per-port CPW widths (a, b) = the Metal pin width/gap."""
|
|
257
|
+
geom = cls.qcc_geometry(params)
|
|
258
|
+
return {name: (pin.width, pin.gap) for name, pin in geom.pins.items()}
|
|
259
|
+
|
|
260
|
+
def display_text_impl(self):
|
|
261
|
+
return self.display_name or f"Metal {self.metal_class}"
|
|
262
|
+
|
|
263
|
+
def _trilayer_junction(self, jtype: str, gap: pya.Region, a: pya.DPoint, b: pya.DPoint) -> pya.Region:
|
|
264
|
+
"""Place the trilayer cell ``jtype`` across the gap of the junction line a → b; returns its footprint."""
|
|
265
|
+
try:
|
|
266
|
+
return place_trilayer(self, jtype, gap, a, b, self.junction_params)
|
|
267
|
+
except ValueError as e:
|
|
268
|
+
self.raise_error_on_cell(str(e))
|
|
269
|
+
return pya.Region()
|
|
270
|
+
|
|
271
|
+
def build(self):
|
|
272
|
+
try:
|
|
273
|
+
params = {"metal_class": self.metal_class, "options": self.options, "a": self.a, "b": self.b}
|
|
274
|
+
geom = self.qcc_geometry(params)
|
|
275
|
+
except Exception as e: # noqa: BLE001 (KLayout swallows exceptions; show it on the cell)
|
|
276
|
+
self.raise_error_on_cell(f"metal:{self.metal_class}: {type(e).__name__}: {e}")
|
|
277
|
+
return
|
|
278
|
+
dbu = self.layout.dbu
|
|
279
|
+
subtract = _region(geom.subtract, dbu)
|
|
280
|
+
metal = _region(geom.metal, dbu)
|
|
281
|
+
drawn = pya.Region()
|
|
282
|
+
gap = _trim_pin_ends(subtract - metal, metal, geom.pins, _pin_names(self.open_pins), dbu)
|
|
283
|
+
if not gap.is_empty():
|
|
284
|
+
self.cell.shapes(self.get_layer("base_metal_gap_wo_grid")).insert(gap)
|
|
285
|
+
drawn += gap
|
|
286
|
+
outside = metal - subtract
|
|
287
|
+
info = find_class_info(geom.metal_class)
|
|
288
|
+
if geom.metal_class.rsplit(".", 1)[-1] in JUNCTION_CLASSES or (info and info.category == "junction"):
|
|
289
|
+
jt = str(self.junction_type or "Metal")
|
|
290
|
+
if not metal.is_empty() and jt not in FOOTPRINT_TYPES and jt != "No Squid":
|
|
291
|
+
# trilayer stand-in for a Metal junction tile (jj_manhattan, jj_dolan, ...): the trilayer cell spans
|
|
292
|
+
# the tile's bounding box bottom (lower pad, origin_squid) → top (port_common)
|
|
293
|
+
box = metal.bbox().to_dtype(dbu)
|
|
294
|
+
a, b = pya.DPoint(box.center().x, box.top), pya.DPoint(box.center().x, box.bottom)
|
|
295
|
+
jp = {"window_width": min(MAX_WINDOW_WIDTH, box.width()), **_json_dict(self.junction_params)}
|
|
296
|
+
try:
|
|
297
|
+
drawn += place_trilayer(self, jt, pya.Region(), a, b, jp)
|
|
298
|
+
except ValueError as e:
|
|
299
|
+
self.raise_error_on_cell(str(e))
|
|
300
|
+
self.refpoints["port_squid_a"], self.refpoints["port_squid_b"] = a, b
|
|
301
|
+
elif not metal.is_empty() and jt != "No Squid":
|
|
302
|
+
self.cell.shapes(self.get_layer("SIS_junction")).insert(metal)
|
|
303
|
+
drawn += metal
|
|
304
|
+
elif not outside.is_empty():
|
|
305
|
+
self.cell.shapes(self.get_layer("base_metal_addition")).insert(outside)
|
|
306
|
+
drawn += outside
|
|
307
|
+
for layer, polys in geom.layers.items():
|
|
308
|
+
region = _region(polys, dbu)
|
|
309
|
+
self.cell.shapes(self.get_layer(layer)).insert(region)
|
|
310
|
+
jtype = str(self.junction_type or "Metal")
|
|
311
|
+
for k, j in enumerate(geom.junctions):
|
|
312
|
+
pts = [pya.DPoint(x, y) for x, y in j.points]
|
|
313
|
+
if jtype not in FOOTPRINT_TYPES and jtype != "No Squid" and len(pts) >= 2:
|
|
314
|
+
drawn += self._trilayer_junction(jtype, gap, pts[0], pts[-1])
|
|
315
|
+
elif j.width > 0 and jtype != "No Squid":
|
|
316
|
+
marker = pya.Region(pya.DPath(pts, j.width, 0, 0).polygon().to_itype(dbu))
|
|
317
|
+
self.cell.shapes(self.get_layer("SIS_junction")).insert(marker)
|
|
318
|
+
drawn += marker
|
|
319
|
+
self.refpoints[f"junction_{k + 1}_a"] = pts[0]
|
|
320
|
+
self.refpoints[f"junction_{k + 1}_b"] = pts[-1]
|
|
321
|
+
if k == 0:
|
|
322
|
+
self.refpoints["port_squid_a"] = pts[0]
|
|
323
|
+
self.refpoints["port_squid_b"] = pts[-1]
|
|
324
|
+
if not drawn.is_empty():
|
|
325
|
+
self.add_protection(drawn.sized(self.margin / dbu).merged())
|
|
326
|
+
for name, pin in geom.pins.items():
|
|
327
|
+
self.add_port(name, pya.DPoint(*pin.middle), pya.DVector(*pin.normal))
|
|
328
|
+
lumped = LUMPED_PORTS.get(geom.metal_class)
|
|
329
|
+
if lumped:
|
|
330
|
+
signal, ground = lumped(geom.options, lambda v: parse_um(v, self.a, self.b))
|
|
331
|
+
self.refpoints["lumped_signal"] = pya.DPoint(*signal)
|
|
332
|
+
self.refpoints["lumped_ground"] = pya.DPoint(*ground)
|