tsim.utils.diagram.render_svg
← Module overview
function
source
functionrender_svg¶source
tsim.utils.diagram.render_svg
Signature
def render_svg(c: stim.Circuit, type: str, *, tick: int | range | None = None, filter_coords: Iterable[Iterable[float] | stim.DemTarget] = ((),), rows: int | None = None, width: float | None = None, height: float | None = None, zoomable: bool = True) -> DiagramRender a stim circuit timeline/timeslice diagram with custom labels.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
c | stim.Circuit | required | |
type | str | required | |
tick | int | range | None | None | |
filter_coords | Iterable[Iterable[float] | stim.DemTarget] | ((),) | |
rows | int | None | None | |
width | float | None | None | |
height | float | None | None | |
zoomable | bool | True |
Returns
Diagram