uniqc.gateway.api.circuits module

Circuit SVG rendering API — /api/circuits/{task_id}/svg.

uniqc.gateway.api.circuits.circuit_svg(task_id, format='source')[source]

Render a task’s quantum circuit as an inline SVG HTML response.

Query params:
format: source (default) | compiled | executed
  • source: the originally submitted circuit IR

  • compiled: the compiled-to-basis circuit (if stored in metadata)

  • executed: the scheduled execution timeline (if stored)

Parameters:
Return type:

HTMLResponse