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,364 @@
|
|
|
1
|
+
"""Subset simulation: render and simulate only some qubits of a chip, keep the netlist whole.
|
|
2
|
+
|
|
3
|
+
The user names the qubits (and optionally their readout resonators) to simulate, e.g. ``pairs=[("Q3", "R3"), ("Q5",
|
|
4
|
+
"R5")]``; :func:`plan_subset` turns that into ordinary sim groups (:class:`~quantcore_circuits.design.schema.SimGroup`)
|
|
5
|
+
that the builder, the exporters, AEDT and the read-back already understand. ``Designer.sim_subset`` wraps it.
|
|
6
|
+
|
|
7
|
+
What goes into a subset box, and why:
|
|
8
|
+
|
|
9
|
+
* **The chosen qubits and their readout chains.** A readout chain is everything between the qubit and the feedline:
|
|
10
|
+
the readout resonator route, then any series capacitor, Purcell filter, tee or airbridge connection on the way
|
|
11
|
+
(walked through routes, instances and declared route–route couplings such as a readout–Purcell tap), up to the
|
|
12
|
+
first *feedline* route.
|
|
13
|
+
* **The feedline is never selected; it is always in the box and cut by it.** A feedline route is a hanger host, a
|
|
14
|
+
route ending on a bond pad / launcher (a 50 Ω port line, e.g. tutorial 02's readout line ``L_Q2``), or a route on
|
|
15
|
+
a pad-to-pad backbone through tees (surface-17's ``FL2_*``). The box (selection bounding box + margin) cuts it,
|
|
16
|
+
and the builder ends each cut in a 50 Ω port: an edge port (Q3D: its own net; driven: the S21 ports) or a lumped
|
|
17
|
+
50 Ω termination 1 µm inside the edge (eigenmode). A line that is not grounded is always terminated where the box
|
|
18
|
+
cuts it, so the group needs no ``ports`` entry for it (``"edge"`` is written only for a grounded feedline).
|
|
19
|
+
* **Buses and couplers between chosen qubits come in** (the bus route, its tees and stubs) when the bus reaches at
|
|
20
|
+
least two chosen qubits; a stub of that bus towards a qubit outside the subset is cut. A declared coupling between
|
|
21
|
+
two chosen qubits (facing arms) needs no geometry; it only puts both qubits in one box.
|
|
22
|
+
* **A bus to a qubit outside the subset is cut** (``ports={"<bus>": "cut"}``): the route is removed for every
|
|
23
|
+
analysis. Q3D: the chosen qubit's coupling pad keeps a 100 µm stub ending in a port, so the pad is its own net
|
|
24
|
+
(``<Q>.<port>``) and its capacitances to the qubit and to ground are extracted. Eigenmode / driven: the pad is left
|
|
25
|
+
open — it still loads the qubit through its coupling capacitance, the bus mode is gone and nothing radiates (a
|
|
26
|
+
stub port inside a pocket has no port polygon, so AEDT would skip a termination there). The LOM keeps the bus.
|
|
27
|
+
The cut end at a tee or another non-qubit component is left open.
|
|
28
|
+
* **Disjoint pairs get one box each** (``split="auto"``): pairs that share a bus or a declared coupling stay in one
|
|
29
|
+
box; others are separate groups ``<name>_<Q>…``. AEDT solves them one at a time, so peak memory is the largest box,
|
|
30
|
+
not the sum, and no box spans the chip between two distant qubits. ``split="one"`` forces one box.
|
|
31
|
+
|
|
32
|
+
Read-back: ``circuit.fill.fill(whole_chip_model, design, [job, …])`` fills only the branches owned by the chosen
|
|
33
|
+
components (and their couplings to the feedline); every other branch keeps its estimate, marked as outside the
|
|
34
|
+
subset. See :mod:`quantcore_circuits.circuit.fill`.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
from __future__ import annotations
|
|
38
|
+
|
|
39
|
+
from dataclasses import dataclass, field
|
|
40
|
+
|
|
41
|
+
from quantcore_circuits.design import Design, load_design, split_port_ref
|
|
42
|
+
from quantcore_circuits.design.schema import CHIP, HangerEnd
|
|
43
|
+
|
|
44
|
+
WHOLE = "whole"
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
@dataclass
|
|
48
|
+
class SubsetGroup:
|
|
49
|
+
"""One box of a subset: the sim group spec and what it holds."""
|
|
50
|
+
|
|
51
|
+
name: str
|
|
52
|
+
select: list[str]
|
|
53
|
+
ports: dict[str, str]
|
|
54
|
+
qubits: list[str]
|
|
55
|
+
resonators: dict[str, list[str]] # qubit → its readout chain (routes and instances)
|
|
56
|
+
buses: list[str] = field(default_factory=list) # bus parts that came in (both ends chosen)
|
|
57
|
+
cut: list[str] = field(default_factory=list) # buses cut at a chosen qubit (other end outside the subset)
|
|
58
|
+
feedlines: list[str] = field(default_factory=list) # feedline routes next to the chain (cut by the box)
|
|
59
|
+
notes: list[str] = field(default_factory=list)
|
|
60
|
+
|
|
61
|
+
def spec(self, margin_um: float, analyses, settings) -> dict:
|
|
62
|
+
out = {"select": list(self.select), "margin_um": margin_um, "analyses": list(analyses)}
|
|
63
|
+
if self.ports:
|
|
64
|
+
out["ports"] = dict(self.ports)
|
|
65
|
+
if settings:
|
|
66
|
+
out["settings"] = dict(settings)
|
|
67
|
+
return out
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def _is_pad(design: Design, inst: str) -> bool:
|
|
71
|
+
from quantcore_circuits.assembly.drc import _bond_pad # pylint: disable=import-outside-toplevel
|
|
72
|
+
|
|
73
|
+
i = design.instances.get(inst)
|
|
74
|
+
return i is not None and _bond_pad(i.cell)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def has_junction(design: Design, inst: str) -> bool:
|
|
78
|
+
"""A qubit for the subset: its LOM model has a junction (JJ / SQUID). Wrapped Metal tees and couplers carry a
|
|
79
|
+
``junction_type`` parameter and the ``coupler`` category, so neither tells a qubit from a tee. A junction cell on
|
|
80
|
+
its own (KQC ``Junction`` subclasses, Quantcore trilayer cells, Metal ``junction`` category,
|
|
81
|
+
:func:`~quantcore_circuits.sim_tools.builder.is_junction_cell`) is not a qubit: it belongs in a qubit's gap."""
|
|
82
|
+
from quantcore_circuits.lom.fragment import lom_model # pylint: disable=import-outside-toplevel
|
|
83
|
+
from quantcore_circuits.pdk import get_pdk # pylint: disable=import-outside-toplevel
|
|
84
|
+
from quantcore_circuits.sim_tools.builder import is_junction_cell # pylint: disable=import-outside-toplevel
|
|
85
|
+
|
|
86
|
+
i = design.instances.get(inst)
|
|
87
|
+
if i is None or i.cell.startswith("static:") or is_junction_cell(i.cell):
|
|
88
|
+
return False
|
|
89
|
+
fn = lom_model(i.cell)
|
|
90
|
+
if fn is not None:
|
|
91
|
+
try:
|
|
92
|
+
return any(e.type in ("JJ", "SQUID") for e in fn(inst, i, get_pdk(design.pdk)).elements)
|
|
93
|
+
except Exception: # noqa: BLE001 (a model that cannot evaluate: fall back to the cell category)
|
|
94
|
+
pass
|
|
95
|
+
from quantcore_circuits.layouts.registry import resolve_cell # pylint: disable=import-outside-toplevel
|
|
96
|
+
|
|
97
|
+
try:
|
|
98
|
+
return getattr(resolve_cell(i.cell), "qcc_category", "") == "qubit"
|
|
99
|
+
except Exception: # noqa: BLE001
|
|
100
|
+
return False
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
_is_qubit = has_junction
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
class _Graph:
|
|
107
|
+
"""Instances and routes of a design as a graph: route ends, the routes at each instance, route couplings."""
|
|
108
|
+
|
|
109
|
+
def __init__(self, design: Design):
|
|
110
|
+
self.design = design
|
|
111
|
+
self.ends: dict[str, list[str | None]] = {} # route → [instance or None (free / hanger end), ...]
|
|
112
|
+
self.hanger_host: dict[str, str] = {} # route → the route it hangs on
|
|
113
|
+
self.at: dict[str, list[str]] = {} # instance → routes with an end on it
|
|
114
|
+
self.pads = {n for n in design.instances if _is_pad(design, n)}
|
|
115
|
+
self.qubits = {n for n in design.instances if _is_qubit(design, n)}
|
|
116
|
+
for rname, r in design.routes.items():
|
|
117
|
+
ends = []
|
|
118
|
+
for e in (r.from_, r.to):
|
|
119
|
+
if isinstance(e, str):
|
|
120
|
+
head = split_port_ref(e)[0]
|
|
121
|
+
ends.append(CHIP if head == CHIP else head)
|
|
122
|
+
self.at.setdefault(ends[-1], []).append(rname)
|
|
123
|
+
else:
|
|
124
|
+
ends.append(None)
|
|
125
|
+
if isinstance(e, HangerEnd):
|
|
126
|
+
self.hanger_host[rname] = e.hanger
|
|
127
|
+
self.ends[rname] = ends
|
|
128
|
+
for name, inst in design.instances.items(): # a snap with no gap joins two instances like a wire
|
|
129
|
+
pl = inst.place
|
|
130
|
+
if pl.snap and pl.to and not pl.gap:
|
|
131
|
+
other = split_port_ref(pl.to)[0]
|
|
132
|
+
self.at.setdefault(name, []).append(f"snap:{other}")
|
|
133
|
+
self.at.setdefault(other, []).append(f"snap:{name}")
|
|
134
|
+
self.route_couplings: dict[str, set[str]] = {} # route → routes / instances a declared C couples it to
|
|
135
|
+
self.qubit_couplings: list[tuple[str, str]] = [] # declared couplings between two qubits
|
|
136
|
+
for c in design.couplings.values():
|
|
137
|
+
if c.type == "wire":
|
|
138
|
+
continue
|
|
139
|
+
heads = [e if e in design.routes else e.split(".", 1)[0] for e in c.between]
|
|
140
|
+
if all(h in self.qubits for h in heads):
|
|
141
|
+
self.qubit_couplings.append((heads[0], heads[1]))
|
|
142
|
+
for a, b in ((heads[0], heads[1]), (heads[1], heads[0])):
|
|
143
|
+
if a in design.routes:
|
|
144
|
+
self.route_couplings.setdefault(a, set()).add(b)
|
|
145
|
+
self.feedlines = self._feedlines()
|
|
146
|
+
|
|
147
|
+
def is_pad(self, inst: str | None) -> bool:
|
|
148
|
+
return inst == CHIP or inst in self.pads
|
|
149
|
+
|
|
150
|
+
def _feedlines(self) -> set[str]:
|
|
151
|
+
"""Hanger hosts, routes with a pad / launcher end, and the pad-to-pad backbone through tees (routes left after
|
|
152
|
+
pruning every dead end of the instance graph without the qubits)."""
|
|
153
|
+
out = set(self.hanger_host.values())
|
|
154
|
+
out |= {r for r, ends in self.ends.items() if any(self.is_pad(e) for e in ends)}
|
|
155
|
+
edges = {r: ends for r, ends in self.ends.items() if not any(e in self.qubits for e in ends)}
|
|
156
|
+
alive = set(edges)
|
|
157
|
+
changed = True
|
|
158
|
+
while changed:
|
|
159
|
+
changed = False
|
|
160
|
+
degree: dict[str, int] = {}
|
|
161
|
+
for r in alive:
|
|
162
|
+
for e in edges[r]:
|
|
163
|
+
if e is not None:
|
|
164
|
+
degree[e] = degree.get(e, 0) + 1
|
|
165
|
+
for r in list(alive):
|
|
166
|
+
ends = edges[r]
|
|
167
|
+
if any(e is None or (not self.is_pad(e) and degree.get(e, 0) <= 1) for e in ends):
|
|
168
|
+
alive.discard(r)
|
|
169
|
+
changed = True
|
|
170
|
+
return out | alive
|
|
171
|
+
|
|
172
|
+
def neighbours(self, node: str) -> list[str]:
|
|
173
|
+
"""Routes at an instance, or the instances / coupled routes of a route (``snap:<inst>`` resolved)."""
|
|
174
|
+
if node in self.design.routes:
|
|
175
|
+
out = [e for e in self.ends[node] if e is not None]
|
|
176
|
+
return out + sorted(self.route_couplings.get(node, ()))
|
|
177
|
+
return [n.split(":", 1)[1] if n.startswith("snap:") else n for n in self.at.get(node, [])]
|
|
178
|
+
|
|
179
|
+
def walk(self, start: str, stop: set[str]) -> tuple[list[str], set[str], set[str]]:
|
|
180
|
+
"""Breadth-first from route ``start`` through routes and instances that are not qubits, pads or feedlines.
|
|
181
|
+
Returns (visited components in order, qubits reached, feedline routes reached)."""
|
|
182
|
+
order, seen, queue = [], {start}, [start]
|
|
183
|
+
qubits, feeds = set(), set()
|
|
184
|
+
while queue:
|
|
185
|
+
node = queue.pop(0)
|
|
186
|
+
order.append(node)
|
|
187
|
+
if node in self.hanger_host:
|
|
188
|
+
feeds.add(self.hanger_host[node])
|
|
189
|
+
for nb in self.neighbours(node):
|
|
190
|
+
if nb in seen or nb in stop or nb == CHIP:
|
|
191
|
+
continue
|
|
192
|
+
seen.add(nb)
|
|
193
|
+
if nb in self.qubits:
|
|
194
|
+
qubits.add(nb)
|
|
195
|
+
elif nb in self.feedlines:
|
|
196
|
+
feeds.add(nb)
|
|
197
|
+
elif nb in self.pads:
|
|
198
|
+
continue
|
|
199
|
+
else:
|
|
200
|
+
queue.append(nb)
|
|
201
|
+
return order, qubits, feeds
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
def readout_of(design, qubit: str) -> str | None:
|
|
205
|
+
"""The readout resonator route of ``qubit``: a route at one of its ports whose walk (through capacitors, tees,
|
|
206
|
+
Purcell filters) reaches a feedline or a free / hanger end but no other qubit. None if there is none."""
|
|
207
|
+
design = load_design(design)
|
|
208
|
+
g = _Graph(design)
|
|
209
|
+
for r in sorted(g.at.get(qubit, [])):
|
|
210
|
+
if r.startswith("snap:") or r in g.feedlines:
|
|
211
|
+
continue
|
|
212
|
+
_, others, feeds = g.walk(r, {qubit})
|
|
213
|
+
if others:
|
|
214
|
+
continue
|
|
215
|
+
ends = g.ends[r]
|
|
216
|
+
if feeds or None in ends:
|
|
217
|
+
return r
|
|
218
|
+
return None
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
def plan_subset(
|
|
222
|
+
design,
|
|
223
|
+
name: str,
|
|
224
|
+
pairs=None,
|
|
225
|
+
qubits=None,
|
|
226
|
+
split: str = "auto",
|
|
227
|
+
readouts: bool = True,
|
|
228
|
+
) -> list[SubsetGroup]:
|
|
229
|
+
"""The sim groups of a subset (module docstring). ``pairs``: ``[("Q3", "R3"), ...]`` (resonator None → the
|
|
230
|
+
qubit's readout, :func:`readout_of`); or ``qubits``: ``["Q3", "Q5"]`` (each with its readout). ``split``:
|
|
231
|
+
``"auto"`` (pairs joined by a chosen bus or a declared coupling share a box, other pairs get one box each) or
|
|
232
|
+
``"one"`` (one box for everything).
|
|
233
|
+
|
|
234
|
+
``readouts=False``: the qubits alone (an eigenmode box that fits a workstation, tutorial 01's ``Q1_q`` recipe):
|
|
235
|
+
the readout chain is not selected, so the box (qubit + margin) cuts the readout line and the builder terminates
|
|
236
|
+
it in 50 Ω (``ports={readout: "edge"}`` for a grounded λ/4); the job gives the qubit mode (f_q, α, p_J) and the
|
|
237
|
+
read-back fills the qubit's own branches only."""
|
|
238
|
+
design = load_design(design)
|
|
239
|
+
g = _Graph(design)
|
|
240
|
+
chosen: list[tuple[str, str | None]] = []
|
|
241
|
+
for item in list(pairs or []) + [(q, None) for q in (qubits or [])]:
|
|
242
|
+
q, r = (item, None) if isinstance(item, str) else (item[0], item[1] if len(item) > 1 else None)
|
|
243
|
+
if q not in design.instances or q not in g.qubits:
|
|
244
|
+
raise ValueError(f"subset {name}: {q!r} is not a qubit of {design.name}; qubits: {sorted(g.qubits)}")
|
|
245
|
+
if r is not None and r not in design.routes:
|
|
246
|
+
hint = {k: readout_of(design, k) for k in sorted(g.qubits)}
|
|
247
|
+
raise ValueError(f"subset {name}: no route {r!r} (readout of {q}?); readouts found: {hint}")
|
|
248
|
+
chosen.append((q, r))
|
|
249
|
+
if not chosen:
|
|
250
|
+
raise ValueError(f"subset {name}: name at least one qubit (pairs=[('Q1', 'R1')] or qubits=['Q1'])")
|
|
251
|
+
qset = [q for q, _ in chosen]
|
|
252
|
+
notes: list[str] = []
|
|
253
|
+
|
|
254
|
+
chains: dict[str, list[str]] = {}
|
|
255
|
+
feeds_of: dict[str, set[str]] = {}
|
|
256
|
+
for q, r in chosen:
|
|
257
|
+
r = r or readout_of(design, q)
|
|
258
|
+
if r is None:
|
|
259
|
+
notes.append(f"{q}: no readout resonator found; the qubit is simulated alone")
|
|
260
|
+
chains[q], feeds_of[q] = [], set()
|
|
261
|
+
continue
|
|
262
|
+
order, others, feeds = g.walk(r, {q})
|
|
263
|
+
if others:
|
|
264
|
+
notes.append(f"{q}/{r}: the readout walk also reaches {sorted(others)} (a shared line?)")
|
|
265
|
+
chains[q] = order
|
|
266
|
+
feeds_of[q] = feeds
|
|
267
|
+
|
|
268
|
+
# buses: routes at a chosen qubit's ports that are not its readout chain, not feedlines / control lines
|
|
269
|
+
parent = {q: q for q in qset}
|
|
270
|
+
|
|
271
|
+
def find(x):
|
|
272
|
+
while parent[x] != x:
|
|
273
|
+
parent[x] = parent[parent[x]]
|
|
274
|
+
x = parent[x]
|
|
275
|
+
return x
|
|
276
|
+
|
|
277
|
+
bus_parts: dict[str, list[str]] = {} # root bus route → included parts
|
|
278
|
+
cut: dict[str, str] = {}
|
|
279
|
+
for q in qset:
|
|
280
|
+
for r in sorted(g.at.get(q, [])):
|
|
281
|
+
if r.startswith("snap:") or r in g.feedlines or r in chains[q] or r in cut:
|
|
282
|
+
continue
|
|
283
|
+
if any(r in parts for parts in bus_parts.values()):
|
|
284
|
+
continue
|
|
285
|
+
order, reached, _ = g.walk(r, {q})
|
|
286
|
+
reached_in = sorted(x for x in reached if x in qset)
|
|
287
|
+
if not reached and None in g.ends[r]:
|
|
288
|
+
continue # an open stub / control line ending near the qubit: geometry only
|
|
289
|
+
if reached_in:
|
|
290
|
+
bus_parts[r] = order
|
|
291
|
+
for x in reached_in:
|
|
292
|
+
parent[find(x)] = find(q)
|
|
293
|
+
for part in order: # a stub of this bus towards a qubit outside the subset is cut
|
|
294
|
+
if part in design.routes and any(e in g.qubits and e not in qset for e in g.ends[part]):
|
|
295
|
+
cut[part] = "cut"
|
|
296
|
+
else:
|
|
297
|
+
cut[r] = "cut"
|
|
298
|
+
for a, b in g.qubit_couplings:
|
|
299
|
+
if a in parent and b in parent:
|
|
300
|
+
parent[find(a)] = find(b)
|
|
301
|
+
|
|
302
|
+
roots: dict[str, list[str]] = {}
|
|
303
|
+
for q in qset:
|
|
304
|
+
roots.setdefault(find(q) if split == "auto" else qset[0], []).append(q)
|
|
305
|
+
if split not in ("auto", "one"):
|
|
306
|
+
raise ValueError(f"split must be 'auto' or 'one', not {split!r}")
|
|
307
|
+
groups = []
|
|
308
|
+
for members in roots.values():
|
|
309
|
+
gname = name if len(roots) == 1 else f"{name}_{'_'.join(members)}"
|
|
310
|
+
resonators = {q: chains[q] for q in members}
|
|
311
|
+
select = list(members)
|
|
312
|
+
for q in members if readouts else (): # resonator routes first, then the rest of each chain
|
|
313
|
+
select += [x for x in chains[q][:1] if x not in select]
|
|
314
|
+
for q in members if readouts else ():
|
|
315
|
+
select += [x for x in chains[q][1:] if x not in select]
|
|
316
|
+
buses = []
|
|
317
|
+
for root, parts in bus_parts.items():
|
|
318
|
+
if any(root in g.at.get(q, []) for q in members):
|
|
319
|
+
buses += [p for p in parts if p not in buses and p not in cut]
|
|
320
|
+
select += [b for b in buses if b not in select]
|
|
321
|
+
inside = set(select)
|
|
322
|
+
ports = {r: "cut" for r in cut if any(e in inside for e in g.ends[r])}
|
|
323
|
+
from quantcore_circuits.sim_tools.builder import grounded_routes # pylint: disable=import-outside-toplevel
|
|
324
|
+
|
|
325
|
+
grounded = grounded_routes(design)
|
|
326
|
+
feeds = sorted(set().union(*(feeds_of[q] for q in members)))
|
|
327
|
+
for f in feeds:
|
|
328
|
+
if f in grounded:
|
|
329
|
+
ports[f] = "edge"
|
|
330
|
+
if not readouts: # the readout itself is cut by the box: a grounded λ/4 needs "edge" to be terminated
|
|
331
|
+
for q in members:
|
|
332
|
+
if chains[q] and chains[q][0] in grounded:
|
|
333
|
+
ports[chains[q][0]] = "edge"
|
|
334
|
+
groups.append(SubsetGroup(gname, select, ports, members, resonators, buses, sorted(ports), feeds,
|
|
335
|
+
list(notes)))
|
|
336
|
+
return groups
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
def subset_scope(design, group: str) -> set[str] | None:
|
|
340
|
+
"""The components a job of ``group`` fills: its selected instances and routes (None for the whole chip)."""
|
|
341
|
+
from quantcore_circuits.sim_tools.builder import CHIP_GROUP, group_spec # pylint: disable=import-outside-toplevel
|
|
342
|
+
|
|
343
|
+
design = load_design(design)
|
|
344
|
+
if group == CHIP_GROUP and group not in design.sim_groups:
|
|
345
|
+
return None
|
|
346
|
+
try:
|
|
347
|
+
return set(group_spec(design, group).select)
|
|
348
|
+
except ValueError:
|
|
349
|
+
return None
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
def describe(groups: list[SubsetGroup]) -> str:
|
|
353
|
+
"""Markdown: one row per box (what is rendered and simulated, what is cut)."""
|
|
354
|
+
out = ["| group (box) | qubits | readout chain | buses in | buses cut at the qubit | feedline (cut by the box) |",
|
|
355
|
+
"|---|---|---|---|---|---|"]
|
|
356
|
+
for sg in groups:
|
|
357
|
+
chain = "; ".join(f"{q}: {', '.join(c) or '–'}" for q, c in sg.resonators.items())
|
|
358
|
+
cut = ", ".join(r for r, h in sg.ports.items() if h == "cut") or "–"
|
|
359
|
+
out.append(f"| `{sg.name}` | {', '.join(sg.qubits)} | {chain} | {', '.join(sg.buses) or '–'} | {cut} | "
|
|
360
|
+
f"{', '.join(sg.feedlines) or '–'} |")
|
|
361
|
+
notes = [n for sg in groups for n in sg.notes]
|
|
362
|
+
if notes:
|
|
363
|
+
out += ["", *(f"- {n}" for n in dict.fromkeys(notes))]
|
|
364
|
+
return "\n".join(out)
|