Skip to content

tsim.utils.diagram.render_svg

← Module overview

functionrender_svgsource

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) -> Diagram

Render a stim circuit timeline/timeslice diagram with custom labels.

Parameters

NameTypeDefaultDescription
cstim.Circuitrequired
typestrrequired
tickint | range | NoneNone
filter_coordsIterable[Iterable[float] | stim.DemTarget]((),)
rowsint | NoneNone
widthfloat | NoneNone
heightfloat | NoneNone
zoomableboolTrue

Returns

Diagram

source