StyleConfig

class qutip_qip.circuit.base_renderer.StyleConfig(dpi: int = 150, fontsize: int = 10, end_wire_ext: int = 2, padding: float = 0.3, gate_margin: float = 0.15, wire_sep: float = 0.5, layer_sep: float = 0.5, gate_pad: float = 0.05, label_pad: float = 0.1, bulge: str | bool = True, align_layer: bool = False, theme: str | Dict | None = 'qutip', title: str | None = None, bgcolor: str | None = None, color: str | None = None, wire_label: List | None = None, wire_color: str | None = None)[source]

Dataclass to store the style configuration for circuit customization.

Parameters:
dpiint, optional

DPI of the figure. The default is 150.

fontsizeint, optional

Fontsize control at circuit level, including tile and wire labels. The default is 10.

end_wire_extint, optional

Extension of the wire at the end of the circuit. The default is 2. Available to TextRender and MatRender.

paddingfloat, optional

Padding between the circuit and the figure border. The default is 0.3.

gate_marginfloat, optional

Margin space left on each side of the gate. The default is 0.15.

wire_sepfloat, optional

Separation between the wires. The default is 0.5.

layer_sepfloat, optional

Separation between the layers. The default is 0.5.

gate_padfloat, optional

Padding between the gate and the gate label. The default is 0.05. Available to TextRender and MatRender.

label_padfloat, optional

Padding between the wire label and the wire. The default is 0.1.

bulgeUnion[str, bool], optional

Bulge style of the gate. Renders non-bulge gates if False. The default is True.

align_layerbool, optional

Align the layers of the gates across different wires. The default is False. Available to TextRender and MatRender.

themeOptional[Union[str, Dict]], optional

Color theme of the circuit. The default is “qutip”. The available themes are ‘qutip’, ‘light’, ‘dark’ and ‘modern’.

titleOptional[str], optional

Title of the circuit. The default is None.

bgcolorOptional[str], optional

Background color of the circuit. The default is None.

colorOptional[str], optional

Controls color of acsent elements (eg. cross sign in the target node) and set as deafult color of gate-label. Can be overwritten by gate specific color. The default is None.

wire_labelOptional[List], optional

Labels of the wires. The default is None. Available to TextRender and MatRender.

wire_colorOptional[str], optional

Color of the wires. The default is None.