o
    GZh*	                     @   s   d Z ddlmZ ddlmZ ddlmZmZ ddlm	Z	m
Z
 ddlmZ ddlmZ e	dZe	d	Ze	d
Ze
dZe
dZe
dZedZedZedZed\ZZZdd Zdd Zdd Zdd ZdS )z;Tests of transforms of quantum expressions for Mul and Pow.    )symbols)raises)OperatorOuterProduct)KetBra)InnerProduct)TensorProductk1k2k3b1b2b3ABCzx y zc                   C   sp   t t tt tksJ tt  ttt ksJ ttt t tt tt ks&J t ttt tt tt ks6J d S N)r   r
   r   r   r   r    r   r   Z/var/www/auris/lib/python3.10/site-packages/sympy/physics/quantum/tests/test_transforms.pytest_bra_ket   s    $r   c                   C   s,  t t tt  W d    n1 sw   Y  t t tt  W d    n1 s+w   Y  t t tttt  W d    n1 sFw   Y  t t tttt  W d    n1 saw   Y  t t tttt  W d    n1 s|w   Y  t t tttt  W d    n1 sw   Y  tt	t
ttttt tt	t t
t tt ksJ tttttt	t
t ttt	 tt
 tt ksJ tttttttt tttttt ttt ksJ tttttt	t
t tttt ttt	 t tt
 t tt t ksJ d S r   )r   	TypeErrorr
   r   r	   r   r   r   r   r   r   r   r   r   r   r   r   test_tensor_product"   s<   







""r   c                   C   s0   t ttt tt tttt tt ksJ d S r   )r   r
   r   r   r   r   r   r   r   r   test_outer_product>   s   r   c                  C   sz   t t t t t t t } | tttt  t t ttt ks"J t	ttt	t t }|t	ttt tttks;J d S r   )
r   r   r   r
   r   r   r   r   r   r	   )e1e2r   r   r   test_compoundC   s   (r   N)__doc__Zsympy.core.symbolr   Zsympy.testing.pytestr   Zsympy.physics.quantum.operatorr   r   Zsympy.physics.quantum.stater   r   Z"sympy.physics.quantum.innerproductr   Z#sympy.physics.quantum.tensorproductr	   r
   r   r   r   r   r   r   r   r   xyzr   r   r   r   r   r   r   r   <module>   s*    