qilisdk.utils.visualization.style
Classes
!!! abstract "Usage Documentation" |
|
All visual parameters controlling the appearance of a circuit plot. |
|
Customization options for matplotlib schedule plots, with theme support. |
Module Contents
- class Style(/, **data: Any)[source]
Bases:
pydantic.BaseModel- !!! abstract “Usage Documentation”
[Models](../concepts/models.md)
A base class for creating Pydantic models.
- __class_vars__[source]
The names of the class variables defined on the model.
- __private_attributes__[source]
Metadata about the private attributes of the model.
- __signature__[source]
The synthesized __init__ [Signature][inspect.Signature] of the model.
- __pydantic_complete__[source]
Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__[source]
The core schema of the model.
- __pydantic_custom_init__[source]
Whether the model has a custom __init__ function.
- __pydantic_decorators__[source]
Metadata containing the decorators defined on the model. This replaces Model.__validators__ and Model.__root_validators__ from Pydantic V1.
- __pydantic_generic_metadata__[source]
Metadata for generic models; contains data used for a similar purpose to __args__, __origin__, __parameters__ in typing-module generics. May eventually be replaced by these.
- __pydantic_parent_namespace__[source]
Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__[source]
The name of the post-init method for the model, if defined.
- __pydantic_root_model__[source]
Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__[source]
The pydantic-core SchemaSerializer used to dump instances of the model.
- __pydantic_validator__[source]
The pydantic-core SchemaValidator used to validate instances of the model.
- __pydantic_fields__[source]
A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__[source]
A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__[source]
A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to ‘allow’.
- __pydantic_fields_set__[source]
The names of fields explicitly set during instantiation.
- __pydantic_private__[source]
Values of private attributes set on the model instance.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- fontfamily: str | list[str] | None[source]
- fontstyle: Literal['normal', 'italic', 'oblique'][source]
- fontvariant: Literal['normal', 'small-caps'][source]
- fontweight: str | int[source]
- fontstretch: str | int[source]
- fontsize: float | str[source]
- fontfname: str | None[source]
- math_fontfamily: str | None[source]
- dpi: int[source]
- title: str | None[source]
- property font: matplotlib.font_manager.FontProperties[source]
Construct a Matplotlib FontProperties from the configured fields. If fontfname points to a real file, it is used (and overrides family).
- class CircuitStyle(/, **data: Any)[source]
Bases:
StyleAll visual parameters controlling the appearance of a circuit plot.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- end_wire_ext: int[source]
- padding: float[source]
- gate_margin: float[source]
- wire_sep: float[source]
- layer_sep: float[source]
- gate_pad: float[source]
- label_pad: float[source]
- bulge: str[source]
- align_layer: bool[source]
- wire_label: list[Any] | None[source]
- start_pad: float[source]
- min_gate_h: float[source]
- min_gate_w: float[source]
- connector_r: float[source]
- target_r: float[source]
- control_r: float[source]
- layout: Literal['normal', 'compact'][source]
- class ScheduleStyle(/, **data: Any)[source]
Bases:
StyleCustomization options for matplotlib schedule plots, with theme support.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- figsize: tuple | None[source]
- grid: bool[source]
- grid_style: dict[str, Any][source]
- title_fontsize: int[source]
- xlabel: str[source]
- ylabel: str[source]
- label_fontsize: int[source]
- legend_loc: str[source]
- legend_fontsize: int[source]
- legend_frame: bool[source]
- line_styles: dict[str, dict[str, Any]][source]
- default_line_style: dict[str, Any][source]
- marker: str | None[source]
- marker_size: int[source]
- xtick_fontsize: int[source]
- ytick_fontsize: int[source]
- tick_color: str | None[source]
- tight_layout: bool[source]