Designing with Claude: Worked Examples¶
These examples show complete Silicofeller Quantum Studio design sessions driven from Claude through MCP. Each gives a prompt you can paste into Claude and the tool sequence Claude is expected to follow. Claude decides the exact calls, so your session may differ in detail. Connect Claude first; see Connect Claude. Tool arguments are described in MCP Tool Reference.
How edits reach the editor¶
Every write tool saves to your project immediately. You do not need to export or import anything.
Version History. Each save made through MCP becomes a version labelled Edited by Claude. Open Version Control in the sidebar to compare it with earlier versions or restore one.
Live reload. A Schematic Editor tab that has the project open follows saves made elsewhere. Notifications arrive over the collaboration socket, and the editor also compares versions when the socket reconnects or the tab returns to the foreground.
If the tab has no unsaved edits, it reloads the design automatically.
If the tab has unsaved edits, it shows the banner This design was changed elsewhere (e.g. by Claude). Autosave is paused. Click Reload to discard your local edits and show Claude’s version, or Keep mine to keep your version; your next save then replaces Claude’s.
Tip
Avoid editing the same project by hand while Claude is working on it. Claude retries a save that collides with another change, but the banner decision is yours.
Example 1: build a 4-qubit chip in one call¶
build_chip lays out, routes, frequency-plans, checks and repairs a whole chip of 2 to 16
TransmonCross qubits. It replaces the project’s design, so use a new project.
Prompt¶
Using Silicofeller, create a project called "Four-qubit ring" and build a 4-qubit
ring chip in it with build_chip. Report the DRC result, the drawn readout
frequencies and the yield estimate, then give me the editor link.
Tool sequence¶
create_project(name="Four-qubit ring")returns theproject_id.build_chip(project_id, n_qubits=4, topology="ring"). The server then:places 4 qubits in two rows around a central feedline (
ringjoins both row ends), oneReadoutResFCresonator per qubit and bus couplings between neighbours;adds one feedline with launch pads and attaches every resonator;
applies the yield-optimised frequency plan (junction
Ljand readout lengths);runs the full DRC including the real Qiskit Metal geometry check;
if there are layout errors, widens the qubit pitch, the readout offset or the chip and re-checks, up to 3 rounds.
Claude reports
ok, the repair rounds, any remaining errors,drawn_readout_ghzandyield_pct, and gives you theeditor_url.
Open the link to see the chip in the Schematic Editor. ok is true only when the final
DRC has zero errors and the frequency plan was applied. If it is false, the errors say what is
still wrong and the chip is left as built, ready to edit.
Note
topology accepts line (one row), ring (3 or more qubits) and grid (two rows
joined at one end). A TransmonCross has two bus claws, so each qubit couples to at most two
neighbours.
Example 2: place and route step by step¶
Use the individual tools when you need control over placement, routing or parts.
Prompt¶
In my Silicofeller project "Bell pair", place two TransmonCross qubits Q1 and Q2
2 mm apart on the x axis. Give each a ReadoutResFC resonator about 0.4 mm above it,
rotated 90 degrees, and connect qubit.readout to resonator.readout. Connect Q1
bus_02 to Q2 bus_01 with a RouteMeander. Add a feedline above the resonators and
attach both. Then run check_design and fix any errors, plan frequencies for
2 qubits, apply the plan, and generate the Qiskit Metal code.
Tool sequence¶
list_projectsto find theproject_id(orcreate_project).list_components(category="qubits")anddescribe_component("TransmonCross")to confirm pin names. A TransmonCross has its readout claw on the north arm and bus clawsbus_01andbus_02on the west and east arms.add_componentswith four items, coordinates in mm from the chip centre:[ {"component_id": "TransmonCross", "name": "Q1", "x": -1.0, "y": 0}, {"component_id": "TransmonCross", "name": "Q2", "x": 1.0, "y": 0}, {"component_id": "ReadoutResFC", "name": "R1", "x": -1.0, "y": 0.4, "rotation": 90}, {"component_id": "ReadoutResFC", "name": "R2", "x": 1.0, "y": 0.4, "rotation": 90} ]
connect_pinsfor the readout links and the bus:[ {"from": "Q1", "from_pin": "readout", "to": "R1", "to_pin": "readout"}, {"from": "Q2", "from_pin": "readout", "to": "R2", "to_pin": "readout"}, {"from": "Q1", "from_pin": "bus_02", "to": "Q2", "to_pin": "bus_01", "route": "RouteMeander"} ]
add_feedline(project_id, x1, y1, x2, y2, attach_resonators=["R1", "R2"])with a line above the resonators. This creates launch pads, tee couplers and a tap route from each resonator’sfeed_endpin.check_design(project_id). For each error Claude moves parts (update_components), changes routes (update_connections) or removes them, and checks again untilokis true.render_previewshows the geometry Qiskit Metal builds.plan_frequencies(num_qubits=2)returns a proposed plan without changing the design.apply_frequency_plan(project_id)writes junction inductances and readout lengths into the design. Claude runscheck_designagain afterwards.generate_qiskit_code(project_id)returns a runnable Qiskit Metal script.
Optional next steps are add_drive_line for XY drive lines, verify_layout for a
geometry-level DRC and LVS pass, export_gds and run_simulation.
Example 3: semiconductor double quantum dot¶
The semi_* tools design spin-qubit devices on Si/SiGe, Ge/SiGe or Si MOS stacks. Units are
micrometres. Results come from analytical models, not TCAD, and the design rules are
provisional.
Warning
In this release, MCP tokens and OAuth connections are not allowed to call the
/api/semiconductor endpoints, so this example fails on the hosted server with
MCP_TOKEN_SCOPE. It runs against a local MCP server authenticated with a web-session token;
see Running the MCP Server Locally.
Prompt¶
In Silicofeller project "DQD test", generate a Si/SiGe double quantum dot,
validate it, fix any errors, and export the GDS. Tell me the polygon and cell
counts and remind me which results are analytical.
Tool sequence¶
semi_command(project_id, "generate a double quantum dot")creates and saves the design and returns the steps taken. For a larger array, Claude usessemi_generate_processor(project_id, cols, rows, stack="si_sige")instead (1 or 2 rows).semi_validate(project_id)runs geometry checks, layer-aware DRC, connectivity extraction (shorts, opens, floating nets) and device checks.If there are errors,
semi_autofix(project_id)applies fixes that add no new error, orsemi_command(project_id, "fix errors"). Targeted edits usesemi_commandwith instructions such as"set barrier BT5 width to 25 nm"orsemi_update_components.Optionally,
semi_simulate(project_id, kind="charge_stability")or another model kind.semi_export_gds(project_id)exports hierarchical GDSII on a 1 nm grid and reports byte, polygon and cell counts.
The semiconductor design is stored next to the project’s superconducting design; generating one
does not change the other. Open the editor_url to see it in the Schematic Editor’s
semiconductor mode.