
    z	iD                    d    S r SSKJr  SSKrSSKJr  SSKJrJr   " S S\5      r	 " S S	\5      r
g)
z'Matplotlib circuit visualization style.    )annotationsN)Path)	StyleDictDefaultStylec                  L    \ rS rSrSr1 SkrSSSSSS	S
SSSSSSSSS.rSS1rSrg)MPLStyleDict   zA dictionary for matplotlib styles.

Defines additional abbreviations for key accesses, such as allowing
``"ec"`` instead of writing ``"edgecolor"``.
>   dpinamemarginfigwidthfontsize	edgecolor	linecolor	showindex	textcolordisplaytextsubfontsizedisplaycolorsubtextcolorcreglinecolorcreglinestylegatefacecolorgatetextcolorbackgroundcolorbarrierfacecolorr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )tcgtsclcccgcbcbgecfssfsindexclinedisptexdispcol N)	__name__
__module____qualname____firstlineno____doc__VALID_FIELDSABBREVIATIONSNESTED_ATTRS__static_attributes__r,       ^/home/james-whalen/.local/lib/python3.13/site-packages/qiskit/visualization/circuit/qcstyle.pyr   r      sP    L.    !M$ #M2Lr6   r   c                  L    \ rS rSrSrSr\" \5      R                  S-  r	S r
Srg)MPLDefaultStyleI   a
  Creates a Default Style dictionary

The style dict contains numerous options that define the style of the
output circuit visualization. The style dict is used by the `mpl` or
`latex` output. The options available in the style dict are defined below:

Attributes:
    name (str): The name of the style. The name can be set to ``iqp``,
        ``iqp-dark``, ``textbook``, ``bw``, ``clifford``, or the name of a
        user-created json file. This overrides the setting in the user config
        file (usually ``~/.qiskit/settings.conf``).
    textcolor (str): the color code to use for all text not inside a gate.
    subtextcolor (str): the color code to use for subtext.
    linecolor (str): the color code to use for lines.
    creglinecolor (str): The color code to use for classical register lines.
    gatetextcolor (str): The color code to use for gate text.
    gatefacecolor (str): The color code to use for a gate if no color
        specified in the 'displaycolor' dict.
    barrierfacecolor (str): The color code to use for barriers.
    backgroundcolor (str): The color code to use for the background.
    edgecolor (str): The color code to use for gate edges when using the
        `bw` style.
    fontsize (int): The font size to use for text.
    subfontsize (int): The font size to use for subtext.
    showindex (bool): If set to True, show the index numbers at the top.
    figwidth (int): The maximum width (in inches) for the output figure.
        If set to -1, the maximum displayable width will be used.
    dpi (int): The DPI to use for the output image.
    margin (list): A list of margin values to adjust spacing around output
        image. Takes a list of 4 ints: [x left, x right, y bottom, y top].
    creglinestyle (str): The style of line to use for classical registers.
        Choices are ``solid``, ``doublet``, or any valid matplotlib
        `linestyle` kwarg value.
    displaytext (dict): a dictionary of the text to use for certain element
        types in the output visualization. These items allow the use of
        LaTeX formatting for gate names. The 'displaytext' dict can contain
        any number of elements. User created names and labels may be used as
        keys, which allow these to have Latex formatting.
    displaycolor (dict): the color codes to use for each circuit element in
        the form (gate_color, text_color). Colors can also be entered without
        the text color, such as 'u1': '#FA74A6', in which case the text color
        will always be `gatetextcolor`. The `displaycolor` dict can contain
        any number of elements. User names and labels may be used as keys,
        which allows for custom colors for user-created gates.
iqpstylesc                    U R                   [        U R                  5      R                  S5      -  n[	        US5       n[
        R                  " U5      nS S S 5        [        S0 WD6U l        g ! , (       d  f       N= f)Nz.jsonrr,   )	DEFAULT_STYLE_PATHr   DEFAULT_STYLE_NAMEwith_suffixopenjsonloadr   style)selfpathinfiledefault_styles       r7   __init__MPLDefaultStyle.__init__{   s`    &&d.E.E)F)R)RSZ)[[$_ IIf-M  "2M2
	 _s   A..
A<)rE   N)r-   r.   r/   r0   r1   r@   r   __file__parentr?   rJ   r5   r,   r6   r7   r9   r9   I   s*    ,\ h..93r6   r9   )r1   
__future__r   rC   pathlibr   qiskit.visualization.styler   r   r   r9   r,   r6   r7   <module>rQ      s/    . "   >/39 /3d93l 93r6   