
    z	i7                     Z    S r SSKJrJr   " S S\5      r " S S\5      r " S S\5      rg	)
z.Exception for errors raised by the QPY module.    )QiskitErrorQiskitWarningc                   2   ^  \ rS rSrSrU 4S jrS rSrU =r$ )QpyError   z Errors raised by the qpy module.c                 L   > [         TU ]  " U6   SR                  U5      U l        g)zSet the error message. N)super__init__joinmessage)selfr   	__class__s     O/home/james-whalen/.local/lib/python3.13/site-packages/qiskit/qpy/exceptions.pyr   QpyError.__init__   s     '"xx(    c                 ,    [        U R                  5      $ )zReturn the message.)reprr   )r   s    r   __str__QpyError.__str__   s    DLL!!r   )r   )	__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes____classcell__r   s   @r   r   r      s    *)
" "r   r   c                   <   ^  \ rS rSrSrS\S\S\4U 4S jjrSrU =r	$ )UnsupportedFeatureForVersion   zvQPY error raised when the target dump version is too low for a feature that is present in the
object to be serialized.featurerequiredtargetc           	      \   > Xl         X l        X0l        [        TU ]  SU SU SU S35        g)z
Args:
    feature: a description of the problematic feature.
    required: the minimum version of QPY that would be required to represent this
        feature.
    target: the version of QPY that is being used in the serialization.
zDumping QPY version z, but version z is required for: .N)r"   r#   r$   r
   r   )r   r"   r#   r$   r   s       r   r   %UnsupportedFeatureForVersion.__init__#   s=      "6(.
BTU\T]]^_	
r   )r"   r#   r$   )
r   r   r   r   r   strintr   r   r   r   s   @r   r    r       s'     
 
s 
C 
 
r   r    c                       \ rS rSrSrSrg)"QPYLoadingDeprecatedFeatureWarning3   z_Visible deprecation warning for QPY loading functions without
a stable point in the call stack. N)r   r   r   r   r   r   r-   r   r   r+   r+   3   s    )r   r+   N)r   qiskit.exceptionsr   r   r   r    r+   r-   r   r   <module>r/      s1    5 8
"{ 
"
8 
() )r   