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,342 @@
|
|
|
1
|
+
"""Geometry checks of an exported Ansys job folder (no solver, no AEDT): what Q3D / HFSS reject or silently get wrong.
|
|
2
|
+
|
|
3
|
+
The checks read what AEDT imports: ``<sim>.json`` (KQC layers with z, thickness and excitation; ports) and
|
|
4
|
+
``<sim>.gds`` (one AEDT object per GDS polygon, named ``<layer>_<k>``).
|
|
5
|
+
|
|
6
|
+
* **nets disjoint** — two metal objects of different excitations (KQC nets) must not touch or overlap where their
|
|
7
|
+
z ranges meet: Q3D stops with ``Object 'a' in Net 'x' and object 'b' in Net 'y' are touching``.
|
|
8
|
+
* **no point / edge contacts** — two objects of the *same* net that touch without overlapping (e.g. a junction pad
|
|
9
|
+
ending on a curved island at one polygon vertex) count as connected for KQC (``Region.interacting``) but not for
|
|
10
|
+
Q3D's ``AutoIdentifyNets``, which splits the net and then reports the same "touching" error.
|
|
11
|
+
* **one piece per net** — a signal net in two disconnected pieces becomes two Q3D nets (C-matrix rows mislabelled).
|
|
12
|
+
* **floating metal off the boundary** — a signal object reaching the top or bottom of the simulation domain (an
|
|
13
|
+
indium bump with no opposite face) is shorted to the outer boundary in HFSS and adds a pillar's capacitance in Q3D.
|
|
14
|
+
* **junction ports** — each junction port has a polygon that KQC itself could build (its signal and ground points on
|
|
15
|
+
metal edges: no ``Unable to create polygon for port`` warning), the sheet lies in the gap (no metal inside it), its
|
|
16
|
+
signal and ground edges touch two *different* nets, neither island net reaches the box edge (joined to the ground
|
|
17
|
+
plane), and the signal net carries the port's island label.
|
|
18
|
+
* **line / pad ports** — every other internal port has a polygon (a line end the box edge cuts in a bend or a taper
|
|
19
|
+
has none) and its signal and ground points lie on it (AEDT draws the port's current line between them).
|
|
20
|
+
|
|
21
|
+
Use :func:`check_job` (``{"errors": [...], "warnings": [...]}``) or ``python scripts/check_sim_export.py <job>...``.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
from __future__ import annotations
|
|
25
|
+
|
|
26
|
+
import json
|
|
27
|
+
import math
|
|
28
|
+
from dataclasses import dataclass
|
|
29
|
+
from pathlib import Path
|
|
30
|
+
|
|
31
|
+
from kqcircuits.pya_resolver import pya
|
|
32
|
+
|
|
33
|
+
AREA_EPS_UM2 = 1e-6 # overlap below this is a touch, not a galvanic join
|
|
34
|
+
PORT_METAL_EPS_UM2 = 0.05 # metal allowed inside a port sheet (rounding at its corners)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@dataclass
|
|
38
|
+
class MetalObject:
|
|
39
|
+
"""One AEDT object: a GDS polygon of a KQC metal layer."""
|
|
40
|
+
|
|
41
|
+
name: str # AEDT-style name, ``<layer>_<k>``
|
|
42
|
+
layer: str
|
|
43
|
+
excitation: int
|
|
44
|
+
z0: float
|
|
45
|
+
z1: float
|
|
46
|
+
region: pya.Region
|
|
47
|
+
bbox: pya.Box
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def _read(job: Path) -> tuple[dict, dict, pya.Layout]:
|
|
51
|
+
meta = json.loads((job / "job.json").read_text(encoding="utf-8"))
|
|
52
|
+
sim_name = meta.get("simulation_name") or job.name
|
|
53
|
+
sim = json.loads((job / f"{sim_name}.json").read_text(encoding="utf-8"))
|
|
54
|
+
layout = pya.Layout()
|
|
55
|
+
layout.read(str(job / sim.get("gds_file", f"{sim_name}.gds")))
|
|
56
|
+
return meta, sim, layout
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def metal_objects(sim: dict, layout: pya.Layout) -> list[MetalObject]:
|
|
60
|
+
"""The metal objects AEDT creates: one per GDS polygon of every layer with an ``excitation``."""
|
|
61
|
+
top = layout.top_cell()
|
|
62
|
+
out = []
|
|
63
|
+
for name, d in sim.get("layers", {}).items():
|
|
64
|
+
if "excitation" not in d or "layer" not in d:
|
|
65
|
+
continue
|
|
66
|
+
li = layout.find_layer(int(d["layer"]), 0)
|
|
67
|
+
if li is None:
|
|
68
|
+
continue
|
|
69
|
+
z = float(d.get("z", 0.0))
|
|
70
|
+
t = float(d.get("thickness", 0.0))
|
|
71
|
+
it = top.begin_shapes_rec(li)
|
|
72
|
+
k = 0
|
|
73
|
+
while not it.at_end():
|
|
74
|
+
shape = it.shape()
|
|
75
|
+
if shape.is_polygon() or shape.is_box() or shape.is_path() or shape.is_simple_polygon():
|
|
76
|
+
poly = shape.polygon.transformed(it.trans())
|
|
77
|
+
region = pya.Region(poly)
|
|
78
|
+
out.append(MetalObject(f"{name}_{k}", name, int(d["excitation"]), min(z, z + t), max(z, z + t),
|
|
79
|
+
region, poly.bbox()))
|
|
80
|
+
k += 1
|
|
81
|
+
it.next()
|
|
82
|
+
return out
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def _domain_z(sim: dict) -> tuple[float, float]:
|
|
86
|
+
zs = [float(d.get("z", 0.0)) for d in sim.get("layers", {}).values()]
|
|
87
|
+
zs += [float(d.get("z", 0.0)) + float(d.get("thickness", 0.0)) for d in sim.get("layers", {}).values()]
|
|
88
|
+
return (min(zs), max(zs)) if zs else (0.0, 0.0)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def _where(region: pya.Region, dbu: float) -> str:
|
|
92
|
+
b = region.bbox().to_dtype(dbu)
|
|
93
|
+
return f"({b.center().x:.1f}, {b.center().y:.1f}) µm"
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def check_nets(objs: list[MetalObject], dbu: float, z_eps: float = 1e-9) -> tuple[list[str], list[str]]:
|
|
97
|
+
"""Net disjointness, same-net point/edge contacts and pieces per net (see module docstring)."""
|
|
98
|
+
errors, warnings = [], []
|
|
99
|
+
parent = list(range(len(objs)))
|
|
100
|
+
|
|
101
|
+
def find(i):
|
|
102
|
+
while parent[i] != i:
|
|
103
|
+
parent[i] = parent[parent[i]]
|
|
104
|
+
i = parent[i]
|
|
105
|
+
return i
|
|
106
|
+
|
|
107
|
+
area_eps = AREA_EPS_UM2 / dbu**2
|
|
108
|
+
for i, a in enumerate(objs):
|
|
109
|
+
for j in range(i + 1, len(objs)):
|
|
110
|
+
b = objs[j]
|
|
111
|
+
if a.z0 > b.z1 + z_eps or b.z0 > a.z1 + z_eps or not a.bbox.touches(b.bbox):
|
|
112
|
+
continue
|
|
113
|
+
if a.region.interacting(b.region).is_empty():
|
|
114
|
+
continue
|
|
115
|
+
overlap = (a.region & b.region).area()
|
|
116
|
+
if a.excitation != b.excitation:
|
|
117
|
+
kind = "overlap" if overlap > area_eps else "touch"
|
|
118
|
+
errors.append(
|
|
119
|
+
f"nets {a.excitation} and {b.excitation} {kind}: {a.name} / {b.name} at "
|
|
120
|
+
f"{_where(a.region & b.region if overlap else (a.region.sized(1) & b.region.sized(1)), dbu)}"
|
|
121
|
+
)
|
|
122
|
+
elif overlap <= area_eps and a.excitation != 0:
|
|
123
|
+
# ground objects are separate Q3D ground nets anyway; a signal net joined at a point/edge is split
|
|
124
|
+
errors.append(
|
|
125
|
+
f"net {a.excitation}: {a.name} and {b.name} touch without overlapping (AEDT sees two "
|
|
126
|
+
f"conductors) at {_where(a.region.sized(1) & b.region.sized(1), dbu)}"
|
|
127
|
+
)
|
|
128
|
+
else:
|
|
129
|
+
parent[find(i)] = find(j)
|
|
130
|
+
pieces: dict[int, set[int]] = {}
|
|
131
|
+
for i, o in enumerate(objs):
|
|
132
|
+
pieces.setdefault(o.excitation, set()).add(find(i))
|
|
133
|
+
for exc, roots in sorted(pieces.items()):
|
|
134
|
+
if exc != 0 and len(roots) > 1:
|
|
135
|
+
warnings.append(f"net {exc} is {len(roots)} separate conductors (Q3D makes one net of each)")
|
|
136
|
+
return errors, warnings
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def _excitation_at(objs: list[MetalObject], point: pya.DPoint, dbu: float, z: float) -> int | None:
|
|
140
|
+
p = point.to_itype(dbu)
|
|
141
|
+
probe = pya.Region(pya.Box(p.x - 1, p.y - 1, p.x + 1, p.y + 1))
|
|
142
|
+
hits = {
|
|
143
|
+
o.excitation for o in objs if o.z0 - 1e-9 <= z <= o.z1 + 1e-9 and not o.region.interacting(probe).is_empty()
|
|
144
|
+
}
|
|
145
|
+
return hits.pop() if len(hits) == 1 else (None if not hits else -1)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
def _touches_box_edge(sim: dict, objs: list[MetalObject], excitation: int, dbu: float) -> bool:
|
|
149
|
+
box = sim.get("box") or {}
|
|
150
|
+
try:
|
|
151
|
+
b = pya.DBox(box["p1"]["x"], box["p1"]["y"], box["p2"]["x"], box["p2"]["y"]).to_itype(dbu)
|
|
152
|
+
except (KeyError, TypeError):
|
|
153
|
+
return False
|
|
154
|
+
edges = pya.Region(b).edges()
|
|
155
|
+
return any(o.excitation == excitation and not o.region.interacting(edges).is_empty() for o in objs)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
def check_junction_ports(meta: dict, sim: dict, objs: list[MetalObject], dbu: float) -> tuple[list[str], list[str]]:
|
|
159
|
+
"""Junction-port polygons (see module docstring)."""
|
|
160
|
+
from kqcircuits.simulations.export.util import find_edge_from_point_in_polygons # pylint: disable=C0415
|
|
161
|
+
|
|
162
|
+
errors, warnings = [], []
|
|
163
|
+
labels = {int(k): v for k, v in (meta.get("nets") or {}).items()}
|
|
164
|
+
info = {p["number"]: p for p in meta.get("ports") or []}
|
|
165
|
+
capacitance = meta.get("analysis") in ("q3d_cmatrix", "elmer_cap", "palace_cap")
|
|
166
|
+
edge_ports = [p for p in sim.get("ports") or [] if p.get("type") == "EdgePort" and p.get("signal_location")]
|
|
167
|
+
for port in sim.get("ports") or []:
|
|
168
|
+
if not port.get("junction"):
|
|
169
|
+
continue
|
|
170
|
+
n = port["number"]
|
|
171
|
+
name = (info.get(n) or {}).get("name", f"port {n}")
|
|
172
|
+
sig, gnd = port.get("signal_location"), port.get("ground_location")
|
|
173
|
+
if sig is None or gnd is None:
|
|
174
|
+
continue
|
|
175
|
+
z = float(sig[2]) if len(sig) > 2 else 0.0
|
|
176
|
+
same_z = [o for o in objs if o.z0 - 1e-9 <= z <= o.z1 + 1e-9 and o.z0 == o.z1]
|
|
177
|
+
polys = [p for o in same_z for p in o.region.each()]
|
|
178
|
+
kqc_ok = True
|
|
179
|
+
for what, loc in (("signal", sig), ("ground", gnd)):
|
|
180
|
+
try:
|
|
181
|
+
find_edge_from_point_in_polygons(polys, pya.DPoint(loc[0], loc[1]), dbu)
|
|
182
|
+
except (ValueError, IndexError):
|
|
183
|
+
kqc_ok = False
|
|
184
|
+
errors.append(
|
|
185
|
+
f"{name} (port {n}): KQC finds no metal edge at the {what} point ({loc[0]:.2f}, {loc[1]:.2f}) — "
|
|
186
|
+
"'Unable to create polygon for port' (the polygon in the job is a stand-in, if any)"
|
|
187
|
+
)
|
|
188
|
+
if "polygon" not in port:
|
|
189
|
+
errors.append(f"{name} (port {n}): no port polygon (AEDT skips the port)")
|
|
190
|
+
continue
|
|
191
|
+
if not kqc_ok: # narrow_junction_port drew a stand-in sheet: does it still bridge two nets?
|
|
192
|
+
name = f"{name} [stand-in sheet]"
|
|
193
|
+
poly = pya.DPolygon([pya.DPoint(p[0], p[1]) for p in port["polygon"]]).to_itype(dbu)
|
|
194
|
+
sheet = pya.Region(poly)
|
|
195
|
+
metal = pya.Region()
|
|
196
|
+
for o in same_z:
|
|
197
|
+
metal += o.region
|
|
198
|
+
inside = (sheet & metal.merged()).area() * dbu**2
|
|
199
|
+
if inside > PORT_METAL_EPS_UM2:
|
|
200
|
+
errors.append(
|
|
201
|
+
f"{name} (port {n}): {inside:.2f} µm² of metal inside the port sheet (the junction is shorted)"
|
|
202
|
+
)
|
|
203
|
+
s, g = pya.DPoint(sig[0], sig[1]), pya.DPoint(gnd[0], gnd[1])
|
|
204
|
+
v = s - g
|
|
205
|
+
if v.length() == 0:
|
|
206
|
+
errors.append(f"{name} (port {n}): signal and ground points coincide")
|
|
207
|
+
continue
|
|
208
|
+
v = v * (min(0.05, v.length() / 4) / v.length())
|
|
209
|
+
e_sig = _excitation_at(objs, s + v, dbu, z)
|
|
210
|
+
e_gnd = _excitation_at(objs, g - v, dbu, z)
|
|
211
|
+
if e_sig is None or e_gnd is None:
|
|
212
|
+
errors.append(f"{name} (port {n}): no metal beyond the {'signal' if e_sig is None else 'ground'} edge")
|
|
213
|
+
elif e_sig == e_gnd:
|
|
214
|
+
errors.append(f"{name} (port {n}): both port edges are on net {e_sig} (the junction is shorted)")
|
|
215
|
+
else:
|
|
216
|
+
for side, e in (("signal", e_sig), ("far", e_gnd)):
|
|
217
|
+
if e > 0 and _touches_box_edge(sim, objs, e, dbu):
|
|
218
|
+
cut = [p["number"] for p in edge_ports
|
|
219
|
+
if _excitation_at(objs, pya.DPoint(*p["signal_location"][:2]), dbu, z) == e]
|
|
220
|
+
if capacitance and cut: # Q3D: a line of this net ends in an EdgePort at the box (a cut line)
|
|
221
|
+
warnings.append(f"{name} (port {n}): the {side}-side island (net {e}) includes a line cut by "
|
|
222
|
+
f"the box at edge port(s) {cut}: its capacitance includes the cut line")
|
|
223
|
+
continue
|
|
224
|
+
errors.append(f"{name} (port {n}): the {side}-side island (net {e}) reaches the simulation box "
|
|
225
|
+
"edge — joined to the ground plane (e.g. an unconnected lead port) or to a line "
|
|
226
|
+
"that leaves the box")
|
|
227
|
+
want = (info.get(n) or {}).get("excitation")
|
|
228
|
+
if want and labels.get(e_sig) != want:
|
|
229
|
+
warnings.append(f"{name} (port {n}): signal side is net {e_sig} = {labels.get(e_sig)!r}, not {want!r}")
|
|
230
|
+
if port.get("floating") and e_gnd != 0 and e_gnd not in labels:
|
|
231
|
+
warnings.append(f"{name} (port {n}): far island (net {e_gnd}) has no label")
|
|
232
|
+
if not port.get("floating") and e_gnd != 0:
|
|
233
|
+
errors.append(f"{name} (port {n}): grounded junction port ends on net {e_gnd}, not on ground")
|
|
234
|
+
return errors, warnings
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
def check_other_ports(meta: dict, sim: dict) -> list[str]:
|
|
238
|
+
"""Internal ports that are not junctions (50 Ω pad / edge-lumped ports, waveguide stubs) without a polygon: KQC
|
|
239
|
+
logged ``Unable to create polygon for port`` and AEDT skips the port (that line end is left open). An edge-lumped
|
|
240
|
+
port has one wherever the box edge crosses a straight section of its line, square or at an angle (the builder
|
|
241
|
+
then puts the port on the line's own axis); a bend or a taper at the edge is what remains."""
|
|
242
|
+
info = {p["number"]: p for p in meta.get("ports") or []}
|
|
243
|
+
out = []
|
|
244
|
+
for port in sim.get("ports") or []:
|
|
245
|
+
if port.get("junction") or port.get("type") != "InternalPort" or "polygon" in port:
|
|
246
|
+
continue
|
|
247
|
+
p = info.get(port["number"]) or {}
|
|
248
|
+
hint = (" (the box edge cuts this line in a bend or a taper: change margin_um so it crosses a straight "
|
|
249
|
+
"section)" if p.get("kind") == "edge_lumped" else "")
|
|
250
|
+
out.append(f"{p.get('name', '?')} (port {port['number']}, {p.get('kind', '?')}): no port polygon — KQC found "
|
|
251
|
+
f"no metal edge at its signal/ground point, AEDT skips the port{hint}")
|
|
252
|
+
return out
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
PORT_LINE_TOL_UM = 1e-7 # AEDT refused a current-line end 1e-5 µm outside its port sheet (m53 FLNE_3, 2026-11-18)
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
def check_port_lines(meta: dict, sim: dict) -> list[str]:
|
|
259
|
+
"""Non-junction internal ports whose signal or ground point lies outside the port polygon: AEDT's Lumped RLC /
|
|
260
|
+
lumped port current line runs between those points and must lie on the sheet ("Both endpoints of the directed
|
|
261
|
+
line must lie on the boundary face"); on a slanted port a point off the database grid misses the polygon by a
|
|
262
|
+
fraction of a nm."""
|
|
263
|
+
info = {p["number"]: p for p in meta.get("ports") or []}
|
|
264
|
+
out = []
|
|
265
|
+
for port in sim.get("ports") or []:
|
|
266
|
+
if port.get("junction") or port.get("type") != "InternalPort" or "polygon" not in port:
|
|
267
|
+
continue
|
|
268
|
+
poly = pya.DPolygon([pya.DPoint(p[0], p[1]) for p in port["polygon"]])
|
|
269
|
+
for what in ("signal", "ground"):
|
|
270
|
+
loc = port.get(f"{what}_location")
|
|
271
|
+
if loc is None:
|
|
272
|
+
continue
|
|
273
|
+
pt = pya.DPoint(loc[0], loc[1])
|
|
274
|
+
off = 0.0 if poly.inside(pt) else min(e.distance_abs(pt) for e in poly.each_edge())
|
|
275
|
+
if off > PORT_LINE_TOL_UM:
|
|
276
|
+
p = info.get(port["number"]) or {}
|
|
277
|
+
out.append(f"{p.get('name', '?')} (port {port['number']}, {p.get('kind', '?')}): the {what} point lies "
|
|
278
|
+
f"{off:.2g} µm outside the port polygon — AEDT refuses the port's current line")
|
|
279
|
+
return out
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
GDS_SIGNED_RECORD_POINTS = 4095 # an XY record of more points is longer than 0x8000 bytes
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
def check_gds_records(objs: list[MetalObject]) -> list[str]:
|
|
286
|
+
"""Polygons whose GDS XY record exceeds 0x7fff bytes (> 4095 points): KLayout reads them as unsigned with a
|
|
287
|
+
warning; readers that take the record length as signed (not verified for AEDT) reject or truncate them."""
|
|
288
|
+
big = [(o.name, p.num_points()) for o in objs for p in o.region.each() if p.num_points() > GDS_SIGNED_RECORD_POINTS]
|
|
289
|
+
return [f"{name}: {n} points in one GDS polygon (> {GDS_SIGNED_RECORD_POINTS}: XY record > 0x8000 bytes)"
|
|
290
|
+
for name, n in big]
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
def check_gds_other_layers(sim: dict, layout: pya.Layout) -> list[str]:
|
|
294
|
+
""":func:`check_gds_records` for the non-metal layers of the GDS (gap layers AEDT imports as mesh-seed sheets)."""
|
|
295
|
+
top = layout.top_cell()
|
|
296
|
+
out = []
|
|
297
|
+
for name, d in sim.get("layers", {}).items():
|
|
298
|
+
if "excitation" in d or "layer" not in d:
|
|
299
|
+
continue
|
|
300
|
+
li = layout.find_layer(int(d["layer"]), 0)
|
|
301
|
+
if li is None:
|
|
302
|
+
continue
|
|
303
|
+
for k, p in enumerate(pya.Region(top.begin_shapes_rec(li)).each()):
|
|
304
|
+
if p.num_points() > GDS_SIGNED_RECORD_POINTS:
|
|
305
|
+
out.append(f"{name} polygon {k}: {p.num_points()} points in one GDS polygon (> "
|
|
306
|
+
f"{GDS_SIGNED_RECORD_POINTS}: XY record > 0x8000 bytes)")
|
|
307
|
+
return out
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
def check_boundary(sim: dict, objs: list[MetalObject]) -> list[str]:
|
|
311
|
+
"""Signal metal reaching the top or bottom of the simulation domain (a bump without its opposite face)."""
|
|
312
|
+
z_lo, z_hi = _domain_z(sim)
|
|
313
|
+
out = []
|
|
314
|
+
for o in objs:
|
|
315
|
+
if o.excitation != 0 and o.z1 > o.z0 and (math.isclose(o.z1, z_hi) or math.isclose(o.z0, z_lo)):
|
|
316
|
+
out.append(f"{o.name} (net {o.excitation}) reaches the {'top' if math.isclose(o.z1, z_hi) else 'bottom'}"
|
|
317
|
+
f" of the domain ({o.z0:g}–{o.z1:g} µm): metal to the outer boundary")
|
|
318
|
+
return out
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
def check_job(job_dir: str | Path) -> dict:
|
|
322
|
+
"""All checks of one exported Ansys job folder: ``{"job", "errors", "warnings", "nets", "objects"}``."""
|
|
323
|
+
job = Path(job_dir)
|
|
324
|
+
meta, sim, layout = _read(job)
|
|
325
|
+
dbu = layout.dbu
|
|
326
|
+
objs = metal_objects(sim, layout)
|
|
327
|
+
errors, warnings = check_nets(objs, dbu)
|
|
328
|
+
e2, w2 = check_junction_ports(meta, sim, objs, dbu)
|
|
329
|
+
errors += e2
|
|
330
|
+
warnings += w2
|
|
331
|
+
errors += check_boundary(sim, objs)
|
|
332
|
+
capacitance = meta.get("analysis") in ("q3d_cmatrix", "elmer_cap", "palace_cap")
|
|
333
|
+
# Q3D solves nets, not ports: a missing line-port polygon matters for HFSS (eigenmode / driven) only
|
|
334
|
+
(warnings if capacitance else errors).extend(check_other_ports(meta, sim) + check_port_lines(meta, sim))
|
|
335
|
+
warnings += check_gds_records(objs) + check_gds_other_layers(sim, layout)
|
|
336
|
+
excitations = sorted({o.excitation for o in objs if o.excitation})
|
|
337
|
+
labels = {int(k) for k in (meta.get("nets") or {})}
|
|
338
|
+
if capacitance:
|
|
339
|
+
unnamed = [e for e in excitations if e not in labels]
|
|
340
|
+
if unnamed:
|
|
341
|
+
warnings.append(f"nets without a design label: {unnamed}")
|
|
342
|
+
return {"job": str(job), "errors": errors, "warnings": warnings, "nets": len(excitations), "objects": len(objs)}
|