+
    i                         ^ RI HtHt ^ 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HtHtHtHtHt ^ RIHt ^ R	IHt ^ R
IHt ^ RIHt R tR tR t R# )    )Ipi)Symbol)exp)sqrt)Matrix)QFTIQFTRkGate)ZGateSwapGateHadamardGateCGate	PhaseGateTGate)Qubit)qapply)	represent)signc                     \        R 4      p \        ^V 4      P                  V 8X  g   Q h\        ^V 4      P                  R8X  g   Q h\        ^^4      \	        ^4      8X  g   Q h\        ^^4      \        ^4      8X  g   Q h\        ^^4      \        ^4      8X  g   Q h\        \        ^ V 4      ^R7      \        ^^ .^ \        \        V 4      ^,          \        ,          \        ,          ^\        V 4      ,          ,          4      ..4      8X  g   Q hR# )xnqubitsN   )r   r   ktargetsr   r   r   r   r   r   r   r   r   abs)r   s    b/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/physics/quantum/tests/test_qft.pytest_RkGater       s    sA!Q<>>Q!Q<4'''!Q<58###!Q<9Q<'''!Q<58###q!a!$*QFQDGAIbLNAsSTvI<V8W4X+Y$Z[ [ [    c                     \        ^ ^4      P                  4       \        ^ ^4      \        ^ 4      ,          \	        R\        ^4      4      ,          \        ^4      ,          \	        R\        ^4      4      ,          \	        R\        ^4      4      ,          \        ^4      ,          8X  g   Q h\        ^ ^4      P                  4       \        ^4      \	        R\        ^R4      4      ,          \	        R\        ^R4      4      ,          \        ^4      ,          \	        R\        ^R4      4      ,          \        ^ 4      ,          \        ^ ^4      ,          8X  g   Q h\        \        ^ ^4      ^R7      \        \        ^4       U Uu. uFh  p \        ^4       Uu. uFO  p\        ^\        ,          \        ,          ^,          4      W,          ^,          ,          \        ^4      ,          NKQ  	  upNKj  	  upp 4      8X  g   Q h\        ^ ^4      P                  4       '       g   Q h\!        \        ^ ^4      P                  4       \#        ^ ^ ^ 4      ,          4      P%                  4       \!        \        ^ 4      \        ^4      ,          \        ^4      ,          \#        ^ ^ ^ 4      ,          4      P%                  4       8X  g   Q hR# u upi u upp i )r   r   N)r   r   )r	   	decomposer   r   r   r   r   r
   r   r   r   ranger   r   r   r   r   r   expand)jis     r   test_quantum_fourierr*      s#   q!9 A|A&uT9Q<'@@Q	dE!H-	..3D)A,.G	HQ	  
 1:!QdF1bM225va}3MMQ	dF1bM2	33??	CCKAq>	RR R R SAY*eTUhWh58D8aQrT!VAXq)$q'118DhWXY Y Y q!9    #a)%%'aA67>>@FQQ'Q7aAFEfh   EWs   ?K AJ;&K ;K c                      \        ^ ^4      p \        V ^R7      p\        V P                  4       ^R7      pVP                  ^
R7      VP                  ^
R7      8X  g   Q hR# )r   r   )nN)r	   r   r%   evalf)cabs      r   test_qft_representr1   0   sM    Aq	A!QA!++-+A77R7=AGGbGM)))r!   N)!sympy.core.numbersr   r   sympy.core.symbolr   &sympy.functions.elementary.exponentialr   (sympy.functions.elementary.miscellaneousr   sympy.matrices.denser   sympy.physics.quantum.qftr	   r
   r   sympy.physics.quantum.gater   r   r   r   r   r   sympy.physics.quantum.qubitr   sympy.physics.quantum.qapplyr   sympy.physics.quantum.representr   $sympy.functions.elementary.complexesr   r    r*   r1    r!   r   <module>r>      s@    & $ 6 9 ' 7 7: : - / 5 5	[&*r!   