uniqc.visualization.circuit_render.styles module¶
Visual style definitions for circuit rendering.
Four skins over one semantic core (control dot / target circle, spanning
boxes for couplings, boxed gauge for measurement, double-line classical
wires). quantikz is the default skin chosen in the design review.
A style is geometry + fonts + a per-family look (fill/stroke/ink) in two
themes (light/dark). geom values feed both the layout engine and the
renderers so column widths always match what is drawn.
- class uniqc.visualization.circuit_render.styles.Look(fill: 'str', stroke: 'str', ink: 'str')[source]¶
Bases:
object- fill¶
- ink¶
- stroke¶
- class uniqc.visualization.circuit_render.styles.Style(key: 'str', font: 'str', fs: 'float' = 13.0, pfs: 'float' = 10.5, wire_gap: 'float' = 46.0, box_h: 'float' = 34.0, min_col: 'float' = 46.0, pad: 'float' = 22.0, ctrl_r: 'float' = 4.2, targ_r: 'float' = 9.5, rx: 'float' = 0.0, sw: 'float' = 1.4, wire_w: 'float' = 1.4, themes: 'dict[str, Theme]'=<factory>, palette: 'dict[str, tuple[str, str]]'=<factory>, palette_dark: 'dict[str, tuple[str, str]] | None'=None)[source]¶
Bases:
object- box_h = 34.0¶
- ctrl_r = 4.2¶
- font¶
- fs = 13.0¶
- key¶
- min_col = 46.0¶
- pad = 22.0¶
- palette¶
- palette_dark = None¶
- pfs = 10.5¶
- rx = 0.0¶
- sw = 1.4¶
- targ_r = 9.5¶
- themes¶
- wire_gap = 46.0¶
- wire_w = 1.4¶