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,119 @@
|
|
|
1
|
+
"""Parsed simulation results + design → Hamiltonian parameters per instance, comparable to ``design.targets``.
|
|
2
|
+
|
|
3
|
+
* C-matrix (Q3D / Elmer / Palace electrostatics): Metal LOM per selected qubit. The resonator attached to the cut
|
|
4
|
+
coupler port is modelled as a λ/4 TL with f_r from its routed length (Metal CPW model), unless a measured f_r is
|
|
5
|
+
given (e.g. from an eigenmode run).
|
|
6
|
+
* Eigenmodes (HFSS / Palace): linear mode frequencies and Q, assigned to qubits/resonators by nearest target.
|
|
7
|
+
|
|
8
|
+
Output keys follow ``targets``: ``{"Q1": {"f_q_GHz", "alpha_MHz", ...}, "R1": {"f_GHz", "g_MHz", "chi_MHz"}}``.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
import numpy as np
|
|
14
|
+
|
|
15
|
+
from quantcore_circuits import track as _track
|
|
16
|
+
from quantcore_circuits.design import Design, load_design, split_port_ref
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def route_attached_to(design: Design, port_ref: str) -> str | None:
|
|
20
|
+
for name, route in design.routes.items():
|
|
21
|
+
if port_ref in (route.from_, route.to):
|
|
22
|
+
return name
|
|
23
|
+
return None
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def resonator_frequency_GHz(design: Design, route: str, guess_GHz: float = 7.0) -> float:
|
|
27
|
+
"""λ/4 frequency of ``route`` from its built length and the PDK CPW model (two fixed-point iterations)."""
|
|
28
|
+
from quantcore_circuits.analysis.synthesis import cpw_properties # pylint: disable=import-outside-toplevel
|
|
29
|
+
from quantcore_circuits.assembly import plan_design # pylint: disable=import-outside-toplevel
|
|
30
|
+
|
|
31
|
+
plan = plan_design(design)
|
|
32
|
+
rp = plan.routes[route]
|
|
33
|
+
length = rp.length
|
|
34
|
+
f = guess_GHz
|
|
35
|
+
for _ in range(3):
|
|
36
|
+
f = cpw_properties(f, rp.params["a"], rp.params["b"], design.pdk)["vp_m_s"] / (4 * length * 1e-6) / 1e9
|
|
37
|
+
return f
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def extract(source, results: dict, f_r_GHz: dict[str, float] | None = None) -> dict[str, dict[str, float]]:
|
|
41
|
+
design = load_design(source)
|
|
42
|
+
group = design.sim_groups[results["group"]]
|
|
43
|
+
out: dict[str, dict[str, float]] = {}
|
|
44
|
+
f_r_GHz = dict(f_r_GHz or {})
|
|
45
|
+
|
|
46
|
+
if "cmatrix" in results:
|
|
47
|
+
from quantcore_circuits.analysis.lom import lom_transmon_resonator # pylint: disable=import-outside-toplevel
|
|
48
|
+
|
|
49
|
+
labels = results["cmatrix"]["labels"]
|
|
50
|
+
cmat = np.asarray(results["cmatrix"]["matrix"], dtype=float)
|
|
51
|
+
for q in group.select:
|
|
52
|
+
island = f"{q}.island"
|
|
53
|
+
inst = design.instances.get(q)
|
|
54
|
+
if island not in labels or inst is None:
|
|
55
|
+
continue
|
|
56
|
+
from quantcore_circuits.lom.fragment import ( # pylint: disable=import-outside-toplevel
|
|
57
|
+
effective_junction,
|
|
58
|
+
instance_junction,
|
|
59
|
+
missing_junction_message,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
# L at the design flux, as the LOM and the HFSS sheet take it
|
|
63
|
+
ej = instance_junction(q, inst, design.pdk) or effective_junction(inst)
|
|
64
|
+
lj = ej.lj_eff_nH if ej is not None else None
|
|
65
|
+
if lj is None:
|
|
66
|
+
raise ValueError(missing_junction_message(q, inst, ej))
|
|
67
|
+
cj = ej.cj_fF
|
|
68
|
+
couplers = [lab for lab in labels if lab.startswith(f"{q}.") and lab != island]
|
|
69
|
+
for coupler in couplers[:1]: # one readout resonator per qubit in this version
|
|
70
|
+
route = route_attached_to(design, coupler)
|
|
71
|
+
if route is None:
|
|
72
|
+
continue
|
|
73
|
+
fr = f_r_GHz.get(route) or resonator_frequency_GHz(design, route)
|
|
74
|
+
res = lom_transmon_resonator(cmat, labels, island, coupler, lj, fr, cj)
|
|
75
|
+
out[q] = {k: res[k] for k in ("f_q_GHz", "alpha_MHz", "EJ_GHz", "EC_GHz", "C_sigma_fF")}
|
|
76
|
+
out[route] = {"f_GHz": res["f_r_GHz"], "g_MHz": res["g_MHz"], "chi_MHz": res["chi_MHz"]}
|
|
77
|
+
|
|
78
|
+
if results.get("eigenmodes"):
|
|
79
|
+
modes = sorted(results["eigenmodes"], key=lambda m: m["f_GHz"])
|
|
80
|
+
wanted = []
|
|
81
|
+
for name, tgt in design.targets.items():
|
|
82
|
+
key = "f_q_GHz" if "f_q_GHz" in tgt else ("f_GHz" if "f_GHz" in tgt else None)
|
|
83
|
+
if key and (name in group.select):
|
|
84
|
+
wanted.append((name, key, tgt[key]))
|
|
85
|
+
free = list(modes)
|
|
86
|
+
for name, key, f_target in sorted(wanted, key=lambda w: w[2]):
|
|
87
|
+
if not free:
|
|
88
|
+
break
|
|
89
|
+
best = min(free, key=lambda m: abs(m["f_GHz"] - f_target))
|
|
90
|
+
free.remove(best)
|
|
91
|
+
entry = out.setdefault(name, {})
|
|
92
|
+
entry[key.replace("_GHz", "_eig_GHz")] = best["f_GHz"]
|
|
93
|
+
if best.get("Q") is not None:
|
|
94
|
+
entry["Q"] = best["Q"]
|
|
95
|
+
return out
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def compare(targets: dict, extracted: dict) -> list[dict]:
|
|
99
|
+
"""Rows of (instance, quantity, target, value, error) for every target that was extracted."""
|
|
100
|
+
rows = []
|
|
101
|
+
for inst, tgt in targets.items():
|
|
102
|
+
got = extracted.get(inst, {})
|
|
103
|
+
for key, value in tgt.items():
|
|
104
|
+
alt = key.replace("_GHz", "_eig_GHz")
|
|
105
|
+
v = got.get(key, got.get(alt))
|
|
106
|
+
rows.append(
|
|
107
|
+
{
|
|
108
|
+
"instance": inst,
|
|
109
|
+
"quantity": key,
|
|
110
|
+
"target": value,
|
|
111
|
+
"value": v,
|
|
112
|
+
"error": None if v is None else v - value,
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
_track.emit("compare", targets=targets, extracted=extracted)
|
|
116
|
+
return rows
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
__all__ = ["compare", "extract", "resonator_frequency_GHz", "route_attached_to", "split_port_ref"]
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"""Lumped-oscillator model (Quantum Metal LOM 2.0, ``lom_core_analysis``) from a simulated capacitance matrix.
|
|
2
|
+
|
|
3
|
+
Input is the Maxwell capacitance matrix of the signal nets (as Q3D/Elmer/Palace export it, ground excluded) with
|
|
4
|
+
net labels from the job's port table. The ground row/column Metal expects is reconstructed from row sums.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
import numpy as np
|
|
10
|
+
|
|
11
|
+
from quantcore_circuits.analysis._metal import lom_core
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def maxwell_with_ground(cmatrix: np.ndarray, labels: list[str], ground: str = "ground"):
|
|
15
|
+
"""Append the ground node to a signal-only Maxwell matrix. Returns a DataFrame in the input units."""
|
|
16
|
+
import pandas as pd # pylint: disable=import-outside-toplevel
|
|
17
|
+
|
|
18
|
+
c = np.asarray(cmatrix, dtype=float)
|
|
19
|
+
to_ground = c.sum(axis=1) # Maxwell matrix rows sum to the capacitance to ground
|
|
20
|
+
n = len(labels)
|
|
21
|
+
full = np.zeros((n + 1, n + 1))
|
|
22
|
+
full[:n, :n] = c
|
|
23
|
+
full[:n, n] = full[n, :n] = -to_ground
|
|
24
|
+
full[n, n] = to_ground.sum()
|
|
25
|
+
names = list(labels) + [ground]
|
|
26
|
+
return pd.DataFrame(full, index=names, columns=names)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def lom_transmon_resonator(
|
|
30
|
+
cmatrix_fF: np.ndarray,
|
|
31
|
+
labels: list[str],
|
|
32
|
+
island: str,
|
|
33
|
+
coupler: str,
|
|
34
|
+
lj_nH: float,
|
|
35
|
+
f_r_GHz: float,
|
|
36
|
+
cj_fF: float = 0.0,
|
|
37
|
+
z0: float = 50.0,
|
|
38
|
+
vp: float | None = None,
|
|
39
|
+
other_end_shorted: bool = True,
|
|
40
|
+
resonator_levels: int = 5,
|
|
41
|
+
) -> dict:
|
|
42
|
+
"""Grounded transmon (``island``–ground junction) coupled through ``coupler`` to a λ/4 TL resonator.
|
|
43
|
+
|
|
44
|
+
``f_r_GHz`` is the bare resonator frequency (Metal's TL_RESONATOR takes it as given). ``vp`` defaults to Metal's
|
|
45
|
+
CPW model when ``None``. Returns f_q, f_r (GHz), α, χ, g (MHz), EJ, EC (GHz) in qcc conventions.
|
|
46
|
+
"""
|
|
47
|
+
lom = lom_core()
|
|
48
|
+
cap = maxwell_with_ground(cmatrix_fF, labels)
|
|
49
|
+
cell = lom.Cell(
|
|
50
|
+
{
|
|
51
|
+
"cap_mat": cap,
|
|
52
|
+
"ind_dict": {(island, "ground"): lj_nH},
|
|
53
|
+
"jj_dict": {(island, "ground"): "j1"},
|
|
54
|
+
"cj_dict": {(island, "ground"): cj_fF},
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
q_opts = {"f_res": f_r_GHz, "Z0": z0, "other_end_shorted": other_end_shorted, "truncated_dim": resonator_levels}
|
|
58
|
+
if vp is not None:
|
|
59
|
+
q_opts["vp"] = vp
|
|
60
|
+
qubit = lom.Subsystem(name="qubit", sys_type="TRANSMON", nodes=["j1"])
|
|
61
|
+
res = lom.Subsystem(name="readout", sys_type="TL_RESONATOR", nodes=[coupler], q_opts=q_opts)
|
|
62
|
+
system = lom.CompositeSystem(subsystems=[qubit, res], cells=[cell], grd_node="ground", nodes_force_keep=[coupler])
|
|
63
|
+
hs = system.add_interaction()
|
|
64
|
+
out = system.hamiltonian_results(hs, print_info=False)
|
|
65
|
+
chi = out["chi_in_MHz"].to_dataframe()
|
|
66
|
+
gs = system.compute_gs().to_dataframe()
|
|
67
|
+
hp = qubit.h_params.get("j1", qubit.h_params)
|
|
68
|
+
ec_GHz = float(hp["EC"]) / 1e3
|
|
69
|
+
from quantcore_circuits.analysis.transmon import c_from_ec # pylint: disable=import-outside-toplevel
|
|
70
|
+
|
|
71
|
+
return {
|
|
72
|
+
"f_q_GHz": float(out["fQ_in_Ghz"]["qubit"]),
|
|
73
|
+
"f_r_GHz": float(out["fQ_in_Ghz"]["readout"]),
|
|
74
|
+
"alpha_MHz": float(chi.loc["qubit", "qubit"]),
|
|
75
|
+
"chi_MHz": float(chi.loc["qubit", "readout"]),
|
|
76
|
+
"g_MHz": float(abs(gs.loc["j1", coupler])),
|
|
77
|
+
"EJ_GHz": float(hp["EJ"]) / 1e3,
|
|
78
|
+
"EC_GHz": ec_GHz,
|
|
79
|
+
"C_sigma_fF": c_from_ec(ec_GHz), # effective (loaded) qubit capacitance
|
|
80
|
+
}
|