qilisdk.utils.visualization.style
Classes
!!! abstract "Usage Documentation" |
|
All visual parameters controlling the appearance of a QTensor plot. |
|
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)[fuente]
Bases:
pydantic.BaseModel- !!! abstract «Usage Documentation»
[Models](../concepts/models.md)
A base class for creating Pydantic models.
- __class_vars__[fuente]
The names of the class variables defined on the model.
- __private_attributes__[fuente]
Metadata about the private attributes of the model.
- __signature__[fuente]
The synthesized __init__ [Signature][inspect.Signature] of the model.
- __pydantic_complete__[fuente]
Whether model building is completed, or if there are still undefined fields.
- __pydantic_core_schema__[fuente]
The core schema of the model.
- __pydantic_custom_init__[fuente]
Whether the model has a custom __init__ function.
- __pydantic_decorators__[fuente]
Metadata containing the decorators defined on the model. This replaces Model.__validators__ and Model.__root_validators__ from Pydantic V1.
- __pydantic_generic_metadata__[fuente]
A dictionary containing metadata about generic Pydantic models. The origin and args items map to the [__origin__][genericalias.__origin__] and [__args__][genericalias.__args__] attributes of [generic aliases][types-genericalias], and the parameter item maps to the __parameter__ attribute of generic classes.
- __pydantic_parent_namespace__[fuente]
Parent namespace of the model, used for automatic rebuilding of models.
- __pydantic_post_init__[fuente]
The name of the post-init method for the model, if defined.
- __pydantic_root_model__[fuente]
Whether the model is a [RootModel][pydantic.root_model.RootModel].
- __pydantic_serializer__[fuente]
The pydantic-core SchemaSerializer used to dump instances of the model.
- __pydantic_validator__[fuente]
The pydantic-core SchemaValidator used to validate instances of the model.
- __pydantic_fields__[fuente]
A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects.
- __pydantic_computed_fields__[fuente]
A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.
- __pydantic_extra__[fuente]
A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to “allow”.
- __pydantic_fields_set__[fuente]
The names of fields explicitly set during instantiation.
- __pydantic_private__[fuente]
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.
- theme: qilisdk.utils.visualization.themes.Theme = None[fuente]
- fontfamily: str | list[str] | None = None[fuente]
- fontstyle: Literal['normal', 'italic', 'oblique'] = None[fuente]
- fontvariant: Literal['normal', 'small-caps'] = None[fuente]
- fontweight: str | int = None[fuente]
- fontstretch: str | int = None[fuente]
- fontsize: float | str = None[fuente]
- fontfname: str | None = None[fuente]
- math_fontfamily: str | None = None[fuente]
- dpi: int = None[fuente]
- title: str | None = None[fuente]
- property font: matplotlib.font_manager.FontProperties[fuente]
Construct a Matplotlib FontProperties from the configured fields. If fontfname points to a real file, it is used (and overrides family).
- class QTensorStyle(/, **data: Any)[fuente]
Bases:
StyleAll visual parameters controlling the appearance of a QTensor 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.
- sphere_points: int = None[fuente]
- sphere_color: str = None[fuente]
- arrow_color: str = None[fuente]
- arrow_length_ratio: float = None[fuente]
- draw_center_circle: bool = None[fuente]
- centre_circle_color: str = None[fuente]
- draw_reference_points: bool = None[fuente]
- reference_point_distance: float = None[fuente]
- rotation_style: Literal['azel', 'trackball', 'sphere', 'arcball'] = None[fuente]
- class CircuitStyle(/, **data: Any)[fuente]
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 = None[fuente]
- padding: float = None[fuente]
- gate_margin: float = None[fuente]
- wire_sep: float = None[fuente]
- layer_sep: float = None[fuente]
- gate_pad: float = None[fuente]
- label_pad: float = None[fuente]
- bulge: str = None[fuente]
- align_layer: bool = None[fuente]
- wire_label: list[Any] | None = None[fuente]
- start_pad: float = None[fuente]
- min_gate_h: float = None[fuente]
- min_gate_w: float = None[fuente]
- connector_r: float = None[fuente]
- target_r: float = None[fuente]
- control_r: float = None[fuente]
- layout: Literal['normal', 'compact'] = None[fuente]
- class ScheduleStyle(/, **data: Any)[fuente]
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 = None[fuente]
- grid: bool = None[fuente]
- grid_style: dict[str, Any] = None[fuente]
- title_fontsize: int = None[fuente]
- xlabel: str = None[fuente]
- ylabel: str = None[fuente]
- label_fontsize: int = None[fuente]
- legend_loc: str = None[fuente]
- legend_fontsize: int = None[fuente]
- legend_frame: bool = None[fuente]
- line_styles: dict[str, dict[str, Any]] = None[fuente]
- default_line_style: dict[str, Any] = None[fuente]
- marker: str | None = None[fuente]
- marker_size: int = None[fuente]
- xtick_fontsize: int = None[fuente]
- ytick_fontsize: int = None[fuente]
- tick_color: str | None = None[fuente]
- tight_layout: bool = None[fuente]