+
    i                     z    ^ RI Ht ^ RIHt ^ RIHt ^ RIHt ^ RIH	t	H
t
Ht ^ RIHt ^ RIHtHtHtHt R tR	 tR
# )    )prod)Rational)exp)sqrt)Dagger
Commutatorqapply)BosonOp)BosonFockKetBosonFockBraBosonCoherentKetBosonCoherentBrac                     \        R 4      p \        R4      p\        V \         4      '       g   Q h\        \        V 4      \         4      '       g   Q hV P                  '       g   Q h\        V 4      P                  '       d   Q h\        R 4      \        R R4      8X  g   Q h\        R 4      \        R4      8w  g   Q h\        R R4      \        R R4      8w  g   Q h\	        V \        V 4      4      P                  4       ^8X  g   Q h\	        V \        V4      4      P                  4       V \        V4      ,          \        V4      V ,          ,
          8X  g   Q h\        \        V 4      4      \        \        V 4      4      8X  g   Q hR# )abTcFN)r
   
isinstancer   is_annihilationr   doitr   )r   r   s     d/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/physics/quantum/tests/test_boson.pytest_bosonoperatorr      s(   AAa!!!!fQi))))ay(((((3<73----3<73<'''3e!4444a#((*a///a#((*a&)mfQi!m.KKKK#a&>S^+++    c            
         \        R 4      p ^p\        ^ 4      \        ^4      ,          P                  4       ^ 8X  g   Q h\        ^4      \        ^4      ,          P                  4       ^8X  g   Q h\	        \        V4      \        V 4      V,          ,          \        ^ 4      ,          4      \        \        \        ^V^,           4      4      4      8X  g   Q hRRr2\        V4      \        V4      ,          P                  4       ^8X  g   Q h\        V4      \        V4      ,          P                  4       ^8X  g   Q h\        \        V4      \        V4      ,          P                  4       \        W#,
          ^,          \        R^4      ,          4      ,
          4      R8  g   Q h\	        V \        V4      ,          4      V\        V4      ,          8X  g   Q hR# )r   g333333?g333333@g-q=N)r
   r   r   r   r	   r   r   r   ranger   r   absr   r   )r   nalpha1alpha2s       r   test_boson_statesr    !   s   A 	
AOl1o-335:::Ol1o-335:::,q/F1IqL0<?BCU1ac]#$% % % #FV$'7'??EEG1LLLV$'7'??EEG1LLL (+;F+CCIIKFO)HRO;<= >@EF F F!&v../!&))* * *r   N)mathr   sympy.core.numbersr   &sympy.functions.elementary.exponentialr   (sympy.functions.elementary.miscellaneousr   sympy.physics.quantumr   r   r	   sympy.physics.quantum.bosonr
   r   r   r   r   r   r     r   r   <module>r(      s0     ' 6 9 < < /D D,**r   