+
    i0                         ^ RI HtHt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4      tR tR tR tR	 tR
 tR tR tR tR# )    )labellerrender_labelMzCreateOneQubitGateCreateCGate)CNOTHSWAPCGateST)import_module)skip
matplotlibc                  T    \        R 4      R8X  g   Q h\        R R R/4      R8X  g   Q hR# )q0z$\left|q0\right\rangle$0z,$\left|q0\right\rangle=\left|0\right\rangle$N)r        j/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/physics/quantum/tests/test_circuitplot.pytest_render_labelr   	   s0    !;;;;tSk*.]]]]r   c                  <    \        \        ^ 4      4      R8X  g   Q hR# )r   zMz(0)N)strr   r   r   r   test_Mzr      s    r!u:   r   c                  L    \        R 4      p \        V ! ^ 4      4      R8X  g   Q hR# )QzQ(0)N)r   r   Qgates    r   test_create1r      s"    s#EuQx=F"""r   c                  P    \        R 4      p \        V ! ^.^ 4      4      R8X  g   Q hR# )r   zC((1),Q(0))N)r   r   r   s    r   test_createcr!      s'    EuaS|---r   c                 X    \        ^4      RR.8X  g   Q h\        ^R4      . RO8X  g   Q hR# )zTest the labeller utilityq_1q_0jNj_2j_1j_0)r   r   r   r   test_labellerr*      s-    A;5%.(((Ac?3333r   c                    \         '       g   \        R4       M^ RIHp  X ! \	        ^^ 4      ^\        ^4      R7      pVP                  ^8X  g   Q hVP                  ^8X  g   Q hVP                  RR.8X  g   Q hV ! \	        ^^ 4      ^4      pVP                  ^8X  g   Q hVP                  ^8X  g   Q hVP                  . 8X  g   Q hR# )z{Test a simple cnot circuit. Right now this only makes sure the code doesn't
raise an exception, and some simple properties
matplotlib not installedCircuitPlotlabelsr#   r$   N)	mplr   !sympy.physics.quantum.circuitplotr.   r   r   ngatesnqubitsr0   r.   cs     r   	test_cnotr7      s     3'(AD1Iax{3A88q==99>>88u~%%%D1Ia A88q==99>>88r>>r   c                     \         '       g   \        R 4       M^ RIHp  X ! \	        ^^ 4      \        ^4      ,          ^\        ^4      R7      pVP                  ^8X  g   Q hVP                  ^8X  g   Q hVP                  RR.8X  g   Q hR# )r,   r-   r/   r#   r$   N)
r1   r   r2   r.   r   r	   r   r3   r4   r0   r5   s     r   test_ex1r9   0   si    3'(AD1IadN1HQK8A88q==99>>88u~%%%r   c            	         \         '       g   \        R 4       M^ RIHp  X ! \	        ^ ^4      \        ^ 4      ,          \        R\        ^4      4      ,          \        ^4      ,          \        R\        ^4      4      ,          \        R\        ^4      4      ,          \        ^4      ,          ^\        ^R4      R7      pVP                  ^8X  g   Q hVP                  ^8X  g   Q hVP                  . RO8X  g   Q hR# )r,   r-   r%   r/   N)r   )   r&   )r1   r   r2   r.   r
   r	   r   r   r   r   r3   r4   r0   r5   s     r   test_ex4r<   ;   s    3'(AD1IadNE$qt$44ad:5ad;KK4!%&&'d++,HQsO	EA88q==99>>88,,,,r   N)r2   r   r   r   r   r   sympy.physics.quantum.gater   r	   r
   r   r   r   sympy.externalr   sympy.testing.pytestr   r1   r   r   r   r!   r*   r7   r9   r<   r   r   r   <module>r@      sN     A A ( %L!^!#.4
&	&
-r   