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,375 @@
|
|
|
1
|
+
"""Xmon qubit (ported from QWri ``Xmon Cross`` + ``Xmon Handle``) as a KQC ``Qubit`` with ports.
|
|
2
|
+
|
|
3
|
+
Local frame: cross centred at the origin; claws on the north/west/east arms; the junction sits in the gap below the
|
|
4
|
+
south arm (as in the legacy chips). Geometry is the legacy fab output: ``base_metal_gap_wo_grid`` = bounding box of
|
|
5
|
+
the positive metal minus the metal, computed with the same pya calls as the legacy PCell.
|
|
6
|
+
|
|
7
|
+
Ports (outward directions): ``claw_n`` (+y), ``claw_w`` (−x), ``claw_e`` (+x) at the claw tail tips, width
|
|
8
|
+
``claw_tail_width``; ``flux`` (−y) at the flux-line tip below the junction when ``flux_port`` is set. The SQUID
|
|
9
|
+
refpoints are exposed as ``port_squid_a``/``port_squid_b`` for KQC ``JunctionSimPort``.
|
|
10
|
+
|
|
11
|
+
Claw gaps (decision #22): ``claw_spacing`` is the etched clearance around the claw body and ``ground_sliver``
|
|
12
|
+
the ground strip between the cross gap and that clearance (2 µm each by default). The claw *tail* is the start of
|
|
13
|
+
the readout CPW, so its clearance is ``claw_tail_gap`` (−1 = the element's ``b``, the chip / PDK CPW gap): a 10/6
|
|
14
|
+
route continues a 10/6 tail, a 10/10 route needs ``claw_tail_gap = 10`` (or a chip ``b`` of 10). The claw ports
|
|
15
|
+
declare exactly that gap (with ``claw_ground``: the ground frame's ``claw_ground_gap``). The legacy PCells used
|
|
16
|
+
``claw_spacing`` for the tail too: ``claw_tail_gap = claw_spacing`` reproduces them.
|
|
17
|
+
|
|
18
|
+
Junction: ``junction_type`` picks the cell (``"No Squid"`` = none; ``"Quantcore Junction"`` / ``"Quantcore Squid"``
|
|
19
|
+
= the PDK trilayer junctions with CLEARER and spacer gradient); ``junction_params`` (a dict in ``design.json``,
|
|
20
|
+
stored as JSON) is passed to that cell, e.g. ``{"finger_width": 0.5, "second_finger_width": 0.6}`` for the
|
|
21
|
+
trilayer junctions (the legacy chips sweep the junction size) or ``{"lj_nH": 6.7}`` (sized by the PDK junction
|
|
22
|
+
rule, :func:`quantcore_circuits.circuit.bridges.fingers_for_lj`). ``junction_window = [w, h]`` keeps a ``w × h`` box
|
|
23
|
+
centred in the junction gap as metal (``base_metal_addition``, subtracted from the 1/0 etch at export): the
|
|
24
|
+
legacy chips' "CLEARER" step, so the trilayer bridges the cross arm and ground where the fingers (2/0, 4/0) define
|
|
25
|
+
the junction (chip_01: 30 × 18 µm, chip_01_creator/02: 30 × 20 µm). An optional third value moves the window centre
|
|
26
|
+
away from the cross (negative: towards it): chip_03 and chip_05 use ``[30, 27, -3]`` (gap 20: the window runs from
|
|
27
|
+
6.5 µm inside the arm to 0.5 µm into the ground), chip_10a ``[30, 45, 12.5]`` at its junctions (from the arm end to
|
|
28
|
+
25 µm into the ground, so it also clears the flux-line tip there) and ``[30, 45, -12.5]`` at its SQUIDs (shifted
|
|
29
|
+
25 µm towards the cross, "cut inside"). The window is drawn by the Xmon, so it works with every
|
|
30
|
+
``junction_type``.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
import ast
|
|
34
|
+
import json
|
|
35
|
+
|
|
36
|
+
from kqcircuits.junctions import junction_type_choices
|
|
37
|
+
from kqcircuits.pya_resolver import pya
|
|
38
|
+
from kqcircuits.qubits.qubit import Qubit
|
|
39
|
+
from kqcircuits.util.parameters import Param, pdt
|
|
40
|
+
|
|
41
|
+
_CLAWS = ("n", "w", "e")
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def claw_region(dbu, width, thickness, fwidth, hlength, tail, tail_l, tail_width=10.0):
|
|
45
|
+
"""Legacy ``Xmon_handle.makeCap`` (arguments in µm, result in dbu)."""
|
|
46
|
+
width, thickness, fwidth = width / dbu, thickness / dbu, fwidth / dbu
|
|
47
|
+
hlength, tail_l, tail_width = hlength / dbu, tail_l / dbu, tail_width / dbu
|
|
48
|
+
base = pya.Box(-width / 2, 0, width / 2, thickness)
|
|
49
|
+
finger_left = pya.Box(-(width / 2 + fwidth), 0, -width / 2, hlength)
|
|
50
|
+
finger_right = pya.Box(width / 2, 0, (width / 2 + fwidth), hlength)
|
|
51
|
+
cap = pya.Region().insert([base, finger_left, finger_right])
|
|
52
|
+
tail_box = pya.Box(-tail_width / 2, -tail_l, tail_width / 2, 0) if tail else pya.Box()
|
|
53
|
+
return cap + tail_box
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def ground_claw(cap, dbu, ggap, tail_l, width, thickness, hlength, path_w=10.0):
|
|
57
|
+
"""Legacy ``Xmon_handle.groundHandle`` (arguments in µm, ``cap`` in dbu)."""
|
|
58
|
+
ggap, tail_l, width = ggap / dbu, tail_l / dbu, width / dbu
|
|
59
|
+
thickness, hlength, path_w = thickness / dbu, hlength / dbu, path_w / dbu
|
|
60
|
+
tailcov = pya.Region().insert(pya.Box((-path_w / 2 - ggap), (-tail_l - 2 * ggap), path_w / 2 + ggap, -tail_l))
|
|
61
|
+
cap_cov = pya.Region().insert(pya.Box(-width / 2, thickness, width / 2, hlength + (2 * ggap)))
|
|
62
|
+
grown = pya.Region().insert(cap.sized(ggap * 2, ggap).bbox()) - cap.sized(ggap, ggap)
|
|
63
|
+
return grown - tailcov - cap_cov + cap
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def xmon_positive(
|
|
67
|
+
dbu,
|
|
68
|
+
arm_width,
|
|
69
|
+
cross_length,
|
|
70
|
+
ground_sliver,
|
|
71
|
+
gap,
|
|
72
|
+
claws,
|
|
73
|
+
claw_spacing,
|
|
74
|
+
claw_base,
|
|
75
|
+
claw_finger_width,
|
|
76
|
+
claw_length,
|
|
77
|
+
claw_tail,
|
|
78
|
+
claw_ground,
|
|
79
|
+
claw_ground_gap,
|
|
80
|
+
claw_tail_length,
|
|
81
|
+
claw_tail_width=10.0,
|
|
82
|
+
claw_tail_gap=None,
|
|
83
|
+
):
|
|
84
|
+
"""Legacy ``Xmon_cross.produce_impl`` positive metal (``fab=False``) in dbu. ``claw_tail_gap`` (µm, None = the
|
|
85
|
+
legacy ``claw_spacing``) is the clearance of the claw tail (without ``claw_ground``)."""
|
|
86
|
+
t, w = arm_width / dbu, cross_length / dbu
|
|
87
|
+
cross = pya.Region().insert(pya.Box(-w / 2, -t / 2, w / 2, t / 2)) + pya.Region().insert(
|
|
88
|
+
pya.Box(-t / 2, -w / 2, t / 2, w / 2)
|
|
89
|
+
)
|
|
90
|
+
if not cross.is_merged():
|
|
91
|
+
cross.merge()
|
|
92
|
+
# NB: two-argument Region.sized(d, mode) is *isotropic* sizing by d with corner mode `mode`; the legacy code passes
|
|
93
|
+
# (gap+da) as the second argument, so the ground rectangle is the cross bbox grown by `grow` on all sides.
|
|
94
|
+
# Kept verbatim so the geometry matches the legacy cells exactly.
|
|
95
|
+
grow = (gap + ground_sliver + claw_base + claw_tail_length + claw_spacing) / dbu
|
|
96
|
+
boundary = pya.Region().insert(cross.sized(grow, (gap + ground_sliver) / dbu).bbox()) - cross.sized(
|
|
97
|
+
gap / dbu, gap / dbu
|
|
98
|
+
)
|
|
99
|
+
final = cross + boundary
|
|
100
|
+
pad_width = arm_width + 2 * claw_ground_gap + 2 * gap + 2 * ground_sliver
|
|
101
|
+
x_off = (cross_length / 2 + gap + ground_sliver + claw_base + claw_spacing) / dbu
|
|
102
|
+
transforms = {
|
|
103
|
+
"n": pya.ICplxTrans(1, 0, True, 0, x_off),
|
|
104
|
+
"w": pya.ICplxTrans(1, 270, False, -x_off, 0),
|
|
105
|
+
"e": pya.ICplxTrans(1, 90, False, x_off, 0),
|
|
106
|
+
}
|
|
107
|
+
claw = claw_region(
|
|
108
|
+
dbu, pad_width, claw_base, claw_finger_width, claw_length, claw_tail, claw_tail_length, claw_tail_width
|
|
109
|
+
)
|
|
110
|
+
tail = None
|
|
111
|
+
if claw_tail and not claw_ground and claw_tail_gap is not None and claw_tail_gap != claw_spacing:
|
|
112
|
+
tw, tl = claw_tail_width / dbu, claw_tail_length / dbu
|
|
113
|
+
tail = pya.Region(pya.Box(-tw / 2, -tl, tw / 2, 0))
|
|
114
|
+
if claw_ground:
|
|
115
|
+
claw = ground_claw(claw, dbu, claw_ground_gap, claw_tail_length, pad_width, claw_base, claw_length, 10.0)
|
|
116
|
+
for name in claws:
|
|
117
|
+
placed = claw.transformed(transforms[name])
|
|
118
|
+
final = final - placed.sized(claw_spacing / dbu)
|
|
119
|
+
if tail is not None:
|
|
120
|
+
final -= tail.transformed(transforms[name]).sized(claw_tail_gap / dbu)
|
|
121
|
+
final += placed
|
|
122
|
+
return final
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
def _junction_params(text) -> dict:
|
|
126
|
+
"""``junction_params`` (JSON, or a Python dict repr as KLayout stores a dict) → dict."""
|
|
127
|
+
if isinstance(text, dict):
|
|
128
|
+
return dict(text)
|
|
129
|
+
text = str(text or "").strip() or "{}"
|
|
130
|
+
try:
|
|
131
|
+
value = json.loads(text)
|
|
132
|
+
except ValueError:
|
|
133
|
+
value = ast.literal_eval(text)
|
|
134
|
+
if not isinstance(value, dict):
|
|
135
|
+
raise ValueError(f"junction_params must be a dict, got {value!r}")
|
|
136
|
+
return value
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
class Xmon(Qubit):
|
|
140
|
+
"""Grounded cross transmon with claw couplers; junction below the south arm.
|
|
141
|
+
|
|
142
|
+
Ported from the legacy QWri PCells ``Xmon Cross`` (``pymacros/QuantumPcells/xmon_cross.lym``) and ``Xmon Handle``
|
|
143
|
+
(``xmon_handle.lym``), fab mode. Claw-tail ports declare ``a = claw_tail_width`` and the element ``b`` (the tail
|
|
144
|
+
itself is drawn with a ``claw_spacing`` clearance; a route continues as the chip CPW, see the catalog note).
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
qcc_category = "qubit"
|
|
148
|
+
|
|
149
|
+
arm_width = Param(pdt.TypeDouble, "Cross arm width", 25, unit="μm")
|
|
150
|
+
cross_length = Param(pdt.TypeDouble, "Cross tip-to-tip length", 300, unit="μm")
|
|
151
|
+
gap = Param(pdt.TypeDouble, "Gap between cross and ground", 25, unit="μm")
|
|
152
|
+
ground_sliver = Param(pdt.TypeDouble, "Ground between cross gap and claw clearance", 2, unit="μm")
|
|
153
|
+
claws = Param(pdt.TypeList, "Claws to draw (any of n, w, e)", ["n"])
|
|
154
|
+
claw_spacing = Param(pdt.TypeDouble, "Claw clearance to ground", 2, unit="μm")
|
|
155
|
+
claw_base = Param(pdt.TypeDouble, "Claw base thickness", 25, unit="μm")
|
|
156
|
+
claw_finger_width = Param(pdt.TypeDouble, "Claw finger width", 25, unit="μm")
|
|
157
|
+
claw_length = Param(pdt.TypeDouble, "Claw finger length", 100, unit="μm")
|
|
158
|
+
claw_tail = Param(pdt.TypeBoolean, "Claw has a tail (connection stub)", True)
|
|
159
|
+
claw_tail_length = Param(pdt.TypeDouble, "Claw tail length", 50, unit="μm")
|
|
160
|
+
claw_tail_width = Param(pdt.TypeDouble, "Claw tail width (CPW centre width at the port)", 10, unit="μm")
|
|
161
|
+
claw_ground = Param(pdt.TypeBoolean, "Ground frame around the claw", False)
|
|
162
|
+
claw_ground_gap = Param(pdt.TypeDouble, "Claw ground gap", 6, unit="μm")
|
|
163
|
+
claw_tail_gap = Param(
|
|
164
|
+
pdt.TypeDouble, "Claw tail gap to ground (= the readout CPW gap; -1 = the element's b)", -1, unit="μm"
|
|
165
|
+
)
|
|
166
|
+
flux_port = Param(pdt.TypeBoolean, "Add flux-line port and current slot below the junction", False)
|
|
167
|
+
flux_x = Param(pdt.TypeDouble, "Flux tip x offset from the qubit axis", -10.5, unit="μm")
|
|
168
|
+
flux_tip_depth = Param(pdt.TypeDouble, "Flux tip distance beyond the gap edge", 0.5, unit="μm")
|
|
169
|
+
flux_slot = Param(pdt.TypeList, "Flux slot size [length, width] (empty = none)", [28, 5], unit="μm")
|
|
170
|
+
junction_type = Param(
|
|
171
|
+
pdt.TypeString,
|
|
172
|
+
"Junction Type",
|
|
173
|
+
"Trilayer Junction",
|
|
174
|
+
choices=junction_type_choices
|
|
175
|
+
+ ["Trilayer Junction", "Trilayer Squid", "Quantcore Junction", "Quantcore Squid"],
|
|
176
|
+
)
|
|
177
|
+
fluxline_type = Param(pdt.TypeString, "Fluxline Type (KQC)", "none")
|
|
178
|
+
junction_params = Param(pdt.TypeString, "Junction cell parameters (JSON dict)", "{}")
|
|
179
|
+
junction_window = Param(
|
|
180
|
+
pdt.TypeList,
|
|
181
|
+
"Metal window [width, height(, offset)] in the junction gap (legacy CLEARER; offset > 0 = away from the "
|
|
182
|
+
"cross; empty = none)",
|
|
183
|
+
[],
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
@classmethod
|
|
187
|
+
def qcc_params(cls, params: dict) -> dict:
|
|
188
|
+
"""design.json params → PCell params: ``junction_params`` dict → JSON. Unknown parameters raise."""
|
|
189
|
+
params = dict(params)
|
|
190
|
+
unknown = sorted(set(params) - set(cls.get_schema()))
|
|
191
|
+
if unknown:
|
|
192
|
+
raise ValueError(f"Xmon: unknown parameter(s) {unknown}")
|
|
193
|
+
jp = params.get("junction_params")
|
|
194
|
+
if isinstance(jp, dict):
|
|
195
|
+
params["junction_params"] = json.dumps(jp, sort_keys=True)
|
|
196
|
+
elif isinstance(jp, str):
|
|
197
|
+
_junction_params(jp) # validate
|
|
198
|
+
return params
|
|
199
|
+
|
|
200
|
+
# ports whose connecting line is shorted to ground at the port (used by the simulation builder)
|
|
201
|
+
qcc_shorted_ports = ("flux",)
|
|
202
|
+
|
|
203
|
+
@classmethod
|
|
204
|
+
def qcc_port_widths(cls, params: dict) -> dict:
|
|
205
|
+
"""Per-port CPW widths (a, b) as drawn: the claw tail width and its gap (``claw_tail_gap``, −1 = the
|
|
206
|
+
element's ``b``; with ``claw_ground`` the frame's ``claw_ground_gap``)."""
|
|
207
|
+
tail = params.get("claw_tail_width", 10)
|
|
208
|
+
return {f"claw_{c}": (tail, cls.claw_tail_gap_um(params)) for c in _CLAWS}
|
|
209
|
+
|
|
210
|
+
@classmethod
|
|
211
|
+
def qcc_keepout(cls, params: dict) -> list:
|
|
212
|
+
"""3/0 keep-out (local µm): the legacy ``Xmon Cross`` ``fab_l`` shape, the cross grown isotropically by
|
|
213
|
+
2·claw_base + 10 + claw_finger_width (85 µm by default)."""
|
|
214
|
+
from quantcore_circuits.layouts.others.keepout import DBU, dpolygons, full_params # pylint: disable=C0415
|
|
215
|
+
|
|
216
|
+
p = full_params(cls, params)
|
|
217
|
+
t, w = float(p["arm_width"]) / DBU, float(p["cross_length"]) / DBU
|
|
218
|
+
cross = pya.Region().insert(pya.Box(-w / 2, -t / 2, w / 2, t / 2)) + pya.Region().insert(
|
|
219
|
+
pya.Box(-t / 2, -w / 2, t / 2, w / 2)
|
|
220
|
+
)
|
|
221
|
+
grow = (2 * float(p["claw_base"]) + 10 + float(p["claw_finger_width"])) / DBU
|
|
222
|
+
return dpolygons(cross.merged().sized(round(grow)))
|
|
223
|
+
|
|
224
|
+
@classmethod
|
|
225
|
+
def claw_tail_gap_um(cls, params: dict) -> float:
|
|
226
|
+
"""The drawn clearance of the claw tails (µm)."""
|
|
227
|
+
if params.get("claw_ground", False):
|
|
228
|
+
return float(params.get("claw_ground_gap", 6))
|
|
229
|
+
gap = float(params.get("claw_tail_gap", -1))
|
|
230
|
+
return gap if gap >= 0 else float(params.get("b", 6))
|
|
231
|
+
|
|
232
|
+
@classmethod
|
|
233
|
+
def qcc_lom(cls, name: str, inst, pdk):
|
|
234
|
+
"""Grounded transmon: island (C to ground + JJ/SQUID to ground) and one coupler node per claw (C_g to the
|
|
235
|
+
island, C to ground). Capacitances are calibrated estimates until a C-matrix fills them (FEM nets
|
|
236
|
+
``<name>.island``, ``<name>.claw_<c>``). The flux port carries a flux-bias control line."""
|
|
237
|
+
from quantcore_circuits.lom.calibration import estimate # pylint: disable=import-outside-toplevel
|
|
238
|
+
from quantcore_circuits.lom.fragment import ( # pylint: disable=C0415
|
|
239
|
+
Element,
|
|
240
|
+
Fragment,
|
|
241
|
+
effective_junction,
|
|
242
|
+
junction_kind,
|
|
243
|
+
junction_value,
|
|
244
|
+
)
|
|
245
|
+
|
|
246
|
+
params = {k: v.default for k, v in cls.get_schema().items()} | dict(inst.params)
|
|
247
|
+
frag = Fragment(nodes={"island": {"island": f"{name}.island"}})
|
|
248
|
+
c_is, src = estimate("Xmon", "C_island", params, pdk.name)
|
|
249
|
+
frag.elements.append(
|
|
250
|
+
Element(
|
|
251
|
+
f"C_{name}",
|
|
252
|
+
"C",
|
|
253
|
+
("island", "gnd"),
|
|
254
|
+
{"estimate": c_is, "unit": "fF", "fem": "cmatrix", "estimate_source": src},
|
|
255
|
+
{"param": f"{name}.cross_length"},
|
|
256
|
+
)
|
|
257
|
+
)
|
|
258
|
+
kind = junction_kind(params.get("junction_type", "")) # None: "No Squid", a junction-less reference cross
|
|
259
|
+
# the design's junction, else the drawn trilayer junction on the PDK rule (components-pdk)
|
|
260
|
+
ej = effective_junction(inst, params, kind=kind or "JJ")
|
|
261
|
+
lj = ej.lj0_nH
|
|
262
|
+
if kind is None:
|
|
263
|
+
frag.notes.append(f"{name}: junction_type 'No Squid' → no junction element (island C only)")
|
|
264
|
+
else:
|
|
265
|
+
frag.elements.append(
|
|
266
|
+
Element(f"J_{name}", kind, ("island", "gnd"), junction_value(ej), {"param": f"{name}.junction.Lj_nH"})
|
|
267
|
+
)
|
|
268
|
+
if lj and kind is not None:
|
|
269
|
+
frag.knobs[f"{name}.junction.Lj_nH"] = (round(lj * 0.5, 3), round(lj * 1.5, 3))
|
|
270
|
+
cross = float(params["cross_length"])
|
|
271
|
+
frag.knobs[f"{name}.cross_length"] = (round(cross * 0.5, 1), round(cross * 1.8, 1))
|
|
272
|
+
for c in params.get("claws") or []:
|
|
273
|
+
node = f"claw_{c}"
|
|
274
|
+
frag.nodes[node] = {"island": f"{name}.claw_{c}"}
|
|
275
|
+
frag.port_nodes[node] = node
|
|
276
|
+
cg, src_g = estimate("Xmon", "Cg", params, pdk.name)
|
|
277
|
+
cc, src_c = estimate("Xmon", "C_claw", params, pdk.name)
|
|
278
|
+
frag.elements.append(
|
|
279
|
+
Element(
|
|
280
|
+
f"Cg_{name}_{node}",
|
|
281
|
+
"C",
|
|
282
|
+
("island", node),
|
|
283
|
+
{"estimate": cg, "unit": "fF", "fem": "cmatrix", "estimate_source": src_g},
|
|
284
|
+
{"param": f"{name}.claw_length"},
|
|
285
|
+
)
|
|
286
|
+
)
|
|
287
|
+
frag.elements.append(
|
|
288
|
+
Element(
|
|
289
|
+
f"Cc_{name}_{node}",
|
|
290
|
+
"C",
|
|
291
|
+
(node, "gnd"),
|
|
292
|
+
{"estimate": cc, "unit": "fF", "fem": "cmatrix", "estimate_source": src_c},
|
|
293
|
+
)
|
|
294
|
+
)
|
|
295
|
+
claw = float(params["claw_length"])
|
|
296
|
+
frag.knobs[f"{name}.claw_length"] = (round(claw * 0.4, 1), round(claw * 2.2, 1))
|
|
297
|
+
if params.get("flux_port"):
|
|
298
|
+
frag.port_nodes["flux"] = "control:flux"
|
|
299
|
+
return frag
|
|
300
|
+
|
|
301
|
+
def _claw_tip(self, name):
|
|
302
|
+
x = self.cross_length / 2 + self.gap + self.ground_sliver + self.claw_base + self.claw_spacing
|
|
303
|
+
d = x + self.claw_tail_length
|
|
304
|
+
return {
|
|
305
|
+
"n": (pya.DPoint(0, d), pya.DVector(0, 1)),
|
|
306
|
+
"w": (pya.DPoint(-d, 0), pya.DVector(-1, 0)),
|
|
307
|
+
"e": (pya.DPoint(d, 0), pya.DVector(1, 0)),
|
|
308
|
+
}[name]
|
|
309
|
+
|
|
310
|
+
def build(self):
|
|
311
|
+
dbu = self.layout.dbu
|
|
312
|
+
claws = [str(c).lower() for c in self.claws]
|
|
313
|
+
unknown = set(claws) - set(_CLAWS)
|
|
314
|
+
if unknown:
|
|
315
|
+
self.raise_error_on_cell(f"Unknown claw(s) {sorted(unknown)}; use n, w, e")
|
|
316
|
+
metal = xmon_positive(
|
|
317
|
+
dbu,
|
|
318
|
+
self.arm_width,
|
|
319
|
+
self.cross_length,
|
|
320
|
+
self.ground_sliver,
|
|
321
|
+
self.gap,
|
|
322
|
+
claws,
|
|
323
|
+
self.claw_spacing,
|
|
324
|
+
self.claw_base,
|
|
325
|
+
self.claw_finger_width,
|
|
326
|
+
self.claw_length,
|
|
327
|
+
self.claw_tail,
|
|
328
|
+
self.claw_ground,
|
|
329
|
+
self.claw_ground_gap,
|
|
330
|
+
self.claw_tail_length,
|
|
331
|
+
self.claw_tail_width,
|
|
332
|
+
self.claw_tail_gap if self.claw_tail_gap >= 0 else self.b,
|
|
333
|
+
)
|
|
334
|
+
outer = pya.Region().insert(metal.bbox())
|
|
335
|
+
gaps = outer - metal
|
|
336
|
+
|
|
337
|
+
junction_y = -(self.cross_length / 2 + self.gap)
|
|
338
|
+
if self.flux_port:
|
|
339
|
+
tip = pya.DPoint(self.flux_x, junction_y - self.flux_tip_depth)
|
|
340
|
+
self.add_port("flux", tip, pya.DVector(0, -1))
|
|
341
|
+
if len(self.flux_slot) == 2:
|
|
342
|
+
length, width = float(self.flux_slot[0]), float(self.flux_slot[1])
|
|
343
|
+
slot = pya.DBox(tip.x, tip.y - width, tip.x + length, tip.y)
|
|
344
|
+
gaps += pya.Region(slot.to_itype(dbu))
|
|
345
|
+
self.cell.shapes(self.get_layer("base_metal_gap_wo_grid")).insert(gaps)
|
|
346
|
+
self.add_protection(pya.Region(gaps.bbox()).sized(self.margin / dbu))
|
|
347
|
+
|
|
348
|
+
for name in claws:
|
|
349
|
+
if self.claw_tail:
|
|
350
|
+
pos, direction = self._claw_tip(name)
|
|
351
|
+
self.add_port(f"claw_{name}", pos, direction)
|
|
352
|
+
|
|
353
|
+
if len(self.junction_window) in (2, 3):
|
|
354
|
+
w, h = float(self.junction_window[0]), float(self.junction_window[1])
|
|
355
|
+
dy = float(self.junction_window[2]) if len(self.junction_window) == 3 else 0.0
|
|
356
|
+
yc = junction_y + self.gap / 2 - dy # dy > 0 moves the window away from the cross (into the ground)
|
|
357
|
+
window = pya.DBox(-w / 2, yc - h / 2, w / 2, yc + h / 2)
|
|
358
|
+
self.cell.shapes(self.get_layer("base_metal_addition")).insert(window.to_itype(dbu))
|
|
359
|
+
self.refpoints["junction_window"] = window.center()
|
|
360
|
+
elif self.junction_window:
|
|
361
|
+
self.raise_error_on_cell(
|
|
362
|
+
f"junction_window needs [width, height] or [width, height, offset], got {list(self.junction_window)}"
|
|
363
|
+
)
|
|
364
|
+
|
|
365
|
+
if self.junction_type != "No Squid":
|
|
366
|
+
squid_trans = pya.DCplxTrans(1, 0, False, 0, junction_y)
|
|
367
|
+
if self.mirror_squid:
|
|
368
|
+
squid_trans = squid_trans * pya.DTrans.M90
|
|
369
|
+
squid_params = {"window_height": self.gap, **_junction_params(self.junction_params)}
|
|
370
|
+
squid_refs = self.produce_squid(pya.DCplxTrans(1, 0, False, 0, junction_y), **squid_params)
|
|
371
|
+
for ref in ("port_squid_a", "port_squid_b"):
|
|
372
|
+
if ref in squid_refs:
|
|
373
|
+
self.refpoints[ref] = squid_trans * squid_refs[ref]
|
|
374
|
+
self.refpoints["probe_island"] = pya.DPoint(0, 0)
|
|
375
|
+
self.refpoints["probe_ground"] = pya.DPoint(0, junction_y - self.gap)
|