+
    
þÎj  ã                   ót  € R t ^ RIHtHtHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHtHtHt  ! R R4      t]! ^]! R^4      RR	7      t]! 4       t]P%                  R
]
! ^^ .^ ^..4      4       ]P%                  R]
! ^ ^ .^ ^..4      4       ]P%                  R]
! ^^ .^ ^ ..4      4       ]P%                  R]
! ^ ^ .^^ ..4      4       ]P%                  R]
! ^ ^.^ ^ ..4      4       ]P%                  R]
! ^ ^.^^ ..4      4       ]P%                  R]
! ^ ]) .]^ ..4      4       ]P%                  R]
! ^^ .^ R..4      4       ]P%                  R]
! ^^ .^ ]..4      4       ]P%                  R]
! ^^ .^ ]! ]],          ^,          4      ..4      4       ]P%                  R]]
! ^^.^R..4      ,          4       ]P%                  R]
! ^^.^R..4      4       ]P%                  R]
! . RO. RO. RO. RO.4      4       ]P%                  R]]
! ^^.^R..4      ,          4       ]P%                  R]
! ]^ .^ ]) ..4      4       R# )z7A cache for storing small matrices in multiple formats.)ÚIÚRationalÚpi)ÚPow)Úexp)ÚMatrix)Úto_sympyÚto_numpyÚto_scipy_sparsec                   óR   a € ] tR t^t o RtRR ltR tR tR tR t	R t
R tR	tV tR
# )ÚMatrixCachea
  A cache for small matrices in different formats.

This class takes small matrices in the standard ``sympy.Matrix`` format,
and then converts these to both ``numpy.matrix`` and
``scipy.sparse.csr_matrix`` matrices. These matrices are then stored for
future recovery.
c                ó    € / V n         Wn        R # ©N©Ú_cacheÚdtype)Úselfr   s   &&ÚW/opt/data/home/.local/lib/python3.14/site-packages/sympy/physics/quantum/matrixcache.pyÚ__init__ÚMatrixCache.__init__   s   € ØˆŒØŽ
ó    c                óÚ   €  V P                  W4        V P                  W4        V P                  W4       R#   \         d     L3i ; i  \         d     L2i ; i  \         d     R# i ; i)z´Cache a matrix by its name.

Parameters
----------
name : str
    A descriptive name for the matrix, like "identity2".
m : list of lists
    The raw matrix data as a SymPy Matrix.
N)Ú_sympy_matrixÚImportErrorÚ_numpy_matrixÚ_scipy_sparse_matrix©r   ÚnameÚms   &&&r   Úcache_matrixÚMatrixCache.cache_matrix   su   € ð	Ø×Ñ˜tÔ'ð	Ø×Ñ˜tÔ'ð	Ø×%Ñ% dÖ.øô ô 	Ùð	ûô ô 	Ùð	ûô ô 	Úð	ús1   ‚9 ”A
 ¦A ¹AÁAÁ
AÁAÁA*Á)A*c                ón   € V P                   P                  W34      pVe   V# \        RV: RV: R24      h)zÊGet a cached matrix by name and format.

Parameters
----------
name : str
    A descriptive name for the matrix, like "identity2".
format : str
    The format desired ('sympy', 'numpy', 'scipy.sparse')
zMatrix with name z and format z is not available.)r   ÚgetÚNotImplementedError©r   r   Úformatr   s   &&& r   Ú
get_matrixÚMatrixCache.get_matrix1   s9   € ð �K‰K�O‰O˜T˜NÓ+ˆØŠ=ØˆHÝ!ã“6ðó
ð 	
r   c                ó$   € W0P                   W3&   R # r   )r   r$   s   &&&&r   Ú_store_matrixÚMatrixCache._store_matrixC   s   € Ø&'�‰�T�NÓ#r   c                ó>   € V P                  VR \        V4      4       R# )ÚsympyN)r)   r   r   s   &&&r   r   ÚMatrixCache._sympy_matrixF   s   € Ø×Ñ˜4 ¬(°1«+Ö6r   c                óX   € \        W P                  R 7      pV P                  VRV4       R# )©r   ÚnumpyN)r	   r   r)   r   s   &&&r   r   ÚMatrixCache._numpy_matrixI   s"   € Ü�QŸj™jÔ)ˆØ×Ñ˜4 ¨!Ö,r   c                óX   € \        W P                  R 7      pV P                  VRV4       R# )r/   zscipy.sparseN)r
   r   r)   r   s   &&&r   r   Ú MatrixCache._scipy_sparse_matrixM   s$   € ô ˜A§Z¡ZÔ0ˆØ×Ñ˜4 °Ö3r   r   N)Úcomplex)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r&   r)   r   r   r   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      s2   ø‡ € ñôòò.
ò$(ò7ò-÷4ð 4r   r   F)ÚevaluateÚeye2Úop11Úop00Úop10Úop01ÚXÚYÚZÚSÚTÚHÚHsqrt2ÚSWAPÚZXÚZYNéÿÿÿÿ)é   é    rO   rO   )rO   rO   rN   rO   )rO   rN   rO   rO   )rO   rO   rO   rN   )r9   Úsympy.core.numbersr   r   r   Úsympy.core.powerr   Ú&sympy.functions.elementary.exponentialr   Úsympy.matrices.denser   Ú!sympy.physics.quantum.matrixutilsr   r	   r
   r   Ú	sqrt2_invÚmatrix_cacher   © r   r   Ú<module>rX      sf  ðÙ =ç 0Ñ 0Ý  Ý 6Ý '÷ñ ÷
D4ñ D4ñN �‘8˜B “?¨UÔ3€	ñ ‹}€Ø × Ñ ˜&¡&¨1¨a¨&°1°a°&Ð)9Ó":Ô ;Ø × Ñ ˜&¡&¨1¨a¨&°1°a°&Ð)9Ó":Ô ;Ø × Ñ ˜&¡&¨1¨a¨&°1°a°&Ð)9Ó":Ô ;Ø × Ñ ˜&¡&¨1¨a¨&°1°a°&Ð)9Ó":Ô ;Ø × Ñ ˜&¡&¨1¨a¨&°1°a°&Ð)9Ó":Ô ;Ø × Ñ ˜#™v¨¨1 v°°1¨vÐ&6Ó7Ô 8Ø × Ñ ˜#™v¨¨A¨2 w°°A°Ð&7Ó8Ô 9Ø × Ñ ˜#™v¨¨1 v°°2¨wÐ&7Ó8Ô 9Ø × Ñ ˜#™v¨¨1 v°°1¨vÐ&6Ó7Ô 8Ø × Ñ ˜#™v¨¨1 v°±3°q¸µt¸Aµv³;Ð/?Ð&@ÓAÔ BØ × Ñ ˜#˜y©°!°Q°¸!¸R¸Ð0AÓ)BÕBÔ CØ × Ñ ˜(¡F¨Q°¨F°Q¸°GÐ+<Ó$=Ô >Ø × Ñ Ø
‰F’L¢,²ºlÐKÓLôNà × Ñ ˜$ 	©&°1°a°&¸1¸b¸'Ð1BÓ*CÕ CÔ DØ × Ñ ˜$¡¨¨A¨°°Q°B°Ð'8Ó 9Ö :r   