Skip to main content
POST
/
ai
/
transpile_circuits
Transpile Circuits
curl --request POST \
  --url 'https://api.example.com/ai/transpile_circuits?HAIQU_API_KEY=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "experiment_id": "<string>",
  "device_id": "<string>",
  "circuit_ids": [],
  "transpilation_options": {},
  "circuits_qasm": [
    "<string>"
  ]
}
'
{
  "context": "<string>"
}

Authorizations

HAIQU_API_KEY
string
query
required

Body

application/json

Define payload for MCP transpilation submissions.

This model extends :class:haiqu.sdk.schemas.SubmitTranspilationModel with optional inline QASM input so agents can submit and transpile circuits in one operation.

Attributes: experiment_id: Parent experiment identifier for the transpilation job. circuit_ids: Existing stored circuit IDs to transpile. Use either this field or circuits_qasm. circuits_qasm: Inline QASM circuits to persist and transpile in one step. device_id: Backend identifier returned by list_qpus_and_simulators. transpilation_options: Optional backend-specific transpilation options forwarded to the underlying transpilation path. name: Optional job name inherited from the SDK model. description: Optional plain-text job description inherited from the SDK model.

experiment_id
string
required
device_id
string
required
circuit_ids
any[]
transpilation_options
Transpilation Options · object

Backend-specific transpilation options. For example: {'optimization_level': 2}.

circuits_qasm
string[] | null

List of quantum circuits in QASM 2.0 or 3.0 format. Use either this field or circuit_ids field to specify the existing circuits IDs to transpile.

Response

Successful Response

Represent context payload returned after transpilation job creation.

Attributes: context: Submission summary text including the created job ID, the input circuit references, and the next polling step. This response model does not expose structured job_id or transpiled_circuit_ids fields outside the text payload.

context
string
required