Projects and Design

These endpoints create and manage Silicofeller Quantum Studio projects and read and write the design stored in each project. A project holds one design_payload (the Schematic Editor document plus editor state) and the Qiskit Metal code generated from it on every save. The page also lists the stateless design-generation and physics helpers under /api/generate and /api/design, and the AI endpoints. Conventions such as authentication and errors are on API Reference.

Project roles

Project endpoints check your role on the project. The roles, from least to most access, are viewer, editor and owner. You hold owner if you created the project, or if you are an administrator of the workspace or organization that contains it. Accepted collaborators, shared users and workspace members get the role they were given. The tables below give the minimum role.

Projects

Method

Path

Purpose

Roles/plan

GET

/api/projects

List projects you can see. Optional workspace_id query parameter restricts the list to one workspace or enterprise workspace. Newest update first.

Any signed-in user

POST

/api/projects

Create a project (status 201).

Free plan: one owned project at a time

GET

/api/projects/{project_id}

Project with full design_payload, qiskit_code and your user_role.

viewer

PATCH

/api/projects/{project_id}

Update metadata or design_payload. Renaming needs owner.

editor

DELETE

/api/projects/{project_id}

Delete the project and its version history (status 204).

owner

GET

/api/projects/{project_id}/design-version

The project’s current updated_at; a cheap catch-up check for open editors.

viewer

POST

/api/projects/{project_id}/duplicate

Copy the project, its design_payload and qiskit_code (status 201).

viewer; Free plan: one owned project

POST

/api/projects/{project_id}/save-design

Save the design, regenerate Qiskit Metal code and record a version.

editor

GET

/api/projects/{project_id}/linkable-entities

Project, recent commits, simulations, layouts and QCLang files, for linking from work items.

Owner or accepted collaborator

On the Free plan, creating or duplicating a project when you already own one returns 403 with a message that names the existing project.

Create a project

Request body (ProjectCreate). Only name is required. name is at most 120 characters; topology, substrate_material and metal_layer at most 64.

{
  "name": "SF-8 grid",
  "workspace_id": "c0a8...",
  "description": "Eight-qubit test chip",
  "topology": "grid",
  "num_qubits": 8,
  "target_frequency_ghz": 5.0,
  "substrate_material": "silicon",
  "metal_layer": "aluminum",
  "design_payload": null
}

Pass enterprise_workspace_id instead of workspace_id to create the project in an enterprise workspace. Response (also the shape of each list item and of PATCH):

{
  "id": "4f6c0d2e-...",
  "name": "SF-8 grid",
  "description": "Eight-qubit test chip",
  "topology": "grid",
  "num_qubits": 8,
  "target_frequency_ghz": 5.0,
  "status": "draft",
  "substrate_material": "silicon",
  "metal_layer": "aluminum",
  "has_design": false,
  "created_at": "2026-11-14T09:00:00.000000Z",
  "updated_at": "2026-11-14T09:00:00.000000Z",
  "owner_id": "...",
  "owner_name": "A. Engineer",
  "workspace_id": "c0a8...",
  "enterprise_workspace_id": null,
  "design_payload": null
}

List items also carry user_role and relationship (personal or shared).

Save a design

POST /api/projects/{project_id}/save-design stores the body as the project’s design_payload. The body is the editor’s payload; design is the Schematic Editor document (DesignDocument: placements, connections, feedlines, customComponents, componentVariants and the chip size fields chip_width_mm, chip_height_mm, chip_size_mm). See Components and Bridge for the document shape. Three keys are options, not design data, and are removed before storage:

Key

Meaning

base_updated_at

The updated_at you read. Enables the optimistic concurrency check; a stale value returns 409 DESIGN_CONFLICT.

create_version

"manual" or true for an explicit save, "auto" for an autosave, false for no version. Omitted means "auto". Saves made with an MCP token are always recorded as "claude".

version_name

Optional name for the version.

{
  "base_updated_at": "2026-11-14T09:12:44.512031Z",
  "create_version": "manual",
  "version_name": "Readout resonators placed",
  "num_qubits": 8,
  "topology": "grid",
  "chip_size_mm": 10.0,
  "design": {
    "placements": [],
    "connections": [],
    "feedlines": [],
    "customComponents": [],
    "componentVariants": [],
    "chip_width_mm": 10.0,
    "chip_height_mm": 10.0
  }
}

The save keeps parts of the stored payload the body leaves out: collaboration state (yjs_state, nodes, edges), any semiconductor design stored beside the superconducting one, and the project’s componentVariants when the new design omits them. design is normalised, and Qiskit Metal code is regenerated from it. Response:

{
  "saved": true,
  "project_id": "4f6c0d2e-...",
  "has_design": true,
  "qiskit_code_generated": true,
  "updated_at": "2026-11-14T09:15:02.104377Z",
  "design": {"placements": [], "connections": [], "feedlines": []},
  "version_created": true,
  "version": {
    "id": "9b1e...",
    "message": "Readout resonators placed",
    "kind": "manual",
    "name": "Readout resonators placed",
    "created_at": "2026-11-14T09:15:02.110214Z"
  }
}

A version is created only when the design changed, and autosaves create at most one version every 10 minutes, so version_created can be false and version can be null. Use the returned updated_at as the next base_updated_at. A successful save broadcasts design_saved; send X-Client-Id to recognise your own event.

Versions (legacy)

The /versions endpoints are a compatibility layer over Version History. Each “version” is a commit on the project’s default branch. New integrations should use Version History.

Method

Path

Purpose

Roles/plan

GET

/api/projects/{project_id}/versions

Commits on the default branch, newest first, at most 500. No snapshots.

viewer

POST

/api/projects/{project_id}/versions

Commit the current design to the default branch. Body: message, optional tag (at most 64 characters).

editor; owner only if the branch is protected

GET

/api/projects/{project_id}/versions/{version_id}

One version with snapshot (the design payload). Accepts a commit id, commit hash or legacy version id.

viewer

DELETE

/api/projects/{project_id}/versions

Delete commits listed in version_ids (at most 500).

Project owner only

A legacy version item:

{
  "id": "9b1e...",
  "tag": "3f2a91c0",
  "message": "Readout resonators placed",
  "created_at": "2026-11-14T09:15:02.110214",
  "created_by_name": "A. Engineer",
  "created_by_id": "...",
  "num_qubits": 8,
  "topology": "grid",
  "drc_passed": false,
  "commit_hash": "3f2a91c0...",
  "branch_id": "..."
}

DELETE keeps tagged commits and branch heads and bases, and returns {"status": "ok", "deleted": [...], "skipped": [...]}.

Design generation and physics

These endpoints compute from the request body and do not change a project. Those marked “No token” accept anonymous calls.

Method

Path

Purpose

Roles/plan

POST

/api/generate/metal-code

Qiskit Metal Python from Schematic Editor JSON (components, connections, feedlines, variables, componentVariants).

No token

POST

/api/generate/geometry-check

Build the design in Qiskit Metal and check the real polygons. ?render=true adds a png_base64 top view. At most two checks run at once.

Signed in

POST

/api/generate/frequency-plan

Frequency plan for n qubits (1 to 50) and a topology: qubit groups, EJ/EC, readout band 6.3 to 7.2 GHz, resonator lengths, collision warnings. Optional anharmonicity_ghz and resonator_mode (quarter_wave or half_wave). Unknown fields are rejected.

No token

POST

/api/generate/size-to-plan

Junction inductance per qubit and readout route length per resonator that hit the target frequencies.

Signed in

POST

/api/generate/choose-targets

Qubit target frequencies that maximise the Monte Carlo collision-free yield (sigma_pct above 0 and up to 10, default 1.0).

Signed in

POST

/api/generate/yield-estimate

Monte Carlo share of chips free of frequency collisions for each junction spread in sigmas_pct (default [0.5, 1.0, 2.0], at most six values).

Signed in

POST

/api/generate/placement

Qubit placement for a topology.

No token

POST

/api/generate/drc

Rule checks on a generated n-qubit topology (spacing, CPW dimensions, frequency collision, resonator uniqueness, dispersive detuning, feedline clearance, overlap pre-check).

No token

POST

/api/generate/netlist

Connectivity netlist for a generated topology.

No token

POST

/api/generate/em-simulation

EM simulation targets for a generated topology. Parameters only; it does not run a solver.

No token

POST

/api/design/generate, /api/design/from-prompt

Constraint-driven and prompt-driven design pipeline (graph, frequency plan, placement, routing, DRC, code).

Free plan: one AI design for the life of the account

POST

/api/design/generate-from-graph, /api/design/validate, /api/design/route, /api/design/drc, /api/design/export, /api/design/export-all, /api/design/frequency-plan

Individual pipeline stages on a design graph.

Optional token

GET

/api/design/topologies

Supported topology names.

Optional token

GET, POST

/api/qclang/status, /examples, /templates, /parse, /compile

QClang language status, examples, parsing and compilation.

No token

POST

/api/qclang/save

Parse QClang source and save it to a project (project_id required).

Project owner

The /api/generate endpoints that the MCP server uses (frequency-plan, metal-code, geometry-check, size-to-plan, yield-estimate, choose-targets) are on the MCP token allow-list.

Frequency plan request:

{
  "n": 8,
  "topology": "grid",
  "substrate": "silicon",
  "anharmonicity_ghz": -0.2,
  "resonator_mode": "quarter_wave"
}

AI endpoints

Method

Path

Purpose

Roles/plan

GET

/api/ai/models

Models available to the AI Design Assistant.

Signed in

POST

/api/ai/chat

AI Design Assistant chat, streamed as Server-Sent Events. Each event’s data is {"type": "status"|"text"|"code"|"error"|"done", "content": "..."}. Billed to AI credits; returns 402 when credits are exhausted.

editor on the project when project_id is given

POST

/api/claude/chat

Claude chat endpoint used by the in-app assistant.

Optional token

GET, POST

/api/copilot/status, /api/copilot/options, /api/copilot/design, /api/copilot/fab-chip

Design Copilot: SQuADDS-backed design from a prompt, and a fab-ready multi-qubit chip script from one coupled design. Not billed to AI credits.

design requires sign-in

GET, POST

/api/ai/agent/status, /api/ai/agent/tools, /api/ai/agent/chat

Support and design agent.

Optional token

See also

Version History for branches, commits, diffs and restore.