
    z	i2                    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                  :    \ rS rSrSr1 SkrSSSSSS	S
SSSS.
rSrg)DAGStyleDict   zA dictionary for graphviz styles.

Defines additional abbreviations for key accesses, such as allowing
``"ec"`` instead of writing ``"edgecolor"``.
>   dpipadnamebgcolorfontsize	edgecolor	nodecoloropnodecolorclbitedgecolorinputnodecolorqubitedgecoloropnodefontcoloroutputnodecolorinputnodefontcoloroutputnodefontcolorr   r   r   r   r   r   r   r   r   r   )
ncicifocofopcopfecqecclc N)__name__
__module____qualname____firstlineno____doc__VALID_FIELDSABBREVIATIONS__static_attributes__r#       [/home/james-whalen/.local/lib/python3.13/site-packages/qiskit/visualization/dag/dagstyle.pyr   r      s5    L& "# Mr,   r   c                  L    \ rS rSrSrSr\" \5      R                  S-  r	S r
Srg)DAGDefaultStyle=   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 `graphviz`
output. The options available in the style dict are defined below:

Attributes:
    name (str): The name of the style.
    fontsize (str): The font size to use for text.
    bgcolor (str): The color name to use for the background ('red', 'green', etc.).
    nodecolor (str): The color to use for all nodes.
    dpi (int): The DPI to use for the output image.
    pad (int): A number to adjust padding around output
        graph.
    inputnodecolor (str): The color to use for incoming wire nodes. Overrides
        nodecolor for those nodes.
    inputnodefontcolor (str): The font color to use for incoming wire nodes.
        Overrides nodecolor for those nodes.
    outputnodecolor (str): The color to use for output wire nodes. Overrides
        nodecolor for those nodes.
    outputnodefontcolor (str): The font color to use for output wire nodes.
        Overrides nodecolor for those nodes.
    opnodecolor (str): The color to use for Instruction nodes. Overrides
        nodecolor for those nodes.
    opnodefontcolor (str): The font color to use for Instruction nodes.
        Overrides nodecolor for those nodes.

    qubitedgecolor (str): The edge color for qubits. Overrides edgecolor for these edges.
    clbitedgecolor (str): The edge color for clbits. Overrides edgecolor for these edges.
plain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       r-   __init__DAGDefaultStyle.__init__`   s`    &&d.E.E)F)R)RSZ)[[$_ IIf-M  "2M2
	 _s   A..
A<)r;   N)r$   r%   r&   r'   r(   r6   r   __file__parentr5   r@   r+   r#   r,   r-   r/   r/   =   s)    > !h..93r,   r/   )r(   
__future__r   r9   pathlibr   $qiskit.visualization.circuit.qcstyler   r   r   r/   r#   r,   r-   <module>rG      s/    . "   H$9 $N*3l *3r,   