> ## Documentation Index
> Fetch the complete documentation index at: https://docs.haiqu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Children Circuits

> List derived transpiled and compressed child circuits for a parent ID.

Use this tool when the caller already has a parent ``circuit_id`` and
needs the lineage of derived transpiled or compressed circuits. The
returned IDs can be passed into execution, compression, or circuit-job MCP
tools.

When to Use:
    - Call this after transpilation or compression has already run and the
      caller needs the derived circuit IDs.
    - Call this before analytics, execution, or job-history inspection when
      the most recent work may have produced child circuits.

Constraints:
    - The endpoint only reports children already referenced by
      ``transpiled_circuit_ids`` and ``compressed_circuit_ids``.
    - An empty list is a valid result when no child circuits exist.

Notes:
    - Each returned child descriptor includes a brief MCP-oriented
      description rather than a full circuit model.
    - Returned IDs can be passed into execution, compression, or
      circuit-job MCP tools unchanged.

Args:
    circuit_id: Parent circuit identifier from a prior MCP response.
    user: Authenticated user resolved from the API key.
    db: Active database session.

Returns:
    A list of child descriptors containing ``id``, ``name``, and a brief
    MCP-oriented description.

Raises:
    HTTPException: Raised with ``404`` when the parent circuit or its
        experiment is not available to the caller.



## OpenAPI

````yaml https://api.haiqu.ai/openapi.json get /ai/circuit/{circuit_id}/children
openapi: 3.1.0
info:
  title: Haiqu API
  summary: Haiqu RESTful API service.
  description: Cloud service providing the access to Haiqu cloud runtime
  contact:
    name: Haiqu Inc.
    url: https://haiqu.ai/
    email: info@haiqu.ai
  version: 1.4.0
servers: []
security: []
paths:
  /ai/circuit/{circuit_id}/children:
    get:
      summary: List Children Circuits
      description: >-
        List derived transpiled and compressed child circuits for a parent ID.


        Use this tool when the caller already has a parent ``circuit_id`` and

        needs the lineage of derived transpiled or compressed circuits. The

        returned IDs can be passed into execution, compression, or circuit-job
        MCP

        tools.


        When to Use:
            - Call this after transpilation or compression has already run and the
              caller needs the derived circuit IDs.
            - Call this before analytics, execution, or job-history inspection when
              the most recent work may have produced child circuits.

        Constraints:
            - The endpoint only reports children already referenced by
              ``transpiled_circuit_ids`` and ``compressed_circuit_ids``.
            - An empty list is a valid result when no child circuits exist.

        Notes:
            - Each returned child descriptor includes a brief MCP-oriented
              description rather than a full circuit model.
            - Returned IDs can be passed into execution, compression, or
              circuit-job MCP tools unchanged.

        Args:
            circuit_id: Parent circuit identifier from a prior MCP response.
            user: Authenticated user resolved from the API key.
            db: Active database session.

        Returns:
            A list of child descriptors containing ``id``, ``name``, and a brief
            MCP-oriented description.

        Raises:
            HTTPException: Raised with ``404`` when the parent circuit or its
                experiment is not available to the caller.
      operationId: list_children_circuits
      parameters:
        - name: circuit_id
          in: path
          required: true
          schema:
            type: string
            title: Circuit Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  additionalProperties:
                    type: string
                title: Response List Children Circuits
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyQuery: []
        - APIKeyHeader: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyQuery:
      type: apiKey
      in: query
      name: HAIQU_API_KEY
    APIKeyHeader:
      type: apiKey
      in: header
      name: authorization

````