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,376 @@
|
|
|
1
|
+
"""Qubits 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:`TransmonTaperedInsets` — ``SQDMetal/Comps/Qubits.py::TransmonTaperedInsets``: a floating two-pad transmon
|
|
5
|
+
with tapered junction leads, optional pad insets / coupler teeth and connection pads, in a filleted pocket.
|
|
6
|
+
|
|
7
|
+
SQDMetal builds the pads with shapely buffers: ``buffer(+r).buffer(-r)`` (a closing) then ``buffer(-r).buffer(+r)``
|
|
8
|
+
(an opening) with ``r = fillet_radius``; here both are morphological operations with a disc
|
|
9
|
+
(:func:`closing` / :func:`opening`, Minkowski sums with a ``4 × fillet_resolution``-gon), which is what the buffers
|
|
10
|
+
compute up to shapely's mitre joins at sharp concave corners (filleted away by the closing first).
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from __future__ import annotations
|
|
14
|
+
|
|
15
|
+
import json
|
|
16
|
+
import math
|
|
17
|
+
|
|
18
|
+
from kqcircuits.junctions import junction_type_choices
|
|
19
|
+
from kqcircuits.pya_resolver import pya
|
|
20
|
+
from kqcircuits.qubits.qubit import Qubit
|
|
21
|
+
from kqcircuits.util.parameters import Param, pdt
|
|
22
|
+
|
|
23
|
+
from quantcore_circuits.layouts.junctions.sim_gap import sim_junction_in_gap
|
|
24
|
+
from quantcore_circuits.layouts.qubits.xmon import _junction_params
|
|
25
|
+
|
|
26
|
+
# SQDMetal ``_default_connection_pads`` (µm; loc_W / loc_H are -1, 0, +1)
|
|
27
|
+
DEFAULT_CONNECTION_PAD = {
|
|
28
|
+
"pad_gap": 100.0,
|
|
29
|
+
"pad_height": 30.0,
|
|
30
|
+
"pad_width": 200.0,
|
|
31
|
+
"pad_cpw_shift": 0.0,
|
|
32
|
+
"pad_cpw_extent": 25.0,
|
|
33
|
+
"cpw_width": 10.0,
|
|
34
|
+
"cpw_gap": 6.0,
|
|
35
|
+
"cpw_extend": 200.0,
|
|
36
|
+
"pocket_extent": 5.0,
|
|
37
|
+
"pocket_rise": 0.0,
|
|
38
|
+
"fillet_radius_inner": 15.0,
|
|
39
|
+
"fillet_radius_outer": 75.0,
|
|
40
|
+
"fillet_resolution": 16,
|
|
41
|
+
"loc_W": 0,
|
|
42
|
+
"loc_H": 1,
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# ---- morphology (dbu regions) -----------------------------------------------------------------------------------
|
|
47
|
+
def disc_polygon(r: float, n: int) -> pya.Polygon:
|
|
48
|
+
"""Closed ``n``-gon inscribed in a circle of radius ``r`` (dbu) about the origin."""
|
|
49
|
+
return pya.Polygon(
|
|
50
|
+
[
|
|
51
|
+
pya.Point(round(r * math.cos(2 * math.pi * k / n)), round(r * math.sin(2 * math.pi * k / n)))
|
|
52
|
+
for k in range(n)
|
|
53
|
+
]
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def dilate(region: pya.Region, r: float, n: int = 64) -> pya.Region:
|
|
58
|
+
if r <= 0:
|
|
59
|
+
return region.dup()
|
|
60
|
+
return region.minkowski_sum(disc_polygon(r, n)).merged()
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def erode(region: pya.Region, r: float, n: int = 64) -> pya.Region:
|
|
64
|
+
if r <= 0:
|
|
65
|
+
return region.dup()
|
|
66
|
+
frame = pya.Region(region.bbox().enlarged(int(3 * r) + 10))
|
|
67
|
+
return (frame - dilate(frame - region, r, n)).merged()
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def closing(region: pya.Region, r: float, n: int = 64) -> pya.Region:
|
|
71
|
+
"""shapely ``buffer(r).buffer(-r)``: fills concave corners with radius ``r``."""
|
|
72
|
+
return erode(dilate(region, r, n), r, n)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def opening(region: pya.Region, r: float, n: int = 64) -> pya.Region:
|
|
76
|
+
"""shapely ``buffer(-r).buffer(r)``: rounds convex corners with radius ``r``, drops parts narrower than 2r."""
|
|
77
|
+
return dilate(erode(region, r, n), r, n)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def _rect(dbu, x0, y0, x1, y1) -> pya.Region:
|
|
81
|
+
return pya.Region(pya.DBox(min(x0, x1), min(y0, y1), max(x0, x1), max(y0, y1)).to_itype(dbu))
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def _circle(dbu, cx, cy, r, n) -> pya.Region:
|
|
85
|
+
if r <= 0:
|
|
86
|
+
return pya.Region()
|
|
87
|
+
return pya.Region(pya.DPolygon.ellipse(pya.DBox(cx - r, cy - r, cx + r, cy + r), n).to_itype(dbu))
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def _rounded_rect(dbu, cx, cy, w, h, r, n) -> pya.Region:
|
|
91
|
+
"""shapely ``rectangle(w - 2r, h - 2r).buffer(r)``: a ``w × h`` box with corner radius ``r``."""
|
|
92
|
+
box = pya.DPolygon(pya.DBox(cx - w / 2, cy - h / 2, cx + w / 2, cy + h / 2))
|
|
93
|
+
if r > 0:
|
|
94
|
+
box = box.round_corners(0, min(r, w / 2, h / 2), n)
|
|
95
|
+
return pya.Region(box.to_itype(dbu))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def _path(dbu, points, width) -> pya.Region:
|
|
99
|
+
return pya.Region(pya.DPath([pya.DPoint(x, y) for x, y in points], width).polygon().to_itype(dbu))
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def _mirror(sx: float, sy: float) -> pya.DCplxTrans:
|
|
103
|
+
"""The scaling (x, y) → (sx·x, sy·y) for sx, sy = ±1."""
|
|
104
|
+
if sx > 0 and sy > 0:
|
|
105
|
+
return pya.DCplxTrans()
|
|
106
|
+
if sx < 0 and sy < 0:
|
|
107
|
+
return pya.DCplxTrans(1, 180, False, 0, 0)
|
|
108
|
+
return pya.DCplxTrans(1, 0, True, 0, 0) if sy < 0 else pya.DCplxTrans(1, 180, True, 0, 0)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
def connection_pad_options(name: str, options: dict) -> dict:
|
|
112
|
+
unknown = sorted(set(options) - set(DEFAULT_CONNECTION_PAD) - {"pin_y_distance"})
|
|
113
|
+
if unknown:
|
|
114
|
+
raise ValueError(f"connection pad {name!r}: unknown option(s) {unknown}")
|
|
115
|
+
return {**DEFAULT_CONNECTION_PAD, **options}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
class TransmonTaperedInsets(Qubit):
|
|
119
|
+
"""Floating tapered-pad transmon in a filleted pocket (SQDMetal ``TransmonTaperedInsets``).
|
|
120
|
+
|
|
121
|
+
Re-implemented from sqdlab/SQDMetal ``SQDMetal/Comps/Qubits.py`` (Apache-2.0), same option names in µm, qubit
|
|
122
|
+
centre at the origin, pads stacked in y (SQDMetal ``orientation`` 0; use the placement rotation for others).
|
|
123
|
+
Two ``pad_width`` × ``pad_height`` pads with round ends ``pad_gap`` apart, each with a ``taper_width_base`` →
|
|
124
|
+
``taper_width_top`` taper of ``taper_height`` towards the junction (at x = 0, or at a pad end with
|
|
125
|
+
``junction_position`` "right" / "left" and ``junction_x_offset``), pad corners filleted with ``fillet_radius``;
|
|
126
|
+
optional insets (``inset_width`` × ``inset_depth`` notches in the pad ends) and coupler teeth on the top pad
|
|
127
|
+
(``coupled_pad_*``, drawn when a connection pad sits at loc_W 0, loc_H +1). The pocket is ``pocket_width`` ×
|
|
128
|
+
(``pocket_height`` − ``pocket_lower_tighten``) with ``fillet_radius_gap`` corners, top edge at
|
|
129
|
+
``pocket_height / 2``. The pads, connection pads and wires are also drawn on ``base_metal_addition`` (SQDMetal
|
|
130
|
+
metal is positive: it wins over any etch on top of it, e.g. a capacitor's clearance box in the pocket).
|
|
131
|
+
|
|
132
|
+
``connection_pads`` (dict / JSON ``{name: {options}}``, SQDMetal defaults: ``pad_gap`` 100, ``pad_width`` 200,
|
|
133
|
+
``pad_height`` 30, ``cpw_width`` 10, ``cpw_gap`` 6, ``cpw_extend`` 200, ``loc_W`` 0, ``loc_H`` 1, …): a filleted
|
|
134
|
+
pad ``pad_gap`` beyond the qubit pad with a CPW wire out of the pocket to port ``<name>`` (a/b = cpw_width /
|
|
135
|
+
cpw_gap). SQDMetal ends a loc_W 0 wire at ``pocket_width / 2 + cpw_extend`` from the centre (it uses the pocket
|
|
136
|
+
*width* there); kept.
|
|
137
|
+
|
|
138
|
+
Ports at SQDMetal's pins, with SQDMetal's normals (kept as they are, a/b = the element ``a``/``b``):
|
|
139
|
+
``top_right_pin`` / ``top_left_pin`` (x = ±(pocket_width/2 + chrgln_pin_y_offset), level with the top pad +
|
|
140
|
+
``chrgln_pin_x_offset``; both face +x), ``bottom_right_pin`` / ``bottom_left_pin`` (level with the bottom pad;
|
|
141
|
+
face +y), ``top_pocket_pin`` (0, pocket_height/2; faces +x), ``bottom_pocket_pin`` (0, −pocket_height/2; faces
|
|
142
|
+
−x). These mark where a charge line or a :class:`~quantcore_circuits.layouts.others.sqdmetal_cells.
|
|
143
|
+
SmoothCapacitorSemicircle` goes; they are not CPW ends. SQDMetal's junction pins are refpoints ``pin_island`` /
|
|
144
|
+
``pin_reservoir``.
|
|
145
|
+
|
|
146
|
+
Junction: SQDMetal draws only a junction line (``inductor_width`` × ``inductor_height``, centred); its ends are
|
|
147
|
+
``port_squid_a`` (top pad = island) / ``port_squid_b``. ``junction_type`` (KQC / Quantcore junction cell,
|
|
148
|
+
``"No Squid"`` = none) is placed across the taper-tip gap, ``junction_params`` go to it.
|
|
149
|
+
"""
|
|
150
|
+
|
|
151
|
+
inductor_width = Param(pdt.TypeDouble, "Junction line width", 20, unit="μm")
|
|
152
|
+
inductor_height = Param(pdt.TypeDouble, "Junction line length", 36, unit="μm")
|
|
153
|
+
chrgln_pin_x_offset = Param(pdt.TypeDouble, "Corner pins: offset along y from the pad centre line", 30, unit="μm")
|
|
154
|
+
chrgln_pin_y_offset = Param(pdt.TypeDouble, "Corner pins: offset along x from the pocket edge", 50, unit="μm")
|
|
155
|
+
junction_pin_inset = Param(pdt.TypeDouble, "Junction pins inset from the pad edge", 0, unit="μm")
|
|
156
|
+
pad_gap = Param(pdt.TypeDouble, "Gap between the pads", 100, unit="μm")
|
|
157
|
+
pad_width = Param(pdt.TypeDouble, "Pad width (x, without the round ends)", 800, unit="μm")
|
|
158
|
+
pad_height = Param(pdt.TypeDouble, "Pad height (y)", 110, unit="μm")
|
|
159
|
+
pocket_width = Param(pdt.TypeDouble, "Pocket width", 1000, unit="μm")
|
|
160
|
+
pocket_height = Param(pdt.TypeDouble, "Pocket height", 800, unit="μm")
|
|
161
|
+
pocket_lower_tighten = Param(pdt.TypeDouble, "Pocket shortened from below by", 120, unit="μm")
|
|
162
|
+
taper_width_top = Param(pdt.TypeDouble, "Taper width at the junction", 40, unit="μm")
|
|
163
|
+
taper_width_base = Param(pdt.TypeDouble, "Taper width at the pad", 200, unit="μm")
|
|
164
|
+
taper_height = Param(pdt.TypeDouble, "Taper height (0 = no taper)", 40, unit="μm")
|
|
165
|
+
taper_fillet_radius = Param(pdt.TypeDouble, "Taper corner radius", 3, unit="μm")
|
|
166
|
+
junction_position = Param(
|
|
167
|
+
pdt.TypeString,
|
|
168
|
+
"Junction position (SQDMetal junction_centered True / False / 'left')",
|
|
169
|
+
"center",
|
|
170
|
+
choices=["center", "right", "left"],
|
|
171
|
+
)
|
|
172
|
+
junction_x_offset = Param(pdt.TypeDouble, "Junction offset from the pad end (right / left)", 0, unit="μm")
|
|
173
|
+
inset_width = Param(pdt.TypeDouble, "Inset width (0 = none)", 0, unit="μm")
|
|
174
|
+
inset_depth = Param(pdt.TypeDouble, "Inset depth", 100, unit="μm")
|
|
175
|
+
inset_fillet_radius = Param(pdt.TypeDouble, "Inset corner radius", 10, unit="μm")
|
|
176
|
+
fillet_radius = Param(pdt.TypeDouble, "Pad fillet radius", 50, unit="μm")
|
|
177
|
+
fillet_resolution = Param(pdt.TypeInt, "Fillet points per quarter circle", 16)
|
|
178
|
+
fillet_radius_gap = Param(pdt.TypeDouble, "Pocket corner radius", 50, unit="μm")
|
|
179
|
+
coupled_pad_height = Param(pdt.TypeDouble, "Coupler teeth height (0 = none)", 0, unit="μm")
|
|
180
|
+
coupled_pad_width = Param(pdt.TypeDouble, "Coupler teeth width", 0, unit="μm")
|
|
181
|
+
coupled_pad_gap = Param(pdt.TypeDouble, "Gap between the coupler teeth", 0, unit="μm")
|
|
182
|
+
connection_pads = Param(pdt.TypeString, "Connection pads (JSON {name: {options}})", "{}")
|
|
183
|
+
junction_params = Param(pdt.TypeString, "Junction cell parameters (JSON dict)", "{}")
|
|
184
|
+
junction_type = Param(
|
|
185
|
+
pdt.TypeString,
|
|
186
|
+
"Junction Type",
|
|
187
|
+
"Manhattan",
|
|
188
|
+
choices=junction_type_choices
|
|
189
|
+
+ ["Trilayer Junction", "Trilayer Squid", "Quantcore Junction", "Quantcore Squid"],
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
qcc_category = "qubit"
|
|
193
|
+
|
|
194
|
+
@classmethod
|
|
195
|
+
def qcc_params(cls, params: dict) -> dict:
|
|
196
|
+
"""design.json params → PCell params: dict-valued ``connection_pads`` / ``junction_params`` → JSON."""
|
|
197
|
+
params = dict(params)
|
|
198
|
+
unknown = sorted(set(params) - set(cls.get_schema()))
|
|
199
|
+
if unknown:
|
|
200
|
+
raise ValueError(f"TransmonTaperedInsets: unknown parameter(s) {unknown}")
|
|
201
|
+
for key in ("connection_pads", "junction_params"):
|
|
202
|
+
if isinstance(params.get(key), dict):
|
|
203
|
+
params[key] = json.dumps(params[key], sort_keys=True)
|
|
204
|
+
for name, opts in _junction_params(params.get("connection_pads", "{}")).items():
|
|
205
|
+
connection_pad_options(name, opts)
|
|
206
|
+
return params
|
|
207
|
+
|
|
208
|
+
@classmethod
|
|
209
|
+
def qcc_port_widths(cls, params: dict) -> dict:
|
|
210
|
+
"""Connection-pad wires: a/b = their cpw_width / cpw_gap."""
|
|
211
|
+
pads = _junction_params(params.get("connection_pads", "{}"))
|
|
212
|
+
return {
|
|
213
|
+
name: (float(o["cpw_width"]), float(o["cpw_gap"]))
|
|
214
|
+
for name, o in ((n, connection_pad_options(n, opts)) for n, opts in pads.items())
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
def _taper_x(self) -> float:
|
|
218
|
+
if self.junction_position == "right":
|
|
219
|
+
return self.pad_width / 2 - self.taper_width_base / 2 + self.junction_x_offset
|
|
220
|
+
if self.junction_position == "left":
|
|
221
|
+
return -self.pad_width / 2 + self.taper_width_base / 2 - self.junction_x_offset
|
|
222
|
+
return 0.0
|
|
223
|
+
|
|
224
|
+
def _trapezoid(self, dbu, tx, y_base, sign) -> pya.Region:
|
|
225
|
+
"""Taper: base ``taper_width_base`` on the pad edge at ``y_base``, tip ``taper_height`` towards ``sign``."""
|
|
226
|
+
hb, ht, th = self.taper_width_base / 2, self.taper_width_top / 2, self.taper_height
|
|
227
|
+
poly = pya.DPolygon(
|
|
228
|
+
[
|
|
229
|
+
pya.DPoint(tx - hb, y_base),
|
|
230
|
+
pya.DPoint(tx - ht, y_base + sign * th),
|
|
231
|
+
pya.DPoint(tx + ht, y_base + sign * th),
|
|
232
|
+
pya.DPoint(tx + hb, y_base),
|
|
233
|
+
]
|
|
234
|
+
)
|
|
235
|
+
if self.taper_fillet_radius > 0:
|
|
236
|
+
poly = poly.round_corners(0, self.taper_fillet_radius, 36)
|
|
237
|
+
return pya.Region(poly.to_itype(dbu))
|
|
238
|
+
|
|
239
|
+
def _pad(self, dbu, sign, teeth: bool) -> pya.Region:
|
|
240
|
+
"""Top (sign +1) or bottom (-1) pad, filleted as SQDMetal does."""
|
|
241
|
+
pw, ph, pg = self.pad_width, self.pad_height, self.pad_gap
|
|
242
|
+
n = 64
|
|
243
|
+
yc = sign * (ph + pg) / 2
|
|
244
|
+
pad = _rect(dbu, -pw / 2, yc - ph / 2, pw / 2, yc + ph / 2)
|
|
245
|
+
pad += _circle(dbu, -pw / 2, yc, ph / 2, n) + _circle(dbu, pw / 2, yc, ph / 2, n)
|
|
246
|
+
if self.taper_height > 0:
|
|
247
|
+
pad += self._trapezoid(dbu, self._taper_x(), sign * pg / 2, -sign)
|
|
248
|
+
if teeth and self.coupled_pad_width > 0:
|
|
249
|
+
cw, ch, cg = self.coupled_pad_width, self.coupled_pad_height, self.coupled_pad_gap
|
|
250
|
+
for s in (-1, 1):
|
|
251
|
+
x = s * (cw / 2 + cg / 2)
|
|
252
|
+
cy = ch / 2 + ph / 2 + pg / 2
|
|
253
|
+
pad += _rect(dbu, x - cw / 2, cy - (ch + ph) / 2, x + cw / 2, cy + (ch + ph) / 2)
|
|
254
|
+
pad += _circle(dbu, x, cy + (ch + ph) / 2, cw / 2, n)
|
|
255
|
+
pad.merge()
|
|
256
|
+
r, k = self.fillet_radius / dbu, 4 * int(self.fillet_resolution)
|
|
257
|
+
pad = opening(closing(pad, r, k), r, k)
|
|
258
|
+
if self.inset_depth != 0 and self.inset_width != 0:
|
|
259
|
+
ifr = self.inset_fillet_radius
|
|
260
|
+
y = sign * (pg / 2 + ph / 2)
|
|
261
|
+
x_left = -pw / 2 - ph / 2 + self.inset_depth / 2 - ifr
|
|
262
|
+
for x in (x_left, -x_left):
|
|
263
|
+
pad -= _rounded_rect(dbu, x, y, self.inset_depth, self.inset_width, ifr, 36)
|
|
264
|
+
pad = opening(pad, ifr / dbu, 3 * k)
|
|
265
|
+
return pad.merged()
|
|
266
|
+
|
|
267
|
+
def _connection_pad(self, dbu, name, o):
|
|
268
|
+
"""(metal, etch, port position, port direction) of one SQDMetal connection pad."""
|
|
269
|
+
pw, ph, pg, pkw = self.pad_width, self.pad_height, self.pad_gap, self.pocket_width
|
|
270
|
+
r, r_out, cw = o["fillet_radius_inner"], o["fillet_radius_outer"], o["cpw_width"]
|
|
271
|
+
cpw, cph = o["pad_width"], o["pad_height"]
|
|
272
|
+
n = 4 * int(o["fillet_resolution"])
|
|
273
|
+
loc_w, loc_h = float(o["loc_W"]), float(o["loc_H"])
|
|
274
|
+
if loc_w not in (-1.0, 0.0, 1.0) or loc_h not in (-1.0, 1.0):
|
|
275
|
+
raise ValueError(f"connection pad {name!r}: loc_W must be -1, 0 or 1 and loc_H -1 or 1")
|
|
276
|
+
if cpw - 2 * r < 0 or cph - 2 * r < 0:
|
|
277
|
+
raise ValueError(f"connection pad {name!r}: pad_width/pad_height too small for fillet_radius_inner {r}")
|
|
278
|
+
if cpw / 2 - cw / 2 - r < r_out:
|
|
279
|
+
raise ValueError(f"connection pad {name!r}: fillet_radius_outer {r_out} too large for pad_width {cpw}")
|
|
280
|
+
if loc_w != 0:
|
|
281
|
+
pad = _rounded_rect(dbu, -cpw / 2, cph / 2, cpw, cph, r, n)
|
|
282
|
+
y0 = o["pad_cpw_shift"] + cw / 2
|
|
283
|
+
wire = [
|
|
284
|
+
(0, y0),
|
|
285
|
+
(o["pad_cpw_extent"], y0),
|
|
286
|
+
((pkw - pw) / 2 - o["pocket_extent"], y0 + o["pocket_rise"]),
|
|
287
|
+
((pkw - pw) / 2 + o["cpw_extend"], y0 + o["pocket_rise"]),
|
|
288
|
+
]
|
|
289
|
+
else:
|
|
290
|
+
pad = _rounded_rect(dbu, 0, cph / 2, cpw, cph, r, n)
|
|
291
|
+
if r_out > 0:
|
|
292
|
+
for s in (-1, 1):
|
|
293
|
+
xc = s * (cw / 2 + r_out / 2)
|
|
294
|
+
corner = _rect(dbu, xc - r_out / 2, cph, xc + r_out / 2, cph + r_out)
|
|
295
|
+
pad += corner - _circle(dbu, s * (cw / 2 + r_out), cph + r_out, r_out, 128)
|
|
296
|
+
wire = [(0, cph), (0, (pkw / 2 - ph - pg / 2 - o["pad_gap"]) + o["cpw_extend"])]
|
|
297
|
+
# SQDMetal: scale by (loc_W or 1, loc_H) about the origin, then translate
|
|
298
|
+
trans = pya.DCplxTrans(pya.DVector(loc_w * pw / 2, loc_h * (ph + pg / 2 + o["pad_gap"]))) * _mirror(
|
|
299
|
+
1.0 if loc_w == 0 else loc_w, loc_h
|
|
300
|
+
)
|
|
301
|
+
pts = [trans * pya.DPoint(x, y) for x, y in wire]
|
|
302
|
+
pad = pad.transformed(trans.to_itrans(dbu))
|
|
303
|
+
path = [(p.x, p.y) for p in pts]
|
|
304
|
+
metal = pad + _path(dbu, path, cw)
|
|
305
|
+
etch = _path(dbu, path, cw + 2 * o["cpw_gap"])
|
|
306
|
+
end, before = pts[-1], pts[-2]
|
|
307
|
+
d = end - before
|
|
308
|
+
return metal, etch, end, d / d.length()
|
|
309
|
+
|
|
310
|
+
def build(self):
|
|
311
|
+
dbu = self.layout.dbu
|
|
312
|
+
ph, pg = self.pad_height, self.pad_gap
|
|
313
|
+
pkw, pkh, low = self.pocket_width, self.pocket_height, self.pocket_lower_tighten
|
|
314
|
+
try:
|
|
315
|
+
pads = _junction_params(self.connection_pads)
|
|
316
|
+
pads = {name: connection_pad_options(name, opts) for name, opts in pads.items()}
|
|
317
|
+
except ValueError as e:
|
|
318
|
+
self.raise_error_on_cell(f"TransmonTaperedInsets: {e}")
|
|
319
|
+
teeth = any(float(o["loc_W"]) == 0 and float(o["loc_H"]) == 1 for o in pads.values())
|
|
320
|
+
metal = self._pad(dbu, 1, teeth) + self._pad(dbu, -1, False)
|
|
321
|
+
pocket_h = pkh - low
|
|
322
|
+
pocket = _rounded_rect(dbu, 0, low / 2, pkw, pocket_h, self.fillet_radius_gap, 4 * int(self.fillet_resolution))
|
|
323
|
+
etch = pocket
|
|
324
|
+
ports = []
|
|
325
|
+
for name, o in pads.items():
|
|
326
|
+
try:
|
|
327
|
+
m, e, pos, direction = self._connection_pad(dbu, name, o)
|
|
328
|
+
except ValueError as err:
|
|
329
|
+
self.raise_error_on_cell(f"TransmonTaperedInsets: {err}")
|
|
330
|
+
metal += m
|
|
331
|
+
etch += e
|
|
332
|
+
ports.append((name, pos, direction))
|
|
333
|
+
gaps = (etch - metal).merged()
|
|
334
|
+
self.cell.shapes(self.get_layer("base_metal_gap_wo_grid")).insert(gaps)
|
|
335
|
+
# SQDMetal pads are positive metal: they survive another cell's etch over them (e.g. a capacitor's
|
|
336
|
+
# clearance box in the pocket), as base_metal_addition does at fab export
|
|
337
|
+
self.cell.shapes(self.get_layer("base_metal_addition")).insert(metal.merged())
|
|
338
|
+
self.add_protection(pya.Region(gaps.bbox()).sized(self.margin / dbu))
|
|
339
|
+
for name, pos, direction in ports:
|
|
340
|
+
self.add_port(name, pos, direction)
|
|
341
|
+
|
|
342
|
+
tx = self._taper_x()
|
|
343
|
+
lp = self.taper_height if self.taper_height > 0 else 1e-3 # SQDMetal pin_route_l (1 nm without a taper)
|
|
344
|
+
xr, xl = pkw / 2 + self.chrgln_pin_y_offset, -pkw / 2 - self.chrgln_pin_y_offset
|
|
345
|
+
y_top, y_bot = pg / 2 + ph / 2 + self.chrgln_pin_x_offset, -pg / 2 - ph / 2 + self.chrgln_pin_x_offset
|
|
346
|
+
for name, pos, direction in (
|
|
347
|
+
("top_right_pin", (xr, y_top), (1, 0)),
|
|
348
|
+
("top_left_pin", (xl, y_top), (1, 0)),
|
|
349
|
+
("bottom_right_pin", (xr, y_bot), (0, 1)),
|
|
350
|
+
("bottom_left_pin", (xl, y_bot), (0, 1)),
|
|
351
|
+
("top_pocket_pin", (0, pkh / 2), (1, 0)),
|
|
352
|
+
("bottom_pocket_pin", (0, -pkh / 2), (-1, 0)),
|
|
353
|
+
):
|
|
354
|
+
self.add_port(name, pya.DPoint(*pos), pya.DVector(*direction))
|
|
355
|
+
inset = self.junction_pin_inset
|
|
356
|
+
self.refpoints["pin_island"] = pya.DPoint(tx, pg / 2 + inset - lp / 2)
|
|
357
|
+
self.refpoints["pin_reservoir"] = pya.DPoint(tx, -pg / 2 - inset + lp / 2)
|
|
358
|
+
self.refpoints["port_squid_a"] = pya.DPoint(tx, self.inductor_height / 2)
|
|
359
|
+
self.refpoints["port_squid_b"] = pya.DPoint(tx, -self.inductor_height / 2)
|
|
360
|
+
self.refpoints["junction"] = pya.DPoint(tx, 0)
|
|
361
|
+
if self.junction_type != "No Squid":
|
|
362
|
+
gap = pg - 2 * max(self.taper_height, 0)
|
|
363
|
+
if gap <= 0:
|
|
364
|
+
self.raise_error_on_cell("TransmonTaperedInsets: the tapers overlap (2 × taper_height >= pad_gap)")
|
|
365
|
+
trans = pya.DCplxTrans(1, 0, False, tx, -gap / 2)
|
|
366
|
+
sim = {}
|
|
367
|
+
if self.junction_type == "Sim": # simulation stand-in: pads into both taper tips, port in the gap
|
|
368
|
+
shift, sim = sim_junction_in_gap(gap)
|
|
369
|
+
trans = trans * pya.DCplxTrans(1, 0, False, 0, -shift)
|
|
370
|
+
params = {"junction_total_length": gap, "window_height": gap, **sim,
|
|
371
|
+
**_junction_params(self.junction_params)}
|
|
372
|
+
refs = self.produce_squid(trans, **params)
|
|
373
|
+
squid_trans = trans * pya.DTrans.M90 if self.mirror_squid else trans
|
|
374
|
+
for ref in ("port_squid_a", "port_squid_b"):
|
|
375
|
+
if ref in refs:
|
|
376
|
+
self.refpoints[ref] = squid_trans * refs[ref]
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"""Quantcore concentric transmon with the PDK trilayer junction.
|
|
2
|
+
|
|
3
|
+
A copy of KQC ``ConcentricTransmon`` (same islands, couplers, drive port, parameters, ports and LOM): only the
|
|
4
|
+
junction differs. ``junction_type`` offers the Quantcore trilayer cells and defaults to ``"Quantcore Squid"`` (the PDK
|
|
5
|
+
nominal SQUID, L_J 6.73 nH, C_J 15 fF); ``junction_params`` (JSON dict, as on the Xmon) is passed to that cell, e.g.
|
|
6
|
+
``{"lj_nH": 8}``. The fingers (2/0, 4/0), spacer (50/0) and gradient (51-53/0) land where KQC's SQUID lands.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
import json
|
|
10
|
+
|
|
11
|
+
from kqcircuits.junctions import junction_type_choices
|
|
12
|
+
from kqcircuits.qubits.concentric_transmon import ConcentricTransmon
|
|
13
|
+
from kqcircuits.util.parameters import Param, pdt
|
|
14
|
+
|
|
15
|
+
from quantcore_circuits.layouts.qubits.xmon import _junction_params
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class TrilayerConcentricTransmon(ConcentricTransmon):
|
|
19
|
+
"""Concentric transmon (KQC geometry) shunted by a Quantcore trilayer junction / SQUID."""
|
|
20
|
+
|
|
21
|
+
qcc_category = "qubit"
|
|
22
|
+
|
|
23
|
+
junction_type = Param(
|
|
24
|
+
pdt.TypeString,
|
|
25
|
+
"Junction Type",
|
|
26
|
+
"Quantcore Squid",
|
|
27
|
+
choices=junction_type_choices
|
|
28
|
+
+ ["Trilayer Junction", "Trilayer Squid", "Quantcore Junction", "Quantcore Squid"],
|
|
29
|
+
)
|
|
30
|
+
junction_params = Param(pdt.TypeString, "Junction cell parameters (JSON dict)", "{}")
|
|
31
|
+
|
|
32
|
+
@classmethod
|
|
33
|
+
def qcc_params(cls, params: dict) -> dict:
|
|
34
|
+
"""design.json params → PCell params: ``junction_params`` dict → JSON. Unknown parameters raise."""
|
|
35
|
+
params = dict(params)
|
|
36
|
+
unknown = sorted(set(params) - set(cls.get_schema()))
|
|
37
|
+
if unknown:
|
|
38
|
+
raise ValueError(f"TrilayerConcentricTransmon: unknown parameter(s) {unknown}")
|
|
39
|
+
jp = params.get("junction_params")
|
|
40
|
+
if isinstance(jp, dict):
|
|
41
|
+
params["junction_params"] = json.dumps(jp, sort_keys=True)
|
|
42
|
+
elif isinstance(jp, str):
|
|
43
|
+
_junction_params(jp) # validate
|
|
44
|
+
return params
|
|
45
|
+
|
|
46
|
+
def produce_squid(self, transf, only_arms=False, **parameters):
|
|
47
|
+
"""The base ``produce_squid`` with ``junction_params`` passed to the junction cell."""
|
|
48
|
+
return super().produce_squid(transf, only_arms, **{**_junction_params(self.junction_params), **parameters})
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def qcc_lom(cls, name: str, inst, pdk):
|
|
52
|
+
"""The KQC ConcentricTransmon model; without ``junction.Lj_nH`` in the design the junction takes the drawn
|
|
53
|
+
trilayer junction's L_J / C_J on the PDK rule."""
|
|
54
|
+
from quantcore_circuits.lom.fragment import cell_params, drawn_junction # pylint: disable=C0415
|
|
55
|
+
from quantcore_circuits.lom.kqc_models import concentric_lom # pylint: disable=C0415
|
|
56
|
+
|
|
57
|
+
frag = concentric_lom(name, inst, pdk)
|
|
58
|
+
drawn = drawn_junction(cell_params(inst))
|
|
59
|
+
for el in frag.elements:
|
|
60
|
+
if el.name == f"J_{name}" and el.value.get("Lj_nH") is None and drawn is not None:
|
|
61
|
+
lj, cj, source = drawn
|
|
62
|
+
el.value.update({"Lj_nH": lj, "Cj_fF": cj, "source": source})
|
|
63
|
+
frag.knobs[f"{name}.junction.Lj_nH"] = (round(lj * 0.5, 3), round(lj * 1.5, 3))
|
|
64
|
+
frag.notes = [n for n in frag.notes if "no junction.Lj_nH" not in n]
|
|
65
|
+
return frag
|