
    z	i                     *    S r SSKJr   " S S\5      rg)z:
Look-up table for variable parameters in QuantumCircuit.
    )MappingViewc                      ^  \ rS rSr% SrSU 4S jjrS rS rS rS r	S	 r
S
 rS rS rS rS rS rS rS rS rS rS rS rS rS rS rS\S'   \rSrU =r$ )ParameterView   zTemporary class to transition from a set return-type to list.

Derives from a list but implements all set methods, but all set-methods emit deprecation
warnings.
Nc                 n   > Ub  [        U5      U l        O/ U l        [        TU ]  U R                  5        g N)listdatasuper__init__)selfiterable	__class__s     W/home/james-whalen/.local/lib/python3.13/site-packages/qiskit/circuit/parametertable.pyr   ParameterView.__init__   s,    XDIDI#    c                 T    U R                  U R                  R                  5       5      $ )zCopy the ParameterView.)r   r
   copyr   s    r   r   ParameterView.copy"   s    ~~diinn.//r   c                 8   ^  [        U 4S jU 5       5      (       + $ )z.Check whether self and the input are disjoint.c              3   ,   >#    U  H	  oT;   v   M     g 7fr    .0elementr   s     r   	<genexpr>+ParameterView.isdisjoint.<locals>.<genexpr>(   s     8a7$a   )anyr   xs   ` r   
isdisjointParameterView.isdisjoint&   s    8a8888r   c                 :    U R                   R                  U5        g)z)Remove an existing element from the view.N)r
   remover!   s     r   r&   ParameterView.remove*   s    		r   c                 "    SU R                    S3$ )zFormat the class as string.zParameterView()r
   r   s    r   __repr__ParameterView.__repr__.   s    		{!,,r   c                      U R                   U   $ )z
Get items.r*   )r   indexs     r   __getitem__ParameterView.__getitem__2   s    yyr   c                 j    / nU  H  nX1;   d  M
  UR                  U5        M     U R                  U5      $ z0Get the intersection between self and the input.)appendr   )r   r"   interr   s       r   __and__ParameterView.__and__6   s3    G|W%  ~~e$$r   c                 $    U R                  U5      $ r2   )r5   r!   s     r   __rand__ParameterView.__rand__?   s    ||Ar   c                 H    U  H  nX!;  d  M
  U R                  U5        M     U $ )z9Get the intersection between self and the input in-place.)r&   )r   r"   r   s      r   __iand__ParameterView.__iand__C   s%    GG$  r   c                 ,    [        U R                  5      $ )zGet the length.)lenr
   r   s    r   __len__ParameterView.__len__J   s    499~r   c                 0    [        U 5      [        U5      -  $ )z$Get the union of self and the input.setr!   s     r   __or__ParameterView.__or__N       4y3q6!!r   c                 0    [        U 5      [        U5      -
  $ )z.Get the difference between self and the input.rB   r!   s     r   __sub__ParameterView.__sub__R   rF   r   c                 0    [        U 5      [        U5      -  $ )z8Get the symmetric difference between self and the input.rB   r!   s     r   __xor__ParameterView.__xor__V   rF   r   c                 0    [        U5      [        U 5      :g  $ r   rB   r   others     r   __ne__ParameterView.__ne__Z       5zSY&&r   c                 0    [        U5      [        U 5      :H  $ r   rB   rN   s     r   __eq__ParameterView.__eq__]   rR   r   c                 .   ^ [        U4S jU  5       5      $ )Nc              3   ,   >#    U  H	  oT;   v   M     g 7fr   r   )r   r   r"   s     r   r   'ParameterView.__le__.<locals>.<genexpr>a   s     4tGa<tr   allr!   s    `r   __le__ParameterView.__le__`   s    4t444r   c                     X:w  a  X:*  $ gNFr   r!   s     r   __lt__ParameterView.__lt__c       99r   c                 .   ^  [        U 4S jU 5       5      $ )Nc              3   ,   >#    U  H	  oT;   v   M     g 7fr   r   r   s     r   r   'ParameterView.__ge__.<locals>.<genexpr>i   s     4!wd?!r   rY   r!   s   ` r   __ge__ParameterView.__ge__h   s    4!444r   c                     X:w  a  X:  $ gr^   r   r!   s     r   __gt__ParameterView.__gt__k   ra   r   c                 ,    [        U R                  5      $ r   )iterr
   r   s    r   __iter__ParameterView.__iter__p   s    DIIr   c                     XR                   ;   $ r   r*   r!   s     r   __contains__ParameterView.__contains__s   s    II~r   __hash__r*   r   )__name__
__module____qualname____firstlineno____doc__r   r   r#   r&   r+   r/   r5   r8   r;   r?   rD   rH   rK   rP   rT   r[   r_   re   rh   rl   ro   __annotations____ror____static_attributes____classcell__)r   s   @r   r   r      s}    $09- %"""''5
5
 NGr   r   N)rv   collections.abcr   r   r   r   r   <module>r|      s    (dK dr   